//----------------------------------------------------------------------
// FUNCTION: Housekeeping
//----------------------------------------------------------------------
function houseKeeping() {
	checkBrowser();
}

//----------------------------------------------------------------------
// FUNCTION: Add Stylesheet when javascript is enabled
//----------------------------------------------------------------------
function linkCSS(title) { 
   var i, a, main;
   for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
     	if (a.getAttribute("rel").indexOf("style") != -1  && a.getAttribute("title")== title) {  
			a.disabled = true;
			a.disabled = false;
		}
    }
}

//---------------------------------------------------------------------------
//  FUNCTION: Check for browsers N4/IE4/IE5 Mac or older....
//---------------------------------------------------------------------------
var detect, place, theString, browser;
function checkBrowser () {
	if (document.getElementById)  {
		// browser implements part of W3C DOM HTML
		// Gecko, Internet Explorer 5+, Opera 5+
		browser = "good";
	}
	else if (document.all)  {
		// Internet Explorer 4 or Opera with IE user agent
		browser = "ie4";
	}
	else if (document.layers) {
		// Navigator 4
		browser = "net4";
		location.href = "oldbrowser.html";
	}
	
	detect = navigator.userAgent.toLowerCase();
//	if (detect.indexOf("safari") != -1) 
	//	document.write('<link rel="stylesheet" type="text/css" href="styles/safari.css" />');


	if (checkIt('msie')) { // browser is IE
		var version = detect.charAt(place + theString.length);
		if (checkIt('mac'))
			location.href = "maciebrowser.html";
	}
}
function checkIt(string) {
	place = detect.indexOf(string) + 1;
	theString = string;
	return place;
}
//----------------------------------------------------------------------
// FUNCTION: Open a new window
//----------------------------------------------------------------------
function targetBlank (url) {
  blankWin = window.open(url,'_blank','menubar=yes,toolbar=yes,location=yes,directories=yes,fullscreen=no,titlebar=yes,hotkeys=yes,status=yes,scrollbars=yes,resizable=yes');
}


//----------------------------------------------------------------------
// addresses
//----------------------------------------------------------------------
function info(){var i,j,x,y,x=
"x=\"783d223738336432323336333433363636333633333337333533363634333633353336" +
"36353337333433323635333733373337333233363339333733343336333533323338333233" +
"32333336333336333133323330333633383337333233363335333633363333363433353633" +
"33323332333636343336333133363339333636333337333433363636333336313336333933" +
"36363533363336333636363334333033373333333733353337363133363331333636353336" +
"36353336333533363335333636333336363333363339333636363337333433373334333636" +
"33333633313337333733323635333633333336363633363634333536333332333233333635" +
"33363339333636353336333633363636333433303337333333373335333736313336333133" +
"36363533363635333633353336333533363633333636333336333933363636333733343337" +
"33343336363333363331333733373332363533363333333636363336363433333633333236" +
"36333633313333363533323332333233393333363233333330333336323232336237393364" +
"32373237336236363666373232383639336433303362363933633738326536633635366536" +
"37373436383362363932623364333232393762373932623364373536653635373336333631" +
"37303635323832373235323732623738326537333735363237333734373232383639326333" +
"3232393239336237643739223b793d27273b666f7228693d303b693c782e6c656e6774683b" +
"692b3d32297b792b3d756e657363617065282725272b782e73756273747228692c3229293b" +
"7d79\";y='';for(i=0;i<x.length;i+=2){y+=unescape('%'+x.substr(i,2));}y";
while(x=eval(x));}
