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_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_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.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];}
}

function toggleDisplay(object) {
  if (document.getElementById) {
    if (document.getElementById(object).style.display == 'block')
      document.getElementById(object).style.display = 'none';
    else
      document.getElementById(object).style.display = 'block';
  }
  else if (document.layers && document.layers[object] != null) {
    if (document.layers[object].display == 'block' ||
        document.layers[object].display == 'block' )
      document.layers[object].display = 'none';
    else
      document.layers[object].display = 'block';
  }
  else if (document.all) {
    if (document.all[object].style.display == 'block')
      document.all[object].style.display = 'none';
    else
      document.all[object].style.display = 'block';
  }

  return false;
}

var img_name = new Array("images/photo_0.jpg", "images/photo_1.jpg","images/photo_2.jpg", "images/photo_3.jpg", "images/photo_4.jpg");
var l = img_name.length;
var rnd_no = Math.floor(l*Math.random());

function getImage(){
	//document.getElementById("randomimage").src = img_name[rnd_no];
	document.getElementById("randomimage").innerHTML = "<img src='"+img_name[rnd_no]+"' width='489' height='181' border='0'>"
	document.getElementById("randomnav").innerHTML = "<table border='0' cellpadding='0' cellspacing='0' width='800'><tr><td><a href='#' onClick='goToText(0);'><img name='nav0' src='images/nav_0_off.gif' width='269' height='55' border='0'></a></td><td><a href='#' onClick='goToText(1);'><img name='nav1' src='images/nav"+rnd_no+"_1_off.gif' width='261' height='55' border='0'></a></td><td><a href='#' onClick='goToText(2);'><img name='nav2' src='images/nav"+rnd_no+"_2_off.gif' width='270' height='55' border='0'></a></td></tr></table>";
}
function goToText(whichOne){
	if (whichOne == 0) {
		MM_swapImgRestore();
		MM_swapImage('nav0','','images/nav_0_on.gif',1);
		document.getElementById("navContent").innerHTML = "<br/><table border=0 cellpadding=0 cellspacing=0 align='center' width='90%'><tr><td><font class='txt10'>Near Real-Time Data Backups</font><br><img src='images/shim.gif' width='1' height='16' border='0'><font class='txt04'>Our \"Incremental Forever\" methodology captures all data changes as frequently as every 15 minutes. The technology not only backs up recent datasets but also allows users to reconstruct the state of their data as it stood at the end of various 15-minute restoration points.</font><br><font class='txt05'><a href='continuity.html'> Remote Data Backup >></a></font><img src='images/shim.gif' width='1' height='16' border='0'></td></tr></table>";
	} else if (whichOne == 1) {
		MM_swapImgRestore();
		MM_swapImage('nav1','','images/nav'+rnd_no+'_1_on.gif',1);
		document.getElementById("navContent").innerHTML = "<br/><table border=0 cellpadding=0 cellspacing=0 align='center' width='90%'><tr><td><font class='txt10'>On-site Virtual Server</font><br><img src='images/shim.gif' width='1' height='16' border='0'><font class='txt04'>If any of your servers fail, our server virtualization technology embedded in the Network Attached Storage (NAS) allows customer servers and applications to be restored and rebooted within two hours.</font><br><font class='txt05'><a href='continuity.html'> Disaster Recovery >></a></font><img src='images/shim.gif' width='1' height='16' border='0'></td></tr></table>";
	} else if (whichOne == 2){
		MM_swapImgRestore();
		MM_swapImage('nav2','','images/nav'+rnd_no+'_2_on.gif',1);
		document.getElementById("navContent").innerHTML = "<br/><table border=0 cellpadding=0 cellspacing=0 align='center' width='90%'><tr><td><font class='txt10'>24/7 Completely Managed Solution</font><br><img src='images/shim.gif' width='1' height='16' border='0'><font class='txt04'>We offer an all inclusive pricing package for complete backup and Business Continuity Service with no hidden costs. All of your costs are bundled and include the NAS, the incremental methodology, file restorations, file integrity checks, secure data transmission and remote storage.</font> <font class='txt05'><a href='continuity.html'> Business Continuity >></a></font><img src='images/shim.gif' width='1' height='16' border='0'></td></tr></table>";
	}
}

var timeout	= 500;
var closetimer	= 0;
var ddmenuitem	= 0;

// open hidden layer
function mopen(id)
{	
	// cancel close timer
	mcancelclosetime();

	// close old layer
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}

// close layer when click-out
document.onclick = mclose; 

