// Cufon.set('fontStretch', '100%');
   // Cufon.replace('h1, h2, h3, h4, .cufon', { hover: true });

			//Cufon.replace('#menu li a');
                        Cufon.replace('.new-book-title');
                        Cufon.replace('.new-book-title1');



                      //  Cufon.replace('.footer-box h4');


 $(document).ready(function() {

	//When page loads...
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {

		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});

});

 $(document).ready(function() {

	//When page loads...
	$(".panes").hide(); //Hide all content
	$("ul.tabs-news li:first").addClass("active").show(); //Activate first tab
	$(".panes:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs-news li").click(function() {

		$("ul.tabs-news li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".panes").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});

});


 
// execute your scripts when the DOM is ready. this is mostly a good habit
$(function() {

	// initialize scrollable
	$(".scrollable").scrollable();

});




//$(function() {
	// setup ul.tabs to work as tabs for each div directly under div.panes
//	$("ul.tabs-news").tabs("div.panes > div");
//});

$(document).ready(function()
{
  $("#close").click(function () {
      $("#item").hide("slow",function () {
        // use callee so don't have to name the function
        $(this).prev().hide("fast", arguments.callee);
      });
    });
    $("#login-box").click(function () {
      $("#item").show(400);
    });
});



