// The Badsquare! Scripting by Bill for HitlerCities - Images by T.S.

// Based on another script from I don't know where.
// Touch this script and die! :)

var negativeTop = 0; // distance above screen
var imagewidth=144;
var imageheight=205;

var curY = negativeTop;
var ie = 0;
var ns = 0;
var switching=0;

var right=window.innerWidth-imagewidth-18;

if (parseInt(navigator.appVersion) >= 4) {
  ns = (navigator.appName == "Netscape") ? true : false;
  ie = (navigator.appName.indexOf("Microsoft") != -1) ? true : false;
}

if(ie || ns){
  document.write('<style type="text\/css">\n');
  document.write('#rollout { position: absolute; top: '+negativeTop+'px; left: '+right+'px; margin-top: 0px; margin-left: 0px; }\n');
  document.write('BODY { margin-top: 120px }\n');
  document.write('<\/style>\n');
}  


function doNothing(){
return true;
}




if(ie || ns){
t1=('<div id="rollout"><a href="javascript:clicked()" onMouseOver="moused()" onMouseOut="unmouse()"><img src="drug.gif" name="square" width="+imagewidth+" height="+imageheight+" border=0></a><\/div>\n');

  document.write(t1);



}

setTimeout("bring()",10)

function bring(){
document.layers["rollout"].top=pageYOffset+negativeTop;
if (switching==0){ setTimeout("bring()",10);}
}

// *** responsive image stuff

function moused() {
document["square"].src = "point.gif";

}

function clicked() {
document["square"].src = "ow.gif";
setTimeout("pod()",2000);
}

function unmouse() {
document["square"].src = "getback.gif";
setTimeout("clickhere()",3000);
}

function pod() {
document["square"].src = "ohyeah.gif";
setTimeout("pod2()",3500);
}

function pod2() {
document["square"].src = "mosaic.gif";
setTimeout("pod3()",4500);
}

function pod3() {
document["square"].src = "bastard.gif";
setTimeout("clickhere()",4000);
}

function clickhere() {
document["square"].src = "click.gif";
}
