if (document.images)
var picto=new Image(35,40)

picto.src="h2.jpg"

var gothere="http://www.hawaiicity.com/"

var noimage="Click here to go to Hawaii City's Homepage"


function reddraw(){
window.location.reload()
}
function redraw(){
if (document.layers)
setTimeout("window.onresize=reddraw",400)
}


if (document.all)
document.write('<span id="f_layer" style="position:absolute;top:100;width:'+picto.width+';height:'+picto.height+'"></span>')




function createf_layer(){
staticimage=new Layer(100)
staticimage.left=-300
staticimage.top=120
staticimage.document.write('<a href="'+gothere+'"><img src="'+picto.src+'" border=0 alt="'+noimage+'"></a>')
staticimage.document.close()
staticimage.visibility="show"
redraw()
staticitns()
}

if (document.layers)
window.onload=createf_layer;

if (document.all){
wide=document.body.clientWidth-f_layer.style.pixelWidth-25
high=document.body.clientHeight-f_layer.style.pixelHeight-25
f_layer.style.left=wide
f_layer.style.top=high
}

function flap(){
var widethere=document.body.scrollLeft+wide
var hithere=document.body.scrollTop+high
f_layer.style.left=widethere
f_layer.style.top=hithere
}
function flaptwice(){
staticimage.left=pageXOffset+window.innerWidth-staticimage.document.width-25
staticimage.top=pageYOffset+window.innerHeight-staticimage.document.height-25
}

function putpicin(){
f_layer.innerHTML='<a href="'+gothere+'"><img src="'+picto.src+'" border=0 alt="'+noimage+'"></a>'
}

if (document.all){
window.onscroll=flap
window.onresize=new Function("window.location.reload()")
window.onload=putpicin
}


function staticitns(){
setInterval("flaptwice()",50)
}


