<!--

if (top != self) top.location.href = "http://www.areeb.net.ms/";

self.moveTo(0,0)
self.resizeTo(screen.availWidth,screen.availHeight)

var bookmarkurl="http://www.areeb.uk.tt/";
var bookmarktitle=" :: Areeb's Online Realm ::";
function addbookmark(){
el.style.visibility="hidden";
window.external.AddFavorite(bookmarkurl,bookmarktitle);
}

//variables to edit
var totalImage = 18;
var speed = 10;
var first_opac = 50;
var sec_opac =100;

//nothing else to edit
var opac = new Array();
var si = new Array();

for(i=0; i < totalImage; i++) {
opac[i] = first_opac;
}

function showimage(what,doshow,num) {
   if (document.all) {
     (doshow) ? opac[num] = (opac[num] + speed) : opac[num] = (opac[num] - speed);
     eval(what+".filters.alpha.opacity="+opac[num]);
     if (opac[num] >= sec_opac)
         opac[num] = sec_opac;
     if (opac[num] <= first_opac)
         opac[num] = first_opac;
     
     if (opac[num] <= first_opac || opac[num] >= sec_opac) {
       clearInterval(si[num]);
       cleared = true;
     }
   }
}

function ClearInt(num) {
   clearInterval(si[num]);
}

function Illuminate(theElem){
ClearInt(theElem);
si[theElem]=setInterval('showimage(\'image' + theElem + '\',true,' + theElem + ')',10);
}

function deIlluminate(theElem){
ClearInt(theElem);
si[theElem]=setInterval('showimage(\'image' + theElem + '\',false,' + theElem + ')',10);
}


function statusbar(){
window.status="are";
window.setTimeout("statusbar()",5000);
}
statusbar();


//popup menu
var ns6=document.getElementById&&!document.all
var ie5=document.all
var contextvoid = false;

function displaymenu(e){
el=document.getElementById("context_menu")

if (ns6){
if (e.button==3){ //if right click
el.style.left=pageXOffset+e.clientX
el.style.top=pageYOffset+e.clientY
el.style.visibility="visible"
return false
}
else if (e.button==1) //if left click
el.style.visibility="hidden"
contextvoid = false;
}

else if (ie5){
if (event.type=="contextmenu" && contextvoid == false){ //if right click
el.style.left=document.body.scrollLeft+event.clientX
el.style.top=document.body.scrollTop+event.clientY
el.style.visibility="visible"
return false
}
else if (event.type=="click") //if left click
el.style.visibility="hidden"
}
}

if (ns6)
document.addEventListener("mouseup",displaymenu,true)
else if (ie5){
document.attachEvent("oncontextmenu",displaymenu)
document.attachEvent("onclick",displaymenu)
}
// -->
