    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 showConfirmation() {
        var obj = $get('confirmationDiv');
        var docwidth = getwinwidth();
        var docheight = getwinheight();
        var docyscroll = $get('ctl00_scrollyHF').value;
        var ypos = 0;
        
        if (!(docyscroll==""))
            {ypos = parseInt(docyscroll) + (parseInt(docheight)/2) - 100;}
        else
            {ypos = parseInt(docheight)/2 - 100;}
        obj.style.left=(docwidth / 2) - 130 + 'px';
        obj.style.top=ypos +'px';
        obj.style.display = 'block';
        //fading = setInterval('fadeit()', 400);
        //alert(docheight - 100 + docyscroll +'px');

        //var fading = setInterval(fadeit(obj), 200);
    }
    function closeConfirmation() {
        var obj = $get('confirmationDiv');
        fading = setInterval('fadeclose()', 100);
    }

    function fadeclose(){ 
        var cur2 = $get('confirmationDiv');
        if (timerx>14)
            timerx-=15
        else if (window.fading)
            {clearInterval(fading);cur2.style.display = 'none';}
        cur2.style.opacity = timerx/100;
        cur2.style.filter = 'alpha(opacity='+timerx+')';
    } 

    function fadeit(){ 
        var cur2 = $get('confirmationDiv');
        if (timerx > 85)
            timerx-=1
        else if (timerx>9)
            timerx-=10
        else if (window.fading)
            {clearInterval(fading);cur2.style.display = 'none';}
            
        cur2.style.opacity = timerx/100;
        cur2.style.filter = 'alpha(opacity='+timerx+')';
        
/*    alert(cur2.style.MozOpacity+', '+cur2.style.opacity+', '+cur2.filters.alpha.opacity);
        if (cur2.style.MozOpacity>0.9) 
            cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)-0.01
        else if (cur2.style.opacity>0.9)
            cur2.style.opacity=parseFloat(cur2.style.opacity)-0.01
        else if (cur2.filters&&cur2.filters.alpha.opacity>90) 
            cur2.filters.alpha.opacity-=1
        else if (cur2.style.MozOpacity>0.09) 
            cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)-0.1
        else if (cur2.style.opacity>0.09)
            cur2.style.opacity=parseFloat(cur2.style.opacity)-0.1
        else if (cur2.filters&&cur2.filters.alpha.opacity>9) 
            cur2.filters.alpha.opacity-=10 
        else if (window.fading) 
            {clearInterval(fading);cur2.style.display = 'none';}
*/
        } 

	function SelectTab(itemID)
	{
	    $get('ctl00_ContentPlaceHolder1_selectedtabHF').value = itemID;
		ob_em_SelectItem(itemID);
		if (itemID == "standard") {
    		$get('ctl00_ContentPlaceHolder1_panel_custom').style.display="none";
    		$get('ctl00_ContentPlaceHolder1_panel_standard').style.display =""; }
        else {
    		$get('ctl00_ContentPlaceHolder1_panel_standard').style.display="none";
    		$get('ctl00_ContentPlaceHolder1_panel_custom').style.display =""; }
		//window.frames['tabIframe'].location.replace("htmlPages/page" + itemID + ".html");
	}

    function showmoretours() {
        document.getElementById("ctl00_ContentPlaceHolder1_moretourrecsDiv").style.display = "block";
    }
    function showmorehotels() {
        document.getElementById("ctl00_ContentPlaceHolder1_morehotelrecsDiv").style.display = "block";
    }
    function showmoreservices() {
        document.getElementById("ctl00_ContentPlaceHolder1_moreservicerecsDiv").style.display = "block";
    }

    function getwinwidth() {
      var myWidth = 0;
      if( typeof( window.innerWidth ) == 'number' ) {
        //Non-IE
        myWidth = window.innerWidth;
      } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
        //IE 6+ in 'standards compliant mode'
        myWidth = document.documentElement.clientWidth;
      } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
      }
      return myWidth;
    }
    function getwinheight() {
      var myHeight = 0;
      if( typeof( window.innerWidth ) == 'number' ) {
        //Non-IE
        myHeight = window.innerHeight;
      } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
        //IE 6+ in 'standards compliant mode'
        myHeight = document.documentElement.clientHeight;
      } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        myHeight = document.body.clientHeight;
      }
      return myHeight;
    }
    
    function getScrollX() {
      var scrOfX = 0;
      if( typeof( window.pageYOffset ) == 'number' ) {
        //Netscape compliant
        scrOfX = window.pageXOffset;
      } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
        //DOM compliant
        scrOfX = document.body.scrollLeft;
      } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
        //IE6 standards compliant mode
        scrOfX = document.documentElement.scrollLeft;
      }
      return scrOfX;
    }
    function getScrollY() {
      var scrOfY = 0;
      if( typeof( window.pageYOffset ) == 'number' ) {
        //Netscape compliant
        scrOfY = window.pageYOffset;
      } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
        //DOM compliant
        scrOfY = document.body.scrollTop;
      } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
        //IE6 standards compliant mode
        scrOfY = document.documentElement.scrollTop;
      }
      return scrOfY;
    }

    function showlogin() {
        var docwidth = getwinwidth();
        var docheight = getwinheight();
        var docscrollheight = document.body.parentNode.scrollHeight;

        $get('screenmatte').style.width = docwidth +'px';
        if (docscrollheight > docheight) {$get('screenmatte').style.height = docscrollheight +'px'} else {$get('screenmatte').style.height = docheight +'px'};
        $get('screenmatte').style.display = '';
        $get('begin_login').style.left = (docwidth / 2) - 312 +'px';
        $get('begin_login').style.display = '';
        
    }
    function showslides() {
        var docwidth = getwinwidth();
        var docheight = getwinheight();
        var docscrollheight = document.body.parentNode.scrollHeight;

        $get('screenmatte').style.width = docwidth +'px';
        if (docscrollheight > docheight) {$get('screenmatte').style.height = docscrollheight +'px'} else {$get('screenmatte').style.height = docheight +'px'};
        //$get('screenmatte').style.height = getScrollY() +'px';
        $get('screenmatte').style.display = '';
        $get('slides').style.left = (docwidth / 2) - 300 +'px';
        $get('slides').style.top = 100 +'px';
        $get('slides').style.display = '';
        
    }
    function servicesubmit(id, prodname) {
        var checkin;
        var persons;
        var comments;
        checkin = $get('checkinTB'+id).value;
        persons = $get('personsTB'+id).value;
        comments = $get('commentsTB'+id).value;
        $get('ctl00_ContentPlaceHolder1_selectionHF').value = id;
        $get('ctl00_ContentPlaceHolder1_tournameHF').value = prodname;
        $get('ctl00_ContentPlaceHolder1_checkinHF').value = checkin;
        $get('ctl00_ContentPlaceHolder1_personsHF').value = persons;
        $get('ctl00_ContentPlaceHolder1_commentsHF').value = comments;
        return false;
    }
    function ismaxlength(obj){
        if (obj.value.length>250)
            obj.value=obj.value.substring(0,250)
    }
    function dologin(obj, e){
        var KeyID = (window.event) ? event.keyCode : e.keyCode;
        /*
        if ((event.keyCode=='13') && (obj.value.length>1))
            //$get('btnLogIn').click()
            loginHandler()
        */
        if ((KeyID==13) && (obj.value.length>1))
            {
            //$get('btnLogIn').click();
            loginHandler();
            return false;
            }
    }
    function GetScrollCoords()
    {
       var scrollX, scrollY;
      
       if (document.all)
       {
          if (!document.documentElement.scrollLeft)
             scrollX = document.body.scrollLeft;
          else
             scrollX = document.documentElement.scrollLeft;
    
          if (!document.documentElement.scrollTop)
             scrollY = document.body.scrollTop;
          else
             scrollY = document.documentElement.scrollTop;
       }   
       else
       {
          scrollX = window.pageXOffset;
          scrollY = window.pageYOffset;
       }
        document.getElementById('ctl00_scrollxHF').value = scrollX;
       document.getElementById('ctl00_scrollyHF').value = scrollY;
       //document.forms[formID].yCoordHolder.value = scrollY;
    }
   
    function ScrollDoc()
    {
       var x = document.getElementById('ctl00_scrollxHF').value;
       var y = document.getElementById('ctl00_scrollyHF').value;
       window.scrollTo(x, y);
    }
    function closeme() {}
