/*
	javascript development
	============================
	website 	: 	lindian village
	date 		: 	16-9-2008		
	author 		: 	Mayra Metaxa / developer
	company		: 	mozaik creative business solutions
	url			:	http://www.mozaik.com

*/

var css_browser_selector = function() {
	var 
		ua = navigator.userAgent.toLowerCase();
		is = function(t){ return ua.indexOf(t) != -1; },
		h = document.getElementsByTagName('html')[0],
		b = (!(/opera|webtv/i.test(ua)) && /msie (\d)/.test(ua)) ? ((is('mac') ? 'ieMac ' : '') + 'ie ie' + RegExp.$1)
			: is('gecko/') ? 'gecko' : is('opera') ? 'opera' : is('konqueror') ? 'konqueror' : is('applewebkit/') ? 'webkit safari' : is('mozilla/') ? 'gecko' : '',
		os = (is('x11') || is('linux')) ? ' linux' : is('mac') ? ' mac' : is('win') ? ' win' : '';
	var c = b+os+' js';
	h.className += h.className?' '+c:c;
}();



// No spam e-mail address
function noSpam(a,b,c) {
	document.write('<a href="mai'+'lto:'+c+'@'+b+'.'+a+'">'+c+'@'+b+'.'+a+'</a>');
}


function show_room_facilities()
{
	id = "contentList";
	
	if (document.getElementById(id).style.display == "none")
	{
		document.getElementById(id).style.display = "block";
		document.getElementById('room_fac').className = "loc";
	}
	else
	{
		document.getElementById(id).style.display = "none";
		document.getElementById('room_fac').className = "";
	}
}


function show_hide_2_elem(which)
{
	var sh_block, block;	
	var sh_other, other;
 
	if (which == 1)	
	{
		block = "block1";	//energo 
		other = "block2";	//mi energo
		
		sh_block = "sh_block1";	//apo pio link egine to click (energo)
		sh_other = "sh_block2";	//mi energo link
	}
	else if (which == 2)
	{
		block = "block2";
		other = "block1";
		
		sh_block = "sh_block2";	
		sh_other = "sh_block1";
	}
	
	if (document.getElementById(block).style.display == "block")
	{
		document.getElementById(block).style.display = "none";
		document.getElementById(sh_block).className = "";
	}
	else
	{
		document.getElementById(block).style.display = "block";
		document.getElementById(sh_block).className = "loc";
		
		document.getElementById(other).style.display = "none";
		document.getElementById(sh_other).className = "";
	}
	
}

function print_page()
{
	
	win = window.open("print.html", 'popup', 'toolbar = 0, status = no, scrollbars = 1, menubar = 1');

}

function print_page_ru()
{
	
	win = window.open("print_ru.html", 'popup', 'toolbar = 0, status = no, scrollbars = 1, menubar = 1');

}
