/*/////////////////////////////////////////////////////////////////////////////////////////////////////*/
/* rwtessential.js.min */
/* @group jsPathto *//*jsPathto v0.0.1 01-26-09 10:43*/ function rtrim ( str, charlist ) { charlist = !charlist ? ' \s\xA0' : (charlist+'').replace(/([\[\]\(\)\.\?\/\*\{\}\+\jQuery\^\:])/g, '\jQuery1'); var re = new RegExp('[' + charlist + ']+jQuery', 'g'); return (str+'').replace(re, ''); } trimFromPatha = "/kuler.js"; jsPathtoa = rtrim(rwPathto, trimFromPatha); trimFromPathb = "jquery"; jsPathto = rtrim(jsPathtoa, trimFromPathb);/* @end */
/* @group rwtSetHeight plugin v1.0.0 05-13-10 14:27 modified from seyDoggy (Adam Merrifield) */(function(jQuery) { jQuery.fn.rwtSetHeight = function() { var tallest = 0; jQuery(this).each(function(){ if (jQuery(this).outerHeight(true) > tallest) tallest = jQuery(this).outerHeight(true); }); jQuery(this).height(tallest); }; })(jQuery);/* @end */
/*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

jQuery.noConflict();
	// generate .menub on demand
jQuery(document).ready(function(jQuery){
	if (jQuery('.menua ul ul').length)
	{
		jQuery('.menub').prepend(jQuery('.menua > .ulList > .liCurrent > .ulList, .menua > .ulList > .liAncestor > .ulList').clone()).show();	
	}
	jQuery('.menub ul li:first').addClass('menubfirst'); 

	if (jQuery('.menub ul').length){
		jQuery('.menub').addClass('menubshow');
	} 
});
	// generate .menud on demand
	
jQuery(document).ready(function(jQuery){
	if (jQuery('.menua a').length)
	{
		jQuery('.menud').prepend(jQuery('.menua a').clone()).show();	
	}
	jQuery('.menud a').removeClass('current'); 
	jQuery('.menud a:last-child').addClass('menudlast');

	if (jQuery('#blog-categories').length)
	{
		jQuery('.plugin_sidebar').prepend(jQuery('.blog-categories > .blog-archives').clone()).show();	
	}
});
	// set height for filesharing items and movie index items
jQuery(document).ready(function(jQuery){
	jQuery('.filesharing-item').rwtSetHeight();
	jQuery('.movie-thumbnail-frame').rwtSetHeight();

	// custom classes added to fileshare and movie index items to allow for rounded corners 
	jQuery('.filesharing-item').addClass('css3');/* add rounded corners to file sharing items */
	jQuery('.movie-thumbnail-frame').addClass('css3');/* add rounded corners to movie index items */

	// custom classes added to the blog page
	jQuery('.blog-entry').addClass('RightWarpShadow WLarge WNormal');/* add rounded corners to file sharing items */
	jQuery("ul.blog-tag-cloud li:first-child").addClass("first");
	

});
////////////////////////////////////////////////////////////////////////////////////////////////////
// set of parameters that determine where the footer links should be placed depending on          //
// whether or not the EC4 container has been created                                              //
////////////////////////////////////////////////////////////////////////////////////////////////////

/* if an ec4 container has been created then */
/* a class of "ifxtra4" gets added to the ".xtra4" in the main index.html file */
/* a class of "contentiffooter" gets added to the ".contentfooter" in the main index.html file. This allows me to hide the contentfooter div via css */
/* if an ec4 container is used the the "ifxtrafooter" div will have the "footer" div created inside it */  
/* finally, the footer menu links will be loaded into the newly created div */ 

jQuery(document).ready(function(jQuery){	
	if (jQuery('#myExtraContent4').length){
		jQuery('.xtra4').addClass('ifxtra4'); 
		jQuery('.contentfooter').addClass('contentiffooter');
		jQuery('.contentfooter').remove();
		jQuery('.maincontent').addClass('mainiffooter'); 
		jQuery('.ifxtrafooter').prepend(jQuery('.footer').clone()).show();
		
	}
/* if an ec4 container does not get created then */
/* the "contentfooter" div will have created in it a new div named "footer" */
/* finally, the footer menu links will be placed inside the newly created div */
	
	else (jQuery('.contentfooter').length)
	{
		jQuery('.contentfooter').prepend(jQuery('.footer').clone()).show();
			
	}

	
});

jQuery(document).ready(function(jQuery){	
	if (jQuery('#myExtraContent1').length){
		jQuery('.xtra1').addClass('ifxtra1'); 
	}

});
jQuery(document).ready(function(jQuery){	
	if (jQuery('#myExtraContent5').length){
		jQuery('.xtra5').addClass('ifxtra5'); 
	}

});


jQuery(document).ready(function(jQuery){	
	if (jQuery('.menubshow').length){
		jQuery('ul.ulList ul').addClass('dd_one'); 
		
	}
	if (jQuery('.menubshow').length){
		jQuery('ul.ulList ul ul').removeClass('dd_one'); 
		jQuery('ul.ulList ul ul').addClass('dd_two');
		
	}
	
});

