// JavaScript Document

$(function() {
			$('.menuHover2').hover(function(){
				$(this).find('img').animate({opacity: ".0"}, 300);
			}, function(){
				$(this).find('img').animate({opacity: "1.0"}, 500);
			});

	//Hide SubLevel Menus
	$('.dropUL').hide();

	//OnHover Show SubLevel Menus
	$('.menuHover2').hover(
		//OnHover
		function(){
			//Hide Other Menus
			$('.dropLi').not($('ul', this)).stop();

			// Show Hoved Menu
			$('ul', this).slideDown();
		},
		//OnOut
		function(){
			// Hide Other Menus
			$('ul', this).slideUp();
		}
	);

});



$(document).ready(function(){
	
//Set default open/close settings
$('.acc_container').hide(); //Hide/close all containersimmediate next container

//On Click
$('.sidebarCategoryBack').click(function(){
	if( $(this).next().is(':hidden') ) { //If immediate next container is closed...
		$('.sidebarCategoryBack').removeClass('active').next().slideUp(); //Remove all .acc_trigger classes and slide up the immediate next container
		$(this).toggleClass('active').next().slideDown(); //Add .acc_trigger class to clicked trigger and slide down the immediate next container
	}
	
	return false; //Prevent the browser jump to the link anchor
});




});





$(document).ready(function(){
	
//Set default open/close settings
$('.acc_container2').hide(); //Hide/close all containersimmediate next container

//On Click

	$('.sidebarArchiveTitle').toggle(function() {
		$('.sidebarArchiveTitle').addClass('active3').next().slideDown(); //Remove all .acc_trigger classes and slide up the immediate next container
}, function() {
		$('.sidebarArchiveTitle').removeClass('active3').next().slideUp(); //Remove all .acc_trigger classes and slide up the immediate next container
});




});





$(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...
	$(".tab_content2").hide(); //Hide all content
	$("ul.tabs2 li:first").addClass("active2").show(); //Activate first tab
	$(".tab_content2:first").show(); //Show first tab content

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

		$("ul.tabs2 li").removeClass("active2"); //Remove any "active" class
		$(this).addClass("active2"); //Add "active" class to selected tab
		$(".tab_content2").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;
	});

});






function inputFocus (id, fieldName) {

	if (document.getElementById(id).value == fieldName) {
		document.getElementById(id).value = '';
		
	}

	document.getElementById(id).style.color = '#333333';
}

function inputBlur (id, fieldName) {

	// if the field was left empty:
	if (document.getElementById(id).value == '') {
		document.getElementById(id).value = fieldName;
		document.getElementById(id).style.color = '#999999';
	}

}
