// WAAPII JAVA SCRIPT


$(document).ready(function() {

	$(document).pngFix(); 
	
	// HIDE THE NO JS LINKS AND SHOW THE JS LINKS
	$(".waapii-singleitem-link a").hide();
	
	$(".waapii-singleitem-link span").show();
	
	
	// EXIT BUTTON
	$("span.contactForm-close").click(function(event){
   			$("div.contactForm ").fadeOut("slow");
     });
	
	
	// Hide the descrioptions title
	$(".waapii-desc").hide();
	
	// SHOW desc
	$(".waapii-desctitle").show();
	
	// SHOW DESC BTN
	$("div.waapii-desctitle").click(function(event){
			// change class
   			$(this).toggleClass("waapii-desctitle-open"); 
			// show description
			$(this).parent().find("div.waapii-desc").toggle("slow");
     });
	
	$("div.waapii-desc-close").click(function(event){
			// change class
   			$(this).parent().parent().find("div.waapii-desctitle").toggleClass("waapii-desctitle-open"); 
			// show description
			$(this).parent().toggle("slow");
     });
	

	

});

function showWaapiiForm(form , field , title) {
		
			// Show Form
			$("."+form).fadeIn('slow');
			
			// write object title
			$("."+field).attr("value", title);

	}


	
