	
	var klavika = { 
		src: 'http://www.watergateportdouglas.com.au/themes/watergate/swf/klavika.swf' 
		,ratios: [7,1.32,11,1.31,13,1.24,14,1.25,19,1.23,27,1.2,34,1.19,42,1.18,47,1.17,48,1.18,69,1.17,74,1.16,75,1.17,1.16] 
	};

	var klavikabld = { 
		src: 'http://www.watergateportdouglas.com.au/themes/watergate/swf/klavika-bld.swf' 
		,ratios: [7,1.32,11,1.31,13,1.24,14,1.25,19,1.23,27,1.2,34,1.19,42,1.18,47,1.17,48,1.18,69,1.17,74,1.16,75,1.17,1.16] 
	};
		
	sIFR.activate(klavika);
	sIFR.activate(klavikabld);

	
	sIFR.replace(klavika, { selector: 'h2',wmode: 'transparent' ,forceSingleLine: true ,css: ['.sIFR-root { color: #ec9b6a; font-size: 20px; margin: 0 0 0 0; }'] });	
	sIFR.replace(klavika, { selector: 'h3',wmode: 'transparent' ,forceSingleLine: true ,css: ['.sIFR-root { color: #ec9b6a; font-size: 20px; margin: 0 0 0 0; }'] });	
	sIFR.replace(klavikabld, { selector: 'h4',wmode: 'transparent' ,forceSingleLine: true ,css: ['.sIFR-root { color: #ec9b6a; font-size: 13px; font-weight: normal; margin: 0 0 0 0; }'] });	
	sIFR.replace(klavikabld, { selector: 'h5',wmode: 'transparent' ,forceSingleLine: true ,css: ['.sIFR-root { color: #ec9b6a; font-size: 13px; font-weight: normal; margin: 0 0 0 0; }'] });	
	
	jQuery(function( $ ){

	
		function content_resize()  
	    { 

	        var windowHeight = $( window ).height(); 
	        var bodyHeight = $(document).height();
			var startHeight = $("#content-w-alpha").height();
			var neweleHeight = windowHeight-410;

			if ( windowHeight < bodyHeight ) {
						
					$( '#lvl2-col-alpha' ).css( {height: bodyHeight-410} ); 
					$( '#layer2' ).css( {height: bodyHeight-410} ); 
			
			}
			
			else {
			
				if ( neweleHeight <= startHeight ) {
					$( '#lvl2-col-alpha' ).css( {height: startHeight+20} );
					$( '#layer2' ).css( {height: startHeight+20} );
				}

				else {			
					$( '#lvl2-col-alpha' ).css( {height: neweleHeight} ); 
					$( '#layer2' ).css( {height: neweleHeight} ); 
				}
				
			}
			
	    } 
	 
	    $( window ).wresize( content_resize ); 
	 
	    content_resize(); 
		
	$("ul.topnav li a").click( 
		function() { 
			$(this).parent().children("ul.subnav").slideToggle("slow");
		}
	);
	
	});
	
