var a=1;
var b=1;
var c=1;
var d=1;
var e=1;
var b1=1;
var b2=1;
var b3=1;
var b4=1;
var c1=1;
var c2=1;
function Swap(layFlag,imageName, title) {
	if (document.images && (imageName != CurrentTab)) {
	        switch(title) {
		case 0	:	
  			if(eval(imageName + ".src")) {
				if (layFlag==0){
	 		  	document.images[imageName].src = eval(imageName + ".src");
					}
			 }
			break;
		case 1 	:
  			if(eval(imageName + "_on.src")) {
				if (layFlag==1) {
	 		  	document.images[imageName].src = eval(imageName + "_on.src");
					}
			}
			break;

	        }
	} 
	if (document.images && (imageName == CurrentTab)) {
	        switch(title) {
		case 0	:	
  			if(eval(imageName + ".src")) {
				if (layFlag==0){
	 		  	document.images[imageName].src = eval(imageName + "_tab.src");
					}
			 }
			break;
		case 1 	:
  			if(eval(imageName + "_on.src")) {
				if (layFlag==1) {
	 		  	document.images[imageName].src = eval(imageName + "_on.src");
					}
			}
			break;

	        }
	} 

}


function displayM(layer,layFlag,imageName,title) {
   Swap(layFlag,imageName, title)
   if (document.all) {
    var theObj = eval(document.all[layer]);
    var ifForm = eval(document.all['formEle']);
    if (theObj) theObj.style.visibility = 'visible';
    if (ifForm) document.all['formEle'].style.display="none";
   }
}






function hideM(layer,layFlag,imageName,title) {
  Swap(layFlag,imageName, title)
  if (layFlag==0) {
       if (document.all) {
      var theObj = eval(document.all[layer]);
      var ifForm = eval(document.all['formEle']);
      if (theObj) theObj.style.visibility = 'hidden';
      if (ifForm) document.all['formEle'].style.display="block";
       }
    }
}

function hideM1(layer,layFlag,layer2,layFlag2,imageName,title) {
  Swap(layFlag,imageName, title)
  if (layFlag==0) {
       if (document.all) {
      var theObj = eval(document.all[layer]);
      var ifForm = eval(document.all['formEle']);
      if (theObj) theObj.style.visibility = 'hidden';
      if (ifForm) document.all['formEle'].style.display="block";
       }
    }
  if (layFlag2==0) {
       if (document.all) {
      var theObj = eval(document.all[layer2]);
      var ifForm = eval(document.all['formEle']);
      if (theObj) theObj.style.visibility = 'hidden';
      if (ifForm) document.all['formEle'].style.display="block";
       }
    }
}

function hideM2(layer,layFlag,layer2,layFlag2,layer3,layFlag3,imageName,title) {
  Swap(layFlag,imageName, title)
  if (layFlag==0) {
       if (document.all) {
      var theObj = eval(document.all[layer]);
      var ifForm = eval(document.all['formEle']);
      if (theObj) theObj.style.visibility = 'hidden';
      if (ifForm) document.all['formEle'].style.display="block";
       }
    }
  if (layFlag2==0) {
       if (document.all) {
      var theObj = eval(document.all[layer2]);
      var ifForm = eval(document.all['formEle']);
      if (theObj) theObj.style.visibility = 'hidden';
      if (ifForm) document.all['formEle'].style.display="block";
       }
    }
  if (layFlag3==0) {
       if (document.all) {
      var theObj = eval(document.all[layer3]);
      var ifForm = eval(document.all['formEle']);
      if (theObj) theObj.style.visibility = 'hidden';
      if (ifForm) document.all['formEle'].style.display="block";
       }
    }
}



function array(n) {
  for (var i=0; i<n; i++) this[i]=0;
  this.length = n;
}

textStr = new array(11);
wirelessp="wirelessp"
filteringp="filteringp"
isatellitep="isatellitep"
accountingp="accountingp"
ispp="ispp"
webp="webp"
satellitep="satellitep"
netp="netp"
ispip="ispip"
ispep="ispep"
webdp="webdp"
webhp="webhp"
websp="websp"
satellitesp="satellitesp"
netip="netip"
supportup="supportup"
textStr[0] = "<A  href='http://www.iran-central.net/index.htm' onMouseOver='a=1;'>About The Company</A><BR>\n";
textStr[0] = textStr[0]+"<A  href='http://www.iran-central.net/about2.htm' onMouseOver='a=1;'>Company's Capabilities</A><br>\n";
textStr[0] = textStr[0]+"<A  href='http://www.iran-central.net/about3.htm' onMouseOver='a=1;'>References</A>";
textStr[1] = "<A Style='cursor:hand' onmouseout='b3=0;setTimeout(&quot;hideM(isatellitep,b3)&quot;);' onmouseover='b3=1;displayM(isatellitep)'>Internet via Satellite --&gt;</A><br>\n";
textStr[1] = textStr[1]+"<A href='http://www.iran-central.net/vsat.htm' onmouseover='b=1;'>VSAT</A><br>\n";
textStr[1] = textStr[1]+"<A href='http://www.iran-central.net/surfcontrol.htm' onmouseover='b=1;'>Web/Email Filtering</A><br>\n";
textStr[1] = textStr[1]+"<A href='http://www.iran-central.net/senao.htm' onmouseover='b=1;'>Wireless LAN</A>";
textStr[2] = "<A href='http://www.iran-central.net/satellite-s.htm' onMouseOver='c=1;'>Satellite Services</A><br>\n";
textStr[2] = textStr[2]+"<A href='http://www.iran-central.net/intranet.htm' onMouseOver='c=1;'>LAN/WAN Services</A>";
textStr[3] = "<A href='http://210.5.234.3/customer40' onMouseOver='d=1;'>Customer Support</A><BR>\n";
textStr[3] = textStr[3]+ "<A href='http://www.iran-central.net/statistical/stat1.aspx' onMouseOver='d=1;'>Traffic Statistics</A>";
textStr[13] = "<A  href='http://www.iran-central.net/linkstar.htm' onMouseOver='b3=1;'>LinkStar</A><BR>\n";
textStr[13] = textStr[13]+ "<A  href='http://www.iran-central.net/satxpress.htm' onMouseOver='b3=1;'>SatXPress</A><BR>\n";
textStr[13] = textStr[13]+ "<A  href='http://www.iran-central.net/starduo.htm' onMouseOver='b3=1;'>Starduo</A>";
textStr[22] = "<A  href='http://mail.iran-central.net:3000' onMouseOver='d2=1;'>Check Mail</A><BR>\n";
textStr[22] = textStr[22]+ "<A  href='http://www.iran-central.net/acc' onMouseOver='d2=1;'>Check Credit</A><BR>\n";
textStr[22] = textStr[22]+ "<A  href='http://www.iran-central.net/pass' onMouseOver='d2=1;'>Change Password</A><BR>\n";

layerHTML = new array(11);
makeTableStr(0);
makeTableStr(1);
makeTableStr(2);
makeTableStr(3);
makeTableStr(11);
makeTableStr(12);
makeTableStr(13);
makeTableStr(14);
makeTableStr(21);
makeTableStr(22);

function makeTableStr(x) {
  layerHTML[x]="<TABLE width=100% border=0 cellpadding=0 cellspacing=0><TR><TD>\n<IMG src='images/tp.gif' width=1 height=3></TD></TR><TR><TD>\n";
  layerHTML[x]=layerHTML[x]+"<TABLE width=100% border=0 cellpadding=0 cellspacing=0><TR><TD colspan=3 height=2 bgcolor='#8F6117'></TD></TR><TR><TD height=4 width=2 bgcolor='#8F6117'></TD><TD bgcolor='#F5A628'></TD><TD width=2 bgcolor='#8F6117'></TD></TR></TABLE>\n";
  layerHTML[x]=layerHTML[x]+"</TD></TR>\n<TR><TD>\n";
  layerHTML[x]=layerHTML[x]+"<TABLE width=100% border=0 cellpadding=0 cellspacing=0><TR><TD width=2 bgcolor='#8F6117'><IMG src='images/tp.gif' width=2 height=1></TD><TD width=4 bgcolor='#F5A628'><IMG src='images/tp.gif' width=4 height=1></TD><TD width='100%' bgcolor='#F5A628' class='nav'><B>\n";
  layerHTML[x]=layerHTML[x]+textStr[x];
  layerHTML[x]=layerHTML[x]+"</B></TD><TD width=4 bgcolor='#F5A628'><IMG src='images/tp.gif' width=4 height=1></TD><TD width=2 bgcolor='#8F6117'><IMG src='images/tp.gif' width=2 height=1></TD></TR></TABLE>\n";
  layerHTML[x]=layerHTML[x]+"</TD></TR>\n<TR><TD>\n";
  layerHTML[x]=layerHTML[x]+"<TABLE width=100% border=0 cellpadding=0 cellspacing=0><TR><TD height=4 width=2 bgcolor='#8F6117'></TD><TD bgcolor='#F5A628'></TD><TD width=2 bgcolor='#8F6117'></TD></TR><TR><TD colspan=3 height=2 bgcolor='#8F6117'></TD></TR></TABLE>\n";
  layerHTML[x]=layerHTML[x]+"</TD></TR>\n</TABLE>\n";
}


function PupUp() {
	Mywin=window.open('http://62.32.59.66/chat/default.asp', 'mywindow', 'width=600, height=480, menubar=no, scrollbars=yes, 	status=no, toolbar=no, screenX=180, screenY=80, Left=80, Top=40');
}

function OpenFax() {
	Mywin=window.open('http://62.32.59.66/relayfax/form.htm', 'mywindow', 'width=540, height=440, menubar=no, scrollbars=yes, 	status=no, toolbar=no, screenX=180, screenY=80, Left=80, Top=40');
}

function pupup(key) {
url="http://www.goto.com/d/search/p/ilst/frames/?Keywords=" + key
window.open(url , 'mywindow', 'width=600, height=480, menubar=no, scrollbars=yes, 	status=no, toolbar=no, screenX=180, screenY=80, Left=80, Top=40');
}

function openwin(url) {
	Mywin=window.open(url,  'mywindow', 'width=400, height=300, menubar=no, scrollbars=yes, 	status=no, toolbar=no, screenX=180, screenY=80, Left=40, Top=40');
}



