$(document).ready(function(){
	if ($("#player").length >0 ) {
	    $f("player", "/public/scripts/flowplayer-3.1.5.swf", { 
	        clip: { 
	            autoPlay: true, 
	            autoBuffering: true 
	        },
	        canvas: { 
	            backgroundColor:'transparent', 
	        }, 
	        plugins:  { 
	            controls: {
	        		autoHide: 'always',
	        		backgroundColor: 'transparent', 
	        		backgroundGradient: 'none', 
	                bufferColor: '#333333', 
	                progressColor: '#cc0000',             
	                buttonColor: '#cc0000', 
	                buttonOverColor: '#ff0000', 
	                tooltipColor: '#cc0000', 
	                timeColor: '#ff0000', 
	        	}
	        }
	    }).playlist("#videolist", {loop:true}); 	    
	}	
	$("#slideshow").cycle({fx: 'fade', speed: 2000, timeout: 5000});
    $('a.highslide').each(function() {
	    this.onclick = function() {
	      return hs.expand(this,config1);
	    };
	});
	externalLinks();
});
function externalLinks() { 
    if (!document.getElementsByTagName) return; 
   var anchors = document.getElementsByTagName("a"); 
       for (var i=0; i<anchors.length; i++) { 
          var anchor = anchors[i];
          if (anchor.getAttribute("href") && anchor.getAttribute("rel") != "internal") {
            anchor.target = "_blank"; 
          }
       } 
} 
