// JavaScript Document
$(window).resize(function() {
	  check_content();
	  sroller();
	});
	$(window).load(function() {
		check_content();
		sroller();
	});
	
	$(document).ready(function(){
		sliders();
	 
	});

function check_content() {
	var browserheight = $(window).height() - 187;
	$('#content').height(browserheight);
	$('.scroll-pane').height(browserheight-22);
}
function sroller() {
	$(function() {
		$('.scroll-pane').jScrollPane( {
				showArrows: true
			}
		);
	});
}
function sliders() {
	$(".slide").hover(
		function() {
		$(this).stop().animate({width: '165'}, "fast");
		},
		function() {
		$(this).stop().animate({width: '0'}, "fast");
	});
	
	$(".leftnav").hover(
		function() {
		$(this).stop().animate({width: '137'}, "fast");
		},
		function() {
		$(this).stop().animate({width: '40'}, "fast");
	});
}
function openoverlay(id) {
	var browserheight = $(window).height() - 272;
	tb_show("","overlay.php?detail="+id+"&inahlth="+browserheight+"&keepThis=true&TB_iframe=true&height="+browserheight+"&width=998",false);
}

