<!--//

// LOAD NAVIGATION IMAGES
//------------------------------------------------------------------

btClinic_pt_off = new Image();
btClinic_pt_off.src = "img/layout/menu_clinic_off_pt.gif";
btClinic_en_off = new Image();
btClinic_en_off.src = "img/layout/menu_clinic_off_en.gif";
btServices_pt_off = new Image();
btServices_pt_off.src = "img/layout/menu_services_off_pt.gif";
btServices_en_off = new Image();
btServices_en_off.src = "img/layout/menu_services_off_en.gif";
btTeam_pt_off = new Image();
btTeam_pt_off.src = "img/layout/menu_team_off_pt.gif";
btTeam_en_off = new Image();
btTeam_en_off.src = "img/layout/menu_team_off_en.gif";
btPrices_pt_off = new Image();
btPrices_pt_off.src = "img/layout/menu_prices_off_pt.gif";
btPrices_en_off = new Image();
btPrices_en_off.src = "img/layout/menu_prices_off_en.gif";
btTravelling_pt_off = new Image();
btTravelling_pt_off.src = "img/layout/menu_travelling_off_pt.gif";
btTravelling_en_off = new Image();
btTravelling_en_off.src = "img/layout/menu_travelling_off_en.gif";
btCuriosity_pt_off = new Image();
btCuriosity_pt_off.src = "img/layout/menu_curiosity_off_pt.gif";
btCuriosity_en_off = new Image();
btCuriosity_en_off.src = "img/layout/menu_curiosity_off_en.gif";
btLinks_pt_off = new Image();
btLinks_pt_off.src = "img/layout/menu_links_off_pt.gif";
btLinks_en_off = new Image();
btLinks_en_off.src = "img/layout/menu_links_off_en.gif";


// FUNCTIONS LIBRARY
//------------------------------------------------------------------

function photo(content, id){
	zoomWin = window.open('photofd9c.html?content='+ content +'&id='+ id, 'winZoom', 'width=100, height=100, top='+ ((screen.availHeight)-100)/2 +', left='+ ((screen.availWidth)-100)/2 +',status');
	zoomWin.focus();
}

function zoom(content, id){
	zoomWin = window.open('photofd9c.html?content='+ content +'&id='+ id, 'winZoom', 'width=100, height=100, top='+ ((screen.availHeight)-100)/2 +', left='+ ((screen.availWidth)-100)/2 +',status');
	zoomWin.focus();
}

function curriculum(id,lang){
	curriculumWin = window.open('http://www.clinicaopencenter.com.br/curriculum.asp?id='+ id +'&lang='+ lang, 'winCurriculum', 'width=620, height=400, top='+ ((screen.availHeight)-400)/2 +', left='+ ((screen.availWidth)-620)/2 +',status, scrollbars');
	curriculumWin.focus();
}

function faqs(lang){
	faqsWin = window.open('http://www.clinicaopencenter.com.br/faqs.asp?lang='+ lang, 'winFaqs', 'width=620, height=400, top='+ ((screen.availHeight)-400)/2 +', left='+ ((screen.availWidth)-620)/2 +',status, scrollbars');
	faqsWin.focus();
}

function adviceForm(lang){
	adviceFormWin = window.open('http://www.clinicaopencenter.com.br/form_advice.asp?lang='+ lang, 'winAdviceForm', 'width=620, height=400, top='+ ((screen.availHeight)-400)/2 +', left='+ ((screen.availWidth)-620)/2 +',status, scrollbars');
	adviceFormWin.focus();
}

function bookingForm(lang){
	bookingFormWin = window.open('http://www.clinicaopencenter.com.br/form_booking.asp?lang='+ lang, 'winBookingForm', 'width=620, height=400, top='+ ((screen.availHeight)-400)/2 +', left='+ ((screen.availWidth)-620)/2 +',status, scrollbars');
	bookingFormWin.focus();
}

function contactForm(lang){
	contactFormWin = window.open('http://www.clinicaopencenter.com.br/form_contact.asp?lang='+ lang, 'winContactForm', 'width=620, height=400, top='+ ((screen.availHeight)-400)/2 +', left='+ ((screen.availWidth)-620)/2 +',status, scrollbars');
	contactFormWin.focus();
}

function implant(lang){
	implantWin = window.open('pop_implant415a.html?lang='+ lang, 'winImplant', 'width=550, height=400, top='+ ((screen.availHeight)-400)/2 +', left='+ ((screen.availWidth)-550)/2 +',status');
	faqsWin.focus();
}

function contact(user,domain){
	locationString = "mailto:" + user + "@" + domain;
	window.location = locationString;
}

function ValidateAdviceForm(language) {
	if (document.getElementById('the_problem').value=='') {
		if(language=='en'){
			alert("Describe your problem.");
		}
		else if (language=='pt'){
			alert("Descreva o seu problema.");
		}
		document.getElementById('the_problem').focus();
		return false;
	}
	if (document.getElementById('first_name').value=='') {
		if(language=='en'){
			alert("Enter your Name.");
		}
		else if (language=='pt'){
			alert("Insira o seu Nome.");
		}
		document.getElementById('first_name').focus();
		return false;
	}
	if (document.getElementById('last_name').value=='') {
		if(language=='en'){
			alert("Enter your Last Name.");
		}
		else if (language=='pt'){
			alert("Insira o seu Apelido.");
		}
		document.getElementById('last_name').focus();
		return false;
	}
	filtro = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/;
	if (!filtro.test(document.getElementById('email').value)) {
		if(language=='en'){
			alert("Enter your Email correctly.");
		}
		else if (language=='pt'){
			alert("Insira o seu Email correctamente.");
		}
		document.getElementById('email').focus();
		return false;
	}
	document.getElementById('btSubmit').disabled = true;
	return true;
}

function ValidateTravellingForm(language) {
	if (document.getElementById('name').value=='') {
		if(language=='en'){
			alert("Enter your Name.");
		}
		else if (language=='pt'){
			alert("Insira o seu Nome.");
		}
		document.getElementById('name').focus();
		return false;
	}
	filtro = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/;
	if (!filtro.test(document.getElementById('email').value)) {
		if(language=='en'){
			alert("Enter your Email correctly.");
		}
		else if (language=='pt'){
			alert("Insira o seu Email correctamente.");
		}
		document.getElementById('email').focus();
		return false;
	}
	document.getElementById('btSubmit').disabled = true;
	return true;
}


<!--
function flvFPW1(){//v1.44
// Copyright 2002-2004, Marja Ribbers-de Vroed, FlevOOware (www.flevooware.nl/dreamweaver/)
var v1=arguments,v2=v1[2].split(","),v3=(v1.length>3)?v1[3]:false,v4=(v1.length>4)?parseInt(v1[4]):0,v5=(v1.length>5)?parseInt(v1[5]):0,v6,v7=0,v8,v9,v10,v11,v12,v13,v14,v15,v16;v11=new Array("width,left,"+v4,"height,top,"+v5);for (i=0;i<v11.length;i++){v12=v11[i].split(",");l_iTarget=parseInt(v12[2]);if (l_iTarget>1||v1[2].indexOf("%")>-1){v13=eval("screen."+v12[0]);for (v6=0;v6<v2.length;v6++){v10=v2[v6].split("=");if (v10[0]==v12[0]){v14=parseInt(v10[1]);if (v10[1].indexOf("%")>-1){v14=(v14/100)*v13;v2[v6]=v12[0]+"="+v14;}}if (v10[0]==v12[1]){v16=parseInt(v10[1]);v15=v6;}}if (l_iTarget==2){v7=(v13-v14)/2;v15=v2.length;}else if (l_iTarget==3){v7=v13-v14-v16;}v2[v15]=v12[1]+"="+v7;}}v8=v2.join(",");v9=window.open(v1[0],v1[1],v8);if (v3){v9.focus();}document.MM_returnValue=false;return v9;}
//-->


//------------------------------------------------------------------

-->
