// Pop-up 
	
	var ie5 = (document.all && document.getElementbyID) ? false : true;
	var isMac = (navigator.appVersion.indexOf("Mac") == -1) ? false : true;
	var win, win2;	

	function openWin(url, popWidth, popHeight, popScroll, popStatus) {
		var winName =  "popup";
		// popStatus is a new parameter; it is optional so that old calls will not cause an error
		var statusBar = popScroll; 
		
		if (popStatus != null) { 
			statusBar  = popStatus;
			// 'fix' for Mac IE's problem when including a status bar in the pop up window
			// - the browser chops off the bottom 18 pixels of the window to accomodate for the
			//   the status bar, and so we add 18 pixels to the height			
			if (!ie5 && !ns && isMac) { popHeight += 18; }
		}

		if(win) {
			if(!win.closed) {
				if(win.name == "popup") winName = "popup2";	
			  	win.close(); 
			}			
			win = null;	
		}
		
		win=window.open(url, winName, 'width=' + popWidth + ',height=' + popHeight + ',screenX=35,screenY=190,left=35,top=190,scrollbars=' + popScroll + ',resize=no,status=' + statusBar + '');
		
		if (win.opener == null) win.opener = self;
		win.focus();
	}

// end of pop-up


// prefix for Netscape layers when needed

var agt = navigator.userAgent;
var version = parseInt(navigator.appVersion);
	
if (agt.indexOf("MSIE") == -1)
  		 browser = "ns";
else {
         browser = "ms";
}



// constructor for DOM
if (browser == "ns") {
	
		prefix = 'document.layers[\"';
		suffix = '\"]'; 
}
	
if (browser == "ns" && document.getElementById) {

	prefix = 'document.getElementById(\"';
	suffix = '\").style';

	}

else if (browser == "ms") {

		prefix = 'document.all[\"';
		suffix = '\"].style';

		}

		
function nameLayer(name) {
		var layer = '';
  		if(document.layers) {layer = 'document.layers[\"' + name + '\"].';}
  		return layer;
  	}

// Basic Rollover	
	function BRollOn(layer,imgName) {
		if (ready) {
			eval(nameLayer(layer) + 'document.images[\"' + imgName + '\"].src = ' + imgName + '_on.src');	
		}	
	}

	function BRollOff(layer,imgName) {
		if (ready) {
			eval(nameLayer(layer) + 'document.images[\"' + imgName + '\"].src = ' + imgName + '_off.src');
			}
	}

// hide/show layers	
function showLayers(layer){
	if (ready) {
		eval(prefix + layer + suffix + '.visibility="visible"');
	}
}

function hideLayers(layer){
	if (ready) {
		eval(prefix + layer +  suffix + '.visibility="hidden"');
	}
}


function GetInnerWidth() {
  if (document.all)           return document.body.clientWidth;
  else if (document.getElementById)   return window.innerWidth;
  else if (document.layers)           return window.innerWidth;
}

function GetInnerHeight() {
  if (document.all)          return document.body.clientHeight;
  else if (document.getElementById)  return window.innerHeight;
  else if (document.layers)          return window.innerHeight;
}

function resizeWindow() {
self.moveTo(0,0); 
self.resizeTo(screen.availWidth,screen.availHeight); 

}