$(function(){
	$(".content tr:nth-child(even)").addClass("even");
});
(function($){
	$.fn.simpleButton = function(){
		this.mousedown(function(){
			$(this).addClass('mousedown');
		}).mouseup(function(){
			$(this).removeClass('mousedown');
		}).mouseleave(function(){
			$(this).removeClass('mousedown');
		});
	};
})(jQuery);

$(function(){
		$('.button-game').click(function(event){
			yaCounter4084612.reachGoal('casinoclick');
			yaCounter4084612.notBounce();
			return true;
		});
		
		$('.gameonline a').click(function(event){
			yaCounter4084612.reachGoal('ruletka');
			yaCounter4084612.notBounce();
			return true;
		});
		
	$('.simple-button').simpleButton();
	$('a#click-box-one').click(function (event) {
		event.preventDefault();
		$("#box-two").hide();
		$("#box-one").show();
    });
	$('a#click-box-two').click(function (event) {
		event.preventDefault();
		$("#box-one").hide();
		$("#box-two").show();
    });
    

	$('#promomath').html('<div style="text-align: right; margin: 15px 0;">'+
		'<a href="http://t800.org/track/azartplay/?l=azart5" rel="nofollow" target="_blank">'+
		'<img rel="nofollow" src="http://azartcash.com/bns/4/200_200.gif" width="200" height="200" border="0">'+
		'</a>'+
		'</div>'+
		'<div style="text-align: right; margin: 15px 0;">'+
		'<a href="http://www.istrk.com/track/caswilban/">'+
		'<img src="http://serve.williamhillcasino.com/promoLoadDisplay?member=isteinzeig&campaign=DEFAULT&channel=DEFAULT&zone=785517785&lp=785517769" width="160" height="600" border="0" alt="williamhillcasino.com" title="williamhillcasino.com" />'+
		'</a>'+
		'</div>');
		
	$('#promomath2').html('<div style="text-align: left; margin: 15px 0;">'
		+'<a href="http://www.istrk.com/track/caswilban/">'+
		'<img src="http://serve.williamhillcasino.com/promoLoadDisplay?member=isteinzeig&campaign=DEFAULT&channel=DEFAULT&zone=785517803&lp=785517769" width="250" height="250" border="0" alt="williamhillcasino.com" title="williamhillcasino.com" />'+
		'</a></div>');
		
	$('.elink').click(function (event) {
			event.preventDefault();
			sHref = $(this).attr('rel');
			window.location.href = 'http://www.casino-player.ru' + sHref;
	    });
	$('.nlink').click(function (event) {
			event.preventDefault();
			sHref = $(this).attr('rel');
			window.location.href = sHref;
	    });
}); 
