// Action Run Template Javascript Navigation Animations

 $(document).ready(function(){


// this controls the free trial promo on the service page
  $("#trialpromo_service").click(function () { 
      window.location = "/sign_up/";
	  
    }).css("cursor","pointer");
  
  
  
// this controls the free trial promo on the landscape and benefit pages
  $("#trialpromo_landbenefit").click(function () { 
      window.location = "/sign_up/";
	  
    }).css("cursor","pointer");
  
  
  
  // this controls the free trial promo on the service page
  $("#testbubble").click(function () { 
      window.location = "/testimonials/";
	  
    }).css("cursor","pointer");
  
  
  
  
  
  

// copyright tag
var year=new Date();
year=year.getYear();

if (year<1900) year+=1900;
$(document).ready(function(){
//console.log("What's the Year? "+year);
	$("#copyright").html("Copyright &copy; "+year+". ActionRun, Inc. All rights reserved.");
});



// this controls the sliding answer panel on the faqs section on the service page
  

  //hide the all of the element with class msg_body
  $(".servfaqanswerbox").hide();
  //toggle the componenet with class msg_body
  $(".servfaqquestion").click(function()
  {
    $(this).next(".servfaqanswerbox").slideToggle(600);

	
	
  });


// this controls the sliding answer panel on the faqs page
  

  //hide the all of the element with class msg_body
  $(".answerbox").hide();
  //toggle the componenet with class msg_body
  $(".question").click(function()
  {
    $(this).next(".answerbox").slideToggle(600);

	
	
  });
  
  
 //this controls the pricing info panel appearing on the signup page
 
 $("#pricingpanel").hide();
  $(".viewpricestruc").click(function(){
		$("#pricingpanel").slideToggle("slow");
		$("div.productbutton").toggleClass("productbuttonclose"); return false;
	});




// my send hover //

   $("#mysend").hover(
   function () {
	   $(this).attr("src", "images/template/send_buttonhi.jpg");
   },
   function (){
	   $(this).attr("src", "images/template/send_button.jpg");

 });
// my send hover //
  

// my reset hover //

   $("#myreset").hover(
   function () {
	   $(this).attr("src", "images/template/clear_buttonhi.jpg");
   },
   function (){
	   $(this).attr("src", "images/template/clear_button.jpg");

 });
// my reset hover //



// reset the contact form
	$("#myreset").click(function(){
		//$("#form > :form").reset();
		$("#myform").children().each(function() { $(this).val("");
		});
		//console.log("reset it");
		return false;
		
	});
	
	$(".updated-checkbox").attr('checked', 'checked');

 });// document.ready
 
 

