<!--


function update_image(img_id, img_count) {
	
	
	for (var i = 1; i <= img_count; i++) {
		
		Element.hide('div_'+i);
		$('link_'+i).className = 'projectimagebutton';
	}
	
	$('link_'+img_id).className = 'projectimagebuttonstyleselected';
	 
	 Element.show('div_'+img_id);
	 //Effect.Highlight('div_'+img_id)
	
	
}


var varid;

function showDivDetails(url,id,mydiv){
	if(id!=varid){
		Position.prepare();
		coords = Position.cumulativeOffset($('div_'+id));
		$(mydiv).innerHTML='<p><strong>&nbsp;&nbsp;Loading Data...</strong></p>';
		$(mydiv).style.left=coords[0]+20+'px';
		$(mydiv).style.top=coords[1]+20+'px';
		Element.show(mydiv);
		var superAjax = new Ajax.Updater(
				mydiv,url,
				{
					method: 'get', 
					onComplete: function() { new Effect.Highlight(mydiv) }
		}
		
		);	
		varid=id;
	} else {
		Element.hide(mydiv);
		varid='';
	}
}


function navOn(carry) {
	if (currNav1 > 1) {
		if (currNav1==5 && carry==1) {
			document["nav2-" + carry].src="/public/imgs/nav/nav2-"+carry+"B_on.gif";
		} else {
			if (carry ==5) {
				document["nav2-" + carry].src="/public/imgs/nav/nav2-"+carry+"A_on.gif";
			} else {
				document["nav2-" + carry].src="/public/imgs/nav/nav2-"+carry+"_on.gif";
			}
		}
	} else {
		document["nav2-" + carry].src="/public/imgs/nav/nav2-"+carry+"_on.gif";
	}
}


function navOff(carry) {
	if (currSelected !=carry) {
		if (currNav1 > 1) {
			if (currNav1==5 && carry ==1) {
				document["nav2-" + carry].src="/public/imgs/nav/nav2-"+carry+"B_off.gif";
			} else {
				if (carry ==5) {
					document["nav2-" + carry].src="/public/imgs/nav/nav2-"+carry+"A_off.gif";
				} else {
					document["nav2-" + carry].src="/public/imgs/nav/nav2-"+carry+"_off.gif";
				}
			} 
		} else {
			document["nav2-" + carry].src="/public/imgs/nav/nav2-"+carry+"_off.gif";
		}
	}
}


function toggleCheckbox(i) {
	box = eval("document.submitform.LOC_REGION_" + i); 
	box.checked = !box.checked;
}


function ShowProjectName(s,c)
{
	var proj=document.getElementById("ProjectName");
	proj.childNodes[0].nodeValue=s;
	var curr=document.getElementById("ProjectStatus");
	curr.childNodes[0].nodeValue=c;
}

function ClearProjectName()
{
	var proj=document.getElementById("ProjectName");
	proj.childNodes[0].nodeValue="\r";
	var curr=document.getElementById("ProjectStatus");
	curr.childNodes[0].nodeValue="\r";
}


function FlashObject(filewidth,fileheight,filename) {
	var printFlash = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
			+ 'width="'+filewidth+'" height="'+fileheight+'"'
			+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
			+ '<param name="movie" value="'+filename+'">'
			+ '<param name="quality" value="high">'
			+ '<param name="menu" value="false">'
			+ '<embed src="'+filename+'" '
			+ 'width="'+filewidth+'" height="'+fileheight+'" '
			+ 'quality="high" '
			+ 'menu="false" '
			+ 'type="application/x-shockwave-flash" '
			+ 'pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
			+ '<\/embed>'
			+ '<\/object>'
	
	document.write(printFlash);
}


function grabCSIcodes() {
	var temp;
	var result = "";
	
	for (var i = 0; i < document.submitform.elements['LOC_CSI_DIVISION_CODES[]'].length; i++) {
    	if (document.submitform.elements['LOC_CSI_DIVISION_CODES[]'].options[i].selected) {
			result += document.submitform.elements['LOC_CSI_DIVISION_CODES[]'].options[i].value+":"; 
        }
	}
	
	if (!result) {
		alert("Please select you Division Codes");
	} else {
		//alert("You have selected:" + result);
		var w = window.open("/spq/sections/csi_codes/"+result, "", "menubar=no,history=no,resizable=yes,scrollbars=yes,toolbar=no,width=450,height=400");
	}  		
}

function openDisclaimer() {
	window.open("/spq/disclaimer", "disclaimer", "menubar=no,history=no,resizable=yes,scrollbars=yes,toolbar=no,width=450,height=400");
}
//-->    