/////////////////////////////////////////////////////
//                                                 //
//  SECTION 1: Animation                           //
//  ---------------------------------------------  //
//                                                 //
/////////////////////////////////////////////////////



function MM_preloadImages() { 
  if (document.images) {
    var imgFiles = MM_preloadImages.arguments;
    if (document.preloadArray==null) document.preloadArray = new Array();
    var i = document.preloadArray.length;
    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
      preloadArray[i] = new Image;
      preloadArray[i++].src = imgFiles[j];
  } }
}

function MM_swapImgRestore() { //v2.0
  if (document.MM_swapImgData != null)
    for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
      document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
}

function MM_swapImage() { 
  var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
  for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
    objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
    if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
        (objStr.indexOf('document.all[')   ==0 && document.all   ==null))
      objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
    obj = eval(objStr);
    if (obj != null) {
      swapArray[j++] = obj;
      swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
      obj.src = MM_swapImage.arguments[i+2];
  } }
  document.MM_swapImgData = swapArray; //used for restore
}

function Checkitout2(){

//      Gets Browser and Version

        var appver = "null";
        var browser = navigator.appName;
        var version = navigator.appVersion;
        if ((browser == "Netscape")) version = navigator.appVersion.substring(0, 3);
        if ((browser == "Microsoft Internet Explorer")) version = navigator.appVersion.substring(22, 25);

//      Gives AppVersion (appver) for Detect Strings

        if ((browser == "Microsoft Internet Explorer") && (version >= 3)) appver = "ie3+";
        if ((browser == "Netscape") && (version >= 3)) appver = "ns3+";
        if ((browser == "Netscape") && (version < 3)) appver = "ns2";


       if ((appver == "ie3+")) {
                return 0;
        }  else {
                return 1;
                }
}




function PopoffWindow(DaURL, typeWindow) {

        var ItsTheWindow;
		if (Checkitout2())  {
        
			switch (typeWindow){
					case "Window350x300":
					   ItsTheWindow = window.open(DaURL,"register","status,height=330,width=320,resizable=no,toolbar=0");
					   break;
					case "Window640x480":
						ItsTheWindow = window.open(DaURL,"demoweb","status,height=480,width=640,resizable=no,toolbar=0");
						break;
					case "Window450x480":
						ItsTheWindow = window.open(DaURL,"demoweb","status,height=480,width=450,resizable=no,toolbar=0");
						break;	
					case "Window600x400":
						ItsTheWindow = window.open(DaURL,"demoweb",scrolling="yes","nostatus,height=400,width=600,toolbar=0");
						break;	
					default:
						ItsTheWindow = window.open(DaURL,"800x600","status,height=600,width=800,resizable=no,toolbar=0");
						
			}
        } else {
			switch (typeWindow){
					case "Window350x300":
					    ItsTheWindow = window.open(DaURL,"register","status,height=330,width=320,resizable=no,toolbar=0");
					    break;
					case "Window640x480":
						ItsTheWindow = window.open(DaURL,"demoweb","status,height=480,width=640,resizable=no,toolbar=0");
						break;
					case "Window450x480":
						ItsTheWindow = window.open(DaURL,"demoweb","status,height=480,width=450,resizable=no,toolbar=0");
						break;	
					case "Window600x400":
						ItsTheWindow = window.open(DaURL,"demoweb",scrolling="yes","status,height=400,width=600,resizable=no,toolbar=0");
						break;	
					default:
						ItsTheWindow = window.open(DaURL,"800x600","status,height=600,width=800,resizable=no,toolbar=0");
						
			}                        
			if (parseInt(navigator.appVersion) >= 3){
                ItsTheWindow.focus();
        }
        }

}


    function leapto(form) {
    var myindex=form.dest.selectedIndex
    window.location=(form.dest.options[myindex].value);
    }

     function copyrightinfo() {
     
     document.write('<center><font face="Arial,Helvetica"><font size=-1>&copy; 1999 - 2000 Copyright to <b>MH TRAVEL</b>. All rights reserved.</font></font>');
     document.write('<br><font face="Arial,Helvetica"><font size=-1>This site was designed and programmed by <a href="http://www.com.egyptguide.net" target="_top">Com&amp;Com.</a></font></font>');
     document.write('<br><font face="Arial,Helvetica"><font size=-2>For a better view use 800x600 resolution and <a href="http://www.microsoft.com/" target="top">IE 5.x</a> or <a href="http://www.netscape.com/" target="_top">Netscape 4.x</a></font></font></center>');
     
     }
     
     
