function preloadImages() {
	var d = document;
	if(d.images){
		if(!d.p) 
			d.p = new Array();
		var i, j = d.p.length, a = preloadImages.arguments;
		for(i = 0; i < a.length; i++)
			if (a[i].indexOf("#") != 0){
				d.p[j] = new Image;
				d.p[j++].src = a[i];
		}
	}
}


function change(img, ref){
	document.images[img].src = ref;
}

function insertMenu(page){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="277" height="290" align="middle">');
	document.write('<param name="movie" value="flash/menu.swf" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="FlashVars" value="page='+page+'" />');
	document.write('<param name="bgcolor" value="#3a0303" />');
	document.write('<embed src="flash/menu.swf" FlashVars="page='+page+'" name="flash_menu" swliveconnect="true" menu="false" quality="high" bgcolor="#3a0303" width="277" height="290" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

function insertTop(page){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="564" height="260" align="middle">');
	document.write('<param name="movie" value="flash/top.swf" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="FlashVars" value="page='+page+'" />');
	document.write('<param name="bgcolor" value="#3a0303" />');
	document.write('<embed src="flash/top.swf" FlashVars="page='+page+'" name="flash_top" swliveconnect="true" menu="false" quality="high" bgcolor="#3a0303" width="564" height="260" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

function requestFormValidator(){
	if (document.request_form.email.value == ""){
		alert("Please enter a value for the E-Mail field.");
		document.request_form.email.focus();
		return (false);
	}
	if (document.request_form.Contact_Email.value.length < 6){
		alert("Please enter at least 6 characters in the E-Mail field.");
		document.request_form.email.focus();
		return (false);
	}
	if (document.request_form.email.value.length > 50){
		alert("Please enter at most 50 characters in the E-Mail field.");
		document.request_form.email.focus();
		return (false);
	}
	return (true);
}

var popupWin;
function load_page(url,height,width,with_scrollbar,resizeable){
    var w = 480, h = 340;
	var sb = 0; //scroll bar
	var rs = 0;
	
	if(with_scrollbar)
		sb=1;
	if(resizeable)
		rs=1;


    var browserName=navigator.appName; 
    if (browserName=="Netscape")
    { 
       w = window.innerWidth;
       h = window.innerHeight;
    }
    else 
    { 
     if (browserName=="Microsoft Internet Explorer")
     {
       w = document.body.clientWidth;
       h = document.body.clientHeight;
     }
    }

    var popW = width, popH = height;
    var leftPos = (w-popW)/2, topPos = (h-popH)/2;

    if(popupWin){
        popupWin.close();
    }
    popupWin = window.open('', 'popupWin',
                           'toolbars=0, '+
                           'scrollbars='+sb+', '+
                           'location=0, status=0, menubars=0,'+
                           'resizable='+rs+', width='+width+', height='+height+
                           ', left='+leftPos +', top='+topPos);
    popupWin.document.write("<body oncontextmenu='return false' style='margin: 0px 0px 0px 0px;'>");
	popupWin.document.write("<img src='"+url+"' width="+width+"/>");
	popupWin.document.write("</body>");
	popupWin.document.close();	
	popupWin.focus();
}
