$(document).ready(function() {

    $('#carousel').infiniteCarousel({
        displayProgressBar: false,
        displayThumbnailNumbers: false,
        id: 87518549
    });
    if ($.browser.msie) {
        $('#tabs').tabs();
    } else {
        $('#tabs').tabs({
            fx: { opacity: 'toggle' }
        });
    }

    loadVideo();

    
    if ($(".menubar").html() == "") {
        $(".search-container").hide();
    }

});

function loadVideo()
{
}

function loadVideo1() {
	flowplayer('player', {src: 'js/flowplayer-3.1.5.swf', wmode: 'opaque'}, {
		canvas: {backgroundColor: 'transparent'},
		clip:  { 
			autoPlay:true
		},
		plugins: {
			controls: {
				url: 'js/flowplayer.controls-3.1.5.swf', 
				backgroundColor: '#ffffff',
				backgroundGradient: 'none',
				volume: false,
				mute: true,
				time:false,
				stop:true,
				fullscreen:true,
				progressGradient: 'none',
				progressColor: '#FF0066',
				buttonColor: '#ffffff',
				buttonOverColor: '#FF0066',
				sliderColor: '#000000',
				bufferColor: '#000000',
				tooltipColor: '#FF0066'
			},
			content: {
				// the only required property 
				url: 'js/flowplayer.content-3.1.0.swf', 
				 
				// some display properties 
				padding:'5px 10px 5px 10px',
				bottom:25,
				backgroundColor: '#000000', 
				opacity: 0,
				
				 
				// one styling property  
				borderRadius: '0',
				width: '344px',
				 
				// content plugin specific properties 
				html: '', 
				style: {p: {fontSize: 12}}
			}
		},
		onMouseOver: function() { 
				// first get access to the plugin using the getPlugin call 
				var plugin = $f("player").getPlugin("content"); 
				 
				var title = $('.playing span.vidTitle, .paused span.vidTitle').html();
				var description = $('.playing span.vidDesc, .paused span.vidDesc').html();
				
				// after that you can use the standard plugin's methods 
				plugin.setHtml('<p><b>' + title + '</b><br />' + description + '</p>');
				plugin.animate({opacity:.9}, 800); 
			},
			onMouseOut: function() { 
				var plugin = $f("player").getPlugin("content"); 
				 
				// after that you can use the standard plugin's methods 
				plugin.animate({opacity:0}, 800); 
			} 
			
	}).playlist("div#clips");

}

