		var specificOffsetH = 50;
		$(document).ready(function(){
			$('a.colorbox').colorbox({title: function() { var s = $(this).attr('title'); return s.replace('-', "<br />");}});
			$('.img-swap').hover(
				function(){this.src = this.src.replace("_F","_B");},
				function(){this.src = this.src.replace("_B","_F");
			});
			resizeFlashPlayer();
		});
		
		function initVideo() {
			var v = document.getElementById('video');
			if ( v != undefined && v != null ) {
            	v.load();
            	v.play();
			}               
        }

        function resizeFlashPlayer() {

        	var fPlayer = document.getElementById('theplayer');
        	// if there is no flash player, quit
        	if ( fPlayer == undefined || fPlayer == null ) return;
        	
        	var containerPlayer = document.getElementById('inner_content');
        	var w = containerPlayer.offsetWidth;

        	// adjust player size
        	var newWidth = w - 40;
        	var newHeight = newWidth * 9 / 16 + specificOffsetH;
        	$('#theplayer').attr('width', newWidth);
        	$('#theplayer').attr('height', newHeight);
        	$('#theplayerembed').attr('width', newWidth);
        	$('#theplayerembed').attr('height', newHeight);
        }
        
        $(window).resize(function() { resizeFlashPlayer(); });
        
    	$(document).ready(function(){
    		$( "#accordion" ).accordion({
    			autoHeight: false,
    			navigation: true
    		});
    	});


