function ieHover(h_list){
	if($.browser.msie && $.browser.version < 7){
		$(h_list).hover(function(){
			$(this).addClass('hover');
		}, function(){
			$(this).removeClass('hover');
		});
	}
}
function initPopup(){
	$('.popup').hide();
	$('#content').append('<div class="fader" style="background:#000;width:100%;position:fixed;top:0;left:0;z-index:8;"></div>');
	$('.fader').css('opacity', '0.67').height($(document).height());
	$('.fader').hide();
	$('.show-popup').click(function(){
		$('.fader, .popup').fadeIn();
		$('.popup').css({'top':((parseInt($(window).height()) - parseInt($('.popup').height())) / 2) + $(window).scrollTop(), 'visibility': 'visible'});
		return false;
	});
	$('.fader').click(function(){
		$('.fader, .popup').fadeOut();
		return false;
	});
}
function initPage(){
	ieHover('.tabs-box .tabs-nav li, .casinos-list .btn-play-now, .threecol .play-now, .presentation-box .btn-play');
	$('.gallery').galleryScroll({
		btPrev: 'a.link-prev',
		btNext: 'a.link-next',
		holderList: 'div.tabs-gallery-content',
		scrollElParent: 'ul',
		scrollEl: 'li',
		slideNum: false,
		duration: 500,
		step: 1,
		circleSlide: true,
		disableClass: 'disable',
		funcOnclick: null
	});
	initPopup();
}
if (window.addEventListener) window.addEventListener("load", initPage, false);
else if (window.attachEvent && !window.opera) window.attachEvent("onload", initPage);
