
/*
Always On Top Content Script-
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/

//configure the below two variables to determine where the static content will initially be positioned when the document loads, in terms of X and Y cooridinates, respectively

var w=10
var h=10
onload:scontentsub.style.display='none'
var wf=230
var hf=10
onload:fcontentsub.style.display='none'
////Do not edit pass this line///////////
w+=document.body.scrollLeft
h+=document.body.scrollTop

var leftpos=w
var toppos=h
scontentmain.style.left=w
scontentmain.style.top=h

function onoffdisplay(){
if (scontentsub.style.display=='')
scontentsub.style.display='none'
else
scontentsub.style.display=''
}

function staticize(){
w2=document.body.scrollLeft+leftpos
h2=document.body.scrollTop+toppos
scontentmain.style.left=w2
scontentmain.style.top=h2
}
window.onscroll=staticize

wf+=document.body.scrollLeft
hf+=document.body.scrollTop

var leftposf=wf
var topposf=hf
fcontentmain.style.left=wf
fcontentmain.style.top=hf

function onoffflag(){
if (fcontentsub.style.display=='')
fcontentsub.style.display='none'
else
fcontentsub.style.display=''
}

function staticizef(){
w3=document.body.scrollLeft+leftpos
h3=document.body.scrollTop+toppos
fcontentmain.style.left=w3
fcontentmain.style.top=h3
}
window.onscroll=staticizef



