
/* <![CDATA[ */  
$(document).ready(function() {
$("ul.css-tabs").tabs("div.css-panes > div", {
effect: 'fade'
});


$('.boxgrid a.lightbox').prepend("<span class='fadeimage'></span>");
$(".boxgrid a[rel='prettyPhoto']").prepend("<span class='fadevideo'></span>");

$('.boxgridimage, #column3 img, .sidebarportfolioimage, .slidertabs a').hover(function() {
	$(this).stop().animate({"opacity" : .7});									
}, function(){
	$(this).stop().animate({"opacity" : 1});	
});


$('.box div.clearboth:last').remove();


//dropdown menu
 $("ul.sf-menu").supersubs({ 
	minWidth:    12,   // minimum width of sub-menus in em units 
	maxWidth:    35,   // maximum width of sub-menus in em units 
	extraWidth:  1     // extra width can ensure lines don't sometimes turn over 
					   // due to slight rounding differences and font-family 
}).superfish();  // call supersubs first, then superfish, so that subs are 
				 // not display:none when measuring. Call before initialising 
				 // containing tabs for same reason. 
				 

			 
 
 
// cufon font replacement
Cufon.replace("h1, h2, h3, h4, h5, h6, a.readmore.inline, .pullquote, .blockquote_left, .blockquote_right");

// move "read more" link/button so it's inline with it's previous paragraph
$(".readmore").each(function(index) {
	$(this).appendTo($(this).parent("div").children("p:last"));
});


$('.comment-body, #title').addClass('box');
$('#title').append("<div id='pagetitlebar_pointer' />");
$('.comment-body').append("<div class='comment_pointer' />");
$('.last').after("<div class='clearboth' />");


$(".boxgrid_wrapper:nth-child(3n)").addClass("norightmargin");
$(".boxgrid_wrapper:nth-child(3n-2)").addClass("clearleft");
   

//Hide (Collapse) the toggle containers on load
$(".toggle_container").hide(); 

//Switch the "Open" and "Close" state per click
$("h4.trigger").toggle(function(){
	$(this).addClass("active");
	}, function () {
	$(this).removeClass("active");
});

//Slide up and down on click
$("h4.trigger").click(function(){
	$(this).next(".toggle_container").slideToggle("slow");
});









// scripts for the thumbnail navigation for Staging Type 3 is in slider-style3.php


});
/* ]]> */

