
var a2a_num_services=8,
a2a_prioritize=["facebook","hyves","myspace","netlog","twitter","windows_live_spaces"],
a2a_orientation="up",
a2a_track_links="ga",
WaterMark="";
$(function()
{
if($("input[id$=txtEmail]").length>0)
{
WaterMark=$("input[id$=txtEmail]").val();
$("input[id$=txtEmail]").focus(function()
{
$(this).val()==WaterMark&&
$(this).val("")
}).blur(function()
{
$(this).val()==""&&
$(this).val(WaterMark)
}).keydown(function(a)
{
a.keyCode==13&&
RedirectToNewsletter()
});
$("input[id$=btnEmail]").click(function()
{
RedirectToNewsletter()
})
}
if($(".scroll").length>0)
{
$(".scroll").removeClass("hidden");
$(".scroll").css("overflow","auto");
$(".scroll").css("padding-right","0");
$(".scroll").jScrollPane({showArrows:true,scrollbarWidth:15,wheelSpeed:25})
}
});
function RedirectToNewsletter()
{
var a=$("input[id$=txtEmail]").val();
if(a==WaterMark)
a="";
if(a!="")
{
var b=NewsletterUrl.replace(/&amp;/g,"&")+"?email="+encodeURIComponent(a);
document.location.href=b
}
}
function PrepareSlideShow(b,a,c)
{
if(a==null)
a="#background";
$(a).css("background-image","url("+b[0].src+")");
b.length>1&&
$(function()
{
$(a).crossSlide({sleep:c,fade:1},b)
})
}
function PrepareBox()
{
$(document).ready(function()
{
$("#box").animate({opacity:"1"},300);
$("#innerbox").show();
$("#box").dropShadow({left:4,top:4,opacity:.4,blur:4});
$("#box").click(function()
{
$("#box").animate({opacity:"0"},500,function()
{
$("#box").hide();
$("#innerbox").hide();
$(".dropShadow").hide()
})
})
})
}
function MM_swapImgRestore()
{
for(var a,
b=document.MM_sr,
c=0;b&&c<b.length&&(a=b[c])&&a.oSrc;c++)
a.src=a.oSrc
}
function MM_preloadImages()
{
var a=document;
if(a.images)
{
if(!a.MM_p)
a.MM_p=[];
for(var d=a.MM_p.length,
c=MM_preloadImages.arguments,
b=0;b<c.length;b++)
if(c[b].indexOf("#")!=0)
{
a.MM_p[d]=new Image;
a.MM_p[d++].src=c[b]
}
}
}
function MM_findObj(b,a)
{
var e,
d,
c;
if(!a)
a=document;
if((e=b.indexOf("?"))>0&&parent.frames.length)
{
a=parent.frames[b.substring(e+1)].document;
b=b.substring(0,e)
}
if(!(c=a[b])&&a.all)
c=a.all[b];
for(d=0;!c&&d<a.forms.length;d++)
c=a.forms[d][b];
for(d=0;!c&&a.layers&&d<a.layers.length;d++)
c=MM_findObj(b,a.layers[d].document);
if(!c&&a.getElementById)
c=a.getElementById(b);
return c
}
function MM_swapImage()
{
var b,
d=0,
a,
c=MM_swapImage.arguments;
document.MM_sr=[];
for(b=0;b<c.length-2;b+=3)
if((a=MM_findObj(c[b]))!=null)
{
document.MM_sr[d++]=a;
if(!a.oSrc)
a.oSrc=a.src;
a.src=c[b+2]
}
}
function P7_HScroller(p,g,f,q,h)
{
var a,
j,
i,
e,
m="",
c=true,
o=false,
d,
n,
k,
l;
f=parseInt(f);
if((a=MM_findObj(p))!=null)
j=document.layers?a:a.style;
else
return;
if(g=="Stop")
{
a.toMove&&
clearTimeout(a.p7Magic);
a.toMove=false
}
if((parseInt(navigator.appVersion)>4||navigator.userAgent.indexOf("MSIE")>-1)&&!window.opera)
m="px";
if(navigator.userAgent.indexOf("NT")>-1||navigator.userAgent.indexOf("Windows 2000")>-1)
c=false;
if(h=="Slow")
{
e=c?2:1;
i=c?40:30
}
else
if(h=="Medium")
{
e=c?4:1;
i=c?40:10
}
else
{
e=c?8:4;
i=c?40:10
}
if(h=="Warp")
e=5e3;
var b=parseInt(j.left);
if(isNaN(b))
if(a.currentStyle)
b=parseInt(a.currentStyle.left);
else
if(document.defaultView&&document.defaultView.getComputedStyle)
b=parseInt(document.defaultView.getComputedStyle(a,"").getPropertyValue("left"));
else
b=0;
if(document.all||document.getElementById)
{
d=parseInt(a.offsetWidth);
if(!d)
d=parseInt(a.style.pixelWidth);
if(a.hasChildNodes)
for(wx=0;wx<a.childNodes.length;wx++)
{
n=parseInt(a.childNodes[wx].offsetWidth);
if(n>d)
d=n
}
}
else
if(document.layers)
d=parseInt(a.clip.width);
k=f-d+parseInt(q);
l=f;
if(g=="Right")
if(b>k)
{
o=true;
b-=e;
if(b<k)
b=k
}
if(g=="Left")
if(b<l)
{
o=true;
b+=e;
if(b>l)
b=l
}
if(g=="Reset")
{
j.left=f+m;
a.toMove&&
clearTimeout(a.p7Magic);
a.toMove=false
}
if(o)
{
j.left=b+m;
a.toMove&&
clearTimeout(a.p7Magic);
a.toMove=true;
eval("g.p7Magic=setTimeout(\"P7_HScroller('"+p+"','"+g+"',"+f+","+q+",'"+h+"')\","+i+")")
}
else
a.toMove=false
}
function FadeImage(b,a)
{
if($("#"+b).attr("src")==a.src)
return;
var c=new Image;
c.src=a.src;
$("#"+b).fadeTo("fast",.1,function()
{
$(this).attr("src",a.src).fadeTo("fast",1)
})
}
function popUpMappoint(d,c,a)
{
var b=window.open(d,"popup","toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width="+c+",height="+a+",left=10,top=10");
b.focus()
}
function addBookmark(e,d)
{
var b=e,
a=d,
c="Sorry, only Mozilla Firefox and Internet Explorer support this method to add a bookmark/favourite\n But please feel free to visit the site's home page to add a bookmark manually";
if(window.sidebar)
window.sidebar.addPanel(a,b,"");
else
if(document.all)
window.external.AddFavorite(b,a);
else
alert(c)
}
function MM_swapImage()
{
var b,
d=0,
a,
c=MM_swapImage.arguments;
document.MM_sr=[];
for(b=0;b<c.length-2;b+=3)
if((a=MM_findObj(c[b]))!=null)
{
document.MM_sr[d++]=a;
if(!a.oSrc)
a.oSrc=a.src;
a.src=c[b+2]
}
}
function mywindowopen(b,d,c)
{
var a=window.open(b,"mywindo","toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width="+d+",height="+c);
a.focus()
}
var prevShownElement="";
function showElement(a)
{
if(prevShownElement!="")
{
pr=MM_findObj(prevShownElement);
pr.style.display="none"
}
if(a!="")
{
nw=MM_findObj(a);
nw.style.display="inline"
}
prevShownElement=a
}
function openMagazine(b)
{
var a=window.open(b,"_blank","left=10,top=10,toolbar=0,menubar=0,scrollbars=1,status=0,location=0,width=960,height=700");
if(a==null)
alert("Please turn off your popup-blocker");
else
a.focus()
}
function InsertFlvMovie(a)
{
AC_FL_RunContent("codebase","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0","width","478","height","288","wmode","transparent","id","FLVPlayer","src","/resources/flv_movies/FLVPlayer_Progressive","flashvars","&MM_ComponentVersion=1&skinName=/resources/flv_movies/intense_skin&streamName="+a+"&autoPlay=true&autoRewind=true","quality","high","scale","noscale","name","FLVPlayer","salign","lt","pluginspage","/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash","movie","/resources/flv_movies/FLVPlayer_Progressive")
}
function EndRequestHandlerShops()
{
document.body.style.cursor="default";
try
{
pageTrackerSDE._trackPageview();
pageTrackerVDV._trackPageview()
}
catch(c)
{
}
}
function InitializeRequestShops()
{
document.body.style.cursor="wait"
}
function EndRequestHandlerShopsIntense(a,b)
{
EndRequestHandlerShops(a,b);
$("[id$=lstCountries]").selectbox({debug:true})
}
function StartStoreSearch()
{
if($("input[id*=txtGemeente]").length==0)
$("input[id*=btnSearch]").click();
else
{
var a=$("span[id*=lblSelectedCountry]").html(),
c=$("input[id*=txtGemeente]").val(),
b=$("input[id*=txtPostcode]").val();
GetCoordinateAsync(b+" "+c+", "+a)
}
return false
}
function GetCoordinateAsync(a)
{
var b=new GClientGeocoder;
b.getLatLng(a,function(b)
{
if(!b)
{
alert(a+" not found");
return false
}
else
{
$("input[id*=hidLat]").val(b.lat());
$("input[id*=hidLng]").val(b.lng());
$("input[id*=btnSearch]").click()
}
})
}
function ShowPopupLayer()
{
$("#PopupLayer").fadeIn();
$("#PopupClose").click(function()
{
ClosePopupLayer()
})
}
function ClosePopupLayer()
{
$("#PopupLayer").fadeOut("fast",function()
{
$("#PopupModal").fadeOut()
})
}