jQuery(document).ready(function() {

//Dropdown Menu

    if(!jQuery.browser.msie){// IE  - 2nd level Fix

        jQuery("ul.topnav").css({opacity:"0.95"});

    }

    jQuery(".topnav > li > ul").css({display: "none"}); // Opera Fix

    //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav

    $("#menu-topmenu li a").mouseover(function() { //When trigger is clicked...

        //Following events are applied to the subnav itself (moving subnav up and down)

        jQuery(this).parent().find("ul.sub-menu").slideDown('medium').show(600); //Drop down the subnav on hover

        jQuery(this).parent().hover(function() {

        }, function(){

            jQuery(this).parent().find("ul.sub-menu").slideUp('fast'); //When the mouse hovers out of the subnav, move it back up

        });

        //Following events are applied to the trigger (Hover events for the trigger)

        }).hover(function() {

            jQuery(this).addClass("subhover"); //On hover over, add class "subhover"

        }, function(){  //On Hover Out

            jQuery(this).removeClass("subhover"); //On hover out, remove class "subhover"

    });

 

})





/*** 

    Simple jQuery Slideshow Script

    Released by Jon Raasch (jonraasch.com) under FreeBSD license: free to use or modify, not responsible for anything, etc.  Please link out to me if you like it :)

***/



function slideSwitch() {

    var $active = $('#slideshow IMG.active');



    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');



    // use this to pull the images in the order they appear in the markup

    var $next =  $active.next().length ? $active.next()

        : $('#slideshow IMG:first');



    // uncomment the 3 lines below to pull the images in random order

    

    // var $sibs  = $active.siblings();

    // var rndNum = Math.floor(Math.random() * $sibs.length );

    // var $next  = $( $sibs[ rndNum ] );





    $active.addClass('last-active');



    $next.css({opacity: 0.0})

        .addClass('active')

        .animate({opacity: 1.0}, 1000, function() {

            $active.removeClass('active last-active');

        });

}



$(function() {

    setInterval( "slideSwitch()", 5000 );

});





$(document).ready(
function()
{
$('.leftsubs').slideUp('fast');
$('.activesub').stop().slideDown('medium');
	$('.inmenulk').bind('click',function(){
		$('.leftsubs').slideUp('fast');
		$('.'+ $(this).attr('id') ).stop().slideDown('medium');
	});
}
);
