
/* Merged Plone Javascript file
 * This file is dynamically assembled from separate parts.
 * Some of these parts have 3rd party licenses or copyright information attached
 * Such information is valid for that section,
 * not for the entire composite file
 * originating files are separated by - filename.js -
 */

/* - hoverIntent.js - */
// http://www.zeelandia.fr/portal_javascripts/hoverIntent.js?original=1
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev])} else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout( function(){compare(ev,ob)},cfg.interval)}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev])};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode} catch(e){p=this}}
if(p==this){return false}
var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t)}
if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout( function(){compare(ev,ob)},cfg.interval)}} else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout( function(){delay(ev,ob)},cfg.timeout)}}};return this.mouseover(handleHover).mouseout(handleHover)}})(jQuery);

/* - zeelandia-javascripts.js - */
// http://www.zeelandia.fr/portal_javascripts/zeelandia-javascripts.js?original=1
function registerRollover(img,rollover_url){if(Element.hasClassName(img,'image-loaded')){return}
var preload=new Image();preload.src=rollover_url;img.normal_url=img.src;img.onmouseout=function(){img.src=img.normal_url};img.onmouseover=function(){img.src=rollover_url};img.addClassName('image-loaded')}
function MM_reloadPage(init){if(init==true) with(navigator){if((appName=="Netscape")&&(parseInt(appVersion)==4)){document.MM_pgW=innerWidth;document.MM_pgH=innerHeight;onresize=MM_reloadPage}}
else if(innerWidth!=document.MM_pgW||innerHeight!=document.MM_pgH) location.reload()}
MM_reloadPage(true);
function MM_findObj(n,d){var p,i,x;if(!d)
d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p)}
if(!(x=d[n])&&d.all)
x=d.all[n];for(i=0;!x&&i<d.forms.length;i++){x=d.forms[i][n]}
for(i=0;!x&&d.layers&&i<d.layers.length;i++){x=MM_findObj(n,d.layers[i].document)}
if(!x&&d.getElementById){x=d.getElementById(n)}
return x}
function set_style(el,name,value){var style=get_style(el);if(style){style[name]=value;return true}
return false}
function get_style(el){var obj=((typeof el=='object')?el:$(el));if(obj){if(obj.style){obj=obj.style}
return obj}
return false}
function get_style_val(el,name){var style=get_style(el);if(style){return style[name]}
return false}
function show_hide_value(obj,value){var style=get_style(obj);if(style){if(obj.style){var attrs={'show':'visible','hide':'hidden'};return attrs[value]}
return value}
return false}
function MM_showHideLayers(){var args=MM_showHideLayers.arguments;for(i=0;i<(args.length-2);i+=3){var obj=$(args[i]);if(obj){value=args[i+2];if(value=='show'){var elementlist=document.getElementsByClassName('vergrootfoto');for(el in elementlist){var the_val=show_hide_value(elementlist[el],'hide');set_style(elementlist[el],'visibility',the_val)}}
set_style(obj,'visibility',show_hide_value(obj,value))}}}
function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p) d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++)
if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i]}}}
function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc}
function MM_findObj(n,d){var p,i,x;if(!d) d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p)}
if(!(x=d[n])&&d.all) x=d.all[n];for(i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);if(!x&&d.getElementById) x=d.getElementById(n);return x}
function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)
if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc) x.oSrc=x.src;x.src=a[i+2]}}
var actiontabtimer=undefined;var actiontabcountdown=0;
function switchToNextActionTab(){if(actiontabcountdown>0){actiontabcountdown-=1;return}
var panels=$$('.front-page-panel');if(panels.length<2)
return;var index=selectedActionIndex();index+=1;if(index>=panels.length)
index=0;switchToTab('front-page-actions',panels[index])}
function setupActionTabTimer(){var actiontabbuttons=$$('.front-page-panel');if(actiontabbuttons.length<2)
return;actiontabtimer=new PeriodicalExecuter(switchToNextActionTab,4)}
Event.observe(window,'load',setupActionTabTimer);
function selectedActionIndex(){var actiontabbuttons=$$('.front-page-panel');for(var i=0;i<actiontabbuttons.length;i++){if(actiontabbuttons[i].hasClassName('selected')){return i}}}
function focusActionTab(tabid){actiontabcountdown=4;switchToTab('front-page-actions',tabid)}
function switchToTab(containerid,tabid){$A($(containerid).childNodes).each(function(element){if(element.nodeType!=3){element.hide();element.removeClassName('selected')}});$(tabid).addClassName('selected');$(tabid).show()}
function colorTableRows(){var tables=document.getElementsByTagName('table');for(var i=0;i<tables.length;i++){var table=tables[i];if(table.className.indexOf('odd-even')!=-1){var tBodies=table.tBodies;var odd=false;for(var j=0;j<tBodies.length;j++){var rows=tBodies[j].rows;for(var k=0;k<rows.length;k++){var className='even';if(odd){var className='odd'}
odd=!odd;rows[k].className=className}}}}}
Event.observe(window,'load',colorTableRows);
function setHome(elem,homeUrl){if(navigator.appName=="Microsoft Internet Explorer"){elem.style.behavior='url(#default#homepage)';elem.setHomePage(homeUrl)}}
function subSearch(form){var input=form.elements.q;input.name='tempq';var newinput=document.createElement('input');newinput.type='hidden';newinput.name='q';form.appendChild(newinput);newinput.value=input.value+form.elements.subsite.value;input.disabled=true;form.elements.subsite
return true}


/* - superfish.js - */
// http://www.zeelandia.fr/portal_javascripts/superfish.js?original=1
;(function($){$.fn.superfish=function(op){var sf=$.fn.superfish,c=sf.c,$arrow=$([''].join('')),over=function(){var $$=$(this),menu=getMenu($$);clearTimeout(menu.sfTimer);$$.showSuperfishUl().siblings().hideSuperfishUl()},out=function(){var $$=$(this),menu=getMenu($$),o=sf.op;clearTimeout(menu.sfTimer);menu.sfTimer=setTimeout(function(){o.retainPath=($.inArray($$[0],o.$path)>-1);$$.hideSuperfishUl();if(o.$path.length&&$$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path)}},o.delay)},getMenu=function($menu){var menu=$menu.parents(['ul.',c.menuClass,':first'].join(''))[0];sf.op=sf.o[menu.serial];return menu},addArrow=function($a){$a.addClass(c.anchorClass).append($arrow.clone())};return this.each(function(){var s=this.serial=sf.o.length;var o=$.extend({},sf.defaults,op);o.$path=$('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){$(this).addClass([o.hoverClass,c.bcClass].join(' ')).filter('li:has(ul)').removeClass(o.pathClass)});sf.o[s]=sf.op=o;$('li:has(ul)',this)[($.fn.hoverIntent&&!o.disableHI)?'hoverIntent':'hover'](over,out).each(function(){if(o.autoArrows) addArrow($('>a:first-child',this))}).not('.'+c.bcClass).hideSuperfishUl();var $a=$('a',this);$a.each(function(i){var $li=$a.eq(i).parents('li');$a.eq(i).focus(function(){over.call($li)}).blur(function(){out.call($li)})});o.onInit.call(this)}).each(function(){var menuClasses=[c.menuClass];if(sf.op.dropShadows&&!($.browser.msie&&$.browser.version<7)) menuClasses.push(c.shadowClass);$(this).addClass(menuClasses.join(' '))})};var sf=$.fn.superfish;sf.o=[];sf.op={};sf.IE7fix=function(){var o=sf.op;if($.browser.msie&&$.browser.version>6&&o.dropShadows&&o.animation.opacity!=undefined)
this.toggleClass(sf.c.shadowClass+'-off')};sf.c={bcClass:'sf-breadcrumb',menuClass:'sf-js-enabled',anchorClass:'sf-with-ul',arrowClass:'sf-sub-indicator',shadowClass:'sf-shadow'};sf.defaults={hoverClass:'sfHover',pathClass:'overideThisToUse',pathLevels:1,delay:800,animation:{opacity:'show'},speed:'fast',autoArrows:false,dropShadows:false,disableHI:false,onInit: function(){},onBeforeShow: function(){},onShow: function(){},onHide: function(){}};if($.browser.msie&&$.browser.version>=8){sf.defaults.speed=100}
$.fn.extend({hideSuperfishUl: function(){var o=sf.op,not=(o.retainPath===true)?o.$path:'';o.retainPath=false;var $ul=$(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass).find('>ul').hide().css('visibility','hidden');o.onHide.call($ul);return this},showSuperfishUl: function(){var o=sf.op,sh=sf.c.shadowClass+'-off',$ul=this.addClass(o.hoverClass).find('>ul:hidden').css('visibility','visible');sf.IE7fix.call($ul);o.onBeforeShow.call($ul);$ul.animate(o.animation,o.speed, function(){sf.IE7fix.call($ul);o.onShow.call($ul)});return this}})})(jQuery);

/* - superfish_init.js - */
// http://www.zeelandia.fr/portal_javascripts/superfish_init.js?original=1
jq(document).ready(function(){jq("ul.sf-menu").superfish()});

