$(document).ready(function(){
	$('.chooseCityHeader input').click(function() {
		window.open($(this).attr('value'), "_self")
	});
});


function mapBrno(position) {
	document.getElementById('MapRegion').src='/data/xsl/img/mapa'+ position +'.jpg';
	document.getElementById('chooseRegionId').value = position;
	document.getElementById('Regions').selectedIndex = position;
}
function chooseRegion(ThisForm) {
	document.getElementById('MapRegion').src='/data/xsl/img/mapa'+ ThisForm.value +'.jpg';
	document.getElementById('chooseRegionId').value = ThisForm.value;
}

function ShowMapDetail(id) {
	document.getElementById('mapdetail' + id).style.display='block';
}

function HideMapDetail(id) {
	document.getElementById('mapdetail' + id).style.display='none';
}



function showGoodsOnMap() {
	document.getElementById('showInMap').style.display = 'block';
	document.getElementById('showInMap').style.top = 220;
	document.getElementById('showInMap').style.left = 280;
//	$("#showInMap").fadeIn("normal");
//	$("#showInMap").css("left", (winW()/2)-460);
//	$("#showInMap").css("top", (getScroll()+50));
}

function closeGoodsOnMap() {
	document.getElementById('showInMap').style.display='none';
}


function getScroll(){
	if (self.pageYOffset) {
		scrollTop = self.pageYOffset;
	} else if (document.documentElement && document.documentElement.scrollTop) {
		scrollTop = document.documentElement.scrollTop;
	} else if (document.body) {
		scrollTop = document.body.scrollTop;
	}	
	return (scrollTop);
};


function winW() {
   if (window.innerWidth)
      return window.innerWidth;
   else if
   (document.documentElement &&
   document.documentElement.clientWidth)
      return document.documentElement.clientWidth;
   else if
   (document.body && document.body.clientWidth)
      return document.body.clientWidth;
   else
      return null;      
}




function showFormPrice() {
	document.getElementById('showFormPrice').style.display = 'block';
	document.getElementById('showFormPrice').style.top = 220;
	document.getElementById('showFormPrice').style.left = 280;
}

function closeFormPrice() {
	document.getElementById('showFormPrice').style.display='none';
}


function showFormReserve() {
	document.getElementById('showFormReserve').style.display = 'block';
	document.getElementById('showFormReserve').style.top = 220;
	document.getElementById('showFormReserve').style.left = 280;
}

function closeFormReserve() {
	document.getElementById('showFormReserve').style.display='none';
}


