function showContactPopup(escortname,soort){
	window.open('/escortcontact.html?escortname=' + escortname + '&soort=' + soort,'contact','width=494, height=250');	
}

function getObj(name){
  if (document.getElementById) return document.getElementById(name);	
  else if (document.all) return document.all[name];
  else if (document.layers) return document.layers[name];
  return false;
}

function showPhoto(escortid, fotoid){
	window.open('/photo.html?type=sidephoto&escortid=' + escortid + '&photoid=' + fotoid,'photo','width=300, height=300');
}

function photo_setvisible(visible, escortid, fotoid){
	new Ajax.Request('/ajax.php?action=photo_setvisible', {
		method: 'post',
		postBody: 'visible=' + visible + '&eid=' + escortid + '&fid=' + fotoid
	});
}

function toggle_showcountries(checked) {
	if(checked){
		getObj('buitenland_tr').className = 'visible';
		getObj('buitenland_table').className = 'visible';
	}
	else{
		getObj('buitenland_tr').className = 'hidden';
		getObj('buitenland_table').className = 'hidden';
	}
}

function show_movie_window(escortid, movieid){
	window.open('/movie.html?eid=' + escortid + '&mid=' + movieid, 'movie', 'width=260, height=300');
}

function show_movie(movie){
	var FU = {
		movie:"/swf/flvplayer.swf",
		width:"213",
		height:"160",
		majorversion:"7",
		build:"0",
		bgcolor:"#EEEEEE",
		allowfullscreen:"true",
		flashvars:"file=http://static.gayescort.eu/movies/" + movie + ".flv&lightcolor=0x557722&backcolor=0x990000&frontcolor=0x000000&logo=/img/logosmall.png&image=http://static.gayescort.eu/movies/" + movie + ".jpg" 
		};
	UFO.create(	FU, "movieplayer");
}

function showProvincies(land) {
	var sel = getObj("provincies");
	var provincies = new Array();
	provincies["NL"] = Array('Friesland','Groningen','Drenthe','Flevoland','Overijssel','Noord Holland','Utrecht','Gelderland','Zuid Holland','Noord Brabant','Limburg','Zeeland');
	provincies["BE"] = Array('West-Vlaanderen', 'Oost-Vlaanderen', 'Antwerpen', 'Limburg (B)', 'Vlaams Brabant', 'Brabant Wallon', 'Hainaut', 'Namur', 'Liege', 'Luxembourg');	
	if(land != undefined){
		sel.options.length = 0;
		for(var i = 0;i<provincies[land].length;i++)
			sel.options[i] = new Option(provincies[land][i],provincies[land][i]);
	}	
}