function searchTour(){
location.href='http://strana-uae.ru/94/';	
}

function orderTour(id){

location.href='http://strana-uae.ru/94/';
/*
	if (id==undefined) id=0;
    var pw1=window.open("/order.php?id="+id,"pw1","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=no,width=400,height=580");
    pw1.focus();
*/
}

function feedBack(){
    var pw=window.open("/feedback.php","pw","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=no,width=400,height=340");
    pw.focus();
}

function misTake(){
    var pw=window.open("/mistake.php","pw","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=no,width=400,height=340");
    pw.focus();
}


function getCookie(name) {
        var prefix = name + "="
        var cookieStartIndex = document.cookie.indexOf(prefix)
        if (cookieStartIndex == -1)
                return null
        var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length)
        if (cookieEndIndex == -1)
                cookieEndIndex = document.cookie.length
        return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex))
}




function closeAdvert(){
	document.getElementById("advert").style.visibility='hidden';
}
function showAdvert(){
	document.getElementById("advert").style.visibility='visible';
	window.scroll(300,300);
}

var gPicmax,gPicmin,gUp,gDown;
function g_pics(){
	gPicmax=new Image;
	gPicmax.src="/img/g/g_maximize.gif";

	gPicmin=new Image;
	gPicmin.src="/img/g/g_minimize.gif";

	gUp=new Image;
	gUp.src="/img/g/more_up.jpg";

	gDown=new Image;
	gDown.src="/img/g/more_down.jpg";
}
function g_minimize_maximize(item){
	var modes=new Array();
	var ref=document.getElementById(item);

	modes["none"]="inline";
	modes["inline"]="none";
	modes["visible"]="hidden";
	modes["hidden"]="visible";

	ref.style.display=modes[ref.style.display];
	ref.style.visibility=modes[ref.style.visibility];

	if(ref.style.display=="none")		
	{
		document.getElementById(item+"_but").src=gPicmax.src;
		document.getElementById(item+"_switcher").innerText="развернуть";
	}
	else
	{
		document.getElementById(item+"_but").src=gPicmin.src;
		document.getElementById(item+"_switcher").innerText="свернуть";
	}

}


