// header.js

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function closeit(layer)
{
	document.getElementById(layer).style.visibility = "hidden";
	
}

function SymError()
{
  return true;
}
window.onerror = SymError;
var SymRealWinOpen = window.open;
function SymWinOpen(url, name, attributes)
{
  return (new Object());
}
window.open = SymWinOpen;
function mainFrame(LoCal, PosE, tHead)
{
	document.getElementById('loading').style.display = 'block';
	mF = document.getElementById('FrontPage');
	mF.src = LoCal;
	mF.height = PosE;
	dH = document.getElementById('locHead');
	dH.innerHTML = tHead;
}

function hideload() { document.getElementById('loading').style.display = 'none'; }
function showload() { document.getElementById('loading').style.display = 'block'; }

function ss(w){window.status=w;return true;}
function cs(){window.status='';}

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 enlarge() {
	mFm = document.getElementById('FrontPage');
	mFm.height = "1600";
	}
function tchange(labelD)
{
	dHd = document.getElementById('locHead');
	dHd.innerHTML = labelD;
}
// counter
var i = 0;
// create object
imageObj = new Image();
// set image list
images = new Array();
images[0]="loading_new.gif";
// start preloading
for(i=0; i<=20; i++) 
{
imageObj.src="http://www.unitek.com/images/"+images[i];
}