// Common JavaScript Functions for www.darren-c.co.uk

function StatusRemark() { window.status="darren-c.co.uk - "+sbr[Math.floor(Math.random()*sbr.length)] }

var sbr=new Array("why are you looking down here? ^ the website is up there! ^","for sale: one toilet seat, "+
"barely used","h lp! s m b dy st l   ll th  v w ls fr m my k yb  rd!","fer sell cheep: spel chekker. wurks grate!",
"i'm always lying, in fact i'm lying right now","corrupt reality.sys: reboot universe? (y/n)","on the other hand, "+
"you have different fingers","after opening, keep upright","don't drink and drive: you might spill it","rays cast "+
"from these webpages travel at over 670 million mph","select * from users where clue>0: 0 rows returned",
"there's no place like 127.0.0.1"); setInterval("StatusRemark()",30000); StatusRemark()

function OpenW(owp,oww,owh,owr,ows) { window.open(owp,"dcw","width="+oww+",height="+owh+",left="+
((screen.width-oww)/2)+",top="+((screen.height-owh)/2)+",resizable="+owr+",scrollbars="+ows+",status=0") }

function PlayFS(gm) { var pfs,nd=new Date(); if((nd.getTime()-pld.getTime())>10000) pfs=confirm("Switch to "+
"fullscreen mode?\nYou will lose any progress made in the game"); else pfs=true; if(pfs){ window.open("games/"+
"fullscreen.htm?"+gm,"dcfsg","left=0,top=0,resizable=1,scrollbars=0,status=0"); document.location="?games" }}

function Enlarge(es,en) { var ed=new Array(800,600,860,645,860,688,516,688),ef=0; if(screen.width<1024||screen.
height<768) ef=1; OpenW("images/enlarge.htm?"+en,ed[es*2],ed[(es*2)+1],ef,ef) }

var pld=new Date()
