var thisdb = 'breakdown/supersunday.nsf';function $() {  var elements = new Array();  for (var i = 0; i < arguments.length; i++) {    var element = arguments[i];    if (typeof element == 'string')      element = document.getElementById(element);    if (arguments.length == 1)       return element;    elements.push(element);	}  return elements;}function s(d){	thisdb = d + '.nsf';}function go(u){	if(!u) u = 'http://www.supersunday.co.uk';	window.location = u;}function h(o){	if(o.style.cssText!="") o.style.cssText = ""; else o.style.cssText = "background:#fff;";}function a(o, cl){	o.className = cl; }function aj(url, ret, data, other){ var sCall = (other)?new ax(url, function(op, stat) { other(op, stat); }):new ax(url, function(op, stat) { xh(op, stat, ret) }); if(data)sCall.dP(data);	else sCall.dG(); sCall = null;}function ax(url, cb, opts) {    var r = init();    r.onreadystatechange = pR;    function init(){ if (window.XMLHttpRequest) return new XMLHttpRequest(); else if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");}    function pR () { if (r.readyState == 4) { if (cb) cb(r.responseText, r.status, opts);  r=null; } }    this.dG = function() {r.open("GET", url, true);r.send(null); }    this.dP = function(body) { r.open("POST", url, true); r.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); r.send(body);}}function xh(op, s, rF){	if(s == 200){		var xd = cx(op);		e = xd.getElementsByTagName('error');		if(e.length == 0){var glb = this;var doIt = glb[rF];doIt(xd);		}else alert(e[0].firstChild.text + ' (Line : ' + e[0].getAttribute('line') + ')');	}else	 alert('ERROR ' + s + ' : Your server returned an error.\n\n ...');	 }function cx(op){	var ief = true;	if (window.ActiveXObject){ xd = new ActiveXObject("Microsoft.XMLDOM"); xd.async=false;	 }else if (document.implementation && document.implementation.createDocument){	 	  xd= document.implementation.createDocument("","",null); ief = false;	 }else alert('Sorry, your browser is not compatible with this site ...');  	if(ief) xd.loadXML(op); else{ var oR = new DOMParser();xd = oR.parseFromString(op, "text/xml");	}		return xd;}function sj(url) { 	var req = init();		function init(){	if (window.XMLHttpRequest) return new XMLHttpRequest(); else return new ActiveXObject("Microsoft.XMLHTTP");  }	this.doGet = function(){req.open("GET", url, false);   req.send(null);	return req.responseText;	}}function highlight(){	var wl = window.location.toString();	var o = $('POST' + wl.substring(wl.lastIndexOf('#')+1));	if(o) o.className = 'FT_PostHighlight'; }function jump(o){	var v = o.options[o.selectedIndex].value;	if(v!='') location.replace(v);}function postType(o){	switch(o.options[o.selectedIndex].value){		case '0': $('upload').style.display = 'none';$('mix').style.display = 'none';break;		case '1': 			$('upload').style.display = 'block';			$('mix').style.display = 'none';			$('thankusers').style.display = $('FT_IDStatus').options[$('FT_IDStatus').selectedIndex].value == '1'?'block':'none';			break;		case '2': $('upload').style.display = 'none';$('mix').style.display = 'block';break;	}}function doSubmit(o, t){	if(t=='FT'){		if($('FT_Title').value == ''){			alert('Please enter a title for this post ...');			return false;		}		if($('FT_Title').value.length < 3){			alert('Please enter a title longer than 3 characters ...');			return false;		}	}		if(tinyMCE.activeEditor.getContent() == ''){		alert('Please enter some text for this ' + (t=='CT'?'comment':(t=='FT'?'thread':'reply')) + '...');		return false;	}				o.style.display = 'none';	$('cancel').style.display = 'none';	$('FT_Process').style.display = 'inline';	document.forms[0].submit(); }function playTrack(id, trackName, trackPath){	var o = $(id);	var p = $('player');	p.style.position = 'absolute';	p.className = 'playerFloat';	p.style.top = (findPosY(o)+2).toString() + 'px';	p.style.left =  (findPosX(o) + 410).toString() + 'px';	flashProxy.call('playTrack', {label:trackName,data:trackPath});}function findPosX(obj){	var curleft = 0;	if (obj.offsetParent)		while (obj.offsetParent)		{			curleft += obj.offsetLeft			obj = obj.offsetParent;		}	else if (obj.x)		curleft += obj.x;	return curleft;}function findPosY(obj){	var curtop = 0;	if (obj.offsetParent)		while (obj.offsetParent)		{			curtop += obj.offsetTop			obj = obj.offsetParent;		}	else if (obj.y)		curtop += obj.y;	return curtop;}
