/*******

	***	Anchor Slider by Cedric Dugas   ***
	*** Http://www.position-absolute.com ***
	
	You can use and modify this script for any project you want, but please leave this comment as credit.
	
	Never have an anchor jumping your content, slide it.
	
	Just add the class anchor at your <a> tag and it will slide, user with no javascript will 
	still go to destination with the normal html anchor

	Don't forget to put an id to your anchor !
	
*****/
		
$(document).ready(function() {
	anchor.init()
});

anchor = {
	init : function()  {
		$("a.anchorLink").click(function () {	
			elementClick = $(this).attr("href")
			destination = $(elementClick).offset().top;
			$("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination}, 1100 );
		  	return false;
		})
	}
}

$(document).ready(function(){
		$("dd:not(dd.open)").hide();
		$("dt a").click(function(){
    					
				$("dd").fadeTo("fast", 0);
				$("dd:visible").slideUp("slow");
		    if ($("dd:not:visible").get()[0] !== $(this).parent().next().get()[0]) {
				$(this).parent().next().slideDown("def");
				$(this).parent().next().fadeTo("def", 1);
			}
			return false;
		});
		
		$("dd a").click(function(){		
				$("dd").fadeTo("fast", 0);
				$("dd:visible").slideUp("slow");
		    if ($("dd:visible").get()[0] !== $(this).get()[0]) {	
				$(this).parent().next().slideDown("def");
				$(this).parent().next().fadeTo("def", 1);
			}
			return false;
		});});




$(document).ready(function(){
    $("#closeNotice a").click(function () {
      $("#closeNotice").fadeOut("slow");
    });

  });



$(document).ready(function() {
 // hides the slickbox as soon as the DOM is ready
 // (a little sooner than page load)
  $('#slickbox').hide();
  $('#slickbox1').hide();
 // shows the slickbox on clicking the noted link
  $('a#slick-show').click(function() {
 $('#slickbox').show('slow');
 return false;
  });
  $('a#slick-show1').click(function() {
 $('#slickbox1').show('slow');
 return false;
  });
 // hides the slickbox on clicking the noted link
  $('a#slick-hide').click(function() {
 $('#slickbox').hide('fast');
 return false;
  });
 // toggles the slickbox on clicking the noted link
 $('a#slick-toggle').click(function() {
 $('#slickbox').toggle(400);
 return false;
  });

 $('a#slick-toggle1').click(function() {
 $('#slickbox1').toggle(400);
 return false;
  });
});
