$(function() {
		$('#slider').carouFredSel({
			width: 460,
			height: 'auto',
			auto: false,
			next: '#nextimg',
			prev: '#previmg',
			align: "left"
		});
});

$(function() {
    $('#sips_home_slider').cycle({
       	timeout: 5500,
    	speed:  900
    });
});

VideoJS.setupAllWhenReady();

$(document).ready(function() {
	
	$("a.group").fancybox({
		'overlayShow'	: true,
		'overlayOpacity': 0.2,
		'overlayColor'	: '#5A7ABA',
		'cyclic'		: true,
		'transitionOut'	: 'none',
		'titlePosition' : 'inside'
	});
	
});

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") == "external")   
     anchor.target = "_blank";   
 }   
}   
window.onload = externalLinks;
