function flag_over(id) {
	that=document.getElementById(id);
	browserdetect=that.filters? "ie" : typeof that.style.MozOpacity=="string"? "mozilla" : ""
	instantset(id)
	highlighting=setInterval("fadein(that)",50)
}
function fadein(cur2){
	if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)
		cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.1, 0.99)
	else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)
		cur2.filters.alpha.opacity+=10
	else if (window.highlighting)
		clearInterval(highlighting)
}
function flag_out(id){
	cleartimer()
	instantset(id)
}
function instantset(vid){
	if (browserdetect=="mozilla"){
		document.getElementById(vid).style.MozOpacity=0.3;
	}else if (browserdetect=="ie"){
		document.getElementById(vid).filters.alpha.opacity=30;
	}
}
function cleartimer(){
	if (window.highlighting) clearInterval(highlighting)
}
function photoOver(that){
	that.style.cursor="pointer";
	that.style.cursor="hand";
}
function photoClick(no){
	varUrl='../photo/pic'+no+'.jpg';
	var winleft = (screen.width / 2) - (420); 
	var wintop = (screen.height / 2) - (330); 
	varAttrib='toolbars=0, directories=0, scrollbars=0, resizable=0, width=820, height=630 left='+winleft+' top='+wintop;
	open(varUrl,"",varAttrib);
}
function photoClick2(pic){
	varUrl='../photo/'+pic;
	var winleft = (screen.width / 2) - (420); 
	var wintop = (screen.height / 2) - (330); 
	varAttrib='toolbars=0, directories=0, scrollbars=0, resizable=0, width=820, height=630 left='+winleft+' top='+wintop;
	open(varUrl,"",varAttrib);
}
function buttonOver(that){
	that.style.cursor="pointer";
	that.style.cursor="hand";
	that.className="css_button_over";		
}
function buttonOut(that){
	that.className="css_button";		
}
function mailCheck(lang){
	if (lang=="hr"){
		v3='Upišite Vašu e-mail adresu';
		v4='E-mail adresa nije ispravno upisana';
		v1='Upišite Vaše ime';
		v2='Upišite Vašu poruku';
	}
	if (lang=="en"){	
		v3='Enter Your e-mail adress';
		v4='E-mail adress is not valid';
		v1='Enter Your name';
		v2='Enter Your message';
	}
	if (lang=="it"){
		v3='Scrivete il vostra e-mail';
		v4='E-mail č non corretto';
		v1='Scrivete il vostro nome';
		v2='Scrivete il vostro messaggio';
	}
	if (lang=="si"){
		v3='Vpišite Vaš e-mail naslov';
		v4='E-mail naslov ni pravilno napisan';
		v1='Vpišite Vaše ime';
		v2='Vpišite Vaše sporočilo';
	}
	if (lang=="de"){
		v3='Schreiben Sie Ihren e-mail';
		v4='E-mail adress ist nicht korrekt';
		v1='Schreiben Sie Ihren Name';
		v2='Schreiben Sie Ihren Mitteilung';
	}
	if (lang=="fr"){
		v3='Écrivez votre adresse de courriel';
		v4='L’adresse de courriel est incorrecte';
		v1='Écrivez votre prénom';
		v2='Écrivez votre message';
	}
	if (lang=="se"){
		v3='Fyll i Emailaddress';
		v4='Ogiltig emailaddress';
		v1='Fyll i Namn';
		v2='Fyll i Meddelande';
	}
	if (lang=="cz"){
		v3='Vložte Vaší E-mailovou adresu';
		v4='E-mailová adresa je neplatná';
		v1='Vložte Vaše jméno';
		v2='Vložte Vaší zprávu';
	}	
	if (document.frmMail.name.value==''){
			window.alert(v1);
			document.frmMail.name.focus();
	}else if (document.frmMail.required_email.value==''){
	    	window.alert(v3);
	    	document.frmMail.required_email.focus();
	}else if ((document.frmMail.required_email.value).indexOf('@')==-1){
	    	window.alert(v4);
	    	document.frmMail.required_email.focus();
	}else if (document.frmMail.required_memo.value==''){
			window.alert(v2);
			document.frmMail.required_memo.focus();
	}else{
        	document.frmMail.submit();
    }
}
