
jQuery(document).ready(function($){
		$("#myController").jFlow({
			slides: "#mySlides",
			controller: ".jFlowControl", // must be class, use . sign
			slideWrapper : "#jFlowSlide", // must be id, use # sign
			selectedWrapper: "jFlowSelected",  // just pure text, no sign
			auto: false, 
			width: "659px",
			height: "247px",
			duration: 400,
			interval: 16000, // this is the amount of milliseconds before the switch happens
			prev: ".jFlowPrev", // must be class, use . sign
			next: ".jFlowNext" // must be class, use . sign
		});
});


/* jQuery Basic Image Effects by Johan */
jQuery(document).ready(function($){
	$('img.logo').hover(
		function() { $(this).fadeTo('fast',0.7);},
		function() { $(this).fadeTo('fast',1);}
	);
});

jQuery(document).ready(function($){
	$('.button a img').hover(
		function() { $(this).fadeTo('fast',0.8);},
		function() { $(this).fadeTo('fast',1);}
	);
});


jQuery(document).ready(function($){
    $('table tr:odd').addClass('odd');
    $('table tr:even').addClass('even');
});


jQuery(document).ready(function($){
    $("label").append(":");
});


////////////////// EXTERNAL SITES / OPEN NEW WINDOW //////////////////
jQuery(document).ready( function($) {
    $('a[rel="external"]').click( function() {
        window.open( $(this).attr('href') );
        return false;
    }); 
});

////////////////// initialise Superfish, hoverIntent, supersubs //////////////////
jQuery(document).ready(function($){ 
	$("ul.sf-menu").supersubs({ 
		minWidth:    15,   // minimum width of sub-menus in em units 
		maxWidth:    35,   // maximum width of sub-menus in em units 
		extraWidth:  5     // extra width can ensure lines don't sometimes turn over 
						   // due to slight rounding differences and font-family 
	}).superfish();  // call supersubs first, then superfish, so that subs are 
					 // not display:none when measuring. Call before initialising 
					 // containing tabs for same reason. 
}); 
