

var DixonBubble, DixonNavPop;
var currentNavURL;

self.onerror = function() {
	return true;
}

if (document.images) {
order = new Image(112, 15);order.src = 'images/headpix/order.gif';
order_over = new Image(112, 15);order_over.src = 'images/headpix/order_over.gif';
account = new Image(112, 15);account.src = 'images/headpix/account.gif';
account_over = new Image(112, 15);account_over.src = 'images/headpix/account_over.gif';
help = new Image(112, 15);help.src = 'images/headpix/help.gif';
help_over = new Image(112, 15);help_over.src = 'images/headpix/help_over.gif';
feedback = new Image(112, 15);feedback.src = 'images/headpix/feedback.gif';
feedback_over = new Image(112, 15);feedback_over.src = 'images/headpix/feedback_over.gif';
}
function di(id,name){
  if (document.images) {document.images[id].src=eval(name+".src"); }
}

// function that displays status bar message

function dm(msgStr) {
  document.returnValue = false;
  if (document.images) { 
     window.status = msgStr;
     document.returnValue = true;
  }
}
var showMsg = navigator.userAgent != "Mozilla/4.0 (compatible; MSIE 4.0; Mac_PowerPC)";
function dmim(msgStr) {
  document.returnValue = false;
  if (showMsg) { 
    window.status = msgStr;
    document.returnValue = true;
  }
}

function setNav(navURL) {
	if (navURL != currentNavURL) {
		parent.nav.location.href=navURL;
	}
}

function setContent(contentURL) {
	parent.content.location.href=contentURL;
}

/*
// function that safely loads the main window with URL and closes the current bubble
function burstBubble(URL) {
	if ((DixonBubble != undefined) && (DixonBubble.close != undefined)) {
		if (DixonBubble.opener) {
			DixonBubble.opener.location = URL;
			DixonBubble.close();
		}
	}
}
*/

// function that will load the bubble with URL, opening the bubble if necessary (one bubble per page)
function loadBubble(URL) {
	DixonBubble = window.open(URL, window.name+'bubble', 'toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=no,width=500,height=450');			
	DixonBubble.focus();
}

// function that safely closes the bubble
function closeBubble() {
	if ((DixonBubble != undefined) && (DixonBubble.close != undefined)) {
		DixonBubble.close();
	}}

// function that opens the print window
function urlsender_open(theURL,winName,features) { //v2.0
//theURL = theURL + "?document=" + location.href + "&title=" + document.title
theURL = theURL + "?title=" + document.title + "&document=" + location.href 
  window.open(theURL,winName,features);
}

// function that (re)opens a navpop with URL (one navpop per page)
function loadNavPop(URL) {
	DixonNavPop = window.open(URL, window.name+'navpop', 'toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=no,width=340,height=350');			
	DixonNavPop.focus();
}

// function that safely loads and focuses on the main window with URL
function loadMain(URL) {
	if (window.opener) {
		window.opener.location = URL;
		window.opener.focus();
	}
}
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.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 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 MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
} 

window.onload = fullWin;

function fullWin (){
		this.window.moveTo(0, 0);
		
		var browserName=navigator.appName;
		var operatingSystem=navigator.platform;
		var version = parseFloat(navigator.appVersion);


		// Netscape check version 4.0+ on Win
		if (browserName.indexOf("Netscape")!=-1 && version<5.0 && operatingSystem.indexOf("Win")!=-1){
			this.window.resizeTo(screen.availWidth-9, screen.availHeight-30);
		}
			 
		// Netscape Windows
		else if (browserName.indexOf("Netscape")!=-1 && operatingSystem.indexOf("Win")!=-1) {
			this.window.resizeTo(screen.availWidth-5, screen.availHeight);
		}
			 
		// MSIE Windows
		else if (browserName.indexOf("Microsoft Internet Explorer")!=-1 && operatingSystem.indexOf("Win")!=-1){
			this.window.resizeTo(screen.availWidth, screen.availHeight);	
		}
			 
		// Netscape Mac check
		else if (browserName.indexOf("Netscape")!=-1 && operatingSystem.indexOf("Mac")!=-1){
			this.window.resizeTo(screen.availWidth-5, screen.availHeight);
		}
			 
		// MSIE Mac check
		else if (browserName.indexOf("Microsoft Internet Explorer")!=-1 && operatingSystem.indexOf("Mac")!=-1){
			this.window.resizeTo(screen.availWidth, screen.availHeight);
		 } 
 
		else{
			this.window.resizeTo(screen.availWidth, screen.availHeight);
		}
}
//-->
