﻿function ShowDiv(img4h,img4s,divid) {
document.getElementById(img4h).style.display="none";
document.getElementById(img4s).style.display='';
document.getElementById(divid).style.display='';
} 
function HideDiv(img4h,img4s,divid) {
document.getElementById(img4h).style.display="none";
document.getElementById(img4s).style.display='';
document.getElementById(divid).style.display="none";
} 


//--------------------------------- SWF Controller ------------------------------------

var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function Banner2_DoFSCommand(command, args)                {
  var Banner2Obj = InternetExplorer ? Banner2 : document.Banner2;
  //-------------------Login Cadr---------------------------------------
  //if(command=="LoginDataNull"){HideWaitLayer();alert(". خطا : تکمیل هر دو فیلد نام کاربری و رمز عبور الزامی است");}
 //alert(command);
}
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
  document.write('<SCRIPT LANGUAGE=VBScript\> \n');
  document.write('On Error Resume Next \n');
  document.write('Sub Banner2_FSCommand(ByVal command, ByVal args)\n');
  document.write(' call Banner2_DoFSCommand(command, args)\n');
  document.write('end sub\n');
  document.write('</SCRIPT\> \n');
} 

//-------------------------------------------------------------------------------------

function OpenGMapWin() {
window.open("ChitoteckGMap_1.html","GMap","width=1024,height=768,top=0,left=0,menubar=yes");
}