function labelInField(){
$("label.labelInField").each(function(){
var _1=$(this).html().replace("&nbsp;:","");
var _2=$("#"+$(this).attr("for"));
$(this).hide();
try{
var _3=_2.attr("type");
}
catch(e){
var _3="text";
}
_2.focus(function(){
if(this.value==_1){
if(_3){
try{
$(this).attr("type",_3);
}
catch(e){
}
}
this.value="";
$(this).removeClass("label-in");
}
});
_2.blur(function(){
if(this.value==""){
if(_3=="password"){
try{
$(this).attr("type","text");
}
catch(e){
}
}
this.value=_1;
$(this).addClass("label-in");
}
});
$(_2).focus();
$(_2).blur();
});
}
$(document).ready(labelInField);
function configureApplication(){
$("body").addClass("javascript");
}
$(document).ready(configureApplication);
function rollover(){
$(".rollover").each(function(){
$(this).mouseover(function(){
$(this).attr("src",$(this).attr("src").replace(".","_o."));
});
$(this).mouseout(function(){
$(this).attr("src",$(this).attr("src").replace("_o.","."));
});
});
}
$(rollover);
function zebraStripingTable(){
$("table.zebra_striping tbody tr:nth-child(even)").addClass("even");
}
$(document).ready(zebraStripingTable);
function linkToButton(){
$("a.linkToButton").each(function(){
var _4=$(this).attr("href");
var _5=$(this).html();
var _6=$(this).attr("class");
$(this).after("<input type=\"button\" name=\"linkButton\" value=\""+_5+"\" onclick=\"window.location='"+_4+"';\" class=\""+_6+"\" />");
$(this).hide();
});
}
$(document).ready(linkToButton);
function gotoFirstLink(){
$(".gotoFirstLink").click(function(){
url=$(this).find("a:first").attr("href");
if(url!="undefined"&&url!=null){
document.location=url;
}
}).addClass("gotoFirstLinkActive");
}
$(document).ready(gotoFirstLink);
function externalLink(){
$("a.external").click(function(){
window.open($(this).attr("href"),"");
return false;
});
}
$(document).ready(externalLink);
function focusLabel(){
$("input").add("textarea").add("select").focus(function(){
if(this.id){
$("label[@for="+this.id+"]").addClass("focusField");
}
});
$("input").add("textarea").add("select").blur(function(){
if(this.id){
$("label[@for="+this.id+"]").removeClass("focusField");
}
});
}
$(document).ready(focusLabel);
function popup(_7){
_7.url=(_7.url==undefined&&(typeof _7.url=="object"))?$(_7.url).attr("href"):_7.url;
_7.name=(_7.name==undefined)?"":_7.name;
_7.width=(_7.width==undefined)?500:_7.width;
_7.height=(_7.height==undefined)?500:_7.height;
_7.options=((_7.options==undefined)?"resizable=yes,scrollbars=yes":_7.options);
_7.top=50;
_7.left=50;
var _8=window.open(_7.url,_7.name,"top="+_7.top+",left="+_7.left+",width="+_7.width+",height="+_7.height+","+_7.options);
return false;
}
var iCookie=function(_9){
this.name=_9;
this.value="";
this.path="/";
this.expirationDate="";
this.Constructor=function(){
this.SetLifespan(31);
};
this.Set=function(_a){
this.value=_a;
document.cookie=this.name+"="+escape(this.value)+"; expires="+this.expirationDate.toGMTString()+"; path="+this.path;
};
this.Get=function(){
var _b=document.cookie.indexOf(this.name+"=");
if(_b==-1){
var _c=null;
}else{
var _d=_b+this.name.length+1;
var _e=(document.cookie.indexOf(";",_d)!=-1)?document.cookie.indexOf(";",_d):document.cookie.length;
var _c=document.cookie.substring(_d,_e);
_c=unescape(_c);
}
this.value=_c;
return this.value;
};
this.Delete=function(){
var _f=document.cookie.indexOf(this.name+"=");
if(_f!=-1){
document.cookie=this.name+"=; expires=Thu, 01-Jan-70 00:00:01 GMT; path=/";
}
};
this.SetLifespan=function(_10){
var _11=new Date();
_11.setTime(_11.getTime()+(1000*3600*24*_10));
this.expirationDate=_11;
};
this.Debug=function(){
alert("cookie name : "+this.name+"\n"+"Valeur : "+this.Get()+"\n"+"Date d'expiration : "+this.expirationDate+"\n"+"Chemin : "+this.path);
};
return this.Constructor();
};
function warning(){
$("input.warning").click(function(){
var _12="Attention, vous allez supprimer d\xe9finitivement cette information.";
return confirm(_12);
});
}
$(document).ready(warning);

