<!--
var win = null;
function NewWindow(mypage,myname,w,h,scroll,resize){
LeftPosition = 	(screen.width) ? (screen.width-w)/2 : 0;
TopPosition = 	(screen.height) ? (screen.height-h)/2 : 0;
settings = 		'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable='+resize
win = 			window.open(mypage,myname,settings)
win.focus(); 
}

function loadIframe(theURL) {
document.getElementById("contentFRM").src = theURL;
}

function ShowHide(elementName) {
	var HeaderElement = null;
	var BodyElement = null; 
	if(document.getElementsByName) {
		HeaderElement = document.getElementsByName(elementName+"Header");
		BodyElement = document.getElementsByName(elementName+"Body");
		UpImage = document.getElementsByName(elementName+"Up");
		DownImage = document.getElementsByName(elementName+"Down");
		
		if(BodyElement) {	
			if(BodyElement[0].style.display == "none") {
				BodyElement[0].style.display = "block";
				HeaderElement[0].className = "ListNuggetHeader";
				DownImage[0].style.display = "none";
				UpImage[0].style.display = "block";
			} else {
				BodyElement[0].style.display = "none";
				HeaderElement[0].className = "ListNuggetHeaderClosed";
				UpImage[0].style.display = "none";
				DownImage[0].style.display = "block";
			}
		}	
	}
	//window.event.cancelBubble = true;
	//return false;

}


var gAutoPrint = true; // Flag for whether or not to automatically call the print function

function printSpecial()
{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';

		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
				html += headTags[0].innerHTML;
		}
		
		html += '\n</HE' + 'AD>\n<BODY>\n';
		
		var printReadyElem = document.getElementById("printReady");
		
		if (printReadyElem != null)
		{
				html += printReadyElem.innerHTML;
		}
		else
		{
			alert("Could not find the printReady section in the HTML");
			return;
		}
			
		html += '\n</BO' + 'DY>\n</HT' + 'ML>';
		
		var printWin = window.open("","printSpecial");
		printWin.document.open();
		printWin.document.write(html);
		printWin.document.close();
		if (gAutoPrint)
			printWin.print();
	}
	else
	{
		alert("Sorry, the print ready feature is only available in modern browsers.");
	}
}


function PopupPic(sPicURL) { 
   window.open( "popup.asp?"+sPicURL, "",  
   "resizable=0,HEIGHT=200,WIDTH=200,LEFT=100,TOP=100"); 
}

function mOvr(src,clrOver) {if (!src.contains(event.fromElement))  {src.bgColor = clrOver;}}
function mOut(src,clrIn)   {if (!src.contains(event.toElement))    {src.style.cursor = 'default'; src.bgColor = clrIn;}}
	
function borderize(what,color){
what.style.borderColor=color
}

function borderize_on(e){
if (document.all)
source3=event.srcElement
else if (document.getElementById)
source3=e.target
if (source3.className=="menulines"){
borderize(source3,"gray")
}
else{
while(source3.tagName!="TABLE"){
source3=document.getElementById? source3.parentNode : source3.parentElement
if (source3.className=="menulines")
borderize(source3,"gray")
}
}
}

function borderize_off(e){
if (document.all)
source4=event.srcElement
else if (document.getElementById)
source4=e.target
if (source4.className=="menulines")
borderize(source4,"#F5F5F5")
else{
while(source4.tagName!="TABLE"){
source4=document.getElementById? source4.parentNode : source4.parentElement
if (source4.className=="menulines")
borderize(source4,"#F5F5F5")
}
}
}

function LmOver(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#000066";
elem.style.cursor = 'hand'}

function LmOut(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#000066";}

function LmDown(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#000066";}

function LmUp(path)
{location.href = path;}

function side_hover(src) {
	src.style.cursor='hand';
	src.style.border='1px solid gray';
	src.style.backgroundColor='silver';
}
function side_unhover(src) {
	src.style.cursor='default';
	src.style.border='1px solid #F5F5F5';
	src.style.backgroundColor='#F5F5F5';
}

//specify interval between slide (in mili seconds)
//var slidespeed=3000

//specify images
//var slideimages=new Array("images/people_a.jpg","images/people_b.jpg","images/people_c.jpg","images/people_d.jpg","images/people_e.jpg")

//specify corresponding links
//var slidelinks=new Array("","","","","")

//var newwindow=0 //open links in new window? 1=yes, 0=no

//var imageholder=new Array()
//var ie=document.all
//for (i=0;i<slideimages.length;i++){
//imageholder[i]=new Image()
//imageholder[i].src=slideimages[i]
//}

//function gotoshow(){
//if (newwindow)
//window.open(slidelinks[whichlink])
//else
//window.location=slidelinks[whichlink]
//}

//-->
