function decidebg(ms,kill,stop) {

if (kill == true) { clearTimeout(timer); }

if (stop == false) { bg = new Array("bghori/gbc.gif", "bghori/cmb.gif", "bghori/rbc.gif", "bghori/cyb.gif", "bghori/mbg.gif", "bghori/bmc.gif", "bghori/brc.gif", "bghori/byc.gif", "bghori/gmc.gif", "bghori/grc.gif", "bghori/bcg.gif", "bghori/bmg.gif", "bghori/brg.gif", "bghori/crg.gif", "bghori/cyg.gif", "bghori/bcm.gif", "bghori/cgm.gif", "bghori/crm.gif", "bghori/cym.gif", "bghori/rym.gif", "bghori/cmr.gif", "bghori/cyr.gif", "bghori/gmr.gif", "bghori/gyr.gif", "bghori/myr.gif", "bghori/bcy.gif", "bghori/ygb.gif", "bghori/yrb.gif", "bghori/cgy.gif", "bghori/yrm.gif", "bgvert/cgb.gif", "bgvert/crb.gif", "bgvert/gmb.gif", "bgvert/rbg.gif", "bgvert/myb.gif", "bgvert/bmc.gif", "bgvert/byc.gif", "bgvert/grc.gif", "bgvert/mrc.gif", "bgvert/ryc.gif", "bgvert/bcg.gif", "bgvert/byg.gif", "bgvert/cyg.gif", "bgvert/mrg.gif", "bgvert/ryg.gif", "bgvert/brm.gif", "bgvert/bym.gif", "bgvert/cgm.gif", "bgvert/cym.gif", "bgvert/gym.gif", "bgvert/bcr.gif", "bgvert/bgr.gif", "bgvert/bmr.gif", "bgvert/byr.gif", "bgvert/cgr.gif", "bgvert/ycb.gif", "bgvert/bry.gif", "bgvert/ygc.gif", "bgvert/yrc.gif", "bgvert/gmy.gif");
var Numb = Math.floor(bg.length * Math.random());
document.body.style.backgroundImage="url(" + bg[Numb] + ")";
var blinkspeed = ms;
timer = setTimeout("decidebg(" + blinkspeed + ",false,false)",blinkspeed);

};
};


function toggle(i) {
var e = document.getElementById(i);
var t = e.className;
if (t.match('invisible')) { t = t.replace(/invisible/gi, 'visible'); }
else { t = t.replace(/visible/gi, 'invisible'); }
e.className = t;
};

function onloadFunct() {  var myWidth = 0, myHeight = 0;  if( typeof( window.innerWidth ) == 'number' ) {    myWidth = window.innerWidth;  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {    myWidth = document.documentElement.clientWidth;  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {    myWidth = document.body.clientWidth;  }
cssSize(myWidth);
};
function cssSize(wi) {
if (wi < 700) {
document.write('<link rel="stylesheet" type="text/css" href="size1.css">');
}

if (wi >= 700 && wi < 950) {
document.write('<link rel="stylesheet" type="text/css" href="size2.css">');
}

if (wi >= 950 && wi < 1200) {
document.write('<link rel="stylesheet" type="text/css" href="size3.css">');
}

if (wi >= 1200) {
document.write('<link rel="stylesheet" type="text/css" href="size4.css">');
}

};



function popitup(url)
{
        newwindow=window.open(url,'name','height=520,width=650');
        if (window.focus) {newwindow.focus()}
        return false;
};