
var menu_delay=800;var menu_delay_onmouseover=180;var menu_previous=new Array('','','');var menu_timeout=new Array(null,null,null);var menu_timeout_tmp=new Array(null,null,null);var menu_started=new Array(false,false,false);var max_level=3;var feed_menu_timeout_in=null;var feed_menu_timeout_out=null;var feed_menu_elt=null;function show_menu(idmenu,level)
{if(!menu_started[level])
menu_timeout_tmp[level]=setTimeout('temporise_menu(\''+idmenu+'\', '+level+')',menu_delay_onmouseover);else if(menu_previous[level]!=idmenu)
temporise_menu(idmenu,level);else
{if(menu_timeout[level])
clearTimeout(menu_timeout[level]);if(menu_timeout_tmp[level])
clearTimeout(menu_timeout_tmp[level]);}}
function temporise_menu(idmenu,level)
{var divID=str_repeat('s',level)+'smenu';var id=document.getElementById(divID+idmenu);if(menu_timeout[level])
clearTimeout(menu_timeout[level]);if(menu_timeout_tmp[level])
clearTimeout(menu_timeout_tmp[level]);if(document.getElementById(divID+menu_previous[level]))
{document.getElementById(divID+menu_previous[level]).style.visibility='hidden';menu_started[level]=false;for(var i=level;i<max_level;i++)
{var divID2=str_repeat('s',i)+'smenu';if(document.getElementById(divID2+menu_previous[i]))
document.getElementById(divID2+menu_previous[i]).style.visibility='hidden';}}
if(id)
{id.style.visibility='visible';menu_previous[level]=idmenu;menu_started[level]=true;}}
function hide_menu(level)
{for(var i=0;i<max_level;i++)
{if(menu_timeout_tmp[i]&&!menu_started[i])
clearTimeout(menu_timeout_tmp[i]);}
if(menu_started[level])
menu_timeout[level]=setTimeout('temporise_menu(\'\', '+level+')',menu_delay);}
function str_repeat(charrepeat,nbr)
{var string='';for(var i=0;i<nbr;i++)
string+=charrepeat;return string;}
function strpos(haystack,needle)
{var i=haystack.indexOf(needle,0);return i>=0?i:false;}
function bb_hide(div2)
{var divs=div2.getElementsByTagName('div');var div3=divs[0];if(div3.style.visibility=='visible')
{div3.style.visibility='hidden';div2.style.height='10px';}
else
{div3.style.visibility='visible';div2.style.height='auto';}
return true;}
function hide_div(divID,useEffects)
{var use_effects=false
if(arguments.length>1)
use_effects=useEffects;if(document.getElementById(divID))
{if(useEffects)Effect.SwitchOff(divID);document.getElementById(divID).style.display='none';}}
function show_div(divID,option,useEffects)
{var use_effects=false
if(arguments.length>2)
use_effects=useEffects;if(document.getElementById(divID))
{if(useEffects)Effect.Appear(divID,{duration:0.5});document.getElementById(divID).style.display='block';}}
function hide_inline(divID)
{if(document.getElementById(divID))
{Effect.SwitchOff(divID);document.getElementById(divID).style.visibility='hidden';}}
function show_inline(divID)
{if(document.getElementById(divID))
{Effect.Appear(divID,{duration:0.5});document.getElementById(divID).style.visibility='visible';}}
function change_img_path(id,path)
{if(document.getElementById(id))
document.getElementById(id).src=path;}
function switch_img(id,path,path2)
{if(document.getElementById(id))
{if(strpos(document.getElementById(id).src,path.replace(/\.\./g,''))!=false)
document.getElementById(id).src=path2;else
document.getElementById(id).src=path;}}
function display_div_auto(divID,type)
{if(document.getElementById(divID))
{if(type=='')
type='block';if(document.getElementById(divID).style.display==type)
{Effect.SwitchOff(divID);document.getElementById(divID).style.display='none';}
else if(document.getElementById(divID).style.display=='none')
document.getElementById(divID).style.display=type;}}
function popup(page,name)
{var screen_height=screen.height;var screen_width=screen.width;if(screen_height==600&&screen_width==800)
window.open(page,name,"width=250, height=200,location=no,status=no,toolbar=no,scrollbars=yes");else if(screen_height==768&&screen_width==1024)
window.open(page,name,"width=250, height=200,location=no,status=no,toolbar=no,scrollbars=yes");else if(screen_height==864&&screen_width==1152)
window.open(page,name,"width=250, height=200,location=no,status=no,toolbar=no,scrollbars=yes");else
window.open(page,name,"width=250, height=200,location=no,status=no,toolbar=no,scrollbars=yes");}
function inArray(aValue,anArray)
{for(var i=0;i<anArray.length;i++)
{if(anArray[i]==aValue)
return true;}
return false;}
function xmlhttprequest_init(filename)
{var xhr_object=null;if(window.XMLHttpRequest)
xhr_object=new XMLHttpRequest();else if(window.ActiveXObject)
xhr_object=new ActiveXObject("Microsoft.XMLHTTP");xhr_object.open('POST',filename,true);return xhr_object;}
function xmlhttprequest_sender(xhr_object,data)
{xhr_object.setRequestHeader('Content-type','application/x-www-form-urlencoded');xhr_object.send(data);}
function escape_xmlhttprequest(contents)
{contents=contents.replace(/\+/g,'%2B');contents=contents.replace(/&/g,'%26');return contents;}
function browserAJAXFriendly()
{if(window.XMLHttpRequest||window.ActiveXObject)
return true;else
return false;}
function isNumeric(number)
{var numbers="0123456789.";for(var i=0;i<number.length&&numbers.indexOf(number[i])!=-1;i++);return i==number.length;}
function isInteger(number)
{var numbers="0123456789";for(var i=0;i<number.length&&numbers.indexOf(number[i])!=-1;i++);return i==number.length;}
function decision(message,url){if(confirm(message))location.href=url;}