var newwindow;
//declare the root offset if not done in the page..
var	pOff = "./";


//Preload images:
iCount = 0;

var xVersion='3.14.1',
	xOp7=false,
	xOp5or6=false,
	xIE4Up=false,
	xNN4=false,
	xUA=navigator.userAgent.toLowerCase();

var MacJunk = (
	navigator.userAgent.indexOf('MSIE 5.2') != -1
	&&
	navigator.userAgent.indexOf('Mac') != -1
);
if(window.opera){
  xOp7=(xUA.indexOf('opera 7')!=-1 || xUA.indexOf('opera/7')!=-1);
  if (!xOp7) xOp5or6=(xUA.indexOf('opera 5')!=-1 || xUA.indexOf('opera/5')!=-1 || xUA.indexOf('opera 6')!=-1 || xUA.indexOf('opera/6')!=-1);
}

else if(document.layers) {xNN4=true;}

else {xIE4Up=document.all && xUA.indexOf('msie')!=-1 && parseInt(navigator.appVersion)>=4;}

var timeOn;

function show(x)
{
	//Mouse over new menu item, so clear any timeouts, and hide
	//all visible menus.
	if (MacJunk)
	{
		//showNav(x)
	}
	else
	{
		clearTimeout(timeOn);
		HideAll();
		
		//Get button x and y coords
		var l = 0;
		var t = 0;
		
		//Swap button to mouse over state
		//showNav(x);
		
		//Position drop menu on screen
		switch(x)
		{
			case 1:
				l += 197;
				t += 87;
			break;

			case 2:
				l += 272;
				t += 87;
			break;
			
			case 3:
				l += 348;
				t += 87
			break;
			case 4:
				l += 424;
				t += 87;
			break;
			case 5:
				l += 500;
				t += 87;
			break;

		}
				
		xLeft("menu" + x,l);
		xTop("menu" + x ,t);
		
		//show drop menu
		xShow('menu' + x);
	}
}
function hide(x)
{
	if (MacJunk)
	{
//		hideNav(x)
	}
	else
	{
		timeOn = setTimeout("HideAll()", 400);
	}
}
function menOver()
{
	clearTimeout(timeOn);
}
function menOut()
{
	timeOn = setTimeout("HideAll()", 400);
}
function HideAll()
{
	for (x=1;x<10;x++)
	{
			xHide("menu" + x);
	}
}
function xGetElementById(e) {
  if(typeof(e)!='string') return e;
  if(document.getElementById) e=document.getElementById(e);
  else if(document.all) e=document.all[e];
  else if(document.layers) e=xLayer(e);
  else e=null;
  return e;
}
function xShow(e) {
  if(!(e=xGetElementById(e))) return;
  if(e.style && xDef(e.style.visibility)) e.style.visibility='visible';
  else if(xDef(e.visibility)) e.visibility='show';
}
function xHide(e) {
  if(!(e=xGetElementById(e))) return;
  if(e.style && xDef(e.style.visibility)) e.style.visibility='hidden';
  else if(xDef(e.visibility)) e.visibility='hide';
}
function xDef() {
  for(var i=0; i<arguments.length; ++i){if(typeof(arguments[i])=='undefined') return false;}
  return true;
}
function xPageX(e) {
  if (!(e=xGetElementById(e))) return 0;
  if (xDef(e.pageX)) return e.pageX;
  var x = 0;
  while (e) {
    if (xDef(e.offsetLeft)) x += e.offsetLeft;
    e = xDef(e.offsetParent) ? e.offsetParent : null;
  }
  return x;
}
function xPageY(e) {
  if (!(e=xGetElementById(e))) return 0;
  if (xDef(e.pageY)) return e.pageY;
  var y = 0;
  while (e) {
    if (xDef(e.offsetTop)) y += e.offsetTop;
    e = xDef(e.offsetParent) ? e.offsetParent : null;
  }
   return y;
}
function xLeft(e,iX) {
  if(!(e=xGetElementById(e))) return 0;
  var css=xDef(e.style);
  if (css && xStr(e.style.left)) {
    if(xNum(iX)) e.style.left=iX+'px';
    else {
      iX=parseInt(e.style.left);
      if(isNaN(iX)) iX=0;
    }
  }
  else if(css && xDef(e.style.pixelLeft)) {
    if(xNum(iX)) e.style.pixelLeft=iX;
    else iX=e.style.pixelLeft;
  }
  else if(xDef(e.left)) {
    if(xNum(iX)) e.left=iX;
    else iX=e.left;
  }
  return iX;
}
function xTop(e,iY) {
  if(!(e=xGetElementById(e))) return 0;
  var css=xDef(e.style);
  if(css && xStr(e.style.top)) {
    if(xNum(iY)) e.style.top=iY+'px';
    else {
      iY=parseInt(e.style.top);
      if(isNaN(iY)) iY=0;
    }
  }
  else if(css && xDef(e.style.pixelTop)) {
    if(xNum(iY)) e.style.pixelTop=iY;
    else iY=e.style.pixelTop;
  }
  else if(xDef(e.top)) {
    if(xNum(iY)) e.top=iY;
    else iY=e.top;
  }
  return iY;
}
function xNum(n) {
  return typeof(n)=='number';
}
function xStr(s) {
  return typeof(s)=='string';
}
function writeMenu()
{
	document.write(
		"<div class='menu' id='menu1' onmouseover='menOver();' onmouseout='menOut();'>"+
		"<table cellpadding=0 cellspacing=0 border=0><tr><td valign='top' class='tmen'>" +		
		"	<a href='sol_RecordsCenter.aspx'>Records Centers </a>" +
		"	<a href='sol_MediaVault.aspx'>Media Vaults</a>" +
		"	<a href='sol_informationDestruction.aspx'>Destruction</a>" +
		"	<a href='sol_CaseStudies.aspx'>Case Studies</a>" +
		"	<a href='sol_CustomersTellUs.aspx'>Customers Tell Us&nbsp;&nbsp;</a>" +
		"</td></tr></table>" +
		"</div>"+
		"<div class='menu' id='menu2' onmouseover='menOver();' onmouseout='menOut();'>"+
		"<table cellpadding=0 cellspacing=0 border=0><tr><td valign='top' class='tmen'>" +
		"	<a href='prod_vck.aspx'>Visual Corporate Keeper&nbsp;&nbsp;</a>" +
		"	<a href='prod_vvk.aspx'>Visual Vault Keeper </a>" +
		"	<a href='prod_VeriShred.aspx'>Veri-Shred </a>" +
		"	<a href='prod_InfoKeeper.aspx'>InfoKeeper</a>" +
		"	<a href='prod_vckweb.aspx'>VCKweb.NET</a>" +
		"	<a href='prod_vvkweb.aspx'>VVKweb.NET</a>" +
		"	<a href='prod_hardw.aspx'>Hardware</a>" +
		"</td></tr></table>" +
		"</div>"+
		"<div class='menu' id='menu3' onmouseover='menOver();' onmouseout='menOut();'>"+
		"<table cellpadding=0 cellspacing=0 border=0><tr><td valign='top' class='tmen'>" +
		"	<a href='http://www.andrewssoftware.com/user/'>Trouble Tickets</a>" +
		"	<a href='sup_LearningCenter.aspx'>Learning Center</a>" +
		"	<a href='sup_HelpManuals.aspx'>Help Manuals</a>" +
		"	<a href='http://www.andrewssoftware.com/User/ContentPages/KnowledgeView.aspx'>Knowledge Base</a>" +
		"	<a href='sup_ReleaseNotes.aspx'>Release Notes</a>" +
		"	<a href='sup_SupportForum.aspx'>Support Forum</a>" +
		"	<a href='sup_ProductUpdates.aspx'>Product Updates</a>" +
		"	<a href='sup_SampleForms.aspx'>Sample Forms</a>" +
		"   <a href='RequestPassword.aspx'>Login Request</a>" +
		"</td></tr></table>" +
		"</div>"+
		"<div class='menu' id='menu4' onmouseover='menOver();' onmouseout='menOut();'>"+
		"<table cellpadding=0 cellspacing=0 border=0><tr><td valign='top' class='tmen'>" +
		"	<a href='news_PressReleases.aspx'>Press Releases</a>" +
		"	<a href='news_ASINewsletter.aspx'>ASI Newsletter</a>" +
		"	<a href='news_IndustryArticles.aspx'>Industry Articles</a>" +
		"	<a href='news_IndustryAssociations.aspx'>Industry Associations</a>" +
		"	<a href='news_Events.aspx'>Events</a>" +
		"	<a href='UserSeminar.aspx' >ASI Users Seminar</a>" +
		"</td></tr></table>" +
		"</div>"+
		"<div class='menu' id='menu5' onmouseover='menOver();' onmouseout='menOut();'>"+
		"<table cellpadding=0 cellspacing=0 border=0><tr><td valign='top' class='tmen'>" +
		"	<a href='about_History.aspx'>History</a>" +
		"	<a href='about_Certifications.aspx'>Certifications</a>" +
		"	<a href='about_participation.aspx'>Industry Participation</a>" +
		"	<a href='about_Partners.aspx'>Partners</a>" +
		"</td></tr></table>" +
		"</div>"
		);
}

function cRnd()
{
   return String.fromCharCode(97 + Math.round(Math.random() * 25));
}

