/*scroll news*/
$(function() {
	$(".newsticker-jcarousellite").jCarouselLite({
		vertical: true,
		hoverPause:true,
		visible: 1,
		auto:5000,
		speed:2000
	});
});
$(function() {
	$(".newsticker-tems").jCarouselLite({
		vertical: true,
		Horizontal: false,
		hoverPause:true,
		visible: 1,
		auto:4000,
		speed:2000
	});
});

/*top small images*/
$(function(){
$('.img_high').hover(function(){
$(this).children('img').stop().animate({width: "110px" }, 400);
}, function(){ $(this).children('img').stop().animate({width: "60px"}, 400); });
$('.img_wide').hover(function(){
$(this).children('img').stop().animate({width: "160px" }, 400);
}, function(){ $(this).children('img').stop().animate({width: "80px"}, 400); });
});

/*gorizontal scrolling*/
$(function() {
		$("#scrollable").scrollable({horizontal:true});
		var el = $("#scrollable");
		el.scrollable("end", 300);
	});
	
function showH(open){
document.getElementById(open).style.display = "";
}
/*gallery*/
$(document).ready(function() {
	$("a[rel=example_group]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'elastic',
		'overlayShow'	: false,
		'titlePosition' 	: 'over',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
		return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
		});
/*for top build||map image*/		
$("#build1").click(function(){
$("#build2").css("display", "block");
$("#build2").animate({width: "500px", height: "200px", top: "-36px", left: "160%", opacity: "1" }, 400);
});
$("#build2").click(function(){
$("#build2").animate({width: "0px", height: "0px", top: "30px", left: "10%", opacity: "0" }, 400);
$("#build2").css("display", "none");
});
/*for top build||map image*/			
});

