var now = new Date();
	var dYear = now.getYear();
	if (dYear < 1900) {
			dYear += 1900;
	}

	
// Pop-up definition
var newWin = null;
function popUp(strURL, strType, strWidth, strHeight) {  
 if (newWin != null && !newWin.closed)    
  newWin.close();  
 var strOptions="";  
 
 if (strType=="fixednooptions")    
  strOptions="height="+strHeight+",width="+strWidth; 
 
 if (strType=="fixedscroll")    
 strOptions="scrollbars,"+"height="+strHeight+",width="+strWidth; 
 
 newWin = window.open(strURL, 'newWin', strOptions);  
 newWin.focus();
}
	
	
function multipleImgSwap (btnId,logoId,bodyId){
	if (document.getElementById(btnId)){
		var allTags=document.getElementById(btnId).getElementsByTagName('a');
		for (x=0;x<=allTags.length;x++){
			allTags[x].x=x;
			allTags[x].onmouseover=function(){
				this.graphic1=''+this.firstChild.src;
				this.firstChild.src=this.graphic1.replace(/-0/,'-1');
				document.getElementById(logoId).src=document.getElementById(logoId).src.replace(/-0/,'-'+(this.x+1));		
				document.getElementById(bodyId).src=document.getElementById(bodyId).src.replace(/-0/,'-'+(this.x+1));
				}
			allTags[x].onmouseout=function(){
				this.graphic0=''+this.firstChild.src;
				this.firstChild.src=this.graphic0.replace(/-1/,'-0');
				document.getElementById(logoId).src=document.getElementById(logoId).src.replace(/-\d/,'-0');
				document.getElementById(bodyId).src=document.getElementById(bodyId).src.replace(/-\d/,'-0');
				}
		}
	}
}

function loaded (){
	multipleImgSwap('primeNav','logo','copy');
}


/* ACTIONS
---------------------------------------------------- */
//Onload Event
if (document.getElementById){
	window.onload=loaded;
}

