var ie6 = false;

$(document).ready(function () {

	if(jQuery.browser.version == "6.0" && jQuery.browser.msie){
		ie6 = true;
	}
	if(ie6) {
			
	}
	
	setJS();
	initPushHome();

	
});

$(window).load(function () {
	initFB();
});

function setJS(){
	$("body").addClass("hasJS");
}

function initPushHome(){
	$("#pushHome").bind("click",function(){
		$(this).remove();
		initHomeSlideshow();
	});
	
	var hash=location.hash;
	if (hash){
		$("#pushHome").click();
	}
	else{
		setTimeout(function(){ $("#pushHome").click(); }, 8000 ); 
		$("#pushHome").height($(document).height());
	}	
}

function initFB(){
	$("#block_flipping").cjImageFlipBox({});
	$("#block_flipping a").lightBox();
}

function initHomeSlideshow(){
	$("#slideshowHome").jCarouselLite({
		auto: 2000,
		speed: 2000,
		visible:5
	});
}



