﻿function flashClickHandler(TargetUrl)
{self.location=TargetUrl;}
function openGeneralDisclamierWindow()
{var url="GeneralDisclamer.htm";winNew=window.open(url,"Disclaimer","height=675,width=850,left=50,top=0,status=yes,toolbar=no,scrollbars=yes,menubar=no,location=no");winNew.focus();}
function openExcursionsWindow(cid,sid)
{var url="/Excursion.aspx?sid="+sid+"&cid="+cid;winNew=window.open(url,"Excursion","height=600,width=660,left=0,top=0,status=no,scrollbars =yes,menubar=no,location=no,toolbar=no");winNew.focus();}
function BackToStyleTeaser(Divid)
{document.getElementById(Divid).style.background="none";document.getElementById(Divid).style.cssText="teaser-box";}
function openPriceCalenderWindow(cid)
{var url="/CruisePrices.aspx?id="+cid;winNew=window.open(url,"CruisePrice","height=500,width=205,left=0,top=0,status=yes,toolbar=no,scrollbars =yes,menubar=no,location=no");winNew.focus();}
function openCabinCategoryWindow(catid,vid)
{var url="/CabinType.aspx?catid="+catid+"&vid="+vid;winNew=window.open(url,"CabinCategory","height=320,width=640,left=0,top=0,status=yes,toolbar=no,scrollbars =yes,menubar=no,location=no");winNew.focus();}
function openVesselWindow(vid,dec)
{var url="/Vessel.aspx?id="+vid;if(dec==1)
{url=url+"&dec=1";}
winNew=window.open(url,"Vessel","height=675,width=824,left=100,top=0,status=yes,toolbar=no,scrollbars =yes,menubar=no,location=no");winNew.focus();}
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 openQuoteWindow(cid,kid)
{var url="/QuoteClear.aspx?cls=1&cid="+cid+"&katid="+kid;winNew=window.open(url,"Quote","height=600,width=1000,left=100,top=0,status=yes,toolbar=no,scrollbars =yes,menubar=no,location=no");winNew.focus();}
function openCallBackWindow(cid)
{var url="/Callback.aspx?cid="+cid;winNew=window.open(url,"CallBack","height=500,width=700,left=100,top=0,status=yes,toolbar=no,scrollbars =yes,menubar=no,location=no");winNew.focus();}
function openBusTransferWindow(cid)
{var url=""+cid;winNew=window.open(url,"BusTransfer","height=675,width=850,left=100,top=0,status=yes,toolbar=no,scrollbars =yes,menubar=no,location=no");winNew.focus();}
function openCruiseListWindow(cid)
{var url="/RegionCruiseList.aspx?sort=MON&cid="+cid;winNew=window.open(url,"RegionList","height=650,width=850,left=100,top=0,status=yes,toolbar=no,scrollbars =yes,menubar=no,location=no");winNew.focus();}
function openWindow(node,param)
{var newWindow,newWindow1,newWindow2;if(node=="about")
{window.open("cruisetour_info.htm","about","height=675,width=850,left=100,top=0,status=yes,toolbar=no,scrollbars =yes,menubar=no,location=no");}
else if(node=="callback")
{var url="/Callback.aspx?cid="+param
window.open(url,"callback","height=500,width=700,left=100,top=0,status=yes,toolbar=no,scrollbars =yes,menubar=no,location=no");}
else if(node=="catalog")
{window.open("/Contacts.aspx","catalog","height=675,width=850,left=100,top=0,status=yes,toolbar=no,scrollbars =yes,menubar=no,location=no");}}
function slow(ele)
{ele.scrollAmount=0;}
function fast(ele)
{ele.scrollAmount=3;}
function LoadPageDetail(title,h,w)
{var divInfos=document.getElementById('zdiv');divInfos.style.height=h+15+'px';var Frameinfos=document.getElementById('frameInfos');Frameinfos.style.height=h+'px';Frameinfos.src=title;try
{popup=$find('CTModalPopupBehavior');popup.show();}
catch(ex)
{popup=$find('CTModalPopupBehavior_VerNew');popup.show();}
return false;}
function LoadPageDetailPopupUrl(title,h,w,url)
{var divInfos=document.getElementById('zdiv');divInfos.style.height=h+15+'px';var Frameinfos=document.getElementById('frameInfos');Frameinfos.style.height=h+'px';Frameinfos.src='/UrlLoader.aspx?UrlData='+url+'';try
{popup=$find('CTModalPopupBehavior');popup.show();}
catch(ex)
{popup=$find('CTModalPopupBehavior_VerNew');popup.show();}
return false;}
function LoadPageDetailMissing(title,h,w)
{var divInfos=document.getElementById('zdivMissing');divInfos.style.height=h+15+'px';var Frameinfos=document.getElementById('frameInfosMissing');Frameinfos.style.height=h+'px';Frameinfos.src=title;popup=$find('CTModalPopupBehaviorMissing');popup.show();return false;}
function LoadPageDetailFromResult(title,h,w)
{var divInfos=document.getElementById('zdiv');divInfos.style.height=h+15+'px';var Frameinfos=document.getElementById('frameInfos');Frameinfos.style.height=h+'px';Frameinfos.style.width=w+'px';Frameinfos.src=title;try
{popup=$find('CTModalPopupBehavior');popup.show();}
catch(ex)
{popup=$find('CTModalPopupBehavior_VerNew');popup.show();}
return false;}
function LoadPageDetailFromQuote(title,h,w)
{var divInfos=document.getElementById('zdiv');divInfos.style.height=h+15+'px';var Frameinfos=document.getElementById('frameInfos');Frameinfos.style.height=h+'px';Frameinfos.style.width=w+'px';Frameinfos.src=title;try
{popup=$find('CTModalPopupBehavior');popup.show();}
catch(ex)
{popup=$find('CTModalPopupBehavior_VerNew');popup.show();}
return false;}
function LoadPageDetailFromMissing(title,h,w)
{var Frameinfos=document.getElementById('frameInfosMissing');Frameinfos.style.height=h+'px';Frameinfos.style.width=w+'px';Frameinfos.src=title;popup=$find('CTModalPopupBehaviorMissing');popup.show();return false;}
function CloseDivZ()
{if(parent.$find('CTModalPopupBehavior_VerNew')!=null)
{parent.$find('CTModalPopupBehavior_VerNew').hide();}
if(parent.$find('CTModalPopupBehavior')!=null)
{parent.$find('CTModalPopupBehavior').hide();}
if(parent.$find('CTModalPopupBehaviorMissing')!=null)
{parent.$find('CTModalPopupBehaviorMissing').hide();}
if(parent.document.getElementById('frameInfos')!=null)
{var Frameinfos=parent.document.getElementById('frameInfos');Frameinfos.src='about:blank';}
if(parent.document.getElementById('frameInfosMissing')!=null)
{var FrameinfosMissing=parent.document.getElementById('frameInfosMissing');FrameinfosMissing.src='about:blank';}
if(parent.$find('CTVesselPopupBehavior')!=null)
{parent.$find('CTVesselPopupBehavior').hide();}
if(parent.document.getElementById('frameVessel')!=null)
{var FrameVessel=parent.document.getElementById('frameVessel');FrameVessel.src='about:blank';}
if(parent.$find('CTVesselPopupBehaviorSchiffe')!=null)
{parent.$find('CTVesselPopupBehaviorSchiffe').hide();}
if(parent.document.getElementById('frameVesselSchiffe')!=null)
{var FrameVessel=parent.document.getElementById('frameVesselSchiffe');FrameVessel.src='about:blank';}}
function LoadCabinCategoryWindow(catid,vid)
{var divInfos=document.getElementById('zdiv');divInfos.style.overflow='hidden';divInfos.style.height=350+'px';var Frameinfos=document.getElementById('frameInfos');Frameinfos.style.height=350+'px';Frameinfos.src="/CabinType.aspx?catid="+catid+"&vid="+vid;try
{popup=$find('CTModalPopupBehavior');popup.show();}
catch(ex)
{popup=$find('CTModalPopupBehavior_VerNew');popup.show();}
return false;}
function LoadQuoteWindow(cid,kid,pid)
{var divInfos=document.getElementById('zdiv');divInfos.style.overflow='hidden';divInfos.style.height=650+'px';var Frameinfos=document.getElementById('frameInfos');Frameinfos.style.height=650+'px';Frameinfos.src="/QuoteClear.aspx?cls=1&cid="+cid+"&katid="+kid+"&pid="+pid;try
{popup=$find('CTModalPopupBehavior');popup.show();}
catch(ex)
{popup=$find('CTModalPopupBehavior_VerNew');popup.show();}
return false;}
function ct_show()
{var oNodeToRemove=parent.document.getElementById("CTScroll");oNodeToRemove.innerHTML="";oNodeToRemove.style.display="none";}
function showNotes(noteString,e)
{var posx=0;var posy=0;e=(window.event)?window.event:e;posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop;var finalString="";finalString+=noteString
document.getElementById("divNote").innerHTML=finalString;document.getElementById("divNote").style.visibility="visible";document.getElementById("divNote").style.top=posy+"px";document.getElementById("divNote").style.left=posx+"px";var Result=finalString.length/70;if(finalString.length<30)
{document.getElementById("divNote").style.width="200px";}
else
{document.getElementById("divNote").style.width="400px";}
Result=(Result*15)+5;document.getElementById("divNote").style.height=Result+"px";}
function HideNotes()
{document.getElementById("divNote").innerHTML="";document.getElementById("divNote").style.visibility="hidden";}
function showTip(e,text)
{e=(e==null)?window.event:e;target=(e.target)?e.target:e.srcElement;document.getElementById('text').innerHTML=text;document.getElementById('tooltip').style.left=target.offsetLeft+10+'px';document.getElementById('tooltip').style.top=target.offsetTop+20+'px';document.getElementById('tooltip').style.display='block';document.getElementById('ctl00_CT_ContentPlaceHoder_gvDailyPrograms_ctl10_lblHtmlText').style.display='none'
target.onmouseout=function()
{document.getElementById('tooltip').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 openNewWindow(URLtoOpen,windowName,windowFeatures)
{var popup=parent.$find('CTDeckPopupBehavior1');var divInfos=parent.document.getElementById('divDeck1');var Frameinfos=parent.document.getElementById('frmDeck1');var req=new XMLHttpRequest();req.open("GET","/GetImageWidth.aspx?m="+Math.random()+"&FileName="+URLtoOpen,true);req.onreadystatechange=function()
{if(req.readyState==4)
{var HightWidth=req.responseText;var Dimension=HightWidth.split(":");var popupWidth=parseFloat(Dimension[1])+10;if(popupWidth>875)
popupWidth=875;if(popupWidth<260)
popupWidth=260;divInfos.style.height=800+'px';try
{divInfos.style.width=popupWidth+'px';}
catch(ex)
{divInfos.style.width='260px';}
divInfos.style.position='fixed';divInfos.style.top='5%';divInfos.style.left='20%';divInfos.style.right='5%';divInfos.style.bottom='5%';Frameinfos.style.height=800+'px';try
{Frameinfos.style.width=popupWidth+'px';}
catch(ex)
{Frameinfos.style.width='260px';}}}
req.send(null);Frameinfos.src='/Deck.aspx?sr='+URLtoOpen;popup.show();}
function LoadVesselPage(title,h,w)
{var divInfos=document.getElementById('divVessel');divInfos.style.height=h+15+'px';var Frameinfos=document.getElementById('frameVessel');Frameinfos.style.height=h+'px';Frameinfos.src=title;popup=$find('CTVesselPopupBehavior');popup.show();return false;}
function LoadVesselPageSchiffe(title,h,w)
{var divInfos=document.getElementById('divVesselSchiffe');divInfos.style.height=h+15+'px';var Frameinfos=document.getElementById('frameVesselSchiffe');Frameinfos.style.height=h+'px';Frameinfos.src=title;popup=$find('CTVesselPopupBehaviorSchiffe');popup.show();return false;}
function CloseDivZFrench()
{var Frameinfos=parent.document.getElementById('frameInfos');Frameinfos.src='/Loading.htm';var divInfos1=parent.document.getElementById('load');divInfos1.style.position='';divInfos1.style.width='';parent.document.getElementById('MaskedDiv').style.display='none';parent.document.getElementById('ModalPopupDiv').style.display='none';}
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 openExternelWindow(ctUrl,ctWidth,ctHeight)
{try
{if(ctHeight=='0')
{ctHeight='500';}
if(ctWidth=='0')
{ctWidth='600';}
var left=(screen.width-ctWidth)/2;var top=(screen.height-ctHeight)/2;var params='width='+ctWidth+', height='+ctHeight;params+=', top='+top+', left='+left;params+=', directories=no';params+=', location=no';params+=', menubar=no';params+=', resizable=yes';params+=', scrollbars=yes';params+=', status=no';params+=', toolbar=no';window.open('http://'+ctUrl,null,params);}
catch(ex)
{}}
function CheckDirectWebCode(result,context)
{if(result=="C0"||result=="R0")
{ct_hide();return LoadPageDetailMissing('/MissingCruise.aspx',200,875);}
else if(result.substring(0,1)=="C")
{window.location="/Kreuzfahrt/"+result.substring(1)+".html";}
else if(result.substring(0,1)=="R")
{window.location="/Route/"+result.substring(1)+".html"}
else if(document.getElementById("ctl00_CT_ContentPlaceHoder_txtOfferNumber").value=="")
{}
else
{alert(document.getElementById('divDirectWebCodeMessageInvalid').firstChild.nodeValue);}}
function Validate()
{var req=new XMLHttpRequest();req.open("GET","/Angebot/Inline/"+document.getElementById("ctl00_CT_ContentPlaceHoder_txtOfferNumber").value+".html",true);req.onreadystatechange=function()
{if(req.readyState==4)
{if(req.responseText=="C0"||req.responseText=="R0")
{ct_hide();return LoadPageDetailMissing('/MissingCruise.aspx',200,875);}
else if(req.responseText.substring(0,1)=="C")
{window.location="/Kreuzfahrt/"+req.responseText.substring(1)+".html";}
else if(req.responseText.substring(0,1)=="R")
{window.location="ResultList.aspx?rc="+req.responseText.substring(1);}
else if(document.getElementById("ctl00_CT_ContentPlaceHoder_txtOfferNumber").value=="")
{}
else
{alert(document.getElementById('divDirectWebCodeMessageInvalid').firstChild.nodeValue);}}}
req.send(null);}
function getCookie(c_name)
{if(document.cookie.length>0)
{c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1)
{c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}
return"";}
function moveoutid()
{var sda=document.getElementById('xxx');var len=sda.length;var sda1=document.getElementById('yyy');for(var j=0;j<len;j++)
{if(sda[j].selected)
{var tmp=sda.options[j].text;var tmp1=sda.options[j].value;sda.remove(j);j--;var y=document.createElement('option');y.text=tmp;try
{sda1.add(y,null);}
catch(ex)
{sda1.add(y);}}}}
try
{
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
}
catch(e)
{
}
function EndRequestHandler(sender,args)
{try
{var dropDownID='ctl00$CT_ContentPlaceHoder$drdnSchiff';var isTop=document.getElementById('ctl00_CT_ContentPlaceHoder_hidIsTop').value;if(sender._postBackSettings.panelID.indexOf(dropDownID)>=0)
{if(isTop=="1")
document.getElementsByTagName("body")[0].style.background='url(images/layout/body-bg-top.jpg) repeat-x top left #04386A';else
document.getElementsByTagName("body")[0].style.background='url(images/layout/body-bg.jpg) repeat-x top left #0286cb';}}
catch(Err)
{}}
var worlddiv=document.getElementById('CTWorldMap');function HideMap()
{try
{worlddiv.style.visibility='hidden';}
catch(Err)
{}}
function ShowMap()
{try
{worlddiv.style.visibility='visible';}
catch(Err)
{}}
