<!--

//var quicktime=new Object();
var requiredQtVersion = 5;
var defaultWidth = 240;
var qtHeight = 196;
var audQtHeight = 30;
var defaultMediaClass = "vid";
var defaultPlayState = true;
var qtAltImagePath = "images/navbuts/";
var qt = 0;
var qtVersion = 0;
var agt = navigator.userAgent.toLowerCase();
var plugin = 0;
var QtCanPlay = 0;

if (agt.indexOf("mac") != -1) {
	plugin = true;
} else {
	plugin = (navigator.mimeTypes && navigator.mimeTypes["video/quicktime"]) ? navigator.mimeTypes["video/quicktime"].enabledPlugin : 0;
}


if ( plugin ) {

	var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	if (navigator.plugins && navigator.plugins.length) {
		for (x=0; x < navigator.plugins.length; x++) {
			if (navigator.plugins[x].name.indexOf('QuickTime Plug-in') != -1) {
				qt = 1;
				qtVersion=parseInt(navigator.plugins[x].name.split('QuickTime Plug-in ')[1].split(' ')[0]);
				
				break; 
			}
		}
	}
		
} else if (window.ActiveXObject) {
	try
	{
		oQTime=new ActiveXObject('QuickTimeCheckObject.QuickTimeCheck.1');
		if (oQTime)
		{
			qt=oQTime.IsQuickTimeAvailable(0);
			qtVersion=parseInt(oQTime.QuickTimeVersion.toString(16).substring(0,3))/100;
		}
	}
	catch(e) {}
}


QtCanPlay = qtVersion >= requiredQtVersion;

//alert("QUICKTIME IS OK: " + QtCanPlay);

function setQtDoc(myMovieUrl,myMediaClass,objWidth,objHeight,playState,myAltImage,myAltTag) {
	
	var theText = "";
	if(myAltTag == null) { myAltTag = "Video Still";  }
	
	myWidth = defaultWidth;
	// DIFFERENT HEIGHTS FOR VIDEOS AND AUDIOS - VIDEO MEDIA CLASS (myMediaClass) NOT SPECIFIED IN FUNCTION CALL BUT AUDIO IS SPECIFIED
	if(myMediaClass == null) { myMediaClass = defaultMediaClass; }
	if(myMediaClass == defaultMediaClass) { 
		
		myHeight = qtHeight;
		
	} else {
		myHeight = audQtHeight;
	}
		if(myAltImage == null) {myAltImage = qtAltImagePath + myMediaClass + "but.jpg"; }
		
		

	if (QtCanPlay) {
		
		// IF VIDEO HAS SPECIFIC WITHS SET - ONLY IF QT IS AVAILABLE
		if(objWidth != null && objHeight != null) {
			myWidth = objWidth;
			myHeight = objHeight;
			myMediaClass += "_" + myWidth +"_" + myHeight;
		}
		
		
		
		if(playState == null) { playState = defaultPlayState; }
	
		theText = '<div class="' + myMediaClass + '">';
		theText += '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" height="' + myHeight + '" width="' + myWidth + '">';
		theText += '<param name="src" value="' + myMovieUrl + '" />';	
        theText += '<param name="autoplay" value="' + playState + '" />';
        theText += '<param name="cache" value="true" />'; 

		if (plugin) {
			theText += '<object type="video/quicktime" data="' + myMovieUrl + '" height="' + myHeight + '" width="' + myWidth + '">';		
       	 	theText += '<param name="autoplay" value="' + playState + '" />';
        	theText += '<param name="cache" value="true" />'; 
			theText += '</object>';
		} 
		theText += '</object>';
		theText += '</div>';
	} else {
		var action;
		if(myMediaClass == defaultMediaClass) {
			theText = '<div class="' + myMediaClass + '"><img src="' + myAltImage + '" + height="' + qtHeight + '" width="' + myWidth + '" + alt="' + myAltTag + '" />';
			action = "view this video";
			
		} else {

			theText = '<div class="' + myMediaClass + '"><img src="' + myAltImage + '"  alt="' + myAltTag + '" />';
			action = "hear this audio";
		}
		if(!qt)  {
			theText += '<p>Apple\'s Quicktime player is required to ' + action + '. '; 
		} else {
			theText += '<p>Quicktime player ' + requiredQtVersion + ' or later is required to ' + action + '. ';
		}
		theText += 'Download it from <a href="http://www.apple.com/quicktime/download/" rel="external">here</a>.</p></div>'				
	
	}
	
	document.writeln(theText); 
}


//-->