theObjects = document.getElementsByTagName("object"); 
for (var i = 0; i < theObjects.length; i++) { 
theObjects[i].outerHTML = theObjects[i].outerHTML; 
}


	  function checkForm_agency(theForm) { 
	    var errorCondition=0;
	    var errorString = "";
	    var errorMessage;
	    var focusElement;
	    if(theForm.url.value == "" || theForm.url.value == "http://www.") { 
		errorCondition = 1;
		errorString = "Agency URL is required \n" + errorString;
		focusElement = theForm.URL;
	    }
	    if(theForm.phone.value == "" && theForm.email.value == "") { 
		errorCondition = 1;
		errorString = "Either Agency Phone or Email is required \n"+errorString;
		focusElement = theForm.phone;
	    }
	    if(theForm.agencyName.value == "") { 
		errorCondition = 1;
		errorString = "Agency Name is required \n"+errorString;
		focusElement = theForm.agencyName;
	    }

	    if(theForm.contactPhone.value == "") { 
		errorCondition = 1;
		errorString = "Contact Phone is required \n" + errorString;
		focusElement = theForm.contactPhone;
	    }
	    if(theForm.contactEmail.value == "") { 
		errorCondition = 1;
		errorString = "Contact Email is required \n" + errorString;
		focusElement = theForm.contactEmail;
	    }
	    if(theForm.contactName.value == "") { 
		errorCondition = 1;
		errorString = "Contact Name is required \n" + errorString;
		focusElement = theForm.contactName;
	    }
	     if(theForm.vipagency.value == "") { 
			if(theForm.featured.checked){
				errorCondition = 1;
				errorString = "VIP banner image is  required \n" + errorString;
				focusElement = theForm.vipagency;
			}
	    }
	    if(theForm.agencybanner.value == "") { 
		
				errorCondition = 1;
				errorString = "Agency banner image is  required \n" + errorString;
				focusElement = theForm.vipagency;
		
	    }

  	    if(errorCondition) { 
		errorMessage = "Error submitting form:\n\n" + errorString;
		alert(errorMessage);
		focusElement.focus();
	    	return false;
	    } else {
		return true;
	    }
	  }
	  
	  function checkForm_banner(theForm) { 
	    var errorCondition=0;
	    var errorString = "";
	    var errorMessage;
	    var focusElement;

	    if(theForm.url.value == "" || theForm.url.value == "http://www.") { 
		errorCondition = 1;
		errorString = "Linking Information (URL) is required \n"+errorString;
		focusElement = theForm.url.value;
	    }
	    if(theForm.agencyName.value == "") { 
		errorCondition = 1;
		errorString = "Company Name is required \n"+errorString;
		focusElement = theForm.agencyName;
	    }

	    if(theForm.contactPhone.value == "") { 
		errorCondition = 1;
		errorString = "Contact Phone is required \n" + errorString;
		focusElement = theForm.contactPhone;
	    }
	    if(theForm.contactEmail.value == "") { 
		errorCondition = 1;
		errorString = "Contact Email is required \n" + errorString;
		focusElement = theForm.contactEmail;
	    }
	    if(theForm.contactName.value == "") { 
		errorCondition = 1;
		errorString = "Contact Name is required \n" + errorString;
		focusElement = theForm.contactName;
	    }
		if(theForm.topbanner.value == "") { 
			if(theForm.homePage.checked){
				errorCondition = 1;
				errorString = "Top banner image is  required \n" + errorString;
				focusElement = theForm.topbanner;
			}
	    }
	    
	    if(theForm.sidebanner.value == "") { 
			if(theForm.standard.checked){
				errorCondition = 1;
				errorString = "Side banner image is  required \n" + errorString;
				focusElement = theForm.sidebanner;
			}
	    }
		
  	    if(errorCondition) { 
		errorMessage = "Error submitting form:\n\n" + errorString;
		alert(errorMessage);
		focusElement.focus();
	    	return false;
	    } else {
		return true;
	    }
	  }
	
	  function checkForm_escort(theForm) { 
	    var errorCondition=0;
	    var errorString = "";
	    var errorMessage;
	    var focusElement;
	    if(theForm.baseRate.value == "") { 
		errorCondition = 1;
	 	errorString = "First Hour Price is required \n" + errorString;
		focusElement = theForm.baseRate;
	    }
	    if(theForm.escortName.value == "") {
		errorCondition = 1;
		errorString = "Escort Name is required \n" + errorString;
		focusElement = theForm.escortName;
	    }
	    if(theForm.contactPhone.value == "") { 
		errorCondition = 1;
		errorString = "Contact Phone is required \n" + errorString;
		focusElement = theForm.contactPhone;
	    }
	    if(theForm.contactEmail.value == "") { 
		errorCondition = 1;
		errorString = "Contact Email is required \n" + errorString;
		focusElement = theForm.contactEmail;
	    }
	    if(theForm.contactName.value == "") { 
		errorCondition = 1;
		errorString = "Contact Name is required \n" + errorString;
		focusElement = theForm.contactName;
	    }
	    if(theForm.escortName.value == "") { 
		errorCondition = 1;
		errorString = "Work Name is required \n" + errorString;
		focusElement = theForm.escortName;
	    }
	    if(theForm.thumbnail.value == "") { 
		errorCondition = 1;
		errorString = "Listing image is required \n" + errorString;
		focusElement = theForm.contactName;
	    }

  	    if(errorCondition) { 
		errorMessage = "Error submitting form:\n\n" + errorString;
		alert(errorMessage);
		focusElement.focus();
	    	return false;
	    } else {
		return true;
	    }

	  }	
	  
function csekk_vip(){
	if(document.getElementById('featured').checked == true){
		document.getElementById('vip1').style.display='block';
		document.getElementById('vip2').style.display='block';
	} else {
		document.getElementById('vip1').style.display='none';	
		document.getElementById('vip2').style.display='none';
	}
}
function top_banner_vip(){
	if(document.getElementById('homePage').checked == true){
		document.getElementById('top1').style.display='block';
		document.getElementById('top2').style.display='block';
	} else {
		document.getElementById('top1').style.display='none';	
		document.getElementById('top2').style.display='none';
	}
}
function top_banner_vip2(){
		document.getElementById('top1').style.display='block';	
		document.getElementById('top2').style.display='block';
}
function side_banner_vip(){
	if(document.getElementById('standard').checked == true){
		document.getElementById('side1').style.display='block';
		document.getElementById('side2').style.display='block';
	} else {
		document.getElementById('side1').style.display='none';	
		document.getElementById('side2').style.display='none';
	}
}

var main_escorts_miez = 0;
var main_escortsww_miez = 0;
var main_agency_miez = 0;
var main_vipescorts_miez = 0;
var main_vipagencies_miez = 0;
var main_mini_banner_miez = 0;
var top_banner = 0;
var refreshvannerv=0;
function Refresh() {
	//főoldal escort változó,featured girls
    setInterval('kiemelt()', 10000); 
}

function Refresh2() {
    setInterval('kiemelt2()', 10000); 
}

function Refresh3() {   
    setInterval('Refresh_bannerv()',6000)
}
function Refresh4() {
    setInterval('kiemelt3()', 10000); 
}


//ajax részek
 function doajax(dir,fname,params,returnfunc){
	eval(fname+" = GetXmlHttpObject();");

	var url=dir+fname+".php"
	eval(fname).onreadystatechange = eval(returnfunc);
	eval(fname).open("POST",url,true);
	eval(fname).setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	eval(fname).send(params);

}

function doajax2(dir,fname,params,returnfunc){
	eval(fname+" = GetXmlHttpObject();");
	var url=dir+fname+".php"
	eval(fname).onreadystatechange = eval(returnfunc);
	eval(fname).open("POST",url,true);
	eval(fname).setRequestHeader("Content-type", "application/x-www-form-urlencoded");

	sendparams = new Array();
	for ( var xkey in params ){
		sendparams[sendparams.length] = xkey+'='+params[xkey].toString().replace('&','%26');
	}

	eval(fname).send(sendparams.join("&"));

}

//AJAX KEZELO OBJECT
function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}



function kiemelt(){
	main_escorts_miez++;
	if(main_escorts_miez != 1){
		document.getElementById('escort1').style.display = 'block';
		document.getElementById('escort2').style.display = 'block';
		document.getElementById('escort3').style.display = 'block';
		document.getElementById('escort4').style.display = 'block';
		document.getElementById('escort5').style.display = 'block';
		/*document.getElementById('escort6').style.display = 'block';
		document.getElementById('escort7').style.display = 'block';
		document.getElementById('escort8').style.display = 'block';
		document.getElementById('escort9').style.display = 'block';
		document.getElementById('escort10').style.display = 'block';*/
		document.getElementById('escortdiv1').style.display = 'block';
		document.getElementById('escortdiv2').style.display = 'block';
		document.getElementById('escortdiv3').style.display = 'block';
		document.getElementById('escortdiv4').style.display = 'block';
		/*document.getElementById('escortdiv5').style.display = 'block';
		document.getElementById('escortdiv6').style.display = 'block';
		document.getElementById('escortdiv7').style.display = 'block';
		document.getElementById('escortdiv8').style.display = 'block';
		document.getElementById('escortdiv9').style.display = 'block';
		document.getElementById('escortdiv10').style.display = 'block';*/
		
	/*	$("#escort10").fadeOut(1000);
		setTimeout(function(){$("#escort9").fadeOut( 1000 );},100);
		setTimeout(function(){$("#escort8").fadeOut( 1000 );},200);
		setTimeout(function(){$("#escort7").fadeOut( 1000 );},300);
		setTimeout(function(){$("#escort6").fadeOut( 1000 );},400);*/
		setTimeout(function(){$("#escort5").fadeOut( 1000 );},100);
		setTimeout(function(){$("#escort4").fadeOut( 1000 );},200);
		setTimeout(function(){$("#escort3").fadeOut( 1000 );},300);
		setTimeout(function(){$("#escort2").fadeOut( 1000 );},400);
		setTimeout(function(){$("#escort1").fadeOut( 1000 );},500);
		/*$(".escortdiv10").fadeOut(1000);
		setTimeout(function(){$(".escortdiv9").fadeOut( 1000 );},100);
		setTimeout(function(){$(".escortdiv8").fadeOut( 1000 );},200);
		setTimeout(function(){$(".escortdiv7").fadeOut( 1000 );},300);
		setTimeout(function(){$(".escortdiv6").fadeOut( 1000 );},400);*/
		setTimeout(function(){$(".escortdiv5").fadeOut( 1000 );},100);
		setTimeout(function(){$(".escortdiv4").fadeOut( 1000 );},200);
		setTimeout(function(){$(".escortdiv3").fadeOut( 1000 );},300);
		setTimeout(function(){$(".escortdiv2").fadeOut( 1000 );},400);
		setTimeout(function(){$(".escortdiv1").fadeOut( 1000 );},500);
		
		setTimeout(function(){doajax('ajax/','ajax_home_page_escorts','ezvan='+main_escorts_miez,'kiemelt_valasz');},1800);
	} else
	{
		doajax('ajax/','ajax_home_page_escorts','ezvan='+main_escorts_miez,'kiemelt_valasz');
	}
}

function kiemelt_valasz() {
	if (ajax_home_page_escorts.readyState == 4){
		resp = ajax_home_page_escorts.responseText;
		document.getElementById('main_escorts_div').innerHTML = resp
		$("#escort1").fadeIn(1000);
		$(".escortdiv1").fadeIn(1000);
		setTimeout(function(){$("#escort2").fadeIn( 1000 );},100);
		setTimeout(function(){$(".escortdiv2").fadeIn( 1000 );},100);
		setTimeout(function(){$("#escort3").fadeIn( 1000 );},200);
		setTimeout(function(){$(".escortdiv3").fadeIn( 1000 );},200);
		setTimeout(function(){$("#escort4").fadeIn( 1000 );},300);
		setTimeout(function(){$(".escortdiv4").fadeIn( 1000 );},300);
		setTimeout(function(){$("#escort5").fadeIn( 1000 );},400);
		setTimeout(function(){$(".escortdiv5").fadeIn( 1000 );},400);
		setTimeout(function(){$("#escort6").fadeIn( 1000 );},500);
		setTimeout(function(){$(".escortdiv6").fadeIn( 1000 );},500);
		setTimeout(function(){$("#escort7").fadeIn( 1000 );},600);
		setTimeout(function(){$(".escortdiv7").fadeIn( 1000 );},600);
		setTimeout(function(){$("#escort8").fadeIn( 1000 );},700);
		setTimeout(function(){$(".escortdiv8").fadeIn( 1000 );},700);
		setTimeout(function(){$("#escort9").fadeIn( 1000 );},800);
		setTimeout(function(){$(".escortdiv9").fadeIn( 1000 );},800);
		setTimeout(function(){$("#escort10").fadeIn( 1000 );},900);
		setTimeout(function(){$(".escortdiv10").fadeIn( 1000 );},900);
	}
}

function kiemelt2(){
	main_agency_miez++;
	if(main_agency_miez != 1){
		//alert("d");
		document.getElementById('agency1').style.display = 'block';
		document.getElementById('agency2').style.display = 'block';
		document.getElementById('agency3').style.display = 'block';
		document.getElementById('agency4').style.display = 'block';
		document.getElementById('agency5').style.display = 'block';
		/*document.getElementById('agency6').style.display = 'block';
		document.getElementById('agency7').style.display = 'block';
		document.getElementById('agency8').style.display = 'block';
		document.getElementById('agency9').style.display = 'block';
		document.getElementById('agency10').style.display = 'block';*/
		
		/*$("#agency10").fadeOut(1000);
		setTimeout(function(){$("#agency9").fadeOut( 1000 );},100);
		setTimeout(function(){$("#agency8").fadeOut( 1000 );},200);
		setTimeout(function(){$("#agency7").fadeOut( 1000 );},300);
		setTimeout(function(){$("#agency6").fadeOut( 1000 );},400);*/
		setTimeout(function(){$("#agency5").fadeOut( 1000 );},100);
		setTimeout(function(){$("#agency4").fadeOut( 1000 );},200);
		setTimeout(function(){$("#agency3").fadeOut( 1000 );},300);
		setTimeout(function(){$("#agency2").fadeOut( 1000 );},400);
		setTimeout(function(){$("#agency1").fadeOut( 1000 );},500);

		setTimeout(function(){doajax('ajax/','ajax_home_page_agencies','ezvan='+main_agency_miez,'kiemelt2_valasz');},1800);
	}else{
		doajax('ajax/','ajax_home_page_agencies','ezvan='+main_agency_miez,'kiemelt2_valasz');
	}
}

function kiemelt2_valasz() {
	if (ajax_home_page_agencies.readyState == 4){
		resp = ajax_home_page_agencies.responseText;
		document.getElementById('main_agency_div').innerHTML = resp
		$("#agency1").fadeIn(1000);
		setTimeout(function(){$("#agency2").fadeIn( 1000 );},100);
		setTimeout(function(){$("#agency3").fadeIn( 1000 );},200);
		setTimeout(function(){$("#agency4").fadeIn( 1000 );},300);
		setTimeout(function(){$("#agency5").fadeIn( 1000 );},400);
		/*setTimeout(function(){$("#agency6").fadeIn( 1000 );},500);
		setTimeout(function(){$("#agency7").fadeIn( 1000 );},600);
		setTimeout(function(){$("#agency8").fadeIn( 1000 );},700);
		setTimeout(function(){$("#agency9").fadeIn( 1000 );},800);
		setTimeout(function(){$("#agency10").fadeIn( 1000 );},900);*/
	}
}
//ww escorts////////////////////////////////////////////////////////////////////////////////////
function kiemelt3(){
	main_escortsww_miez++;
	if(main_escortsww_miez != 1){
		document.getElementById('escorts1').style.display = 'block';
		document.getElementById('escorts2').style.display = 'block';
		document.getElementById('escorts3').style.display = 'block';
		document.getElementById('escorts4').style.display = 'block';
		document.getElementById('escorts5').style.display = 'block';
		/*document.getElementById('escorts6').style.display = 'block';
		document.getElementById('escorts7').style.display = 'block';
		document.getElementById('escorts8').style.display = 'block';
		document.getElementById('escorts9').style.display = 'block';
		document.getElementById('escorts10').style.display = 'block';*/
		document.getElementById('escortdivs1').style.display = 'block';
		document.getElementById('escortdivs2').style.display = 'block';
		document.getElementById('escortdivs3').style.display = 'block';
		document.getElementById('escortdivs4').style.display = 'block';
		document.getElementById('escortdivs5').style.display = 'block';
		/*document.getElementById('escortdivs6').style.display = 'block';
		document.getElementById('escortdivs7').style.display = 'block';
		document.getElementById('escortdivs8').style.display = 'block';
		document.getElementById('escortdivs9').style.display = 'block';
		document.getElementById('escortdivs10').style.display = 'block';*/
		
		/*$(".escorts10").fadeOut(1000);
		setTimeout(function(){$(".escorts9").fadeOut( 1000 );},100);
		setTimeout(function(){$(".escorts8").fadeOut( 1000 );},200);
		setTimeout(function(){$(".escorts7").fadeOut( 1000 );},300);
		setTimeout(function(){$(".escorts6").fadeOut( 1000 );},400);*/
		setTimeout(function(){$(".escorts5").fadeOut( 1000 );},100);
		setTimeout(function(){$(".escorts4").fadeOut( 1000 );},200);
		setTimeout(function(){$(".escorts3").fadeOut( 1000 );},300);
		setTimeout(function(){$(".escorts2").fadeOut( 1000 );},400);
		setTimeout(function(){$(".escorts1").fadeOut( 1000 );},500);
		/*$(".escortdivs10").fadeOut(1000);
		setTimeout(function(){$(".escortdivs9").fadeOut( 1000 );},100);
		setTimeout(function(){$(".escortdivs8").fadeOut( 1000 );},200);
		setTimeout(function(){$(".escortdivs7").fadeOut( 1000 );},300);
		setTimeout(function(){$(".escortdivs6").fadeOut( 1000 );},400);*/
		setTimeout(function(){$(".escortdivs5").fadeOut( 1000 );},100);
		setTimeout(function(){$(".escortdivs4").fadeOut( 1000 );},200);
		setTimeout(function(){$(".escortdivs3").fadeOut( 1000 );},300);
		setTimeout(function(){$(".escortdivs2").fadeOut( 1000 );},400);
		setTimeout(function(){$(".escortdivs1").fadeOut( 1000 );},500);
		
		setTimeout(function(){doajax('ajax/','ajax_home_page_wwescorts','ezvan='+main_escortsww_miez,'kiemelt_valasz3');},1800);
	} else
	{
		doajax('ajax/','ajax_home_page_wwescorts','ezvan='+main_escortsww_miez,'kiemelt_valasz3');
	}
}

function kiemelt_valasz3() {
	if (ajax_home_page_wwescorts.readyState == 4){
		resp = ajax_home_page_wwescorts.responseText;
		document.getElementById('main_escortsww_div').innerHTML = resp
		$(".escorts1").fadeIn(1000);
		$(".escortdivs1").fadeIn(1000);
		setTimeout(function(){$(".escorts2").fadeIn( 1000 );},100);
		setTimeout(function(){$(".escortdivs2").fadeIn( 1000 );},100);
		setTimeout(function(){$(".escorts3").fadeIn( 1000 );},200);
		setTimeout(function(){$(".escortdivs3").fadeIn( 1000 );},200);
		setTimeout(function(){$(".escorts4").fadeIn( 1000 );},300);
		setTimeout(function(){$(".escortdivs4").fadeIn( 1000 );},300);
		setTimeout(function(){$(".escorts5").fadeIn( 1000 );},400);
		setTimeout(function(){$(".escortdivs5").fadeIn( 1000 );},400);
		/*setTimeout(function(){$(".escorts6").fadeIn( 1000 );},500);
		setTimeout(function(){$(".escortdivs6").fadeIn( 1000 );},500);
		setTimeout(function(){$(".escorts7").fadeIn( 1000 );},600);
		setTimeout(function(){$(".escortdivs7").fadeIn( 1000 );},600);
		setTimeout(function(){$(".escorts8").fadeIn( 1000 );},700);
		setTimeout(function(){$(".escortdivs8").fadeIn( 1000 );},700);
		setTimeout(function(){$(".escorts9").fadeIn( 1000 );},800);
		setTimeout(function(){$(".escortdivs9").fadeIn( 1000 );},800);
		setTimeout(function(){$(".escorts10").fadeIn( 1000 );},900);
		setTimeout(function(){$(".escortdivs10").fadeIn( 1000 );},900);*/
	}
}
//////////////////////////////// v i p e s c o r t s/////////////////////////////////////
/*function kiemelt4(){
	main_vipescorts_miez++;
	if(main_vipescorts_miez != 1){
		document.getElementById('vipescort1').style.display = 'block';
		document.getElementById('vipescort2').style.display = 'block';
		document.getElementById('vipescort3').style.display = 'block';
		document.getElementById('vipescort4').style.display = 'block';
		document.getElementById('vipescort5').style.display = 'block';
		document.getElementById('vipescortdiv1').style.display = 'block';
		document.getElementById('vipescortdiv2').style.display = 'block';
		document.getElementById('vipescortdiv3').style.display = 'block';
		document.getElementById('vipescortdiv4').style.display = 'block';
		document.getElementById('vipescortdiv5').style.display = 'block';

		$(".vipescort5").fadeOut(1000);
		setTimeout(function(){$(".vipescort4").fadeOut( 1000 );},600);
		setTimeout(function(){$(".vipescort3").fadeOut( 1000 );},700);
		setTimeout(function(){$(".vipescort2").fadeOut( 1000 );},800);
		setTimeout(function(){$(".vipescort1").fadeOut( 1000 );},900);
		
		$(".vipescortdiv5").fadeOut(1000);
		setTimeout(function(){$(".vipescortdiv4").fadeOut( 1000 );},600);
		setTimeout(function(){$(".vipescortdiv3").fadeOut( 1000 );},700);
		setTimeout(function(){$(".vipescortdiv2").fadeOut( 1000 );},800);
		setTimeout(function(){$(".vipescortdiv1").fadeOut( 1000 );},900);
		
		setTimeout(function(){doajax('ajax/','ajax_vip_escorts','ezvan='+main_vipescorts_miez,'kiemelt_valasz4');},1800);
	} else
	{
		doajax('ajax/','ajax_vip_escorts','ezvan='+main_vipescorts_miez,'kiemelt_valasz4');
	}
}

function kiemelt_valasz4() {
	if (ajax_vip_escorts.readyState == 4){
		resp = ajax_vip_escorts.responseText;
		document.getElementById('vip_escorts').innerHTML = resp
		$(".vipescort1").fadeIn(1000);
		setTimeout(function(){$(".vipescort2").fadeIn( 1000 );},100);
		setTimeout(function(){$(".vipescort3").fadeIn( 1000 );},200);
		setTimeout(function(){$(".vipescort4").fadeIn( 1000 );},300);
		setTimeout(function(){$(".vipescort5").fadeIn( 1000 );},400);
		
		$(".vipescortdiv1").fadeIn(1000);
		setTimeout(function(){$(".vipescortdiv2").fadeIn( 1000 );},100);
		setTimeout(function(){$(".vipescortdiv3").fadeIn( 1000 );},200);
		setTimeout(function(){$(".vipescortdiv4").fadeIn( 1000 );},300);
		setTimeout(function(){$(".vipescortdiv5").fadeIn( 1000 );},400);
	}
}*/

/////////////////////////v i p a g e n c i e s //////////////////
/*function kiemelt5(){
	main_vipagencies_miez++;
	if(main_vipescorts_miez != 1){
		document.getElementById('vipescorts1').style.display = 'block';
		document.getElementById('vipescorts2').style.display = 'block';
		document.getElementById('vipescorts3').style.display = 'block';
		document.getElementById('vipescorts4').style.display = 'block';
		document.getElementById('vipescorts5').style.display = 'block';

		$(".vipescorts5").fadeOut(1000);
		setTimeout(function(){$(".vipescorts4").fadeOut( 1000 );},600);
		setTimeout(function(){$(".vipescorts3").fadeOut( 1000 );},700);
		setTimeout(function(){$(".vipescorts2").fadeOut( 1000 );},800);
		setTimeout(function(){$(".vipescorts1").fadeOut( 1000 );},900);
		
		setTimeout(function(){doajax('ajax/','ajax_vip_agencies','ezvan='+main_vipagencies_miez,'kiemelt_valasz5');},1800);
	} else
	{
		doajax('ajax/','ajax_vip_agencies','ezvan='+main_vipagencies_miez,'kiemelt_valasz5');
	}
}

function kiemelt_valasz5() {
	if (ajax_vip_agencies.readyState == 4){
		resp = ajax_vip_agencies.responseText;
		document.getElementById('vip_agencies').innerHTML = resp
		$(".vipescorts1").fadeIn(1000);
		
		setTimeout(function(){$(".vipescorts2").fadeIn( 1000 );},100);
	
		setTimeout(function(){$(".vipescorts3").fadeIn( 1000 );},200);
	
		setTimeout(function(){$(".vipescorts4").fadeIn( 1000 );},300);
		
		setTimeout(function(){$(".vipescorts5").fadeIn( 1000 );},400);
	}
}*/

///mini banner ////////////////////////////////////////////////////////////////////////////////
/*function kiemelt6(){
	main_vipagencies_miez++;
	if(main_vipescorts_miez != 1){
		document.getElementById('mini1').style.display = 'block';
		document.getElementById('mini2').style.display = 'block';
		document.getElementById('mini3').style.display = 'block';
		document.getElementById('mini4').style.display = 'block';
		document.getElementById('mini5').style.display = 'block';


		$(".mini5").fadeOut(1000);
		setTimeout(function(){$(".mini4").fadeOut( 1000 );},600);
		setTimeout(function(){$(".mini3").fadeOut( 1000 );},700);
		setTimeout(function(){$(".mini2").fadeOut( 1000 );},800);
		setTimeout(function(){$(".mini1").fadeOut( 1000 );},900);
		
		setTimeout(function(){doajax('ajax/','ajax_mini_banner','ezvan='+main_mini_banner_miez,'kiemelt_valasz6');},1800);
	} else
	{
		doajax('ajax/','ajax_mini_banner','ezvan='+main_mini_banner_miez,'kiemelt_valasz6');
	}
}

function kiemelt_valasz6() {
	if (ajax_mini_banner.readyState == 4){
		resp = ajax_mini_banner.responseText;
		document.getElementById('mini_banner1').innerHTML = resp
		$(".mini1").fadeIn(1000);
		setTimeout(function(){$(".mini2").fadeIn( 1000 );},100);
		setTimeout(function(){$(".mini3").fadeIn( 1000 );},200);
		setTimeout(function(){$(".mini4").fadeIn( 1000 );},300);	
		setTimeout(function(){$(".mini5").fadeIn( 1000 );},400);
	}
}

function kiemelt7(){
	main_vipagencies_miez++;
	if(main_vipescorts_miez != 1){
		document.getElementById('rmini1').style.display = 'block';
		document.getElementById('rmini2').style.display = 'block';
		document.getElementById('rmini3').style.display = 'block';
		document.getElementById('rmini4').style.display = 'block';
		document.getElementById('rmini5').style.display = 'block';

		$(".rmini5").fadeOut(1000);
		setTimeout(function(){$(".rmini4").fadeOut( 1000 );},600);
		setTimeout(function(){$(".rmini3").fadeOut( 1000 );},700);
		setTimeout(function(){$(".rmini2").fadeOut( 1000 );},800);
		setTimeout(function(){$(".rmini1").fadeOut( 1000 );},900);
		
		setTimeout(function(){doajax('ajax/','ajax_mini_banner2','ezvan='+main_mini_banner_miez,'kiemelt_valasz7');},1800);
	} else
	{
		doajax('ajax/','ajax_mini_banner2','ezvan='+main_mini_banner_miez,'kiemelt_valasz7');
	}
}

function kiemelt_valasz7() {
	if (ajax_mini_banner2.readyState == 4){
		resp = ajax_mini_banner2.responseText;
		document.getElementById('mini_banner2').innerHTML = resp
		$(".rmini1").fadeIn(1000);
		setTimeout(function(){$(".rmini2").fadeIn( 1000 );},100);
		setTimeout(function(){$(".rmini3").fadeIn( 1000 );},200);
		setTimeout(function(){$(".rmini4").fadeIn( 1000 );},300);	
		setTimeout(function(){$(".rmini5").fadeIn( 1000 );},400);
	}
}*/


function ugrik2(){
	if($("#typee").val() == "-"){
		alert("Pleas select a category!");
	} else {
		window.location = "list_of_escorts.php?type="+$("#typee").val();	
	}
}
function ugrik(){
	if($("#typeee").val() == "-"){
		alert("Pleas select a category!");
	} else {
		window.location = "list_of_escorts.php?type="+$("#typeee").val();	
	}
}
function mehet(szam){
	doajax('ajax/','ajax_php_update','ezvan='+szam,'mehet_valasz');	
}

function mehet_valasz(){
		if (ajax_php_update.readyState == 4){
		resp = ajax_php_update.responseText;
		//ablak ugratás
		window.location = ''+resp;
	}
}

// top banner 486*60 , 6 a főoldalra
/*function top_banner1(){
	top_banner++;
	if(top_banner != 1){
		document.getElementById('top1').style.display = 'block';
		document.getElementById('top2').style.display = 'block';
		document.getElementById('top3').style.display = 'block';
		document.getElementById('top4').style.display = 'block';
		document.getElementById('top5').style.display = 'block';
		document.getElementById('top6').style.display = 'block';

		$(".top6").fadeOut(1000);
		setTimeout(function(){$(".top5").fadeOut( 1000 );},600);
		setTimeout(function(){$(".top4").fadeOut( 1000 );},700);
		setTimeout(function(){$(".top2").fadeOut( 1000 );},800);
		setTimeout(function(){$(".top2").fadeOut( 1000 );},900);
		setTimeout(function(){$(".top1").fadeOut( 1000 );},500);
		
		setTimeout(function(){doajax('ajax/','ajax_top_banner','ezvan='+top_banner,'top_banner_valasz');},1800);
	} else
	{
		doajax('ajax/','ajax_top_banner','ezvan='+top_banner,'top_banner_valasz');
	}
}

function top_banner_valasz() {
	if (ajax_top_banner.readyState == 4){
		resp = ajax_top_banner.responseText;
		var my_tomb = resp.split("####");
		document.getElementById('top_b1').innerHTML = my_tomb[0]
		document.getElementById('top_b2').innerHTML = my_tomb[1]
		document.getElementById('top_b3').innerHTML = my_tomb[2]
		$(".top1").fadeIn(1000);
		setTimeout(function(){$(".top2").fadeIn( 1000 );},100);
		setTimeout(function(){$(".top3").fadeIn( 1000 );},200);
		setTimeout(function(){$(".top4").fadeIn( 1000 );},300);	
		setTimeout(function(){$(".top5").fadeIn( 1000 );},400);
		setTimeout(function(){$(".top6").fadeIn( 1000 );},500);
	}
}*/
//aloldalakrta 486*60as banner, 2 db
function Refresh_bannerv(){
		refreshvannerv++;
	if(refreshvannerv != 1){
		document.getElementById('top1').style.display = 'block';
		document.getElementById('top2').style.display = 'block';
	

		$(".top2").fadeOut(1000);
		setTimeout(function(){$(".top1").fadeOut( 1000 );},500);
		setTimeout(function(){doajax('ajax/','ajax_bannerv','ezvan='+refreshvannerv,'Resp_Refresh_bannerv');},1800);
	} else
	{
		doajax('ajax/','ajax_bannerv','ezvan='+refreshvannerv,'Resp_Refresh_bannerv');
	}
	
}

function Resp_Refresh_bannerv(){
		if (ajax_bannerv.readyState == 4){
			resp = ajax_bannerv.responseText;
			var my_tomb = resp.split("####");
			document.getElementById('bannerv').innerHTML = my_tomb[0]
			
			$(".top1").fadeIn(1000);
			setTimeout(function(){$(".top2").fadeIn( 1000 );},100);
	}
}
function toggleDiv(id,flagit) {
	if (flagit=="1"){
		if (document.layers) document.layers[''+id+''].visibility = "show"
		else if (document.all) document.all[''+id+''].style.visibility = "visible"
		else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"
	}
	else
		if (flagit=="0"){
		if (document.layers) document.layers[''+id+''].visibility = "hide"
		else if (document.all) document.all[''+id+''].style.visibility = "hidden"
		else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
	}
}