/*
 * jQuery 1.2.3 - New Wave Javascript
 *
 * Copyright (c) 2008 John Resig (jquery.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * $Date: 2008-02-06 00:21:25 -0500 (Wed, 06 Feb 2008) $
 * $Rev: 4663 $
 */

/* --------- COLLAPSABLE BLOCKS FOR CABINET PAPERS - THEME OVERVIEW ---------- */

$(document).ready(function(){
	
	//$(".accordion h4.first").addClass("active");
	$(".accordion div.accordion_contents").hide();

	$(".accordion h4").click(function(){
		$(this).next("div.accordion_contents").slideToggle("slow")
		.siblings("div.accordion_contents:visible").slideUp("slow");
		$(this).toggleClass("active");
		$(this).siblings("h4").removeClass("active");
		return false;
	});

});

$(document).ready(function(){
	
	//$(".accordion_inner h4:first").addClass("active");
	$(".accordion_inner div.accordion_contents_inner").hide();

	$(".accordion_inner h4").click(function(){
		$(this).next("div.accordion_contents_inner").slideToggle("slow")
		.siblings("div.accordion_contents_inner:visible").slideUp("slow");
		$(this).toggleClass("active_inner");
		$(this).siblings("h4").removeClass("active_inner");
		return false;
	});

});

$(document).ready(function(){
	
	$(".accordion_open h4.source_name").addClass("active_open");
	//$(".accordion_open div.accordion_contents").hide();

	$(".accordion_open h4").click(function(){
		$(this).next("div.accordion_contents").slideToggle("slow")
		.siblings("div.accordion_contents:visible").slideUp("slow");
		$(this).toggleClass("active_open");
		$(this).siblings("h4").removeClass("active_open");
		return false;
	});

});


/* --------- HOVER EFFECT ON TOOLS MENU ---------- */

//$(document).ready(function(){
						   
	//$(".tools-links a").append("<em></em>");
	
	//$(".tools-links a").hover(function() {
		//$(this).find("em").animate({opacity: "show", top: "-60"}, "fast");
		//var hoverText = $(this).attr("title");
	    //$(this).find("em").text(hoverText);
	//}, function() {
		//$(this).find("em").animate({opacity: "hide", top: "-70"}, "fast");
	//});


//});


function showhelp(str){
	document.getElementById("helptext").innerHTML = str;
	document.getElementById("helpbubble").style.visibility = "visible";
//	document.getElementById("helpbubble").style.top = x + 20 + "px";
//	document.getElementById("helpbubble").style.left = y - 6 + "px";
}

function hidehelp(){
	document.getElementById("helpbubble").style.visibility = "hidden";
}

