/* @group ExtraContent functions */
jQuery(document).ready(function($){
	// ExtraContent r1.3 02-23-09 12:33
	// plus slow slide in
	$('#myExtraContent1 script').remove();
	$('#myExtraContent1').appendTo('body #extraContainer1');
	var i=2;
	while (i<=10) {
		$('#myExtraContent'+i+' script').remove();
		$('#myExtraContent'+i).appendTo('body #extraContainer'+i).hide().slideDown(500);
		i++;
	}
	//* if header height variable set .pageHeader/.seydoggySlideshow height to content height
	//* test if varaible header is selected
	if(typeof headerHeightVariable == 'function'){
		var tallest = 0;
		$('#extraContainer1 div').each(function(){
			if ( $(this).outerHeight(true) > tallest )
			tallest = $(this).outerHeight(true);
		});
		$('.pageHeader').height( tallest + 20);
		$('.seydoggySlideshow').height( tallest + 20);
	}
	
});
// test to see if user has selected a slideshow option
if(typeof slideshowEnabled == 'function') {
	// test for <= IE7
	if(!(BrowserDetect.browser == "Explorer" && BrowserDetect.version <= 7)){
		include(jsPathto + 'scripts/slideshow/seydoggy.slideshow.js');
	}
}
/* @end */
/* @group pageHeader round corners */
// I put this here so I could test for the
// option farther up stream.
if(!(typeof headerTransparent == 'function')){
	// CSS 3 functions
	document.write('\
	<style type="text/css" media="screen">\
	.pageHeader{-webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, .35);-moz-box-shadow: 0 2px 4px rgba(0, 0, 0, .35);box-shadow: 0 2px 4px rgba(0, 0, 0, .35);-webkit-border-radius: 7px;-moz-border-radius: 7px;-khtml-border-radius: 7px;-o-border-radius: 7px;border-radius: 7px;}\
	</style>\
	');
	// test for browsers and issue specific corner code
	if (BrowserDetect.browser == "Opera") {// test for Opera
		jQuery(document).ready(function($){
			$('.pageHeader').corner("9px");
		});
	}else if(BrowserDetect.browser == "Explorer"){// test for IE
		if(BrowserDetect.version == 8){// test for IE8
			// Add round corners
			jQuery(document).ready(function($){
				$('.pageHeader').corner("9px");
			});
		}else if(BrowserDetect.version <= 7){// test for IE7 or less
			// Add round corners
			DD_roundies.addRule('.pageHeader', '7px');
			jQuery(document).ready(function($){
				$('.pageHeader').wrapInner('<div class="addPadding" />');
				$('.addPadding').css('padding','1em');
			});
		}
	}
}
/* @end */