$(document).ready(function(){

	$("map > area").tooltip({
		positionLeft: true,
		showURL: false
		});
	
	$(".botcols").equalHeights();


/*		// Monthly E-News: http://bananadesign.createsend.com/t/r/s/jrlitj/
	  var monthly_form = "<form action='http://bananadesign.createsend.com/t/r/s/jrlitj/' method='post' name='process-adi-free' id='adi-cm'>Monthly<h3>Name <span class='reg'>REQUIRED</span></h3><p><input type='text' name='cm-name' id='name' class='myInput' /></p><h3>Email <span class='reg'>REQUIRED</span></h3><p><input type='text' name='cm-jrlitj-jrlitj' id='jrlitj-jrlitj' class='myInput' /></p><div id='cb'><p><input type='radio' name='chkBox' class='monthly' value='monthly' />ADI Monthly E-News <input type='radio' name='chkBox' class='action' value='e_action' />Action E-News</p></div><h3>Address</h3><p><input type='text' name='cm-f-pklm' id='Address_line_1' class='myInput' /></p><p><input type='text' name='cm-f-xlddh' id='Address_line_2' class='myInput' /></p><h3>City</h3><p><input type='text' name='cm-f-pklc' id='City' class='myInput' /></p><h3>Postcode</h3><p><input type='text' name='cm-f-pklq' id='Postcode' class='myInput' /></p><h3>Country</h3><p><input type='text' name='cm-f-xlddk' id='Country' class='myInput' /></p><h3>Date of birth</h3><p><input type='text' name='cm-f-pkla' id='Dateofbirth' class='myInput' /></p><p class='small2'><input type='checkbox' name='cm-fo-pklf' id='cm64512' value='64512' /> I do not wish to receive any future postal communications from ADI</p><p class='small2'><input type='checkbox' name='cm-fo-pklz' id='cm64513' value='64513' /> I do not wish you to pass any information you hold on me to any other parties</p><div class='form_sender'><input type='submit' value='Subscribe' /></div></form>";

		// Action E-News: http://bananadesign.createsend.com/t/r/s/hrhrll/
	  var action_form = "<form action='http://bananadesign.createsend.com/t/r/s/hrhrll/' method='post' name='process-adi-free' id='adi-cm'>Action<h3>Name <span class='reg'>REQUIRED</span></h3><p><input type='text' name='cm-name' id='name' class='myInput' /></p><h3>Email <span class='reg'>REQUIRED</span></h3><p><input type='text' name='cm-hrhrll-hrhrll' id='hrhrll-hrhrll' class='myInput' /></p><div id='cb'><p><input type='radio' name='chkBox' class='monthly' value='monthly' />ADI Monthly E-News <input type='radio' name='chkBox' class='e_action' value='e_action' />Action E-News</p></div><h3>Address</h3><p><input type='text' name='cm-f-jdatu' id='Address_line_1' class='myInput' /></p><p><input type='text' name='cm-f-jdahi' id='Address_line_2' class='myInput' /></p><h3>City</h3><p><input type='text' name='cm-f-jdail' id='City' class='myInput' /></p><h3>Postcode</h3><p><input type='text' name='cm-f-jdadu' id='Postcode' class='myInput' /></p><h3>Country</h3><p><input type='text' name='cm-f-jdahd' id='Country' class='myInput' /></p><h3>Date of birth</h3><p><input type='text' name='cm-f-jdahl' id='Dateofbirth' class='myInput' /></p><p class='small2'><input type='checkbox' name='cm-fo-jdahr' id='cm190132' value='190132' /> I do not wish to receive any future postal communications from ADI</p><p class='small2'><input type='checkbox' name='cm-fo-jdahy' id='cm19013' value='190133' /> I do not wish you to pass any information you hold on me to any other parties</p><div class='form_sender'><input type='submit' value='Subscribe' /></div></form>";


	// Campaing Monitor lists
	// ADI Monthly E-News: http://bananadesign.createsend.com/t/r/s/jrlitj/
	//var list1 = 'http://bananadesign.createsend.com/t/r/s/jrlitj/';
	//var list2 = 'http://bananadesign.createsend.com/t/r/s/hrhrll/';
		
	//$("#cb").append("<p><input type='radio' name='chkBox' value='monthly' checked='checked' />ADI Monthly E-News <input type='radio' name='chkBox' value='action' />Action E-News</p>");

	
	$("#store_box form").remove();
	$("#store_box").append(monthly_form);
	$("#adi-cm input:radio.monthly").attr('checked', true);

	$("#adi-cm input:radio").click(function(){
		
		var va = $("#adi-cm input:radio:checked").val();
	   	
	   	switch (va) {
	   	
	   		case 'monthly':
	   		
	   			$("#store_box form").remove();
	   			$("#store_box").append(monthly_form);
			   	//alert(va);
	   			//alert(monthly_form);
	 		  	$("#adi-cm input.monthly:radio").attr('checked', true);
	 		  	
	   		break;
	   	

	   		case 'e_action':
	   		
	   			$("#store_box form").remove();
	   			$("#store_box").append(action_form);
			   	//alert(va);
	   			//alert(action_form);
	 		  	$("#adi-cm input.e_action:radio").attr('checked', true);

	   		break;
	   		
	   	}
	
      });
    

  if (countme == 0) {
  	$.modal("<div id='biggyme'><h1>Flight to Freedom</h1><img src='/media/lion-3.jpg' align='right' width='200' /><p>The ADI Rescue Team are currently moving four ex-circus lions to a stunning sanctuary in California.  Working around the clock, this dream of freedom is finally becoming a reality.</p><p><a href='http://adirescuediary.com'>Watch our Rescue Diaries with Jorja Fox</a></p><p><a href='http://www.ad-international.org/take_action/donate.php'>Please make a donation</a></p></div>");
  	
  	
$("#biggyme").modal({onClose: function (dialog) {
	dialog.data.fadeOut('slow', function () {
		dialog.container.slideUp('slow', function () {
			dialog.overlay.fadeOut('slow', function () {
				$.modal.close(); // must call this!
			});
		});
	});
}});

  }
*/  
   $("ul.sf-menu").superfish(); 
	  
});