	Cufon.replace('#container h2', { fontFamily: 'rayshand' });
	Cufon.replace('#container h3', { fontFamily: 'rayshand' });
	Cufon.replace('#container button', { fontFamily: 'rayshand' });
	Cufon.replace('#container span.button', { fontFamily: 'rayshand' });
	Cufon.replace('div.sub_tab a.tab', { fontFamily: 'rayshand' });
	Cufon.replace('div.sub_tab a.tab2', { fontFamily: 'rayshand' });
	  // When the document loads do everything inside here ...
	  $(document).ready(function(){
		
		$("img.search_img").lazyload();
		
		$(".round_block").corner("round 10px");
		$(".round_block_purple").corner("round 10px");
		$('#adv_search').hide();
		
		$('a#more_options').click(function() {
		    $('#adv_search').slideToggle();
		    return false;
		  });
		$('a#search_options').click(function() {
		    $('#refine_search').slideToggle();
		    return false;
		  });

		// When a link is clicked
		$("a.tab").click(function () {
			
			// switch all tabs off
			$(".active").removeClass("active");
			
			// switch this tab on
			 $(this).addClass("active");

			var content_show = $(this).attr("title");
			// modified to allow clicking from outside of the tab area
			$("a."+content_show).addClass("active");
			
			// slide all content up
			$(".content").hide();
			
			// slide this content up
			$("#"+content_show).show();
		  
		  	Cufon.replace('div.sub_tab a.tab', { fontFamily: 'rayshand' });
		  
		});


	  });

