		// initialise plugins
		jQuery(function(){
			jQuery('ul.sf-menu').superfish();
		});

			$(function(){

				// Tabs
				$('#tabs').tabs();
	
				
			});

	$(function() {

		//run the currently selected effect
		function runEffect(){
			//get effect type from 
			var selectedEffect = 'clip';
			
			//most effect types need no options passed by default
			var options = {};
			
			//run the effect
			$("#effect").show(selectedEffect,options,500,callback);
		};
		
		//callback function to bring a hidden box back
		function callback(){
			setTimeout(function(){
				$("#effect:visible").removeAttr('style').hide().fadeOut();
			}, 5000);
		};
		
		//set effect from select menu value
		$("#conbutton").click(function() {
			runEffect();
			return false;
		});
		
		$("#effect").hide();
	});

$('#aup').cycle({ 
    fx: 'turnUp',
	timeout: 10000
});

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;
