/* Shake Image */

var rector=1
var stopit=0 
var a=1

function init(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}

function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit==1)
return
if (a==1){
shake.style.top=parseInt(shake.style.top)+rector
}
else if (a==2){
shake.style.left=parseInt(shake.style.left)+rector
}
else if (a==3){
shake.style.top=parseInt(shake.style.top)-rector
}
else{
shake.style.left=parseInt(shake.style.left)-rector
}
if (a<4)
a++
else
a=1
setTimeout("rattleimage()",03)
}

function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}

/* Exit Generator */

var randomlinks=new Array()

randomlinks[0]="http://www.tank.tv/"
randomlinks[1]="http://www.thevideostation.com"
randomlinks[2]="http://www.landmarktheatres.com/Market/Denver/Denver_Frameset.htm"
randomlinks[3]="http://www.zaporacle.com"
randomlinks[4]="http://www.magbast.com/"
randomlinks[5]="http://www.davidlynch.com/"
randomlinks[6]="http://www.ubu.com/film"
randomlinks[7]="http://nieuwamsterdam.net/index.html"
randomlinks[8]="http://www.filmlinc.com/fcm/fcm.htm"
randomlinks[9]="http://davidbyrne.com/"
randomlinks[10]="http://www.brainspraymedia.com/"
randomlinks[11]="http://www.calder.org/"
randomlinks[12]="http://www.robertlongo.com/"
randomlinks[13]="http://www.starspangledtodeath.com/"
randomlinks[14]="http://www.criterion.com/"
randomlinks[15]="http://ralphbakshi.com/"


function randomlink(){
window.location=randomlinks[Math.floor(Math.random()*randomlinks.length)];
target="_blank";
}

/* toggle content on click*/

if(document.getElementById)
document.write('<style type="text/css">.detail {float:left;display:none;}#zero {display:block;}<\/style>');
function reveal(det){
if(!document.getElementById) return;
if (!document.getElementsByClassName){
document.getElementsByClassName = function(cn){
cn = cn.replace(/ +/g, ' ').split(' ');
var ar = [], testname = function(n){
for (var re, i = cn.length - 1; i > -1; --i){
re = new RegExp('(^|\W)' + cn[i] + '(\W|$)');
if(!re.test(n)) return false;
}
return true;
}
for(var d = document.all || document.getElementsByTagName('*'), i = 0; i < d.length; ++i)
if(testname(d[i].className))
ar[ar.length] = d[i];
return ar;
};
document.getElementsByClassName.spoof = true;
}
for (var d = document.getElementsByClassName('detail'), i = d.length - 1; i > -1; --i)
d[i].style.display = 'none';
document.getElementById(det).style.display = 'block';
if (document.getElementsByClassName.spoof)
document.getElementsByClassName.spoof = document.getElementsByClassName = null;
}


/* show div hide div */

function show(object,val) {
document.getElementById(object).style.visibility = val;
} 


