/*:::oOO0:::: [ START file description ] ::::0OOo:::*/
/*:::oOO0:::: Created for:	The Design Times ::::0OOo:::*/	
/*:::oOO0:::: Author:		Daniel Hudson ::::0OOo:::*/
/*:::oOO0:::: Email:		trickmandan@yahoo.com ::::0OOo:::*/
/*:::oOO0:::: Date:		05/09/2004 ::::0OOo:::*/
/*:::oOO0:::: Purpose:	To apply functionality to page ::::0OOo:::*/
/*:::oOO0:::: [ Use of this document in part or whole is forbidden without written permission from the author. ] ::::0OOo:::*/
/*:::oOO0:::: [END file description] ::::0OOo:::*/
window.onload = function () 
{
	if(document.all)
	{
			//el=document.getElementById("displayWin").style;
			el=document.body.style;
			el.scrollbarDarkShadowColor="#000000";
			//scrollbar3dLightColor="#87CEFA";
			el.scrollbarArrowColor="#ffffff";
			el.scrollbarBaseColor="#000066";
			//scrollbarFaceColor="#000020";
			el.scrollbarHighlightColor="#333333";
			el.scrollbarShadowColor="#666666";
			el.scrollbarTrackColor="#cccccc";

	}
}
//idea from CodeLifter.com
// http://www.codelifter.com
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// =======================================
// do not edit anything below this line
// =======================================

function runSlideShow(aryCount,eItem,aryImg)
{
	for (i = 0; i < eItem.length; i++)
	{
   	if (document.all)
	 	{
    	eItem[i].style.filter="blendTrans(duration=2)"
      eItem[i].style.filter="blendTrans(duration=crossFadeDuration)"
      eItem[i].filters.blendTrans.Apply()    
   	}
   	eItem[i].src = aryImg[i][aryCount[i]].src
   	if (document.all)
		{
    	eItem[i].filters.blendTrans.Play()
   	}
	 	aryCount[i] = aryCount[i] + 1;
   	if (aryCount[i] > (aryImg[i].length-1)) aryCount[i]=0
	}
	t = setTimeout('runSlideShow(aryCount,aryE,aryI)', slideShowSpeed);
}
//START[ flashDetect ]
// v = flash plugin version
// w = width
// h = height
// f = full path to flash swf source file
// i = image subsitute
function flashDetect(v,w,h,f)
{
fContent = '';
var MM_contentVersion = parseInt(v);
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1) && (navigator.appVersion.indexOf("Mac")==-1)) {
	eval ('try {var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+MM_contentVersion);if (xObj)	MM_FlashCanPlay = true; xObj = null;	} catch (e)	{}');
}
			
if ( MM_FlashCanPlay ) {
	fContent = fContent +'<object type="application/x-shockwave-flash"';
	fContent = fContent +' data="'+f+'"';
	fContent = fContent +' width="'+w+'" height="'+h+'">';
	fContent = fContent +'<param name="movie" value="'+f+'"/><param name="quality" value="high"/><param name="bgcolor" value="#000000"/>'; 
	fContent = fContent +'<embed src="'+f+'" quality="high" bgcolor="#000000"';
	fContent = fContent +' swLiveConnect="false" width="'+w+'" height="'+h+'"';
	fContent = fContent +' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">';
	fContent = fContent +'</embed>';
	fContent = fContent +'</object>';
} else{
	fContent = fContent +'<a class="oAlt" href="http://www.macromedia.com/go/getflashplayer" title="Get the Flash Plugin (external link)" onmouseout="this.style.color=\'black\';this.style.backgroundColor=\'white\';"  onmouseover="this.style.color=\'white\';this.style.backgroundColor=\'black\';" style="position:absolute;display:block;float:left;top:0px;left:0px;background-color:white;color:black;font-size:75%;border: 1px outset #cccccc;line-height: 1.25em;letter-spacing:.5em;text-decoration:none ! important">Get Plugin</a>';
}
return fContent;
//END[ flashDetect ]
}