﻿var popup;var calendarData={'short_days':['So','Mo','Di','Mi','Do','Fr','Sa'],'short_month':['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez']}
var isDetails=0
var plotPoints=""
var plotPlaces=""
function initialize()
{if(GBrowserIsCompatible())
{var canvas=document.getElementById("CTmap_canvas");if(canvas!=null)
{var map=new GMap2(document.getElementById("CTmap_canvas"));map.setCenter(new GLatLng(4.5259614,-7.2551187),1);map.addControl(new GLargeMapControl());map.addControl(new GMapTypeControl());if(isDetails==1)
{var pp=plotPoints.split(";");var place=plotPlaces.split(";");for(var i=0;i<pp.length-1;i++)
{var point=pp[i].split("|");var marker=new PdMarker(new GLatLng(point[0].replace(',','.'),point[1].replace(',','.')));marker.setTooltip(place[i]);GIcon.shadow=null;map.addOverlay(marker);}}
map.zoomToMarkers();}}}
function plot(points,places)
{isDetails=1;plotPoints=points;plotPlaces=places;}
function ct_hide()
{var htmDiv;pdiv=document.getElementById("CTScroll");var CSS='html,body{ overflow:hidden; }';htmDiv=document.createElement('div');htmDiv.innerHTML='<p>x</p><style type="text/javascript">'+CSS+'</style>';pdiv.appendChild(htmDiv.childNodes[1]);}
function setCookie()
{try
{var ctQuery=""+window.location+"";var ctPairs=ctQuery.split("/");var queryval=new Array();if(ctPairs.length>6)
{if((ctPairs[3]=='se')&&(ctPairs[5]=='k'))
{queryval[0]=ctPairs[4];queryval[1]=ctPairs[6];}}
if(queryval.length==2)
{var date=new Date();date.setTime(date.getTime()+(5*24*60*60*1000));var expires="; expires="+date.toGMTString();document.cookie="AdwordEngine="+queryval[0]+expires+"; path=/";document.cookie="AdwordKeys="+queryval[1]+expires+"; path=/";}}
catch(e)
{}}
function LoadPage(title,h,w)
{document.getElementById('zdiv').style.display="block";
var myScreenHeight=screen.height;var myScreenWidth=screen.width;var divInfos=document.getElementById('zdiv');divInfos.style.height=h+15+'px';divInfos.style.position='fixed';divInfos.style.top='5%';divInfos.style.left='15%';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 LoadPageQuote(title,h,w)
{var myScreenHeight=screen.height;var myScreenWidth=screen.width;var divInfos=document.getElementById('zdiv');divInfos.style.height=h+15+'px';divInfos.style.position='fixed';divInfos.style.top='5%';divInfos.style.left='15%';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 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 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_hideParent()
{var htmDiv;pdiv=parent.document.getElementById("CTScroll");if(pdiv==null)
{return;}
var CSS='html,body{ overflow:hidden; }';htmDiv=parent.document.createElement('div');htmDiv.innerHTML='<p>x</p><style>'+CSS+'</style>';pdiv.appendChild(htmDiv.childNodes[1]);}
function CloseDivZ()
{try
{parent.$find('CTModalPopupBehavior').hide();}
catch(ex)
{parent.$find('CTModalPopupBehavior_VerNew').hide();}
var Frameinfos=parent.document.getElementById('frameInfos');Frameinfos.src='about:blank';}
function CloseDivDeck()
{parent.parent.$find('CTDeckPopupBehavior1').hide();var Frameinfos=parent.parent.document.getElementById('frmDeck1');Frameinfos.src='about:blank';}
function ct_show()
{var oNodeToRemove=parent.document.getElementById("CTScroll");if(oNodeToRemove==null)
{return;}
oNodeToRemove.innerHTML="";oNodeToRemove.style.display="none";}
function ct_showParent()
{var oNodeToRemove=parent.parent.document.getElementById("CTScroll");oNodeToRemove.innerHTML="";oNodeToRemove.style.display="none";}
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';}
