// JavaScript Document
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];}}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

var ns4 = (document.layers); 
var ie4 = (document.all &&!document.getElementById); 
var ie5 = (document.all && document.getElementById); 
var ns6 = (!document.all && document.getElementById); 

function openItem(id){
	//eval("document.all." + divId + "style.visible=true");
		closeItem('pricing-menu');closeItem('support-menu');closeItem('info-menu');closeItem('menu-backup');
	/*	if(document.all){
	document.all[divId].style.visibility="visible";
		}else if(document.getElementById(divId)){
		document.getElementById[divId].style.visibility="visible";
	}*/
	
if(document.layers)
				{
					document.layers[id].visibility = "show";
				}
				else if(document.all)
				{
					document.all[id].style.visibility = "visible";
				}
				else if(document.getElementById)
				{
					document.getElementById(id).style.visibility = "visible";
				}


		



}
function closeItem(id){
	if(document.layers)
			{
				document.layers[id].visibility = "hide";
			}
			else if(document.all)
			{
				document.all[id].style.visibility = "hidden";
			}
			else if(document.getElementById)
			{
				document.getElementById(id).style.visibility = "hidden";
			}


}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function downloadNow(file,redUrl,extUrl) {
  var browser = (window.navigator.userAgent.indexOf("SV1") != -1);
  //alert(file);
      if (browser && extUrl==0) {
		var myDownloadWin=window.open(file,'dlnow','toolbar=0,location=no,directories=0,status=0,scrollbars=no,resizable=0,width=1,height=1,top=0,left=0');
		       location.href = redUrl;
        } else {
            location.href = redUrl;
        }
}
