$(document).ready(function(){
	
	/*Global Misc
	-----------------------------------------------*/
	//jQuery Stack Fix
	$('.stackFix').show();
	
	//Custom Modal Functionality
	$("a[rel^='prettyPhoto']").prettyPhoto({
		theme: 'facebook',
		opacity: '0.5'
	});
	
	/*Main Nav Drop Down
	-----------------------------------------------*/
	$('.mainNav ul').superfish({
		speed: 0,
		delay: 0,
		dropShadows: false
	});
	
	$('#Header').css('z-index','9999');
	$('.sf-sub-indicator').remove();
	
	/*Sub-Page POV 
	-----------------------------------------------*/
	$('#povContent').cycle({
		fx: 'fade',
		speed: 800,
		timeout: 8000,
		pager: '.subPovNav',
			slideExpr: 'div.slide'
	});
	
	//External Anchor Navigation
	$('.subPovXnav ul li a.xtrig1').click(function() {
		$('.subPovNav a:nth-child(1)').click();
	});
	$('.subPovXnav ul li a.xtrig2').click(function() {
		$('.subPovNav a:nth-child(2)').click();
	});
	$('.subPovXnav ul li a.xtrig3').click(function() {
		$('.subPovNav a:nth-child(3)').click();
	});
	
	//Pause the Cycle on Click
	$('.subPovNav a').click(function() {
		$('#povContent').cycle('pause');
	});
		
	/*Testimonial Cycle
	-----------------------------------------------*/
	$('#testimonials').cycle({
		fx: 'fade',
		prev: '#prev',
		next: '#next',
		speed: 1000,
		timeout: 0
	});
	
	/*Featured Partners Cycle
	-----------------------------------------------*/
	$('#featuredPartners').cycle({
		fx: 'fade',
		speed: 1000,
		timeout: 0,
		pager: '#partnersNav',
				slideExpr: 'div.innerWrap'
	});
	
	//IE White Background/Width Overwrite
	$('div#featuredPartners div.innerWrap').css('background','transparent');
	
	//Twitter Communication
	$("#twitter").getTwitter({
		userName: "homesafecard",
		numTweets: 4,
		loaderText: "Loading tweets...",
		slideIn: true,
		slideDuration: 750,
		showHeading: true,
		headingText: "",
		showProfileLink: true,
		showTimestamp: true
	});
		
});

/*Add This
-----------------------------------------------*/
var addthis_config = {"data_track_clickback":true};

