// Global jquery script
$(document).ready(function() {
						   
	$('.externalLink').click(function () {
		input_box=confirm('Thank you for visiting the Rhinocort Hayfever website. You are now leaving the site. The information the reader is about to be referred to may not comply with the Australian regulatory requirements. Further information relevant to the Australian environment is available from the company or via the Product Information.');
		if (input_box==true) { 
			return true;
		} else {
        	return false;
		}
	});
	
	// install flowplayer into flowplayer container 
    var player = $f("player", "/flash/flowplayer-3.1.1.swf",  { 
		clip: { 
			 
			// these two configuration variables does the trick 
			autoPlay: false,  
			autoBuffering: true // <- do not place a comma here   
		} 
	});
     
    // setup button action. it will fire our overlay  
    $("a[rel]").overlay({ 
         
        // when overlay is opened, load our player 
        onLoad: function() { 
            player.load(); 
        }, 
         
        // when overlay is closed, unload our player 
        onClose: function() { 
            player.unload(); 
        } 
    }); 
		
});


