jQuery(document).ready(function(){
								
	///////////////////////////////////////////////////////////////////////////////////////////////////////
	//	png fix
	///////////////////////////////////////////////////////////////////////////////////////////////////////
	
		DD_belatedPNG.fix('#thumbNav a, #natpis');
	
	
	///////////////////////////////////////////////////////////////////////////////////////////////////////
	//	jqtransform
	///////////////////////////////////////////////////////////////////////////////////////////////////////

		$(".jqtransform").jqTransform();



	//	prettyPhoto
	$("a[rel^='prettyPhoto']").prettyPhoto({
										   
						show_title: false
										   
										   });
	   
	//	slide panels
		$(".groupLinks h2").css("cursor","pointer").click(function(){
		   $(".groupLinks ul").slideToggle('fast');
		   //$(this).toggleClass("active"); return false;
		 });
								
	///////////////////////////////////////////////////////////////////////////////////////////////////////
	//	superfish menu
	///////////////////////////////////////////////////////////////////////////////////////////////////////
	
    $("ul.sf-menu").superfish(); 
			
	///////////////////////////////////////////////////////////////////////////////////////////////////////
	//	text resizer
	///////////////////////////////////////////////////////////////////////////////////////////////////////
		
			
	$( "#textsizer a" ).textresizer({
         target: ".content",
         type: "fontSize",
         sizes: [ "11px", "13px", "14px" ],
         selectedIndex: 0
      });
	
	///////////////////////////////////////////////////////////////////////////////////////////////////////
	//	Type documents
	///////////////////////////////////////////////////////////////////////////////////////////////////////

		$('#documents a[href*=".pdf"]').addClass('pdf');
		$('#documents a[href*=".zip"]').addClass('zip');
		$('#documents a[href*=".rar"]').addClass('zip');
		$('#documents a[href*=".doc"]').addClass('doc');
		$('#documents a[href*=".docx"]').addClass('doc');
		$('#documents a[href*=".ppt"]').addClass('pptt');
		$('#documents a[href*=".xls"]').addClass('xls');
		

	//	Slider
	function formatText(index, panel) {
				  return index + "";
				}
					if($('.anythingSlider ul li').length > 1)
					{
						$('.anythingSlider').anythingSlider({
							easing: "easeInOutExpo",        		// Anything other than "linear" or "swing" requires the easing plugin
							autoPlay: true,                 		// This turns off the entire FUNCTIONALY, not just if it starts running or not.
							delay: 2000,                    		// How long between slide transitions in AutoPlay mode
							startStopped: false,            		// If autoPlay is on, this can force it to start stopped
							animationTime: 900,             		// How long the slide transition takes
							hashTags: false,                 		// Should links change the hashtag in the URL?
							buildNavigation: true,          		// If true, builds and list of anchor links to link to each slide
							pauseOnHover: true,             		// If true, and autoPlay is enabled, the show will pause on hover
							navigationFormatter: null		        // Details at the top of the file on this use (advanced use)
						});
					}
					
					
	//	Close button
		$(".notification-close").click(
			function () {
				$(this).parent().parent().parent().fadeTo(400, 0, function () { 
					$(this).slideUp(400);
				});
				return false;
			}
		);
	

}); // end document


	///////////////////////////////////////////////////////////////////////////////////////////////////////
	//	DW
	///////////////////////////////////////////////////////////////////////////////////////////////////////

	function MM_openBrWindow(theURL,winName,features) { //v2.0
		  window.open(theURL,winName,features);
		}
		
	function MM_goToURL() { //v3.0
		  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
		  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
		}
  
  

