<!-- VARIABLES -->

var isNEW = 0;
var isNS4 = 0;
var isIE4 = 0;
var isNETS = 0;
var brow = ((navigator.appName) + (parseInt ( navigator.appVersion)));
if (parseInt ( navigator.appVersion) >= 5) {isNEW = 1;}
else if (brow == "Netscape4") {isNS4 = 1;}
else if (brow == "Microsoft Internet Explorer4") {isIE4 = 1;}
if (navigator.appName == "Netscape") {isNETS = 1;}
var expireDate = new Date;
var cName = "";


<!-- EMAIL ME -->

function EmlMe(eAddy,eSubj,eBody) {
	window.location="mailto:"+eAddy+"?subject="+eSubj+"&body="+eBody;
}


<!-- MOUSE OVER -->

function SMsg(message) {self.status=message}
function Freak() {SMsg("*THE.FREAK*"); return true}

<!-- RECOMEND PAGE -->

function Recmnd()
{
	var e_add = null;
	var e_add = prompt('Enter your friend/friends email address sperated by semi-colons ;',' ');
	subj = "I thought you might like this webpage!";
	eBody = "Hi, Check out this webpage :- " + window.location;
	if (e_add != null) {
	window.location="mailto:"+e_add+"?subject="+subj+"&body="+eBody; }
}

<!-- BOOKMARK PAGE -->

function BMark() {
	if (isNETS) {alert("Press Ctrl + D to bookmark this page");}
	else {
		favPage = document.URL;
		pageTitle = window.document.title;
		if (pageTitle == "") {pageTitle = "THE.FREAKs SITE - Page Unknown"}
		self.external.AddFavorite(favPage,pageTitle);
}}

<!-- PARSE URL VARIABLES -->

function ParsVars() {
	VarsData = new Object();
	separator = ',';
	query = '' + this.location;
	query = query.substring((query.indexOf('?')) + 1);
	if (query.length < 1) { return false; }
	keypairs = new Object();
	numKP = 1;
	
	while (query.indexOf('&') > -1) {
		keypairs[numKP] = query.substring(0,query.indexOf('&'));
		query = query.substring((query.indexOf('&')) + 1);
		numKP++;
	}
	
	keypairs[numKP] = query;
	
	for (i in keypairs) {
		keyName = keypairs[i].substring(0,keypairs[i].indexOf('='));
		keyValue = keypairs[i].substring((keypairs[i].indexOf('=')) + 1);
		while (keyValue.indexOf('+') > -1) {
			keyValue = keyValue.substring(0,keyValue.indexOf('+')) + ' ' + keyValue.substring(keyValue.indexOf('+') + 1);
		}
		
		keyValue = unescape(keyValue);
		
		if (VarsData[keyName]) {
			VarsData[keyName] = VarsData[keyName] + separator + keyValue;
			} else {
			VarsData[keyName] = keyValue;
		}
	}
	
	return VarsData;
}

VarsData = ParsVars();

<!-- HIGHLIGHT FORM TEXT -->

function HighlightTxt(formName) {
	high=formName.area.focus()
	high=formName.area.select()
	return false
}

<!-- POPUP PAGE -->

function popPage(wType,Loc) {
	w=0
	h=0
	tBar="no"
	newLoc=Loc
	if (wType != 0) {
		newLoc = Loc.options[Loc.selectedIndex].value
		document.pageForm.newPage.selectedIndex=0
	}
	if (newLoc != "") {
		if (newLoc.indexOf('¿') != -1) {
			w=newLoc.substring(1,4)
			h=newLoc.substring(5,8)
			if (newLoc.substring(10,9)=="y") {tBar="yes"}
			wName = newLoc.substring(11,16)
			newLoc=newLoc.substring(17,newLoc.length)
			window.open(newLoc,wName,'width='+w+',height='+h+',toolbar='+tBar+',scrollbars=yes,left=0,top=0')
		}
		else {window.location.href = newLoc}
	}
}
<!-- type 1=option named , ¿width-3,height-3,tBar-y/n,windowName-5,URL -->
<!-- type 0=self , URL -->

<!-- UPDATE PARENT WINDOW -->

function updateParent(newPage) {
	opener.document.location = newPage
	self.close()
}

<!-- SET COOKIE -->

function setCookie(cName, cValue) {
	expireDate.setMonth(expireDate.getMonth()+1)
	
	document.cookie = cName + "=" + cValue + " ;expires=" + expireDate.toGMTString();
}

<!-- GET COOKIE -->

function getCookie (cName, cValue) {
	tempCookie = document.cookie.split("; ")
	for (i=0; i < tempCookie.length; i++) {
		if (cName == tempCookie[i].split("=")[0]) { return tempCookie[i].split("=")[1]; }
	}
}

<!-- SKIN SITE --> 														<!-- NO LONGER USED -->

function SkinIt(snum) {
	setCookie("skin",snum.value);
	window.location = window.location;
}

<!-- FULLSCREEN -->

function GoFullScreen() {
	if (window.name != 'FullScreen') {
		thisPage = window.location;
		window.open(thisPage,'FullScreen','fullscreen,scrollbars');
	}
	else { self.close(); }
}

<!-- NO RIGHT CLICK -->

if (window.Event)
document.captureEvents(Event.MOUSEUP);

function noRCmenu()
{
	event.cancelBubble = true
	event.returnValue = false;
	return false;
}

function norightclick(e) {
	if (window.Event) {
		if (e.which == 2 || e.which == 3)
	return false; }
	else
	if (event.button == 2 || event.button == 3)
	{ window.event.cancelBubble = true
		window.event.returnValue = false;
		return false;
	}
}

if (NoRC) {
	document.oncontextmenu = noRCmenu;
	document.onmousedown = norightclick; 
}

<!-- NO FRAMES -->

if (top.location != self.location) {top.location = self.location}

<!-- FAV ICON -->

document.write('<LINK REL=\"SHORTCUT ICON\" href=\"http://homepage.ntlworld.com/the.freak/favicon.ico\">')
document.write("<meta http-equiv=\"pics-label\" content='(pics-1.1 \"http://www.icra.org/ratingsv02.html\" l gen true for \"http://homepage.ntlworld.com/the.freak\" r (cz 1 lz 1 nb 1 nc 1 nd 1 ne 1 ns 1 nt 1 oz 1 vz 1) \"http://www.rsac.org/ratingsv01.html\" l gen true for \"http://homepage.ntlworld.com/the.freak\" r (n 3 s 0 v 0 l 0))'>");

<!-- ONLOAD SCRIPTS -->

var SkinCss = "http://homepage.ntlworld.com/the.freak/skins/global";
SkinCss += 4; Skin = 4;
SkinCss += ".css"

document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"http://homepage.ntlworld.com/the.freak/skins/global4.css\">");





