// JavaScript Document


/*************** Rollover Script *************/
window.onload = rolloverInit;
function rolloverInit() {
     for (var i=0; i<document.images.length; i++) {
        if ((document.images[i].parentNode. tagName == "A") & (document.images[i].id!=="nolink")) {
			
			//if(!document.images[i].id=="nolink")
			//{	
				 setupRollover(document.images[i]);
			//}
        }
     }
}

function setupRollover(thisImage) {
     thisImage.outImage = new Image();
     thisImage.outImage.src = thisImage.src;
     thisImage.onmouseout = rollOut;

     thisImage.overImage = new Image();
     thisImage.overImage.src = "/images/template/" + thisImage.id +"_on.png";
     thisImage.onmouseover = rollOver;
}

function rollOver() {
     this.src = this.overImage.src;
}
function rollOut() {
     this.src = this.outImage.src;
}
/*************** Rollover Script *************/




/*************** Opening new window ****************/
function MM_openBrWindow(theURL,winName,features) 
{ 
  window.open(theURL,winName,features);
}
/****************************************************/


function getFileUrl()
{
	document.getElementById('filevalue').value=document.getElementById('picture').value;
}