
function delayResize(){

setTimeout("resizeHeader()",5000);}

function resizeHeader() {

headerDiv = document.getElementById("junosHeader");

headerDiv.style.height = "248px";
headerHeight = 248;
incrementHeaderSize();
}

function incrementHeaderSize(){

if (headerHeight > 129){
headerHeight = headerHeight - 10;
headerDiv.style.height = headerHeight + "px";

resize = setTimeout("incrementHeaderSize()",100);

}


}

function setDivs(){
	introDiv = document.getElementById('flashIntro');
	promoDiv = document.getElementById('flashPromo');
	if(playIntro){

	introDiv.style.display = "block";
	promoDiv.style.display = "none";
	}
	else {

	introDiv.style.display = "none";
	promoDiv.style.display = "block";
	
	}

}

function switchFlash(){
if(playIntro){
	introDiv.style.display = "none";
	promoDiv.style.display = "block";
	resizeHeader();
}
}

function getNomineePage(){
	var navForm = document.forms['nomineeNavForm'];
	var navLocation = "/mini_v2/junos2004/nominees/" + navForm.elements["nomineeNav"].options[navForm.elements["nomineeNav"].selectedIndex].value + ".html";
	window.location.href = navLocation;
	
}

function setCurrent(){
	navForm = document.forms['nomineeNavForm'];
	matchPage = 	/http:\/\/([^\/]+)\/mini_v2\/junos2004\/nominees\/([^.]+).html/i.exec(parent.document.URL);
	if(matchPage){
	navForm.elements["nomineeNav"].value = matchPage[2];
	}
}
