//This JS is designed to toggle the link network at the bottom of the ads next / client sites
//It works with the JQuery library ( /jquery.js)

$(document).ready(function() {
    $("#switcher-trigger").click(function () {
										 
	   //open button
      if ($("div#link-container").is(":hidden")) 	  
	  $("div#link-container").slideDown("fast");
	 
	  //allows open but to be a close button also
	  //helps in IE6 layout issues
      else $("div#link-container").slideUp("fast");
    });
	
	//the close button
	 $("#close-trigger").click(function () {
      if ($("div#link-container").is(":visible")) $("div#link-container").slideUp("fast");
	  

    });	   
	 //below allows all links to close the trigger once clicked
	 $(".linklist a").click(function () {
      if ($("div#link-container").is(":visible")) $("div#link-container").slideUp("fast");
	  

    });
	 
	  $(".linklist3 a").click(function () {
      if ($("div#link-container").is(":visible")) $("div#link-container").slideUp("fast");
	  

    });
	

});


