	function ShowWin(url,x,y,name,isscrollbars) {
	    cx=screen.width / 2 - (x / 2);
	    cy=(screen.height/2-(y/2));
	    isscrollbars=(isscrollbars=="no")?"no":"yes";
	    window.open(url,name,"toolbar=no,status=no,directories=no,menubar=no,resizable=yes,width="+x+",height="+y+",scrollbars="+isscrollbars+",top="+cy+",left="+cx);
	}

/**
* Добавление в закладки
*/
function pageBookmark(url,title) {
	if (!url) url = location.href;
	if (!title) title = document.title;

	//Gecko
	if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) window.sidebar.addPanel (title, url, "");
	//IE4+
	else if (typeof window.external == "object") window.external.AddFavorite(url, title);
	//Opera7+
	else if (window.opera && document.createElement)
	{
		var a = document.createElement('A');
		if (!a) return false; //IF Opera 6
		a.setAttribute('rel','sidebar');
		a.setAttribute('href',url);
		a.setAttribute('title',title);
		a.click();
	}
	else return false;
	return true;
}


function ShowPropWinMod(url,prx,pry,name,isscrollbars,toolbar,status,directories,menubar,resizable,wlocation) {
	var x,y;
	y=screen.availHeight
	if(!y) y=screen.height
	x=screen.availWidth
	if(!x) x=screen.width
	
	x = parseInt(prx*x/100);
	y = parseInt(pry*y/100);
	
	cx=screen.width / 2 - (x / 2);
	cy=(screen.height/2-(y/2));
	isscrollbars=(isscrollbars=="no")?"no":"yes";
	toolbar=(toolbar=="no")?"no":"yes";
	status=(status=="no")?"no":"yes";
	directories=(directories=="no")?"no":"yes";
	menubar=(menubar=="no")?"no":"yes";
	resizable=(resizable=="no")?"no":"yes";
	wlocation=(wlocation=="no")?"no":"yes";
	window.open(url,name,"toolbar="+toolbar+",location="+wlocation+",status="+status+",directories="+directories+",menubar="+menubar+",resizable="+resizable+",width="+x+",height="+y+",scrollbars="+isscrollbars+",top="+cy+",left="+cx);
}

function w(A,B,QS){
	var D=new Date().getTime();
	var C=(A&&A.href)?A.href:"";
	var dQS = "";
	if (typeof(QS)!="undefined") { for (qN in QS) { dQS += qN+"="+QS[qN]+"/"; } }
	document.createElement("IMG").src="stat/uid="+B+"/u="+D+"/"+dQS+"*"+C;
}

function show_hidden() {
	var el = document.getElementById('line_project');
	el.className = 'active';
	document.getElementById('div_for_click').style.display = 'block';
}

function hidden_show() {
	var el = document.getElementById('line_project');
	el.className = 'noactive';
	document.getElementById('div_for_click').style.display = 'none';
}

function show_hoteliers() {
	var el = document.getElementById('for_positioning');
	el.className = 'active';
}

function hidden_hoteliers() {
	var el = document.getElementById('for_positioning');
	el.className = 'noactive';
}

function login_open() {
	var logvar = document.getElementById('login');
	switch (logvar.className) {
		case 'noactive':
		logvar.className = 'login_open'
		break;
		case 'login_open':
		logvar.className = 'noactive'
		break;
	}
}
function add_full_info() {
	var FullInfo = document.getElementById('more_fields');
	switch (FullInfo.className) {
		case 'full_info':
		FullInfo.className = 'no_info'
		break;
		case 'no_info':
		FullInfo.className = 'full_info'
		break;
	}
}

function FindTour_full() {
	var FindTour = document.getElementById('find_tour');
	switch (FindTour.className) {
		case 'poisk_tura':
		FindTour.className = 'poisk_tura_open'
		break;
		case 'poisk_tura_open':
		FindTour.className = 'poisk_tura'
		break;
	}
}

function MyToggleClass(this_id) {
	switch (document.getElementById(this_id).className) {
		case this_id+'_active':
		document.getElementById(this_id).className = this_id+'_noactive'
		break;
		case this_id+'_noactive':
		document.getElementById(this_id).className = this_id+'_active'
		break;
	}
}

function ActiveClass(this_id) {
	document.getElementById(this_id).className = this_id+'_active';
}

function noActiveClass(this_id) {
	document.getElementById(this_id).className = this_id+'_noactive';
}
