
var pathArray = window.location.pathname.split('/');

$(document).ready(function(){

	if (document.getElementById("scrollbar1")) {	
		$("div.container_item div.beruhazo div.text #scrollbar1").tinyscrollbar({
			axis: 'y',
			sizethumb: 60
		});
	}
	
	
	$(".fooldal a").hover(function(){
		$(this).children("span").stop().animate({
			opacity: 0.9,
			marginTop: 100,
			backgroundColor: '#AAB648'
		}, 300)
	}, function(){
		$(this).children("span").stop().animate({
			opacity: 0.6,
			marginTop: 120,
			backgroundColor: '#354020'
		}, 500)
	});
	
	
	$(".gallery_group a").hover(function(){
		$(this).children("span").stop().animate({
			opacity: 0.9,
			height: 60,
			backgroundColor: '#AAB648'
		}, 300)
	}, function(){
		$(this).children("span").stop().animate({
			opacity: 0.6,
			height: 40,
			backgroundColor: '#354020'
		}, 500)
	});
	
	
	
	$(".gallery_item").hover(function(){
		$(this).stop().animate({
			borderTopColor: '#333',
			borderLeftColor: '#333',
			borderRightColor: '#333',
			borderBottomColor: '#333'
		}, 200)
	}, function(){
		$(this).stop().animate({
			borderTopColor: '#AAB648',
			borderLeftColor: '#AAB648',
			borderRightColor: '#AAB648',
			borderBottomColor: '#AAB648'
		}, 300)
	});
	
	
	
});


function showfloor(building, floor){

	if (CORE_LANG == 'hu') {
		img = '/uploaded/image/' + building + '-epulet-emelet-' + floor + '.jpg';
		title = building.toUpperCase() + ' épület | ' + floor + '. emelet';
		if (floor == '0') 
			title = 'Földszint';
	}
	else {
		img = '/uploaded/image/' + building + '-building-floor-' + floor + '.jpg';
		title = 'Building ' + building.toUpperCase() + ' | ' + floor + '. Floor';
		if (floor == '0') 
			title = 'Downstairs';
	}
	
	$.prettyPhoto.open(img, title, title);
	
}



