$(document).ready(function(){
	
	var cookieVal = $.cookie('ShowNewCoinFacts');
 
	if ( !(cookieVal) ) {
		cookieVal = 0;
	}
 
	if ( cookieVal % 100 == 0 ) {
		// supress interstitial on iPhone
		var agent = navigator.userAgent.toLowerCase();
		var iPhone = (agent.indexOf('iphone') != -1 || agent.indexOf('ipod') != -1)
		if (!iPhone)
			tb_show("","/newCoinFacts.html?KeepThis=true&TB_iframe=true&height=490&width=766","");
	}
 
	$.cookie('ShowNewCoinFacts', parseInt(cookieVal)+1, { expires: 30, path: '/' });
});

