
/* 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 -
 */

/* - search.js - */
// http://www.fleuve-charente.net/portal_javascripts/search.js?original=1
if(!applesearch) var applesearch={};applesearch.init=function(){if(navigator.userAgent.toLowerCase().indexOf('safari')<0&&document.getElementById){this.clearBtn=false;var dummy=document.getElementById("dummy_css");if(dummy) dummy.href="applesearch.css"}}
applesearch.onChange=function(fldID,btnID){var fld=document.getElementById(fldID);var btn=document.getElementById(btnID);if(fld.value.length>0&&!this.clearBtn){btn.className="sbox_r_f2";btn.fldID=fldID;btn.onclick=this.clearBtnClick;this.clearBtn=true} else if(fld.value.length==0&&this.clearBtn){btn.className="sbox_r";btn.onclick=null;this.clearBtn=false}}
applesearch.clearFld=function(fldID,btnID){var fld=document.getElementById(fldID);fld.value="";this.onChange(fldID,btnID)}
applesearch.clearBtnClick=function(){applesearch.clearFld(this.fldID,this.id)}


/* - menu.js - */
// http://www.fleuve-charente.net/portal_javascripts/menu.js?original=1
sfHover=function(){var i=1;var menu=document.getElementById("menu"+i);while(menu){menu.onmouseover=function(){var id=1;var menu=document.getElementById("menu"+id);var ssmenu='';while(menu){ssmenu=document.getElementById("ssmenu"+id);if(ssmenu){if(menu.id==this.id){ssmenu.style.visibility='visible';selectedMenu=ssmenu}else
ssmenu.style.visibility='hidden'}
id++;menu=document.getElementById("menu"+id)}}
menu.onmouseout=function(){selectedMenu.style.visibility="hidden"};mwidth=menu.offsetWidth;my=menu.offsetHeight;var ssMenu=document.getElementById("ssmenu"+i);if(ssMenu!=null){with(ssMenu.style){width=mwidth+"px"}
ssMenu.onmouseout=function(){this.style.visibility="hidden"}}
i++;menu=document.getElementById("menu"+i)}}
function togglePortletContent(imgUrl,portletId){var content=document.getElementById(portletId+'-content');var image=document.getElementById(portletId+'-image');var position='';if(content!=null&&image!=null){toggle(content);if(image.src==imgUrl+'Fold.gif'){image.src=imgUrl+'Unfold.gif';position='block'}
else{image.src=imgUrl+'Fold.gif';position='none'}}
return false}
function toggle(obj){try{var view=obj.style.display;if(obj){if(view!="none"){obj.style.display="none"}else{obj.style.display="block"}}}catch(e){}}
function restorePortletContent(imgName,portletId){var content=document.getElementById(portletId+'-content');if(content!=null){togglePortletContent(imgName,portletId)}}

