		var platform;
		var browser;
		var version;

		//Start -- Set the Local Time and TimeZone
		d = new Date();
		UTCYear = d.getUTCFullYear();
		UTCDay = d.getUTCDate();
		UTCMonth = d.getUTCMonth ()+1;
		UTCHour = d.getUTCHours();
		UTCMin = d.getUTCMinutes();
		UTCSec = d.getUTCSeconds ();
		UTCMilliSec = d.getUTCMilliseconds();
		TimeZone = d.getTimezoneOffset();
		if (UTCMonth < 10) {
			UTCMonth = "0" + UTCMonth.toString();
		}
		if (UTCDay < 10) {
			UTCDay = "0" + UTCDay.toString();
		}
		if (UTCHour < 10) {
			UTCHour = "0" + UTCHour.toString();
		}
		if (UTCMin < 10) {
			UTCMin = "0" + UTCMin.toString();
		}
		if (UTCSec < 10) {
			UTCSec = "0" + UTCSec.toString();
		}
		UTCDateTime = UTCYear + "-" + UTCMonth + "-" +  UTCDay + "T" + UTCHour + ":" + UTCMin + ":" + UTCSec + "." +  UTCMilliSec;
		document.cookie = "TimeZone="+TimeZone;
		document.cookie = "UTCDateTime="+UTCDateTime;
		//END -- Set the Local Time and TimeZone

		//determine version
		version = parseInt(navigator.appVersion); 

		//determine platform
		if(navigator.userAgent.indexOf('Win') == -1) {
        	platform = 'Macintosh';
		} 
		else {
	        platform = 'Windows';
		}

		//determine browser
		if (navigator.appName == "Netscape") {
			vBrowser="ns";
		}
		else {
			vBrowser="ie";
		}
		
		//************     ADDITIONAL PLUGIN DETECTION CODE   *******************
		
		
		
		hasPlayer= detectPlugin('Windows Media Player');
		if(!hasPlayer&&platform!='Macintosh'){
//			if (!wmpmode)	
//			var x=confirm("Windows Media Player was not detected.  Click OK to view our Video Help pages for instructions.")
//			if (x)
//				openVidHelp();			
		}else{
			//alert("WMP is Detected")
		}
		//************        ENDOF PLUGIN DETECTION CODE     *******************
		

		function openVidWin(v, t, title){
			if(vBrowser=="ie"){
				vidString = "v=" + v + "&t=" + t + "&title=" + title
			}else{
				//need to remove spaces in the title to prevent error in netscape when passing paramenter title
				var singlespace= " "
				title = replaceString(title,singlespace,"_");
				vidString = "v=" + v + "&t=" + t + "&title=" + title
			}
			newWindow = eval('window.open("/learningplace/movies/videos01/video.asp?' + vidString + '","vidWindow","width=450,height=450,location=0,toolbar=0,scroll=0")')
		}
	
		function openVidHelp(){
			//window.open("/movies/videohelp.asp","vidHelpWindow","width=450,height=600,location=0,toolbar=0,scroll=0")
			window.open("/help_page_01.asp","vidHelpWindowPrint","width=700,height=600,menubar=1,location=0,toolbar=1,scrollbars=yes")
		}
		
		function replaceString(string,text,by) {
		// Replaces text with by in string
		
		//alert(text)
		
	    var strLength = string.length, txtLength = text.length;
    	if ((strLength == 0) || (txtLength == 0)) return string;
	    var i = string.indexOf(text);
    	if ((!i) && (text != string.substring(0,txtLength))) return string;
	    if (i == -1) return string;
	    var newstr = string.substring(0,i) + by;
	    if (i+txtLength < strLength)
    	newstr += replaceString(string.substring(i+txtLength,strLength),text,by);
	    return newstr;
		
		
		
		}
		


		function detectPlugin() {

		    // allow for multiple checks in a single pass
		    var daPlugins = detectPlugin.arguments;
		    // consider pluginFound to be false until proven true
		    var pluginFound = false;
		    // if plugins array is there and not fake
		    if (navigator.plugins && navigator.plugins.length > 0) {
				var pluginsArrayLength = navigator.plugins.length;
				// for each plugin...
				for (pluginsArrayCounter=0; pluginsArrayCounter < pluginsArrayLength; pluginsArrayCounter++ ) {
			    // loop through all desired names and check each against the current plugin name
			    var numFound = 0;
			    for(namesCounter=0; namesCounter < daPlugins.length; namesCounter++) {
				// if desired plugin name is found in either plugin name or description
		if( (navigator.plugins[pluginsArrayCounter].name.indexOf(daPlugins[namesCounter]) >= 0) || 
		    (navigator.plugins[pluginsArrayCounter].description.indexOf(daPlugins[namesCounter]) >= 0) ) {
		    // this name was found
		    numFound++;
		}   
	    }
	    // now that we have checked all the required names against this one plugin,
	    // if the number we found matches the total number provided then we were successful
	    if(numFound == daPlugins.length) {
			pluginFound = true;
			// if we've found the plugin, we can stop looking through at the rest of the plugins
			break;
	    }
	}
    }
    return pluginFound;
	
} // detectPlugin		
