Shadowbox.init({
    language: 'en',
    players:  ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv']
});

$(document).ready(function() {
						   


		$(".galleryPhoto").prettyPhoto({theme:'dark_rounded'});
		$(".video").prettyPhoto({theme:'dark_rounded'});

	
		//SPLASH
		//$("#splashOverlay").show();
		$(".splashbutton").click(function () {
      		$("#splashOverlay").toggle();
    	});
    	
	
		//INSERT SPAN TAG IN TOPNAVIGATION
		//$("#topnavigation ul li a").wrapInner(document.createElement("span"));

		
		//SOFT CORNERS
		$(".blockHeaders").corner("round 5px");
		$(".rightBox").corner("round 5px");
		$(".rightColNews").corner("round 5px");
		$(".rightColPage").corner("round 5px");
		$(".viewTypeList").corner("round 5px");
		$("#footer").corner("round 5px");
		$("#topnavigation").corner("round tr tl 3px");
		$("#pageContent").corner("round bl br 3px");
		$("#breadcrumbsWrapper").corner("round tr 3px");
		$(".areaBoxInfoFooter li").corner("round 3px");
		$(".imagetext").corner("br bl round 3px");
		
		

	   	$("#showcaseImage").hide();
		$("#showcaseText").hide();
	   	$("#showcaseImage").fadeIn();
	   
	   //SHOWCASE CYCLE
	   $("#showcaseImage").cycle({ 
				fx:     'fade', 
				timeout: 5000,
				before: onBefore,
				after:   onAfter
			 }); 
		
		function onBefore() { 
			$("#showcaseText").fadeOut(); 
			}
	
		function onAfter() {
			$("#showcaseText").html(this.alt).fadeIn(); 
			}
			
	
	//TOGGLE VIEWSTYLE ON NEWS
	
    $(".toggleNewsStyle").click(function () {
      $(".newsItem").toggleClass("newsItemSmall");
    });





		
	// Add pdf icons to pdf links
	//$("#pageContent a[href$='.pdf']").addClass("pdf");
	 
	// Add txt icons to document links (doc, rtf, txt)
	$("#pageContent a[href$='.doc'], a[href$='.txt'], a[href$='.rft']").addClass("txt");

	// Add zip icons to Zip file links (zip, rar)
	$("#pageContent a[href$='.zip'], a[href$='.rar']").addClass("zip"); 
	
	// Add email icons to email links
	$("#pageContent a[href^='mailto:']").addClass("email");

	//Add external link icon to external links -
	/*
	$('#pageContent a').filter(function() {
		//Compare the anchor tag's host name with location's host name
	    return this.hostname && this.hostname !== location.hostname;
	  }).addClass("external");
	*/

	//You might also want to set the _target attribute to blank
	/*
	$('#pageContent a').filter(function() {
		//Compare the anchor tag's host name with location's host name
	    return this.hostname && this.hostname !== location.hostname;
	  }).addClass("external").attr("target", "_blank");
	*/

/*


	$("a[@href$=pdf]").addClass("pdf");

	$("a[@href$=zip]").addClass("zip");

	$("a[@href$=psd]").addClass("psd");

	$("a:not([@href*=http://www.webdesignerwall.com])").not("[href^=#]")
	  .addClass("external")
	  .attr({ target: "_blank" });


*/
	 
});
