$(document).ready(function() {
   $(".file_queue a").click(function(event){
	
	// Get the current link's href and pass as variable
	var destination=$(this).attr("href");
	
	// If they want to go, confirm
	var answer=confirm("ATTENTION: As a security measure, Kidder will immediately remove this file from our site once it has been downloaded or opened and this file will no longer be available for download. Please be sure to save before opening. If you should need the file posted again, please contact the person that originally notified you of the posting. Do you wish to proceed?");
	if (answer){
		// This seems not to be working in IE. Popup blocker?
		//window.open(destination,"new");
		
		// This just opens in current window. Works across browsers...
		window.location = destination;
	}
	
	// Prevent the default action of the link.
	event.preventDefault();
   });
   
   
   $("#links a, a.external").click(function(event){
	
	// Get the current link's href and pass as variable
	var destination=$(this).attr("href");
	
	// If they want to go, confirm
	var answer=confirm("The direct link from Ask Kidder website is not an endorsement of the website you will be entering, and Ask Kidder does not validate or accept responsibility for the content provided. Do you wish to continue?");
	if (answer){
		// This seems not to be working in IE. Popup blocker?
		//window.open(destination,"new");
		
		// This just opens in current window. Works across browsers...
		window.open(destination);
	}
	
	// Prevent the default action of the link.
	event.preventDefault();
   });
   
   
   $("body.page-id-9 .text p:first").css({
   		border : "none",
   		margin : "none",
   		padding: "none"
   	});
   	
   	$("input[type=password]").val("");
   
   
}); 
