

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 6000;
// Duration of crossfade (seconds)
var crossFadeDuration = 4;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below


Pic[0] = '/images/header1.jpg'
Pic[1] = '/images/header2.gif'
Pic[2] = '/images/header3.jpg'
Pic[3] = '/images/header4.gif'
Pic[4] = '/images/header5.jpg'
Pic[5] = '/images/header6.gif'
Pic[6] = '/images/header7.jpg'
Pic[7] = '/images/header8.gif'
Pic[8] = '/images/header9.jpg'

// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=2)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
//  End -->

<!-- 
var dom = (document.getElementById)? true : false; 
var nn4 = (document.layers)? true : false; 
var ie = (document.all)? true : false; 
var opera = (navigator.userAgent.indexOf('Opera') >= 0)? true : false; 
function showFlash() 
{ 
var flashImage; 
var flashMovie; 
if((opera)||(nn4)) 
{ 
} 
else 
{ 
flashImage = "home_header"; 
flashMovie = "flashMovie"; 
if (ie) { 
document.all[flashMovie].style.display = 'block'; 
document.all[flashImage].style.display = 'none'; 
} 
else 
{ 
document.getElementById(flashMovie).style.display = 'block'; 
document.getElementById(flashImage).style.display = 'none'; 
} 
} 
} 
function hideFlash() 
{ 
var flashImage; 
var flashMovie; 
if((opera)||(nn4)) 
{ 
} 
else 
{ 
flashImage = "home_header"; 
flashMovie = "flashMovie"; 
if (ie) { 
document.all[flashImage].style.display = 'block'; 
document.all[flashMovie].style.display = 'none'; 
} 
else 
{ 
document.getElementById(flashImage).style.display = 'block'; 
document.getElementById(flashMovie).style.display = 'none'; 
} 
} 
} 
//--> 

function outmsg(msg,ctrlwidth)
{
   msg = " -- "+msg
   newmsg = msg
   while (newmsg.length < ctrlwidth) {newmsg += msg}
   document.write ('<INPUT NAME="outmsg" VALUE= "'+newmsg+'" SIZE= '+ctrlwidth+'>')
   rollmsg()
}
function rollmsg()
{
   NowMsg=document.Ctl00.outmsg.value
   NowMsg=NowMsg.substring(1,NowMsg.length)+NowMsg.substring(0,1)
   document.Outmsg.outmsg.value = NowMsg
   bannerid=setTimeout("rollmsg()",200)
}


   function show_block(id) {
               var e = document.getElementById(id);
     if(e.style.display == "block")
     {
         e.style.display = "none";
     }
     else
     {
         e.style.display = "block";
     }
	 return false;
            }
			
	 function show(text)
    {
      document.all.d.innerHTML=text.innerHTML;
    }		
			
			
function clickHandler (elem) {			    
                elem.style.backgroundColor="#006940";
				elem.style.borderBottom="1px solid #dae5e1";
				elem.style.color="white";
                event.cancelBubble=true;
				
            }
			function clickHandler1 (elem) {			    
                elem.style.backgroundColor="white";
                event.cancelBubble=true;
				elem.style.borderBottom="1px solid #dae5e1";
            }
			function clickHandler2 (elem) {			    
                elem.style.backgroundColor="#339933";
				elem.style.border="0px";
                event.cancelBubble=true;
            }
			function clickHandler3 (elem) {			    
                elem.style.backgroundColor="#006940";
                event.cancelBubble=true;
				elem.style.color="white";
				elem.style.border="0px";
            }			
	var empDialog = new Object() ;

empDialog.OpenDialog = function( dialogParams, dialogName, pageUrl, dialogWidth, dialogHeight, parentWindow, resizable )
{
	if (navigator.userAgent.toLowerCase().indexOf("msie")!=-1)
	{
		if ( !parentWindow )
		{
			parentWindow = window ;
		}
		
		return parentWindow.showModalDialog( pageUrl, dialogParams, "dialogWidth:" + dialogWidth + "px;dialogHeight:" + dialogHeight + "px;help:no;scroll:no;status:no") ;
	}
	else
	{
		var screenWidth  = 800 ;
		var screenHeight = 600 ;
		
		try
		{
			screenWidth = screen.width;
			screenHeight = screen.height;
		}
		catch (e)
		{}
		
		var iTop  = (screenHeight - dialogHeight) / 2 ;
		var iLeft = (screenWidth  - dialogWidth)  / 2 ;

		var sOption  = "location=no,menubar=no,toolbar=no,dependent=yes,dialog=yes,minimizable=no,modal=yes,alwaysRaised=yes" +
			",resizable="  + ( resizable ? 'yes' : 'no' ) +
			",width="  + dialogWidth +
			",height=" + dialogHeight +
			",top="  + iTop +
			",left=" + iLeft ;

		if ( !parentWindow )
		{
			parentWindow = window ;
		}
		
		var oWindow = parentWindow.open( '', 'empDialog_' + dialogName, sOption, true ) ;
		
		if ( !oWindow )
		{
			alert("Popup windows are blocked. Please unblock it.") ;
			return ;
		}
			
		oWindow.moveTo( iLeft, iTop ) ;
		oWindow.resizeTo( dialogWidth, dialogHeight ) ;
		oWindow.focus() ;
		oWindow.location.href = pageUrl ;
		
		oWindow.dialogArguments = dialogParams ;
		
		// On some Gecko browsers (probably over slow connections) the 
		// "dialogArguments" are not set to the target window so we must
		// put it in the opener window so it can be used by the target one.
		//parentWindow.FCKLastDialogInfo = dialogInfo ;
		
		this.Window = oWindow ;
		
		// Try/Catch must be used to avoit an error when using a frameset 
		// on a different domain: 
		// "Permission denied to get property Window.releaseEvents".
		try
		{
			window.top.captureEvents( Event.CLICK | Event.MOUSEDOWN | Event.MOUSEUP | Event.FOCUS ) ;
			window.top.parent.addEventListener( 'mousedown', this.CheckFocus, true ) ;
			window.top.parent.addEventListener( 'mouseup', this.CheckFocus, true ) ;
			window.top.parent.addEventListener( 'click', this.CheckFocus, true ) ;
			window.top.parent.addEventListener( 'focus', this.CheckFocus, true ) ;
		}
		catch (e)
		{}
	}
}

empDialog.CheckFocus = function()
{
	// It is strange, but we have to check the FCKDialog existence to avoid a 
	// random error: "FCKDialog is not defined".
	if ( typeof( empDialog ) != "object" )
		return false ;
	
	if ( empDialog.Window && !FCKDialog.Window.closed )
		empDialog.Window.focus() ;
	else
	{
		// Try/Catch must be used to avoit an error when using a frameset 
		// on a different domain: 
		// "Permission denied to get property Window.releaseEvents".
		try
		{
			window.top.releaseEvents(Event.CLICK | Event.MOUSEDOWN | Event.MOUSEUP | Event.FOCUS) ;
			window.top.parent.removeEventListener( 'onmousedown', empDialog.CheckFocus, true ) ;
			window.top.parent.removeEventListener( 'mouseup', empDialog.CheckFocus, true ) ;
			window.top.parent.removeEventListener( 'click', empDialog.CheckFocus, true ) ;
			window.top.parent.removeEventListener( 'onfocus', empDialog.CheckFocus, true ) ;
		}
		catch (e)
		{}
	}
	return false ;
}

function empSelect_PreventSelectDisabled(oSelect) 
{
	if (navigator.userAgent.toLowerCase().indexOf("msie")!=-1)
	{
		var isOptionDisabled = oSelect.options[oSelect.selectedIndex].disabled;
		if(isOptionDisabled) 
		{
			oSelect.selectedIndex = oSelect.defaultSelectedIndex;
			return false;
		}
		else oSelect.defaultSelectedIndex = oSelect.selectedIndex;
    }
    return true;
}
		