

//Copyright John Mounsey, Peaknet ltd. Ta mate!



/* ====================================================
General Site variables script
==================================================== */

defaultStatus		= 'www.mutate.info';
pagelink		= document.location
pagename		= document.title

/* ====================================================
COLUMN VARIABLES
==================================================== */

events			= '<p><strong>2010</strong></p>Jan 16th<br>Feb 20th<br>Mar 20th<br>Apr 17th<br>May 15th<br>Jun 19th<p>&nbsp;</p>'
news			= 'Nov 19th ... <a href="news.htm">More </a>&gt;&gt;'
price		= ' <p>&pound;4.50 in advance from Jumbo / Crash/ CATS in Leeds Uni <br>&pound;5.00 door</p>'
comps			= 'Enter our great competition. Complete the quote and win free entry ... <br><br><a href="/competitions.htm">Enter Competition</a> &gt;&gt;'
features		= 'Free Badges out now... <br><br><a href="http://www.thewendyhouse.org/cgi-bin/cms/magazine/magazine.cgi?badges">More</a> &gt;&gt;'
email			= '<a href="mailto:info@mutate.info">info@mutate.info</a>'
allemail		='<p><a href="mailto:echo@mutate.info">echo@mutate.info</a><br><a href="mailto:gillywoo@mutate.info">gillywoo@mutate.info</a><br><a href="mailto:nik@mutate.info">nik@mutate.info</a><br><a href="mailto:glenn@mutate.info">glenn@mutate.info</a><br></p>'


/* ====================================================
RND FUNC
==================================================== */

function GetRandom(start,end)
{
  var range = end - start + 1;
  var result = start + Math.floor(Math.random()*range);
  return result;
}

/* ====================================================
LEFT TILES
==================================================== */
function left_tile()

{
var choice = GetRandom(1,3);

if (choice==1)

document.write('<a href="http://www.musicnonstop.co.uk/cgi-clickclocker/click.cgi?a=thewendyhouse.org&b=mns2_120x60" target="_blank"><img border=1 src="http://www.musicnonstop.co.uk/cgi-clickclocker/getlink.cgi?a=thewendyhouse.org&b=mns2_120x60" class="formbox"></a>');

else if (choice == 2)

document.write('<A HREF="http://www.corruptedclothing.com/"><img src="/gfx/tiles/corruptedbanner.gif"  width="120" height="80" alt="Corrupted Clothing for corrupted people!" border="1" class="formbox"></A>');

else if (choice == 3)

document.write('<a href="http://www.musicnonstop.co.uk/cgi-clickclocker/click.cgi?a=thewendyhouse.org&b=mns2_120x60" target="_blank"><img border=1 src="http://www.musicnonstop.co.uk/cgi-clickclocker/getlink.cgi?a=thewendyhouse.org&b=mns2_120x60" class="formbox"></a>');

}


/* ====================================================
RIGHT TILES
==================================================== */
function right_tile()

{
var choice = GetRandom(1,3);

if (choice==1)

document.write('<A HREF="http://www.mutate.info/"><img src="/gfx/tiles/mutate_tile.gif" width="120" height="80" alt="The Mutate Room - click here for info on our 2nd floor" border="1" class="formbox"></A>');

else if (choice == 2)

document.write('<A HREF="http://www.deadstars.org.uk/"><img src="/gfx/tiles/deadstars.gif"  width="120" height="80" alt="Dead Stars - EBM Electro Industrial night" border="1" class="formbox"></A>');

else if (choice == 3)

document.write('<A HREF="http://www.thewendyhouse.org/cgi-bin/cms/magazine/magazine.cgi?badges"><img src="/gfx/tiles/badges-tile.gif"  width="120" height="80" alt="Free Wendy House Badges Click here for more info" border="1" class="formbox"></A>');


}


/* ====================================================
BOOKMARK tool
==================================================== */

function bookmark()

{
	if (window.external)
	{
	external.AddFavorite(pagelink,pagename)
	}
	
	else if(navigator.appName == "Netscape")
	{
	alert('press control and D now!')
	}

	else if(navigator.appName == "Opera")
	{
	alert('press control and T now!')
	}
}


/* ====================================================
SENDPAGE tool
==================================================== */

function sendlink()

{
window.location='mailto:?subject=I saw this and thought of you!&body=' + pagename + ' : ' + pagelink
}

function previous() { history.go(-1); }
function say(message) { status=message; }



/* ====================================================
The current YEAR
==================================================== */

var now  = new Date
thisyear = now.getYear()
if (thisyear <= 1900) {thisyear = thisyear + 1900}

/* ====================================================
MM FUNCTIONS
==================================================== */


//pop up function


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
 /* Functions that shows hides layer. */
function MM_findObj(n, d) { //v3.0
  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]; if(!(x=d[n])&&d.getElementById) x=d.getElementById(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); return x;
}


function MM_showHideLayers() {
  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; }
}

function launchwin(url, scrollo) {
    var larg_schermo = screen.availWidth - 10;
    var altez_schermo = screen.availHeight - 120;
    window.open(url, "WindowName", "width=" + larg_schermo + ",height=" + altez_schermo + ",top=0,left=0,scrollbars=" + scrollo + "");
}

