// JavaScript Document

<!--
function addbookmark(){ 
if (document.all) 
window.external.AddFavorite('http://www.aladeebit.com/','Al Adeeb Information Technology') 
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

<!-- 
ver4 = (document.layers || document.all) ? 1 : 0; 

function rollOver(imID,imName,folder,over) 
{ 
if (!document.images) return; 

whichIm = document.images[imID]; 
if (over) 
{ 
whichIm.src = "images/" + imName + "_on.gif" 
} 
else 
{ 
whichIm.src = "images/" + imName + "_off.gif" 
}; 
} 

function showDiv(divID,over) 
{ 
if (over) 
document.getElementById(divID).style.display = "block"; 
else 
document.getElementById(divID).style.display = "none"; 
} 

function rollOverItem(itemID,over) 
{ 
if (over) 
document.getElementById(itemID+"-link").style.color = "#AAEE00"; 
else 
document.getElementById(itemID+"-link").style.color = ""; 
rollOver(itemID+"-trans","trans","trans",over) ; 
} 

//--> 

<!--
var dom = (document.getElementById)? true : false; 
var nn4 = (document.layers)? true : false; 
var ie = (document.all)? true : false; 
var opera = (navigator.userAgent.indexOf('Opera') >= 0)? true : false; 
var winHeight; 
var posLeft; 
var posHeight; 
var offsetWidthValue = 0; 
function showElem() 
{ 
var a = showElem.arguments; 
if (a != null) 
{ 
for (i = 0; i < a.length; i ++) 
{ 
setPosition(a[i]); 
if (dom) 
{ 
//winHeight = window.document.body.offsetHeight; 
if (window.document.body.offsetWidth > 770) 
{ 
offsetWidthValue = (window.document.body.offsetWidth - 770)/2; 
} 
else 
{ 
offsetWidthValue = 9; 
} 
document.getElementById(a[i]).style.top = posHeight; 
document.getElementById(a[i]).style.left = posLeft + offsetWidthValue; 
document.getElementById(a[i]).style.visibility = 'visible'; 
} 
else if (ie) 
{ 
//winHeight = window.document.body.offsetHeight; 
if (window.document.body.offsetWidth > 770) 
{ 
offsetWidthValue = (window.document.body.offsetWidth - 770)/2; 
} 
else 
{ 
offsetWidthValue = 9; 
} 
document.all[a[i]].style.visibility = 'visible'; 
document.all[a[i]].style.top = posHeight; 
document.all[a[i]].style.left = posLeft + offsetWidthValue; 
} 
else if (nn4) 
{ 
//winHeight = window.innerHeight; 
if (window.innerWidth > 770) 
{ 
offsetWidthValue = (window.innerWidth - 770)/2; 
} 
else 
{ 
offsetWidthValue = 9; 
} 
eval("document." + a[i] + ".visibility = 'visible'"); 
eval("document." + a[i] + ".top = " + posHeight); 
eval("document." + a[i] + ".left = " + (posLeft + offsetWidthValue)); 
} 
else 
{ 
alert('Your brouser doesn'+"'"+'t allow to change visibility'); 
} 
} 
} 
} 
function hideElem() 
{ 
var a = hideElem.arguments; 
if (a != null) 
{ 
for (i = 0; i < a.length; i ++) 
{ 
if (dom) 
{ 
document.getElementById(a[i]).style.visibility = 'hidden'; 
} 
else if (ie) 
{ 
document.all[a[i]].style.visibility = 'hidden'; 
} 
else if (nn4) 
{ 
eval("document." + a[i] + ".visibility = 'hide'"); 
} 
else 
{ 
alert('Your brouser doesn'+"'"+'t allow to change visibility'); 
} 
} 
} 
} 
function setPosition(id) 
{ 
switch(id) 
{ 
case "menu_aboutus" : 
posLeft = 63; 
posHeight = 164; 
break; 
case "menu_bbg" : 
posLeft = 136; 
posHeight = 164; 
break; 
case "menu_member" : 
posLeft = 237; 
posHeight = 164; 
break; 
case "menu_events" : 
posLeft = 310; 
posHeight = 164; 
break; 
case "menu_contact" : 
posLeft = 367; 
posHeight = 164; 
break; 
case "menu_link" : 
posLeft = 447; 
posHeight = 164; 
break; 
case "menu_sponsor" : 
posLeft = 493; 
posHeight = 164; 
break; 
case "menu_jobs" : 
posLeft = 620; 
posHeight = 164; 
break; 
} 
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->



function formHandler(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}

//  End -->

