<!--- The begining of Top Menu Script--->
<!--
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_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
<!--- The end of Top Menu Script--->

<!-- To Add/Remove Netscape Resize Fix-->
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 preloader() {
     // counter
     var i = 0;

     // create object
     imageObj = new Image();

     // set image list
     images = new Array();
     images[0]="http://www.winmagic.com/templates/WinMagic/images/sub_menu_hover.gif"
     images[1]="http://www.winmagic.com/templates/WinMagic/images/main_hover.gif"
     images[2]="http://www.winmagic.com/templates/WinMagic/images/WinMagic_Free_Evaluation_hover.png"
     images[3]="http://www.winmagic.com/templates/WinMagic/images/WinMagic_Contact_Sales_hover.png"
     images[3]="http://www.winmagic.com/templates/WinMagic/images/WinMagic_Find_Reseller_hover.png"
     images[4]="http://www.winmagic.com/templates/WinMagic /images/right_free_evaluation_hover.png"
     images[5]="http://www.winmagic.com/templates/WinMagic/images/right_contact_sales_hover.png"
     images[6]="http://www.winmagic.com/templates/WinMagic /images/right_find_reseller_hover.png"

     // start preloading
     for(i=0; i<=6; i++) {
          imageObj.src=images[i];
     }
}

<!-- To contral the StatusBar-->
var boodschap = 'WinMagic Data Security';  //Status 
function dgstatus(){
    window.status = boodschap;
	timerID= setTimeout("dgstatus()", 30);
}
dgstatus();

function showonlyone(thechosenone) {
       var newboxes = document.getElementsByName("newboxes");
       for(var x=0; x<newboxes.length; x++) { 
               if (newboxes[x].id == thechosenone) {
                       newboxes[x].style.display = 'block';
               } else {
                       newboxes[x].style.display = 'none';
               }
       }
}
var http = false;

if(navigator.appName == "Microsoft Internet Explorer") {
	http = new ActiveXObject("Microsoft.XMLHTTP");
} else {
	http = new XMLHttpRequest();
}

function getCountry(user) {
	http.abort();
	http.open("GET", "validate.php?name=" + user, true);
	http.onreadystatechange=function() {
		if(http.readyState == 4) {
			document.getElementById('display').innerHTML = http.responseText;
		}
	}
	http.send(null);
}

function getProduct(user, idx) {
	http.abort();
	http.open("GET", "validate.php?product=" + user +"&index="+ idx, true);
	http.onreadystatechange=function() {
		if(http.readyState == 4) {
			document.getElementById('display'+ idx).innerHTML = http.responseText;
		}
	}
	http.send(null);
}

function countWords(user) {
	http.abort();
	http.open("GET", "validate.php?text=" + user, true);
	http.onreadystatechange=function() {
		if(http.readyState == 4) {
			document.getElementById('display_count').innerHTML = http.responseText;
		}
	}
	http.send(null);
}

function validate(email) {
	http.abort();
	http.open("GET", "validate.php?email=" + email, true);
	http.onreadystatechange=function() {
		if(http.readyState == 4) {
			document.getElementById('display_email').innerHTML = http.responseText;
			var vButton = document.getElementById("submit");
			vButton.disabled = true;	
		}
	}
	http.send(null);
}

function toggle() {
	var ele = document.getElementById("toggleText");
	var text = document.getElementById("displayText");
	if(ele.style.display == "block") {
    		ele.style.display = "none";
		text.innerHTML = "Government";
  	} else {
		ele.style.display = "block";
		text.innerHTML = "Government";
	}
}


/*
$(document).ready(function(){
	$(".toggle_container").hide();

	$("h2.trigger").toggle(function(){
		$(this).addClass("active"); 
		}, function () {
		$(this).removeClass("active");
	});
	$("h2.trigger").click(function(){
		$(this).next(".toggle_container").slideToggle("slow,");
	});
});
*/