window.defaultStatus+=' > CV Sylvain Plat';
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   PROFILE
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
function profilePhoto_init(imgId,imgOver,imgOut,path){
	if(profileImg=gebi(imgId)){
		profileImgPath=path;
		profileImgOver=imgOver;
		profileImgOut=imgOut;
		(i1=new Image()).src=path+profileImgOver;
		(i2=new Image()).src=path+profileImgOut;
		profileImg.onmouseover=function(){profilePhoto_switch();};
		profileImg.onmouseout=function(){profilePhoto_switch();};
	}
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
function profilePhoto_switch(){
	if(profileImg){
		var imgSrc=profileImg.src.substr(profileImg.src.lastIndexOf('/')+1,profileImg.src.length);
		if(imgSrc==profileImgOver) profileImg.src=profileImgPath+profileImgOut;
		else profileImg.src=profileImgPath+profileImgOver;
	}
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   HOBBIES
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
function showHobbyDescription(hobby) {
	var display='none';
	var o=gebi('hobbyDescription');
	if(hobby!=''){
		var str='';
		if(typeof(str=hobbyDescriptions[hobby])=='string'){
			var tab=str.split('<|>');
			if(tab.length==2){
				if(tab[0]!=''&&tab[1]!=''){
					if(o){
						display='';
						o.innerHTML='<div class="hobbyDescriptionHeader"><a href="#close" onclick="return(showHobbyDescription(\'\'))" title="Cliquez ici pour fermer">'+tab[0]+'</a></div><div class="hobbyDescriptionBody">'+tab[1]+'</div><div class="spacer">&nbsp;</div>';
						customLinks(o);
					}
				}
			}
		}
	}else{
		if(o) o.innerHTML='';
	}
	if(o) o.style.display=display;
	return(false);
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   CONTACT
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
function contactFormCheck(){
	var f;
	if(f=gebi('contactForm')){
		var err='';
		if(f.identity.value.length<3) err+=NL+'- votre nom';
		if(!isValidEmail(f.email.value)) err+=NL+'- votre email';
		if(f.message.value.length<10) err+=NL+'- votre message';
		if(err=='') return(confirm('Envoyer le message ?'));
		else alert('Veuillez vérifier :'+err);
	}
	return(false);
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
function contactCheckMessageMaxLength(){
	var f;
	if((f=gebi('contactForm'))&&typeof(contactMessageMaxLength)=='number'){
		var o1,o2;
		if((o1=gebi('contactNbMessageChars'))&&(o2=gebi('contactMaxMessageChars'))){
			o1.innerHTML=f.message.value.length;
			o2.innerHTML=contactMessageMaxLength;
		}
		if(f.message.value.length>contactMessageMaxLength){
			f.message.value=f.message.value.substr(0,contactMessageMaxLength);
		}
	}
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
function contactCheckMessage_init(){
	checkMessageInterval=setInterval('contactCheckMessageMaxLength()',100);
	window.onunload=function(){clearInterval(checkMessageInterval)};
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
