var _gaq=[['_setAccount','UA-17583341-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)})(document,'script');(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;g.src='//static.getclicky.com/8951.js';s.parentNode.insertBefore(g,s)})(document,'script');var timer={};var YMAP=YMAP||{};jQuery(function($){var oMainmenu={};$('.email').each(function(){var aParts=$(this).html().match(/\w+/g);var sAddress=aParts[0]+'@'+aParts[1]+'.'+aParts[2];$(this).html('<a href="mailto:'+sAddress+'">'+sAddress+'</a>');});(function(){var $aSections=$('#page-index section'),nSteps=$aSections.length;var colorS={r:0,g:0,b:0};var colorE={r:0x8c,g:0xa7,b:0xc1};$('#page-index section').each(function(){if(colorS.r<colorE.r){colorS.r+=(colorE.r/nSteps);colorS.g+=(colorE.g/nSteps);colorS.b+=(colorE.b/nSteps);}
this.style.color='rgb('+Math.floor(colorS.r)+','+Math.floor(colorS.g)+','+Math.floor(colorS.b)+')';});})();if($(document).width()>640){oMainmenu.fShowHint=function(){window.clearTimeout(timer.activeMenu);var $objImg=$('#teaser-img');var iSpeed=$(this).hasClass('active')?0:400;$objImg.parent().css('backgroundImage',$objImg.css('backgroundImage'));$objImg.hide().css({backgroundImage:'url('+this.imageUrl+')'}).fadeIn(iSpeed);if(typeof(oMainmenu.hints)=='object'&&typeof(oMainmenu.hints[this.id])!='undefined'){$('#teaser-txt p').html(oMainmenu.hints[this.id]);}};oMainmenu.lastXhr=$.getJSON('/js/menu.json.php',function(data,status,xhr){if(xhr===oMainmenu.lastXhr){oMainmenu.hints=data;$('#menu a.active').mouseover();$('#menu a:not(.active)').mouseout(function(){timer.activeMenu=window.setTimeout('$("#menu a.active").mouseover();',1000)});}});$('#menu a').each(function(){this.imageUrl='/images/teaser-'+this.id+'.jpg';$('<img />').attr('src',this.imageUrl);}).mouseover(oMainmenu.fShowHint);}
$('#column-right .more').each(function(){var $this=$(this);var $a=$('<a class="showmore showmbtn"><img src="images/btn-close.gif" alt="Sluiten" /></a>').attr('href','#'+this.id.substring(5));$this.prepend($a);$a.wrap('<div class="divTop" />');$this.hide();this.a=$('a-'+this.id.substring(5));});$('#column-container a.showmore').click(function(event){event.preventDefault();var sId=this.hash.substring(1);$('#more-'+sId).slideToggle();$('#a-'+sId).fadeToggle();});$('#languages a').click(function(event){event.preventDefault();$('div.intro').hide();$(this.hash).show();$(this).css({color:'#105baf'}).siblings().css({color:'#af5b10'});});$('#aRSS').click(function(event){event.preventDefault();location.href='http://feeds.feedburner.com/ylab';});if($('#page-contact').length){if(typeof(GMap2)=='function'&&GBrowserIsCompatible()){var gTopLeft=new GLatLng(52.085415,5.111036667);var gBottomRight=new GLatLng(52.090995,5.124896667);YMAP.goAndShow=function(event){event.preventDefault();m=$(this).attr('data-location');if(YMAP.gLatLong&&YMAP.gLatLong[m]){YMAP.gmap.panTo(YMAP.gLatLong[m]);if(YMAP.gHTML[m]){YMAP.gmap.openInfoWindowHtml(YMAP.gLatLong[m],YMAP.gHTML[m]);}}};YMAP.gLatLong={};YMAP.gLatLong['cs']=new GLatLng(52.090995,5.111036667);YMAP.gLatLong['dm']=new GLatLng(52.090680,5.12164);YMAP.gLatLong['ln66']=new GLatLng(52.085872,5.124693);YMAP.gLatLong['rijnsweerd']=new GLatLng(52.092296,5.161128);YMAP.gHTML={};YMAP.gHTML['cs']='<h3>Utrecht Centraal</h3><p>NS Station<br />Winkelcentrum Hoog Catharijne</p>';YMAP.gHTML['dm']='<h3>Domtoren</h3><p>Domplein 21, Utrecht</p>';YMAP.gHTML['ln66']='<h3>Ylab</h3><p>Lange Nieuwstraat 66<br />3512 PL Utrecht</p>';YMAP.gHTML['rijnsweerd']='<p>Knooppunt Rijnsweerd</p>';YMAP.gmap=new GMap2(document.getElementById('map'));YMAP.gmap.addControl(new GLargeMapControl());YMAP.gmap.setCenter(YMAP.gLatLong['ln66'],YMAP.gmap.getBoundsZoomLevel(new GLatLngBounds(gTopLeft,gBottomRight)));YMAP.gmap.openInfoWindowHtml(YMAP.gLatLong['ln66'],YMAP.gHTML['ln66']);$('window').unload(GUnload);$('a.mapper',$(this)).click(YMAP.goAndShow);}}});
