$(document).ready(function(){
   $('#indhold_txt').jScrollPane({
		scrollbarMargin:0,
		scrollbarOnLeft:'true'
		});
   $('#indhold_img div div').cycle({
		fx:'fade',
		timeout:8000,
		prev:'#tilbage',
		next:'#frem'
		});
   $('#indhold_img #nav a').click(function() {
  		$('#indhold_img #nav a').blur();
	});
	$(document.body).removeClass("no_js");
   //$('#indhold_img').mouseover(function() {
		
		//if (('#indhold_img').hasClass('zIndex')){
		//$('#indhold_txt').animate({
		//		left:"10px",top:"300px",
		//	  }, 'slow');
		//};
	//	$('#indhold_img').addClass( "zIndex" )
	//});
  // $('#indhold_img').mouseout(function() {
		//if (('#indhold_img').hasClass('zIndex')){
		//	$('#indhold_txt').animate({
		//		left:"100px",top:"200px",
		//	  }, 'slow');
		//}
	//	$('#indhold_img').removeClass( "zIndex" )
	//});
});	

var slideImgTotal = $("#indhold_img div div.csc-textpic-imagewrap").children().length;
if(slideImgTotal>1){$('#nav').show();}else{$('#nav').hide();}
$('#news #indhold_img #nav').hide();


(function($)
{
/*
	$(document).ready(function() {
      $('.styleswitch').click(function()
      {
         switchStylestyle(this.getAttribute("rel"));
         return false;
      });
      var c = readCookie('style');
      if (c) switchStylestyle(c);
   });
*/

})(jQuery);
