$(window).bind("load",function(){

/*$("#pagetop").click(function(){
	pageScroll();
	return false;
});*/

/*$(window).resize(function(){
scrollSetup();
});
*/
bodyHeight();
$(window).resize(function(){
bodyHeight();
});

});

$(document).ready(function(){
//$(window).bind("load",function(){
//$(function(){

//////////////////////
if($.browser.msie && $.browser.version < 7) {
$(".infobar, .infofoot").pngfix();
}
//scrollSetup();

$('.infoscroll').jScrollPane({
	scrollbarWidth: 6
});


//////////////////////

});


function scrollSetup() {
	$('.jScrollPaneContainer').height($(document.body).height());
	$('#content').jScrollPane({
	scrollbarWidth: 6
	});
}

function bodyHeight() {
	if($.browser.msie && $.browser.version < 7) {
		//$("#footer").css({'bottom':0});
		//$(document.body).height($("#page").height());
		$("#commonFooter").css({'bottom':0});
	}else{
		$(document.body).height($("#page").height()-25);
	}
}
