<!--

function doNothing(){}

function switchImages( name1, source1 ){
		if ( document.images ){
			document[name1].src=source1;

        }
}

    // JavaScript to interpolate random images into a page.
    var ic = 4;     // Number of alternative images
    var xoxo = new Array(ic);  // Array to hold filenames
        
xoxo[0] = "../files/swf/promo1.swf";
xoxo[1] = "../files/swf/promo2.swf";
xoxo[2] = "../files/swf/promo3.swf";
xoxo[3] = "../files/swf/promo4.swf";

function pickRandom(range) {
if (Math.random)
return Math.round(Math.random() * (range-1));
else {
var now = new Date();
return (now.getTime() / 1000) % range;
}
}
// Write out an IMG tag, using a randomly-chosen image name.
var choice = pickRandom(ic);


// Function to trap enter key clicks.
function fnTrapKD(btn, event){
    
	if (document.all){		
		if (event.keyCode == 13){ 		    
			event.returnValue=false; 
			event.cancel = true; 			
			doSiteSearch();
		}
	}
	
	else if(document.layers){		
		if(event.which == 13){		  
			event.returnValue=false;
			event.cancel = true;
			doSiteSearch();
		}
	}
		
	else if (document.getElementById){		
		if (event.which == 13){		    
			event.returnValue=false;
			event.cancel = true;
			doSiteSearch();
		}
	}
}

function openPopCenter(url,height,width,features){

	// Get left and top coordinates so window can be opened centered on the screen
	var screenx = ((screen.availWidth / 2) - (width / 2))
	var screeny = ((screen.availHeight / 2) - (height / 2))

	var featureList = 'height=' + height + ',width=' + width + ',left=' + screenx + ',top=' + screeny;
	if (features != '')
		featureList += ',' + features
		
	var newWin = window.open(url,"window",featureList);
}

function openEmailWindow(url,height,width,features){

	// Get left and top coordinates so window can be opened centered on the screen
	var screenx = ((screen.availWidth / 2) - (width / 2))
	var screeny = ((screen.availHeight / 2) - (height / 2))

	var featureList = 'height=' + height + ',width=' + width + ',left=' + screenx + ',top=' + screeny;
	if (features != '')
		featureList += ',' + features

	url = url + "?CallingPage=" + window.location

	var newWin = window.open(url,"window",featureList);
}


function showHide(tblId)
{

	if(tblId.style.display=="none")
	{
		tblId.style.display = "block"
		tblId.style.position = "relative"

		tblId.oldLeft = tblId.style.left
		tblId.style.left = tblId.style.left + 10
	}
	else
	{
		tblId.style.display = "none"
		tblId.style.position = "relative"
		tblId.style.left = tblId.oldLeft
	}
}

function showHideIcon(tblId, ico)
{

	var icoObj

	if(tblId.style.display=="none")
	{
		tblId.style.display = "block"
		tblId.style.position = "relative"

		tblId.oldLeft = tblId.style.left
		tblId.style.left = tblId.style.left + 10

		icoObj = document.all(ico)
		icoObj.src = "/images/minus_icon.gif"
	}
	else
	{
		tblId.style.display = "none"
		tblId.style.position = "relative"
		tblId.style.left = tblId.oldLeft

		icoObj = document.all(ico)
		icoObj.src = "/images/plus_icon.gif"
	}
}

// End --> 


