﻿// JScript File For RegionCruiseList

function ShowCruise(WebCode,VslId,TopFlag)
    {    
        if(TopFlag!='')
        {
        window.parent.location = "/Kreuzfahrt/TopCollection/" & WebCode & ".html";  
        }
        else
        {
        window.parent.location = "/Kreuzfahrt/" & WebCode & ".html";
        }
    }
 function ShowResultList(RouteCode)
{ 

    window.location = "/ResultList/TeaserRouteCode/" + RouteCode + ".html";    
}
    

 function ct_hide()
    {
        var htmDiv ;
        pdiv = document.getElementById("CTScroll");
        if(pdiv==null)
        {
        return;
        }
        var CSS = 'html,body{ overflow:hidden; }';
        htmDiv = document.createElement('div');
        htmDiv.innerHTML = '<p>x</p><style>'+CSS+'</style>';
        pdiv.appendChild(htmDiv.childNodes[1]);
    }
function ct_show()
    {
        var oNodeToRemove = parent.document.getElementById("CTScroll");
        oNodeToRemove.innerHTML="";
	    oNodeToRemove.style.display="none";
    }
function refreshParent(cruiseid) {
if( self.parent.document.getElementById('zdiv') != null)
    {
    if(self.parent.document.getElementById('zdiv').style.display != 'none')
        {
        self.parent.location.href = "/Kreuzfahrt/" + cruiseid + ".html";
        self.parent.document.getElementById('zdiv').style.display = 'none';
        return;
        }
     }
    
  window.opener.location.href = "/Kreuzfahrt/" + cruiseid + ".html";
  if (window.opener.progressWindow)
		
 {
    window.opener.progressWindow.close()
  }
  window.close();
}
      
function openVesselWindow(vid)
{
    var url="/Vessel.aspx?id=" + vid ;
   window.open(url,"vessel","height=675,width=824,left=100,top=0,status=yes,toolbar=no,scrollbars =yes,menubar=no,location=no");
   
}
      
 function openGeneralDisclamierWindow()
{ 

    var url="/GeneralDisclamer.htm" ;
    window.open(url,"Disclaimer","height=675,width=850,left=100,top=0,status=yes,toolbar=no,scrollbars =yes,menubar=no,location=no");
      
}


