pic1= new Image(13,13); 
pic1.src="images/zutaTocka.jpg";
pic2= new Image(13,13); 
pic2.src="images/plavaTocka.jpg";
pic3= new Image(20,21); 
pic3.src="images/ser.gif";
pic4= new Image(20,21); 
pic4.src="images/serHo.jpg";
pic5= new Image(150,13); 
pic5.src="images/meniStrela.jpg";
pic6= new Image(150,13); 
pic6.src="images/meniStrelaHo.jpg";
pic7= new Image(21,21); 
pic7.src="images/bookaward.png";
pic8= new Image(21,21); 
pic8.src="images/bookContiki1.jpg";
pic9= new Image(50,46); 
pic9.src="images/stambiljMali.jpg";
pic10= new Image(50,46); 
pic10.src="images/stambiljMali1.jpg";
pic11= new Image(120,45); 
pic11.src="images/spec.jpg";
var alo=0;

function meniOn(a,b,stil){
	marginFix(a,b,stil);
	stil.style.visibility="visible";
}
function meniOFF(){
	meniPrimo.style.visibility="hidden";
	istocnaEvropa.style.visibility="hidden";
	azija.style.visibility="hidden";
	srednjiIstok.style.visibility="hidden";
	afrika.style.visibility="hidden";	
	schengen.style.visibility="hidden";	
	australia.style.visibility="hidden";
	other.style.visibility="hidden";
}
function meni2OFF(){
	istocnaEvropa.style.visibility="hidden";
	azija.style.visibility="hidden";
	srednjiIstok.style.visibility="hidden";
	afrika.style.visibility="hidden";	
	schengen.style.visibility="hidden";	
	australia.style.visibility="hidden";
	other.style.visibility="hidden";
}
function marginFix(a,b,stil){
	stil.style.marginLeft=a;
	stil.style.marginTop=b;
	}
function nadiStranu(){
	if (document.ola.nation.value == 'or')
	window.open('nx123_nor.html', '_parent');
	else if(document.ola.nation.value == 'no')
	window.open('nx123_no.html', '_parent');
	else if(document.ola.nation.value == 'yes')
	window.open('nx123_yes.html', '_parent');
	else
	window.open('nx123_call.html', '_parent');		
	}
	
function getExt(country){
		if(country=="australia" || country=="canada" || country=="ghana" || country=="kazakhstan" || country=="kyrgyzstan" || country=="mongolia" || country=="myanmar" || country=="bangladesh"){
		return('php');
		}
		else{
		return('html');
		}
	}	
	
function spojHtml(){
	if(document.ms1.visaType.value == 'stop' && document.ms1.nation.value == 'stop'){
		alert("Please Select Visa Type and Your Destination");
		}
	else if(document.ms1.nation.value == 'other'){
		window.open('../emailer/eform1.html', '_parent');
		}			
	else if(document.ms1.visaType.value == 'stop'){
		alert("Please Select Visa Type");
		}
	else if(document.ms1.nation.value == 'stop'){
		alert("Please Select Your Destination");
		}			
	else	

		window.open('../' + document.ms1.nation.value + '_' + document.ms1.visaType.value + 'visa.' + getExt(document.ms1.nation.value) + '?ref1', '_parent');
	}
	
function otvoriProzor(drzava){
	if (drzava == 'emailer'){
		drzavaURL = '../emailer/eform1.html';
	}
	else{
		drzavaURL = '../' + drzava + '_need_visa.' + getExt(drzava) + '?ref1';	
	}	
	window.open(drzavaURL, '_parent');
	}
	
function pokazi(){
	var ur = document.location.search.substring(1);
	if(ur == 'ref1'){
		korak.style.visibility = "visible";
		//alert('To continue your step by step navigation click on the button "Next step>>>" in top left corner of this page.');
		}		
	else if(ur != ''){
		document.getElementById(ur).style.position = "relative";
		showElement(ur);
		}
	}	
function enableSearch(st){
	st.style.visibility="visible";
	}
function desableSearch(st){
	st.style.visibility="hidden";
	}
function trColorSwap(ide) {
		ide.style.backgroundColor="#C0C0C0";
		var d = ide.id+'b';
		showElement(d);
	}	
function trColorWhite(ide) {
		ide.style.backgroundColor= "white";
		var d = ide.id+'b';
		sakriElement(d);
	}
function showElement(element){
	
	if(document.getElementById){
		document.getElementById(element).style.visibility = "visible";
		}else

	if(document.layers){
		document.layers[element].visibility = "show";
		}else

	if(document.all){
		document.all[element].style.visibility = "visible";
		}	
	}
function sakriElement(element){
		
	if(document.getElementById){
		document.getElementById(element).style.visibility = "hidden";
		}else

	if(document.layers){
		document.layers[element].visibility = "hide";
		}else

	if(document.all){
		document.all[element].style.visibility = "hidden";
		}	
	}
function positionWin(win, x, y){
	win.style.marginLeft = x;
	win.style.marginTop = y;
	}
function updateField(dates){
	document.form1.tour_dates.value=dates;
	//document.form1.tour_dates.disabled=true;
	}
function clearFields(){
	document.form1.email.value="";
	document.form1.first_name.value="";
	document.form1.surname.value="";
	document.form1.nationality.value="";
	document.form1.visa_type.value="";
	document.form1.post_code.value="";
	document.form1.visa_expiry.value="";
	document.form1.Telephone_Number.value="";	
	}	
function isItOther(){
	if(document.form1.subject.value == "other"){ 
		showElement('des');
		showElement('textDes');
		document.form1.destination.value = "";
		}
	else if(document.form1.subject.value == "otherSchengen"){
		window.open('../explained/schengen_visa.html', '_parent');
		document.form1.destination.value = "1";
		}
	else{
		sakriElement('des');
		sakriElement('textDes');
		document.form1.destination.value = "1";
		}
	}