// all global scripts should be added here

/*	this is to add class on "a" w/ submenu for p7mon support
	just change #main-menu to whatever parent class or id of the p7menu
	Revome script if not using p7menu
	Revome script if using p7 tab menu*/
jQuery("#main-menu ul li:has(ul) > a").addClass("p7PMtrg");
function initBgslider(){ 
		$(window).load(function(){
			$('#bgslider').nivoSlider({
					effect:"boxRandom",
					slices:15,
					boxCols:8,
					boxRows:4,		
					animSpeed:500, // Slide transition speed
					pauseTime:10000, // How long each slide will show
					directionNav:false, // Next &amp; Prev navigation
					directionNavHide:true, // Only show on hover
					controlNav:false, // 1,2,3... navigation
					controlNavThumbs:false, // Use thumbnails for Control Nav
					controlNavThumbsFromRel:false, // Use image rel for thumbs
					controlNavThumbsSearch: '.jpg', // Replace this with...
					controlNavThumbsReplace: '_thumb.jpg', // ...this in thumb Image src
					keyboardNav:false, // Use left &amp; right arrows
					pauseOnHover:false, // Stop animation while hovering
					manualAdvance:false, // Force manual transitions
					captionOpacity:0.8, // Universal caption opacity
					prevText: '', // Prev directionNav text
					nextText: '', // Next directionNav text
					/*beforeChange: function(){}, // Triggers before a slide transition
					afterChange: function(){}, // Triggers after a slide transition
					slideshowEnd: function(){}, // Triggers after all slides have been shown
					lastSlide: function(){}, // Triggers when last slide is shown
					afterLoad: function(){} // Triggers when slider has loaded*/
				});
		});
	}

