// JavaScript Document

if ((navigator.appName).indexOf("Microsoft")!=-1) {	// This if statements runs as the script is loaded  in the head. It changes a few style elements if IE is used.
	document.write('<style type="text/css">.insetmenu{padding-left:38px;} .leftmenu a{margin-left:40px;};</style>');
}

/* nivo slider */

$(window).load(function() {
	$('#slider').nivoSlider({
		effect:'fade',
		slices:1,
		animSpeed:500,
		pauseTime:6000,
		directionNav:true, //Next & Prev
		directionNavHide:true, //Only show on hover
		controlNav:true, //1,2,3...
		pauseOnHover:true //Stop animation while hovering
		
	});
});


/* jCarousel */

$(window).load(function() {
    $(".more-stories").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
		circular: true,
		visible: 4
    });
});



/* swfobject */

	var flashvars = {};
	var params = {};
	var attributes = {};
	//swfobject.embedSWF("default.swf", "default", "550", "400", "9.0.0", false, flashvars, params, attributes);



/*  jquery slider  */
	
$(document).ready(function() {
  $('div.show-videos:> div').hide();  
  $('div.show-videos:> h3').click(function() {
    $(this).next().slideToggle('fast');
  });
});
