/*
Version: 0.1.0
Updated: Friday, 14.12.2008 @ 16:40
------------------------------------------------------------*/

$(document).ready(function() {

    //enables rel="external" to work properly
    //$("a[@rel='external']").click(function() { window.open(this.href); return false; });
    $("a[@rel='external']").each( function(){this.target="_blank"});


    //hover effects to enable ie6 constency
    $("#menu > ul > li > a > img").hover(
      function () {$(this).css("top", 0)},
      function () {$(this).css("top", -9)}
    );

    $("#menu > ul > li > a.selected > img").hover(
        function () {$(this).css("top", 0)},
        function () {$(this).css("top", 0)}
    );
    
    $("ol#fourways > li > a > img").hover(
      function () {$(this).addClass("fourwayshover")},
      function () {$(this).removeClass("fourwayshover")}
    );
    
    $("div.home_images > a > img").hover(
      function () {$(this).addClass("homehover")},
      function () {$(this).removeClass("homehover")}
    );

    $("#newsbar_home > ul > li > a > span.title ").hover(
      function () {$(this).css({color: "#333333"})},
      function () {$(this).css({color: ""})}
    );
    
    $("#newsbar_home > ul > li.first > a > span.title ").hover(
      function () {$(this).css({color: "#000"})},
      function () {$(this).css({color: ""})}
    );
    $("div.slider > h2").hover(
		function () {$(this).addClass("hover")},
      function () {$(this).removeClass("hover")}
	);
    //toggle slider

    $(".slider").click(function() {
       $(".slider").find("div").slideUp("fast");
       //$(this).find("div").slideDown("slow").fadeIn("slow");
    });

    $(".slider").toggle(
      function () {
        $(this).find("div").slideDown("slow").fadeIn("slow");
      },
      function () {
        $(this).find("div").slideUp("fast");
      }
    );
    
    
});