var selectedThumb='';var defEle=0;jQuery(document).ready(function()
{if(document.getElementById("scroll_projects_list"))
jQuery('.scroll_projects_list').jScrollPane({showArrows:false});jQuery(".fotobook_thumb_img").click(function(){jQuery(this).addClass("selected");if(selectedThumb!='')
{jQuery("#"+selectedThumb).removeClass("selected");}
else
{jQuery("#mycarousel li img").eq(0).removeClass("selected");}
selectedThumb=this.id;curEle=jQuery("#mycarousel li img").index(this);jQuery(".fotobook_big_image").eq(defEle).hide();jQuery(".fotobook_big_image").eq(curEle).show();defEle=curEle;});if(document.getElementById("faq_list"))
{$('.question').click(function(){var checkElement=$(this).next();if(checkElement.is(':visible')){checkElement.slideUp('normal',function()
{if(document.getElementById("scroll_projects_list"))
jQuery('.scroll_projects_list').jScrollPane({showArrows:false});});}
else{$('.answer:visible').slideUp('normal');checkElement.slideDown('normal',function()
{if(document.getElementById("scroll_projects_list"))
{jQuery('.scroll_projects_list').jScrollPane({showArrows:false});}});}});}
today=new Date();var liveDate=new Date(today.getFullYear(),0,25);if(today.getMonth()==0&&today.getDate()>25)
liveDate.setFullYear(liveDate.getFullYear()+1);var one_day=1000*60*60*24;DiffDays=Math.ceil((liveDate.getTime()-today.getTime())/(one_day));if(document.getElementById("live_days"))
document.getElementById("live_days").innerHTML=DiffDays;if($(".fasering_page").length>0)
{$(".fasering_page a:eq(0)").addClass("light_selected");}});function showImage(imgval,catname)
{$(".inner_images:first .img_shadow img").attr("src","_images/content_editor/_frontend/"+imgval);$(".inner_images:first .img_shadow a").attr("href","_images/content_editor/_overlay/"+imgval);v=catname.split("Fase ");$(".fasering_page a").removeClass("light_selected");$(".fasering_page a:eq("+(v[1]-1)+")").addClass("light_selected");if(v[1]<13)
{$(".inner_images:first .img_shadow  div").removeClass("img_second_shadow");$(".inner_images:first .img_shadow a").html(catname+" <br/>klik hier<br /> voor vergroting");}
else
{$(".inner_images:first .img_shadow div").removeClass("img_second_shadow");$(".inner_images:first .img_shadow div").addClass("img_second_shadow");$(".inner_images:first .img_shadow a").html("klik hier<br /> voor vergroting");}}
function vIE(){return(navigator.appName=='Microsoft Internet Explorer')?parseFloat((new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})")).exec(navigator.userAgent)[1]):-1;}
if(vIE()==6)
{DD_belatedPNG.fix('.png');}
