function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

//----------------------------------------------------------
// GENERIC POPUP SCRIPT WITH scroll,width,height PARAMETERS
//----------------------------------------------------------
function popup(url, name, width, height, scroll){

	// center the window
	var toppos = (screen.availHeight-height)/2;
	var leftpos = (screen.availWidth-width)/2;
	
	// screen resolution
	var scrheight = screen.availHeight;
	var scrwidth = screen.availWidth;
	
	// where to position the window
	//var toppos = scrheight * 0.1;
	//var leftpos = scrwidth * 0.1;
	
	// create the window command
	command = "aWindow=window.open('" + url + "', '" + name +"', 'width=" + width + ",height=" + height + ",scrollbars=" + scroll + ",toolbar=no,menubar=yes,top=" + toppos +",left="+ leftpos +",screenX="+ toppos +",screenY="+ leftpos +",resizable=no')";
	// execute the command
	eval(command);

}
//-->
