// initialise plugins
// superfish menu

$(document).ready(function(){ 
	$("ul.sf-menu").supersubs({ 
		minWidth:    8,   // minimum width of sub-menus in em units 
		maxWidth:    25,   // maximum width of sub-menus in em units 
		extraWidth:  1     // 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.

	$('#images').innerfade({
		animationtype: 'fade',
		speed: 2000,
		timeout: 6000,
		type: 'sequence',
		containerheight: '250px'
	});
		
	$(".scrollableArea img").click(function() {
		var exampleOctave = $(this).attr("id");
		$('#piano').replaceWith('<img id="piano" src="img/keys/octaves/' + exampleOctave + 'lg.jpg" />');		
	});
	
	$('#tooltip').qtip({
  	 	content: {url: 'inc/linkToUs.html'},
   		show: 'mouseover',
   		hide: { fixed: true, delay: 1000 },
   		style: { width: { min: 300 }, name: 'dark'},
   		position: { 
   			corner: {
   				target: 'rightMiddle',
   				tooltip: 'leftMiddle'
   			}
   		}
	})	
});  

//radiobutton javascript
function go(loc) {
			window.location.href = loc;
}


