// JavaScript Document
function checkWidth() {
	var $magicLine = $("#magic-line");

	$magicLine.width($(".current_page_item").width() - 16)
		.css("left", $(".current_page_item a").position().left)
.data("origLeft", $magicLine.position().left)
 .data("origWidth", $magicLine.width());
}

$(document).ready(function() {
$("#up").fontscale(".Text div,.Text span,.Text h2,.Text h3, .Text a","up",{unit:"px",increment:4});
$("#down").fontscale(".Text div,.Text span, .Text h2,.Text h3, .Text a","down",{unit:"px",increment:4});
$("#reset").fontscale(".Text div,.Text span, .Text h2,.Text h3, .Text a","reset");						  
});

var global_method = "central-method-wrapper";

$(document).ready(function() {
//$(".central-method").hide();
//$(".central-method").delay(100).fadeIn("slow");	
//$(".central-method").animate({width:'show'},"slow");

//h2 central method click

$(".h2central_method_ul a, .slider_pager a").click(function() {
var title = $(this).attr("title");
var temp = title;

if(temp != global_method)
{
	$("#" + global_method).fadeOut("fast");
	$("#" + temp).delay(200).animate({width:'show'},"slow");
	global_method = temp;
}

});

$(".slider_view_all").click(function() {
$("#" + global_method).fadeOut("fast");
$("#central-method-wrapper").delay(200).animate({width:'show'},"slow");
global_method = "central-method-wrapper";
});

});


