/*
This JS is an include for all externally linking JS/CSS files required for DB form
(c) 2008 Central Desktop Inc.
*/

var cd_static_url = 'https://static3.centraldesktop.com';

// These 2 lines fix a couple JS errors w/o including a couple more files
function rand() { return Math.random(); }
if (typeof spid == undefined) var spid = '';


if( (typeof Calendar === 'function') && (typeof common_tasks !== 'undefined') && (typeof ajax_params !== 'undefined')) {
    //alert( "In CD");
} else {
    //alert( "Outside CD");
    document.write('<link rel="stylesheet" type="text/css" href="'+cd_static_url+'/js/calendar/calendar-blue.v1.css" />');
    document.write('<link rel="stylesheet" type="text/css" href="'+cd_static_url+'/css/ext_include.v1.css" />');
    document.write('<script type="text/javascript" src="'+cd_static_url+'/js/calendar/calendar_one.v1.js"></script>');
    document.write('<script type="text/javascript" src="'+cd_static_url+'/js/prototype.js"></script>');
    document.write('<script type="text/javascript" src="'+cd_static_url+'/js/dom.utils.js"></script>');
    document.write('<script type="text/javascript" src="'+cd_static_url+'/js/common_tasks.js"></script>');
    document.write('<script type="text/javascript" src="'+cd_static_url+'/js/dd/effects.js"></script>');
}
