//ie6 fixes function
function ie6Fixes() {
	if ($.browser.msie && $.browser.version == "6.0") {
		
		//pngFix
		DD_belatedPNG.fix("ul.top-views li .thumb strong, ul.photos li a strong, ul.jcArticles li a strong, .b-title, .a-content UL LI DIV A, .ul.articles li .a-thumb a strong, .box .top li a strong, .articleEntry .content .picture A SPAN");
		
		//hover
		$("#content .slideshow .s-articles ul li a").hover(
			function() {
				$(this).addClass("hover");
			},
			function() {
				$(this).removeClass("hover");
			}
		);
	}
}

//font replacement function
function cufonizer() {
	Cufon.replace(".box:not('.cross-box') .h-title");
	Cufon.replace(".under18 .message big");
	Cufon.replace(".under18 .message p");
}


$(document).ready(function() {
	ie6Fixes();
	cufonizer();
	
	//star rating plugin
	$(".ratingStar").rating();

	//jQuery carousel
	//$(".jCarousel").jcarousel();

	//hide overlayer interzis sub 18ani onClick
	$(".under18 .over").click(function(e) {
		$(".overlayer, .under18").fadeOut("fast");
		e.preventDefault();
	});

});
