/* doing evaluation to the monitor size current status  */ 


var ns4 = (document.layers);
var ie4 = (document.all && !document.getElementById);
var ie5 = (document.all && document.getElementById);
var ns6 = (!document.all && document.getElementById);



var imageFlag=0
var toFlag;
var isNav, isIE, width,height;
var coll="";
var styleObj="";

var increment=30;
var max=3
var images1=new Array()

images1[0]="palestinianMap.gif"
images1[1]="plainColor.gif"
images1[2]="cities.gif"
images1[3]="BW.gif"

function dimenssion()
{

//start evaluation
if (ie5||ns6)

{

if(ie5)
{
width =document.body.clientWidth
height=document.body.clientHeight
}
if(ns6)
{
width =innerWidth-15  
height=innerHeight
}
document.getElementById("leftFlag").style.top=0
document.getElementById("leftFlag").style.visibility="visible"
document.getElementById("rightFlag").style.top=(height-94)
document.getElementById("rightFlag").style.left=(width-150)
document.getElementById("rightFlag").style.visibility="visible"

}

else if(ns4)
{
width=window.innerWidth
height=window.innerHeight
document.leftFlag.top=0
document.leftFlag.visibility="visible"
document.rightFlag.moveTo(width-150,height-94)
document.rightFlag.visibility="visible"
}
else if (ie4||ie5)

{

width =document.body.clientWidth
height=document.body.clientHeight
document.all.leftFlag.style.pixelTop=0
document.all.leftFlag.style.visibility="visible"
document.all.rightFlag.style.pixelTop=(height-94)
document.all.rightFlag.style.pixelLeft=(width-150)
document.all.rightFlag.style.visibility="visible"

}




toMove()

}


function toMove()
{
if ( ie5||ns6)
{

if ((parseInt(document.getElementById("leftFlag").style.top)>=(height-75))||(parseInt(document.getElementById("leftFlag").style.top))<0)
{

increment=-increment;
}

document.getElementById("leftFlag").style.top=parseInt(document.getElementById("leftFlag").style.top)+increment+"px";
document.getElementById("rightFlag").style.top=parseInt(document.getElementById("rightFlag").style.top)-increment+"px";

}
else if (ns4)
{

if((document.leftFlag.top>=(height-75) )||(document.leftFlag.top<0))
{
increment=-increment
}

document.leftFlag.top+=increment
document.rightFlag.top-=increment
}

else if ( ie4||ie5)
{

if((document.all.leftFlag.style.pixelTop>=(height-75))||(document.all.leftFlag.style.pixelTop<0))
{
increment=parseInt(-1*increment)
}

document.all.leftFlag.style.pixelTop+=increment
document.all.rightFlag.style.pixelTop-=increment



}



setTimeout("toMove()",1000)
}



//=======================================>
function positioning()
{



if (ie5||ns6)
{
if(ie5)
{
width =document.body.clientWidth
height=document.body.clientHeight
}
if(ns6)
{
width =innerWidth-15  
height=innerHeight
}

document.getElementById("leftFlag").style.top=0
document.getElementById("rightFlag").style.top=(height-94)
document.getElementById("rightFlag").style.left=(width-150)
}

else if(ns4)
{

width=window.innerWidth
height=window.innerHeight
document.leftFlag.top=0
document.rightFlag.moveTo(width-150,height-94)
}


else if(ie4||ie5)

{


width =document.body.clientWidth
height=document.body.clientHeight
document.all.leftFlag.style.pixelTop=0
document.all.rightFlag.style.pixelTop=(height-94)
document.all.rightFlag.style.pixelLeft=(width-160)
}




}

//=========================================================================>



