// JavaScript Document

//var $Sl = jQuery.noConflict();

$K2(document).ready(function(){
	     // start the ticker 
	//tunnn  	$K2('#js-news').ticker();

});


$K2(function() {
	// setup ul.tabs to work as tabs for each div directly under div.panes
	$K2("ul.mooTabsNavigation").tabs("div.mooTabsContent > div");
});



$K2(function(){$K2("#facebook_iframe").hover(function(){$K2("#facebook_iframe").stop().animate({right:0},500);},function(){$K2("#facebook_iframe").stop().animate({right:-320},500);});});

$K2(function(){$K2("#twitter_iframe").hover(function(){$K2("#twitter_iframe").stop().animate({right:0},500);},function(){$K2("#twitter_iframe").stop().animate({right:-320},500);});});

$K2(function() {
	$K2("ul#flowtabs").tabs("div#flownews > div", {
		effect: 'fade',
		fadeOutSpeed: "fast",
		rotate: true
	});
});

$K2(function() {
	$K2("ul.newstabs").tabs("div.newspanes > div", {
		effect: 'fade',
		fadeOutSpeed: "fast",
		rotate: true
	});
});
$K2(function() {
	$K2("ul.tabsb").tabs("div.panesb > div");
});

$K2(function() {

	$K2(".sitemapopen").click(function () {
	        $K2("#topfooter").animate({
	            height: 195
	          }, 1500, function() {
	          });
	        $K2(".sitemapopen").toggle();
	        $K2(".sitemapclose").toggle();
	});
	
	$K2(".sitemapclose").click(function () {
	        $K2("#topfooter").animate({
	            height: 1
	          }, 1500, function() {
	          });
	
	        $K2(".sitemapclose").toggle();
	        $K2(".sitemapopen").toggle();
	});
});
