function bookmarksite(){
		var title = document.title;
		var url = location.href.replace(/\.htm#?$/i, '');
		if (window.sidebar) // firefox
			window.sidebar.addPanel(title, url, "");
		else if(window.opera && window.print){ // opera
			var elem = document.createElement('a');
			elem.setAttribute('href',url);
			elem.setAttribute('title',title);
			elem.setAttribute('rel','sidebar');
			elem.click();
		} 
		else if(document.all)// ie
			window.external.AddFavorite(url, title);
	};
	
$(document).ready(function(){
	/* JS - NOJS */
	
	$('.container').attr("id", 'js');
	/* GREY ODDITY IN TABLES */
	$('.grey_block_table').not('.vertical').find('tr:odd').addClass('grey_table_odd');
	$('.vertical tr').each(function(){
		$(this).find('td:odd').addClass('grey_table_odd_v');
	});
	
	$('.grey_block_table').each(function(){
		$(this).find('tr:last').addClass('trlast');
	});
	
	/* GREY TABLE MANIPULATION */
	$('.grey_block').each(function() {
		var tableW = $(this).find('.grey_block_table').outerWidth(true);
		$(this).find('.grey_header').width(tableW-6);
	});
	/* CHARTS MANIPULATIONS */
	$('.chart_floated_l, .chart_floated_r').each(function(){
		var tableH = $(this).find('.chart').outerHeight(true);
		var tableW = $(this).find('.chart').outerWidth(true)
		$(this).find('.chart_header_v > div').height(tableH-22);
		$(this).width(tableW+19);
	})
	
	/* FAQ slidedown */
	$('.faq dd').hide();
	$('.faq dt a').click(function(ev){
		ev.preventDefault();
		$(this).parent('dt').next('dd').slideToggle('fast');
	});
	
	
	/* poll deviation */
	$('.box_poll .poll_form ol').addClass('poll_divide1').after('<ol class="poll_divide2"></ol>');
	var pollItems = $('.box_poll .poll_form li').length;
	var x1 = Math.ceil(pollItems/2);
	$('.box_poll .poll_form li:gt('+(x1-1)+')').appendTo('.poll_divide2');
	
	/* newpage*/
	$('li a[href^="play-roulette"]').parent('li').addClass('newpage'); 
	/* tool */
	$('li a[href*="lucky-number-generator"]').parent('li').addClass('toolpage');
	/* hot */
	$('li a[href*="roulette-cheatsheet"], li a[href*="free-roulette"]').parent('li').addClass('hotpage');
	
	/* Google Analytics goals */
	$('a[href^=casino/]').attr('target', '_blank').click(function(){
		var href = $(this).attr('href');
		if (typeof(pageTracker)!='undefined' && href.indexOf('//casino/')==-1) {
			pageTracker._trackPageview('click/'+href.replace(/http:\/\/[^\/]+\/[^\/]+/i, ''));
		}
		return true;
	})
	
	/* press tabs */
	$('.press_tab').click(function(){
		if ($(this).hasClass('active') == true)
		{}
		else
		{$('.press_tab, .press_head .seeall_link, .press_wrap').toggleClass('active');}
	});
	
	
	
	var lwH = $('.leftwrapper').height();
	var rwH = $('.right').height();
	if (lwH < rwH) $('.leftwrapper').height(rwH);
	
	/* addthos */
	$('.addthis').each(function(){
		$.addthis('blackjackdoc');
	});

	/* digg */
	$('.gameb_digg').each(function(){
		$(this).loadDigg();
	});
});