/* 
	common-onload.js
	author:Regis Zaleman
	version:1.0
	
	Common functions loaded on document.ready
*/

	jQuery(document).ready(function($)
	{
		//drop shadows
	//	$('.shadow').dropShadow({left:4,top:4,blur:2,opacity:.2,color:'black',swap:false});
		
			//columns cosmetics
			var $middleLineImg =  $('<img />').attr('src', themeurl + '/css/images/bg_middleLine.png');
			$('.contentRight').prepend($middleLineImg);
			$middleLineImg.addClass('middleLine');
			
			//feature presentation
			$("ul.tabs").tabs("div.quotesPanes > div", { 

			        // enable "cross-fading" effect 
			        effect: 'fade', 
			        fadeOutSpeed: 'slow', 
					

			        // start from the beginning after the last tab 
			        rotate: true 

			    // use the slideshow plugin. It accepts its own configuration 
			    }).slideshow(
				{
					autoplay:true,
					interval:10000
				});
				
			//Success Stories cosmetic (bottom corners)
			var $formBottom = $('<img />').attr('src', themeurl + '/css/images/bg_SuccessForm_bottom.png');
			$formBottom.css({'border':'none', 'padding':'0','margin':'0'});
			$('div.wpcf7').append($formBottom);
	});
