/**
 * @author acesys
 */
$(document).ready(function(){
	
	if ($('.obfuscatedAt').length) {
		$('.obfuscatedAt').defuscate({
			link: true
		});
	}

	$('.proposalRequest').bind('click', function (){
		window.location.href = "mailto:trackersales@cmetracker.com?subject=Request for Proposal";
	})

	$('.printerFriendly').bind('click', function (){
		window.open('pdf/PricingDoc.pdf', 'pdf');
	})

	$('.bannerA').cycle({ 
    	fx:     'turnRight', 
		delay: -25000,
 		sync: true
	});

	$('.bannerB').cycle({ 
    	fx:     'turnRight', 
		delay: -24500,
 		sync: true 
	});


	$('.bannerC').cycle({ 
    	fx:     'turnRight',
		delay: -24000,
 		sync: true 
	});


	$('.bannerD').cycle({ 
    	fx:     'turnRight',
		delay: -23500,
 		sync: true 
	});

				
	$('#collapser').jqcollapse({
	   slide: true,
	   speed: 1000,
	   easing: 'easeOutCubic'
	});
		

$('.liArrowAContainer').bind('click', function() {

		if ($(this).children(':first').hasClass('arrowPointRightLg')){
			$(this).children('.arrowPointRightLg').addClass('arrowPointDownLg');	
			$(this).children('.arrowPointRightLg').removeClass('arrowPointRightLg');
		}
		else {
			$(this).children('.arrowPointDownLg').addClass('arrowPointRightLg');	
			$(this).children('.arrowPointDownLg').removeClass('arrowPointDownLg');
			
		}


	})	


	$('.liArrowBContainer').bind('click', function() {

		if ($(this).children(':first').hasClass('arrowPointRightMd')){
			$(this).children('.arrowPointRightMd').addClass('arrowPointDownMd');	
			$(this).children('.arrowPointRightMd').removeClass('arrowPointRightMd');

		}
		else {
			$(this).children('.arrowPointDownMd').addClass('arrowPointRightMd');	
			$(this).children('.arrowPointDownMd').removeClass('arrowPointDownMd');
			
		}

	})			

				
	/*
$('.liA').each(function(){
		$(this).trigger('click');
	});
*/
});




