﻿// JavaScript Document
<!--
var ConsumerSnap = (-79 - ((Consumer.length-1)*20)) + ((Consumer.length-1)*20)
var DigitalSnap = 39 - ((Business.length-1)*20) 
var OtherSnap = 58 - ((Other.length-1)*20) 
var SubLevel  = new Array;
var SubLevelNum = 0

function CreateLayer(id1,id2){
		SubLevel[SubLevelNum] = String(id1)+String(id2)
		SubLevelNum +=1;
		document.write('<div id="lmenu'+id1+id2+'" style="position:absolute; z-index:2; left: 186px; top: 64px; visibility: hidden;">')
		document.write('<table border="0" cellspacing="0" cellpadding="0">')
		document.write('<tr>')
		document.write('<td valign="top"><table border="0" cellspacing="0" cellpadding="0" >')
		document.write('<tr>')
		document.write('<td bgcolor="A2C5E0" style="filter:Alpha(opacity=50);"><img src="../images/spacer.gif" width="138" height="20"></td>')
		document.write('</tr>')
		document.write('<tr>')
		document.write('<td><a href="javascript:;" onMouseOver="hidesAll();"><img src="../images/spacer.gif" width="100%" height="50" border="0"></a></td>')
		document.write('</tr>')
		document.write('</table></td>')
		document.write('<td valign="top"><table width="180" border="0" cellpadding="2" cellspacing="1" id="lmenuContent'+id1+id2+'" style="Filter:revealTrans(duration=2);display:none">')
		var What;
		if (id1==1) {What = "Consumer"}
		if (id1==2) {What = "Business"}
		if (id1==3) {What = "Other"}		
		var to ;
		
		to = [eval(What)][0][id2][0][1].length
		
		for(j=0;j<to;j++){
			var temp = [eval(What)][0][id2][0][1][j].split("/")
			document.write('<tr>')
			document.write('<td bgcolor="#E7F0F7" class="smenu"  id="smenui'+id1+id2+j+'" onMouseOver="MouseOver(this.id)" onMouseOut="MouseOut(this.id)" onClick="location=\''+temp[1]+'\'"><img src="../images/icone2_ar.gif" width="7" height="7" align="absmiddle"> '+temp[0]+' &nbsp;</td>')
			document.write('</tr>')
		}
		
		document.write('</table></td>')
		document.write('</tr>')
		document.write('</table>')
		document.write('</div>')
}
//Create Layers

if (topid != "home"){
	
	for(i=1;i<Consumer.length;i++){
		if (Consumer[i][0][1] != ""){
		CreateLayer(1,i)
		}
	}
	
	for(i=1;i<Business.length;i++){
		if (Business[i][0][1] != ""){
				CreateLayer(2,i)
		}
	}
	
	for(i=1;i<Other.length;i++){
		if (Other[i][0][1] != ""){
				CreateLayer(3,i)
		}
	}
}

function WriteConsumer(){
	for(i=1;i<Consumer.length;i++){
		document.write("<tr>")
		var temp;
		temp = Consumer[i][0][0].split("/")
        document.write('<td height="17" bgcolor="#E7F0F7" class="menu" id="services1' + i + '" onMouseOver="MouseOver(this.id)" onMouseOut="MouseOut(this.id)" onClick="location=\''+temp[1]+'\'"><img src="../images/icone2_ar.gif" width="7" height="7" align="absmiddle">&nbsp;&nbsp;' +temp[0]+ '</td>');
		document.write("</tr>")
	}
}
function WriteSubConsumer(){
	for(i=1;i<Consumer.length;i++){
		document.write("<tr>")
		var temp;
		temp = Consumer[i][0][0].split("/")
		if (Consumer[i][0][1] != ""){
			var Temp2= Consumer[i][0][1][0]
			Temp2= Consumer[i][0][1][0].split("/")
			document.write('<td bgcolor="#E7F0F7" class="menu" id="services1' + i + '" onMouseOver="MouseOver(this.id);ShowSubMenu(\'1'+i+'\')" onMouseOut="MouseOut(this.id)" onClick="location=\''+Temp2[1]+'\'"><img src="../images/icone2_ar.gif" width="7" height="7" align="absmiddle">&nbsp;&nbsp; ' +temp[0]+ '</td>')
		}else{
			document.write('<td bgcolor="#E7F0F7" class="menu" id="services1' + i + '" onMouseOver="MouseOver(this.id);" onMouseOut="MouseOut(this.id)" onClick="location=\''+temp[1]+'\'"><img src="../images/icone2_ar.gif" width="7" height="7" align="absmiddle">&nbsp;&nbsp; ' +temp[0]+ '</td>')
		}
		document.write("</tr>")
	}
}

function WriteDigital(){
	for(i=1;i<Business.length;i++){
		document.write("<tr>")
		var temp;
		temp = Business[i][0][0].split("/")
        document.write('<td height="17" bgcolor="#E7F0F7" class="menu" id="services2' + i + '" onMouseOver="MouseOver(this.id)" onMouseOut="MouseOut(this.id)" onClick="location=\''+temp[1]+'\'"><img src="../images/icone2_ar.gif" width="7" height="7" align="absmiddle">&nbsp;&nbsp;' +temp[0]+ '</td>');
		document.write("</tr>")
	}
}
function WriteSubDigital(){
	for(i=1;i<Business.length;i++){
		document.write("<tr>")
		var temp;
		temp = Business[i][0][0].split("/")
		if (Business[i][0][1] != ""){
			var Temp2= Business[i][0][1][0]
			Temp2= Business[i][0][1][0].split("/")
			document.write('<td bgcolor="#E7F0F7" class="menu" id="services2' + i + '" onMouseOver="MouseOver(this.id);ShowSubMenu(\'2'+i+'\')" onMouseOut="MouseOut(this.id)" onClick="location=\''+Temp2[1]+'\'"><img src="../images/icone2_ar.gif" width="7" height="7" align="absmiddle">&nbsp;&nbsp; ' +temp[0]+ '</td>')
		}else{
			document.write('<td bgcolor="#E7F0F7" class="menu" id="services2' + i + '" onMouseOver="MouseOver(this.id);" onMouseOut="MouseOut(this.id)" onClick="location=\''+temp[1]+'\'"><img src="../images/icone2_ar.gif" width="7" height="7" align="absmiddle">&nbsp;&nbsp; ' +temp[0]+ '</td>')
		}
		document.write("</tr>")
	}
}


function WriteOther(){
	for(i=1;i<Other.length;i++){
		document.write("<tr>")
		var temp;
		temp = Other[i][0][0].split("/")
        document.write('<td height="17" bgcolor="#E7F0F7" class="menu" id="services3' + i + '" onMouseOver="MouseOver(this.id)" onMouseOut="MouseOut(this.id)" onClick="location=\''+temp[1]+'\'"><img src="../images/icone2_ar.gif" width="7" height="7" align="absmiddle">&nbsp;&nbsp;' +temp[0]+ '</td>');
		document.write("</tr>")
	}
}
function WriteSubOther(){
	for(i=1;i<Other.length;i++){
		document.write("<tr>")
		var temp;
		temp = Other[i][0][0].split("/")
		if (Other[i][0][1] != ""){
			var Temp2= Other[i][0][1][0]
			Temp2= Other[i][0][1][0].split("/")
			document.write('<td bgcolor="#E7F0F7" class="menu" id="services3' + i + '" onMouseOver="MouseOver(this.id);ShowSubMenu(\'3'+i+'\')" onMouseOut="MouseOut(this.id)" onClick="location=\''+Temp[2]+'\'"><img src="../images/icone2_ar.gif" width="7" height="7" align="absmiddle">&nbsp;&nbsp; ' +temp[0]+ '</td>')
		}else{
			document.write('<td bgcolor="#E7F0F7" class="menu" id="services3' + i + '" onMouseOver="MouseOver(this.id);" onMouseOut="MouseOut(this.id)" onClick="location=\''+temp[1]+'\'"><img src="../images/icone2_ar.gif" width="7" height="7" align="absmiddle">&nbsp;&nbsp; ' +temp[0]+ '</td>')
		}
		document.write("</tr>")
	}
}

function ShowSubMenu(id){
	P7_Snap('h','hides',-550,-300);
	MM_showHideLayers('Hides','','show')
	P7_Snap('services'+id,'lmenu'+id,-180,0);
	MM_showHideLayers('lmenu'+id,'','show')
	//document.getElementById("lmenuContent"+id).filters[0].Apply();
	//document.getElementById("lmenuContent"+id).filters[0].transition=12;
	//document.getElementById("lmenuContent"+id).filters[0].duration=1;
	//document.getElementById("lmenuContent"+id).filters[0].Play();
	document.getElementById("lmenuContent"+id).style.display=""
}
function hidesAll(){
	MM_showHideLayers('Hides','','hide')
	for (i=0;i<SubLevel.length;i++){
		document.getElementById("lmenuContent" + SubLevel[i] ).style.display="none"
		MM_showHideLayers('lmenu'+ SubLevel[i],'','hide')
	}
}

var ss1;
var ss2;
var ss3;
function ExtendSiteMap(level,id,Num){
	if(level=='ss'){
		if(id==1){ss1=Num}
		if(id==2){ss2=Num}
		if(id==3){ss3=Num}
	}
	if(id==4){
		for(i=1;i<=ss1;i++){
			document.getElementById("ssitem1"+i).style.display='none'
			document.images('siitem1').src="../images/icone4_ar.gif"
		}
		for(i=1;i<=ss2;i++){
			document.getElementById("ssitem2"+i).style.display='none'
			document.images('siitem2').src="../images/icone4_ar.gif"
		}
		for(i=1;i<=ss3;i++){
			document.getElementById("ssitem3"+i).style.display='none'
			document.images('siitem3').src="../images/icone4_ar.gif"
		}
	}
	for(i=1;i<=Num;i++){
		if(document.getElementById(level+"item"+id+i).style.display==''){
			document.getElementById(level+"item"+id+i).style.display='none'
			if(level=='s'){
				document.images('iitem'+id).src="../images/icone4_ar.gif"
			}else{
				document.images('siitem'+id).src="../images/icone4_ar.gif"
			}
		}else{
			document.getElementById(level+"item"+id+i).style.display=''
			if(level=='s'){
				document.images('iitem'+id).src="../images/icone4+_ar.gif"
			}else{
				document.images('siitem'+id).src="../images/icone4+_ar.gif"
			}
		}
	}
}



function JustSoPicWindow(imageName,imageWidth,imageHeight,alt,bgcolor,hugger,hugMargin) {
// by E Michael Brandt of ValleyWebDesigns.com - Please leave these comments intact.
// version 3.0.4

	if (bgcolor=="") {
		bgcolor="#FFFFFF";
	}
	var adj=10
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;

	if(w<740){
	  var lift=0.90;
	}
	if(w>=740 & w<835){
	  var lift=0.91;
	}
	if(w>=835){
	  var lift=0.93;
	}
	if (imageWidth>w){
	  byFactor = w / imageWidth;
	  imageWidth = w;
	  imageHeight = imageHeight * byFactor;
	}
	if (imageHeight>h-adj){
	  byFactor = h / imageHeight;
	  imageWidth = (imageWidth * byFactor);
	  imageHeight = h;
	}

	var scrWidth = w-adj;
	var scrHeight = (h*lift)-adj;

	if (imageHeight>scrHeight){
  	  imageHeight=imageHeight*lift;
	  imageWidth=imageWidth*lift;
	}

	var posLeft=0;
	var posTop=0;

	if (hugger == "hug image"){
	  if (hugMargin == ""){
	    hugMargin = 0;
	  }
	  var scrHeightTemp = imageHeight - 0 + 2*hugMargin;
	  if (scrHeightTemp < scrHeight) {
		scrHeight = scrHeightTemp;
	  }
	  var scrWidthTemp = imageWidth - 0 + 2*hugMargin;
	  if (scrWidthTemp < scrWidth) {
		scrWidth = scrWidthTemp;
	  }

	  if (scrHeight<100){scrHeight=100;}
	  if (scrWidth<100){scrWidth=100;}

	  posTop =  ((h-(scrHeight/lift)-adj)/2);
	  posLeft = ((w-(scrWidth)-adj)/2);
 	}

	if (imageHeight > (h*lift)-adj || imageWidth > w-adj){
		imageHeight=imageHeight-adj;
		imageWidth=imageWidth-adj;
	}
	posTop = parseInt(posTop);
	posLeft = parseInt(posLeft);
	scrWidth = parseInt(scrWidth);
	scrHeight = parseInt(scrHeight);

	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1){
	  var args= new Array();
	  args[0]='parent';
	  args[1]=imageName;
	  var i ; document.MM_returnValue = false;
	  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	} else {
	newWindow = window.open("vwd_justso.htm","newWindow","width="+scrWidth+",height="+scrHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body dir="rtl" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor='+bgcolor+' onBlur="self.close()" onClick="self.close()">');
	newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrHeight+' ><tr><td>');
	newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="Click screen to close" >');
	newWindow.document.write('</td></tr></table></body></html>');
	newWindow.document.close();
	newWindow.focus();
	}
}


var Showed;
Showed = "";
function ShowHide(id){
	if(Showed!="" && Showed != id){
		document.getElementById(Showed).style.display='none'
	}
	if(document.getElementById(id).style.display==''){
		document.getElementById(id).style.display='none'

	}else{
		document.getElementById(id).style.display=''
		Showed = id;

	}
}


function valid()
{
if (document.Add.Text1.value == "")
  {
    alert("الرجا ادخال الأسم الأول");
    document.Add.Text1.focus();
    return ;
 }
if (document.Add.Text2.value == "")
  {
    alert("الرجاء ادخال اسم العائلة");
    document.Add.Text2.focus();
    return ;
 }
if ( document.Add.Text3.value.indexOf ('@', 0) == -1 || document.Add.Text3.value.indexOf ('.', 0) == -1 )
{
alert("الرجاء ادخال البريد الألكتروني صحيحا");
document.Add.Text3.focus();
return;
}

if (document.Add.Text7.selectedIndex <= 0)
  {
    alert("الرجاء ادخال البلد");
    document.Add.Text7.focus();
    return ;

}
if (document.Add.Text8.value == "")
  {
    alert("الرجاء ادخال العمل");
    document.Add.Text8.focus();
    return ;
 }

 else document.Add.submit();}


function getRate(cntryRate){
	pos = cntryRate.indexOf("*");
	document.forms.CountryFrm.Code.value = cntryRate.substring(0, pos);
	cntryRate = cntryRate.substring(pos+1, cntryRate.length);
	pos = cntryRate.indexOf("*");
	document.forms.CountryFrm.PeakRate.value = cntryRate.substring(0, pos)
	document.forms.CountryFrm.OffPeak.value = cntryRate.substring(pos+1, cntryRate.length);
}


var Maps = ['../images/map_ar.gif','../images/northon_ar.gif','../images/mlon_ar.gif','../images/beiruton_ar.gif','../images/bekaa1on_ar.gif','../images/bekaa2on_ar.gif','../images/southon_ar.gif'];
var Maps1 = ['','../images/north.gif','../images/ml.gif','../images/beirut.gif','../images/bekaa1.gif','../images/bekaa2_ar.gif','../images/south.gif'];
var table = ['','north','ml','beirut','bekaa1','bekaa2','south',]
var Mywidth=0;
var Resizing;
var showedMap = 0;

function SwapMap(id){
	if(showedMap==0){
		document.images("MyMap").style.filter="blendTrans(duration=1,finishopacity=100)"
		document.images("MyMap").filters.blendTrans.Apply()
		document.images("MyMap").filters.blendTrans.Play()
		document.images("MyMap").src = Maps[id]
	}
}
function ShowMap(id){
	if (showedMap!=0){
		document.getElementById(table[showedMap]).style.display = "none"
	}
	showedMap = id;
	document.images("MyMap").src = Maps[id]
	document.getElementById("displayMap").style.display = ""
	Resizing = setInterval(resize,10)
}
function resize(){
	if(document.getElementById("displayMap").width != 210){
		Mywidth +=10;
		document.getElementById("displayMap").width = Mywidth
	}else{
		clearInterval(Resizing)
		document.getElementById(table[showedMap]).style.display = ""


	}
}



function PreloadImages(){
	if(topid=="locator"){
		MM_preloadImages('../images/bekaa1on_ar.gif','../images/northon_ar.gif','../images/mlon_ar.gif','../images/southon_ar.gif','../images/bekaa2on_ar.gif','../images/beiruton_ar.gif')
	}
	
	MM_preloadImages('../images/4on_ar.gif','../images/6on_ar.gif','../images/10on_ar.gif','../images/12on_ar.gif','../images/13on_ar.gif','../images/8on_ar.gif,','../images/onlineon_ar.gif','../images/25on_ar.gif','../images/27on_ar.gif','../images/31on_ar.gif');
}

var MenuImages = ['','25','27','31'] // Images
var MenuHeight = [0,140,45,60]
var ItemToHide = 0; //save the id of item to hide
var ItemToShow = 0; //save the id of item to hide
var HideTimer = []; // wait before hide
var HideMe = []; // timer to hide item
var SubHideMe1;
var SubHideMe2;
var SubHideMe3;
var SubHideTimer1; // submenu timer
var SubHideTimer2; // submenutimer
var SubHideTimer3; // submenutimer
var Showing = [false,false,false,false]; // status showing
var Hidding = [false,false,false,false]; // status hiding
var Hidding1;
var Hidding2;
var x= [0,0,0,0]; // counter
var speed = 4;

function hideAll(){
	document.getElementById("menu31").style.visibility="hidden"
	document.getElementById("menu32").style.visibility="hidden"
	document.getElementById("menu33").style.visibility="hidden"
	document.getElementById("hide").style.visibility="hidden"
	//PrepareHideMenu3()

}

// Display SubMenu1//////////////////////////////////////////////////////////////////
// SubMenu 1
function DisplaySubMenu1(){
	id=1;
	if(navigator.appVersion.indexOf("MS")==-1){
	document.getElementById("consumer").style.display =""
	}
	
	if(document.getElementById("consumer").style.display =="none"){
		document.getElementById("menu31").style.visibility="visible"
		document.getElementById("consumer").filters[0].Apply();
		document.getElementById("consumer").filters[0].transition=7;
		document.getElementById("consumer").filters[0].duration=1;
		document.getElementById("consumer").filters[0].Play();
		document.getElementById("consumer").style.display=""
	}
}
// SubMenu 2
function DisplaySubMenu2(){
		if(navigator.appVersion.indexOf("MS")==-1){
	document.getElementById("compagnies").style.display =""
	}
	id=1;
	if(document.getElementById("compagnies").style.display =="none"){
		document.getElementById("menu32").style.visibility="visible"
		document.getElementById("compagnies").filters[0].Apply();
		document.getElementById("compagnies").filters[0].transition=7;
		document.getElementById("compagnies").filters[0].duration=1;
		document.getElementById("compagnies").filters[0].Play();
		document.getElementById("compagnies").style.display=""
	}
}
// SubMenu 2
function DisplaySubMenu3(){
	id=1;
		if(navigator.appVersion.indexOf("MS")==-1){
	document.getElementById("other").style.display =""
	}
	if(document.getElementById("other").style.display =="none"){
		document.getElementById("menu33").style.visibility="visible"
		document.getElementById("other").filters[0].Apply();
		document.getElementById("other").filters[0].transition=7;
		document.getElementById("other").filters[0].duration=1;
		document.getElementById("other").filters[0].Play();
		document.getElementById("other").style.display=""
	}
}
//////////////////////////////////////////////////////////////////////////////////////////
// Display Menus /////////////////////////////////////////////////////////////////////////
//Menu1
function DisplayMenu1(){
	id=1;
	if(navigator.appVersion.indexOf("MS")==-1){
	document.getElementById("menu"+id+"Content").style.display =""
	}
	if(document.getElementById("menu"+id+"Content").style.display =="none"){
		document.images("bmenu"+id).src = "../images/"+MenuImages[id]+"on_ar.gif"
		document.getElementById("menu"+id+"Content").filters[0].Apply();
		document.getElementById("menu"+id+"Content").filters[0].transition=4;
		document.getElementById("menu"+id+"Content").filters[0].duration=1;
		document.getElementById("menu"+id+"Content").filters[0].Play();
		document.getElementById("menu"+id+"Content").style.display=""
	}
}
//Menu2
function DisplayMenu2(){
	id=2;
	if(navigator.appVersion.indexOf("MS")==-1){
	document.getElementById("menu"+id+"Content").style.display =""
	}
	if(document.getElementById("menu"+id+"Content").style.display =="none"){
		document.images("bmenu"+id).src = "../images/"+MenuImages[id]+"on_ar.gif"
		document.getElementById("menu"+id+"Content").filters[0].Apply();
		document.getElementById("menu"+id+"Content").filters[0].transition=4;
		document.getElementById("menu"+id+"Content").filters[0].duration=1;
		document.getElementById("menu"+id+"Content").filters[0].Play();
		document.getElementById("menu"+id+"Content").style.display=""
	}
}
//Menu3
function DisplayMenu3(){
	id=3;
	if(navigator.appVersion.indexOf("MS")==-1){
	document.getElementById("menu"+id+"Content").style.display =""
	}

	if(document.getElementById("menu"+id+"Content").style.display =="none"){
		//document.getElementById("hide").style.visibility="visible"
		//P7_Snap('bmenu3','hide',0,-205)
		document.images("bmenu"+id).src = "../images/"+MenuImages[id]+"on_ar.gif"
		document.getElementById("menu"+id+"Content").filters[0].Apply();
		document.getElementById("menu"+id+"Content").filters[0].transition=4;
		document.getElementById("menu"+id+"Content").filters[0].duration=1;
		document.getElementById("menu"+id+"Content").filters[0].Play();
		document.getElementById("menu"+id+"Content").style.display=""
	}
}
//////////////////////////////////////////////////////////////////////////////////////
//// Cancel Hide menus/////////////////////////////////////////////////////////////////
//Menu1//
function ClearHidding1(){
	id=1;
	clearTimeout(HideTimer[id]);
	Hidding[id]==false
}
//Menu2//
function ClearHidding2(id){
	id=2;
	clearTimeout(HideTimer[id]);
	Hidding[id]==false
}
function ClearSubHidding1(){
	document.getElementById("services1").bgColor = "#A2C5E0"
	id=3;
	clearTimeout(HideTimer[id]);
	clearTimeout(SubHideTimer1);
	Hidding[id]==false
}
function ClearSubHidding2(){
	document.getElementById("services2").bgColor = "#A2C5E0"
	id=3;
	clearTimeout(HideTimer[id]);
	clearTimeout(SubHideTimer2);
	Hidding[id]==false
}
function ClearSubHidding3(){
	document.getElementById("services3").bgColor = "#A2C5E0"
	id=3;
	clearTimeout(HideTimer[id]);
	clearTimeout(SubHideTimer3);
	Hidding[id]==false
}
//Menu3//
function ClearHidding3(id){
	id=3;
	clearTimeout(HideTimer[id]);
	Hidding[id]==false
}
/////////////////////////////////////////////////////////////////////////////////////////////
///// prapre to hide menus///////////////////////////////////////////////////////////////////
// Menu1
function PrepareHideMenu1(){
	id=1
	if(document.getElementById("menu"+id+"Content").style.display =="" &&  Hidding[id]==false){
		ItemToHide = id;
		HideTimer[id] = setTimeout(HideMenu1,10)
	}
}
// Menu2
function PrepareHideMenu2(){
	id=2
	if(document.getElementById("menu"+id+"Content").style.display =="" &&  Hidding[id]==false){
		ItemToHide = id;
		HideTimer[id] = setTimeout(HideMenu2,10)
	}
}
// Menu3
function PrepareHideMenu3(){
	id=3
	if(document.getElementById("menu"+id+"Content").style.display =="" &&  Hidding[id]==false){
		ItemToHide = id;
		HideTimer[id] = setTimeout(HideMenu3,10)
	}
}
function PrepareHideSubMenu1(){
	id=3
	if(document.getElementById("menu"+id+"Content").style.display =="" &&  Hidding[id]==false){
		ItemToHide = id;
		SubHideTimer1 = setTimeout(HideSubMenu1,10)
	}
}
function PrepareHideSubMenu2(){
	id=3
	if(document.getElementById("menu"+id+"Content").style.display =="" &&  Hidding[id]==false){
		ItemToHide = id;
		SubHideTimer2 = setTimeout(HideSubMenu2,10)
	}
}
function PrepareHideSubMenu3(){
	id=3
	if(document.getElementById("menu"+id+"Content").style.display =="" &&  Hidding[id]==false){
		ItemToHide = id;
		SubHideTimer3 = setTimeout(HideSubMenu3,10)
	}
}
//////////////////////////////////////////////////////////////////////////////////////////////
///////////// Function Hide Menu//////////////////////////////////////////////////////////////
// Menu1////
function HideMenu1(){
	id=1
	if(navigator.appVersion.indexOf("MS")==-1){
	document.getElementById("menu"+id+"Content").style.display ="none"
	}else{
	HideMe[1] = setInterval(Hide1,1)
	}
}
// Menu2////
function HideMenu2(){
	id=2
	if(navigator.appVersion.indexOf("MS")==-1){
	document.getElementById("menu"+id+"Content").style.display ="none"
	}else{
	HideMe[2] = setInterval(Hide2,1)
	}
}
// Menu3////
function HideMenu3(){
	id=3
	if(navigator.appVersion.indexOf("MS")==-1){
	document.getElementById("menu"+id+"Content").style.display ="none"
	}else{
	HideMe[3] = setInterval(Hide3,1)
	}
}
function HideSubMenu1(){
	SubHideMe1 = setInterval(SubHide1,1)
	//HideMe[3] = setInterval(Hide3,1)
}
function HideSubMenu2(){
	SubHideMe2 = setInterval(SubHide2,1)
	//HideMe[3] = setInterval(Hide3,1)
}
function HideSubMenu3(){
	SubHideMe3 = setInterval(SubHide3,1)
	//HideMe[3] = setInterval(Hide3,1)
}
// Menu1
function Hide1(){
	ItemToHide = 1
	Hidding[ItemToHide] = true;
	if(topid!="about"){
		document.images("bmenu"+ItemToHide).src = "../images/"+MenuImages[ItemToHide]+"_ar.gif"
	}
	if(x[ItemToHide]!=MenuHeight[ItemToHide]){
		x[ItemToHide]+=speed;
		document.getElementById("menu"+ItemToHide).style.clip="rect("+x[ItemToHide]+" 140 "+MenuHeight[ItemToHide]+" 0)";
	}else{
		x[ItemToHide] = 0;
		clearInterval(HideMe[ItemToHide])
		document.getElementById("menu"+ItemToHide+"Content").style.display="none"
		document.getElementById("menu"+ItemToHide).style.clip="rect(0 140 "+MenuHeight[ItemToHide]+" 0)";
		Hidding[ItemToHide] = false;

	}
}
// Menu2
function Hide2(){
	ItemToHide = 2
	Hidding[ItemToHide] = true;
	if(topid!="locator"){
		document.images("bmenu"+ItemToHide).src = "../images/"+MenuImages[ItemToHide]+"_ar.gif"
	}
	if(x[ItemToHide]!=MenuHeight[ItemToHide]){
		x[ItemToHide]+=5;
		document.getElementById("menu"+ItemToHide).style.clip="rect("+x[ItemToHide]+" 140 "+MenuHeight[ItemToHide]+" 0)";
	}else{
		x[ItemToHide] = 0;
		clearInterval(HideMe[ItemToHide])
		document.getElementById("menu"+ItemToHide+"Content").style.display="none"
		document.getElementById("menu"+ItemToHide).style.clip="rect(0 140 "+MenuHeight[ItemToHide]+" 0)";
		Hidding[ItemToHide] = false;


	}
}
// Menu2//
function Hide3(){
	ItemToHide = 3
	Hidding[ItemToHide] = true;
	document.images("bmenu"+ItemToHide).src = "../images/"+MenuImages[ItemToHide]+"_ar.gif"
	if(x[ItemToHide]!=MenuHeight[ItemToHide]){
		x[ItemToHide]+=5;
		document.getElementById("menu"+ItemToHide).style.clip="rect("+x[ItemToHide]+" 140 "+MenuHeight[ItemToHide]+" 0)";
	}else{
		x[ItemToHide] = 0;
		clearInterval(HideMe[ItemToHide])
		document.getElementById("menu"+ItemToHide+"Content").style.display="none"
		document.getElementById("menu"+ItemToHide).style.clip="rect(0 140 "+MenuHeight[ItemToHide]+" 0)";
		Hidding[ItemToHide] = false;

	}
}
function SubHide1(){
	Hidding2 = true;
	document.getElementById("services1").bgColor = "#E7F0F7"
	document.getElementById("consumer").style.display="none";
	document.getElementById("menu31").style.visibility="hidden"
	clearInterval(SubHideMe1)

}
function SubHide2(){
	Hidding2 = true;
	document.getElementById("services2").bgColor = "#E7F0F7"
	document.getElementById("compagnies").style.display="none";
	document.getElementById("menu32").style.visibility="hidden"
	clearInterval(SubHideMe2)

}
function SubHide3(){
	Hidding2 = true;
	document.getElementById("services3").bgColor = "#E7F0F7"
	document.getElementById("other").style.display="none";
	document.getElementById("menu33").style.visibility="hidden"
	clearInterval(SubHideMe3)

}
////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
function MouseOver(id){
	document.getElementById(id).style.filter="blendTrans(duration=1,finishopacity=80)"
	document.getElementById(id).filters.blendTrans.Apply()
	document.getElementById(id).filters.blendTrans.Play()
	document.getElementById(id).bgColor = "#A2C5E0"
	//document.getElementById(id).style.filter="Alpha(opacity=80)"
}
function MouseOut(id){
	document.getElementById(id).style.filter="blendTrans(duration=1,finishopacity=80)"
	document.getElementById(id).filters.blendTrans.Apply()
	document.getElementById(id).filters.blendTrans.Play()
	if(subid!=id){
		document.getElementById(id).bgColor = "#E7F0F7"
	}
	//document.getElementById(id).style.filter="Alpha(opacity=80)"
 }

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}
function SetBack(){
	document.getElementById("Back").style.filter="blendTrans(duration=3)"
	document.getElementById("Back").filters.blendTrans.Apply()
	document.getElementById("Back").filters.blendTrans.Play()
	Background = GetPicture();
	document.getElementById("Back").background = Background;
}
function GetPicture(){
	var MyPictures = new Array;
	MyPictures = ["../images/pic0.jpg","../images/pic1.jpg","../images/pic2.jpg","../images/pic3.jpg","../images/pic4.jpg"]
	Pic = Math.random();
	Pic = Math.round(Pic *4);
	return(MyPictures[Pic]);
}

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];}
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function P7_Snap() { //v2.63 by PVII
 var x,y,ox,bx,oy,p,tx,a,b,k,d,da,e,el,tw,q0,xx,yy,w1,pa='px',args=P7_Snap.arguments;a=parseInt(a);
 if(document.layers||window.opera){pa='';}for(k=0;k<(args.length);k+=4){
 if((g=MM_findObj(args[k]))!=null){if((el=MM_findObj(args[k+1]))!=null){
 a=parseInt(args[k+2]);b=parseInt(args[k+3]);x=0;y=0;ox=0;oy=0;p="";tx=1;
 da="document.all['"+args[k]+"']";if(document.getElementById){
 d="document.getElementsByName('"+args[k]+"')[0]";if(!eval(d)){
 d="document.getElementById('"+args[k]+"')";if(!eval(d)){d=da;}}
 }else if(document.all){d=da;}if(document.all||document.getElementById){while(tx==1){
 p+=".offsetParent";if(eval(d+p)){x+=parseInt(eval(d+p+".offsetLeft"));y+=parseInt(eval(d+p+".offsetTop"));
 }else{tx=0;}}ox=parseInt(g.offsetLeft);oy=parseInt(g.offsetTop);tw=x+ox+y+oy;
 if(tw==0||(navigator.appVersion.indexOf("MSIE 4")>-1&&navigator.appVersion.indexOf("Mac")>-1)){
  ox=0;oy=0;if(g.style.left){x=parseInt(g.style.left);y=parseInt(g.style.top);}else{
  w1=parseInt(el.style.width);bx=(a<0)?-5-w1:-10;a=(Math.abs(a)<1000)?0:a;b=(Math.abs(b)<1000)?0:b;
  x=document.body.scrollLeft+event.clientX+bx;y=document.body.scrollTop+event.clientY;}}
 }else if(document.layers){x=g.x;y=g.y;q0=document.layers,dd="";for(var s=0;s<q0.length;s++){
  dd='document.'+q0[s].name;if(eval(dd+'.document.'+args[k])){x+=eval(dd+'.left');y+=eval(dd+'.top');
  break;}}}e=(document.layers)?el:el.style;xx=parseInt(x+ox+a),yy=parseInt(y+oy+b);
 if(navigator.appVersion.indexOf("MSIE 5")>-1 && navigator.appVersion.indexOf("Mac")>-1){
  xx+=parseInt(document.body.leftMargin);yy+=parseInt(document.body.topMargin);}
 e.left=xx+pa;e.top=yy+pa;}}}
}

function GotoSamePage( language )
{
	var pageName = location.href.split("/");
	pageName = pageName[pageName.length - 1];
	pageName = pageName.split(".");
	pageName = pageName[0] + ((pageName[1].indexOf("php") == 0)?".php":".html");
	var url = "../" + language + "/" + pageName;
	location.href = url;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->


