if($.browser.mozilla||$.browser.opera){document.removeEventListener("DOMContentLoaded",$.ready,false);document.addEventListener("DOMContentLoaded",function(){$.ready()},false)}$.event.remove(window,"load",$.ready);$.event.add( window,"load",function(){$.ready()});$.extend({includeStates:{},include:function(url,callback,dependency){if(typeof callback!='function'&&!dependency){dependency=callback;callback=null}url=url.replace('\n','');$.includeStates[url]=false;var script=document.createElement('script');script.type='text/javascript';script.onload=function(){$.includeStates[url]=true;if(callback)callback.call(script)};script.onreadystatechange=function(){if(this.readyState!="complete"&&this.readyState!="loaded")return;$.includeStates[url]=true;if(callback)callback.call(script)};script.src=url;if(dependency){if(dependency.constructor!=Array)dependency=[dependency];setTimeout(function(){var valid=true;$.each(dependency,function(k,v){if(!v()){valid=false;return false}});if(valid)document.getElementsByTagName('head')[0].appendChild(script);else setTimeout(arguments.callee,10)},10)}else document.getElementsByTagName('head')[0].appendChild(script);return function(){return $.includeStates[url]}},readyOld:$.ready,ready:function(){if($.isReady) return;imReady=true;$.each($.includeStates,function(url,state){if(!state)return imReady=false});if(imReady){$.readyOld.apply($,arguments)}else{setTimeout(arguments.callee,10)}}});
$.include('js/superfish.js')
$.include('js/jquery.easing.1.3.js')


$(function(){
	Cufon.replace('.logo,#coin-slider .banner strong',{fontFamily:'Coolvetica Rg',textShadow:'1px 1px #fff'})
	Cufon.replace('h1,h2,h3,h4,h5,.dropcap,figcaption,table thead th',{fontFamily:'Coolvetica Rg'})
	Cufon.replace('.button',{fontFamily:'Coolvetica Rg',textShadow:'1px 1px #af2f44',hover:{textShadow:'1px 1px #221e1c'}})
	Cufon.replace('h6,.text-2',{fontFamily:'Aller'})
	Cufon.replace('h4,.text-3,.box strong,blockquote',{fontFamily:'Aller italic'})
	Cufon.replace('.sf-menu>li>a',{fontFamily:'Coolvetica Rg',textShadow:'1px 1px #fff',hover:true})
	Cufon.replace('.sf-menu>li>ul a',{fontFamily:'Coolvetica Rg',hover:true})
	
	$('.box').hover(function(){$(this).addClass('hover').stop().animate({backgroundColor:'#fb4361',color:'#fff'});Cufon.refresh()},function(){$(this).removeClass('hover').stop().animate({backgroundColor:'#fff',color:'#2f2f2f'},200,function(){Cufon.refresh()})})
})			
function onAfter(curr, next, opts, fwd){var $ht=$(this).height();$(this).parent().animate({height:$ht})}
