  Shadowbox.init({
    players:     ['img', 'swf', 'html', 'iframe', 'qt', 'wmp', 'flv'],
    flashParams: {allowfullscreen:'true'},
    flashVars:   {controlbar:'over'},
	overlayColor: '#FFFFFF'
  });
  
  $(function() {
	$('.video0 a').tooltip({showURL: false, fade: 250});
	$('.video1 a').tooltip({showURL: false, fade: 250});
	$('.video2 a').tooltip({showURL: false, fade: 250});
	$('.video3 a').tooltip({showURL: false, fade: 250});
	$('.video4 a').tooltip({showURL: false, fade: 250});	
	$('.video5 a').tooltip({showURL: false, fade: 250});
	$('.video6 a').tooltip({showURL: false, fade: 250});
	$('.video7 a').tooltip({showURL: false, fade: 250});
	$('.video8 a').tooltip({showURL: false, fade: 250});
	$('.video9 a').tooltip({showURL: false, fade: 250});
  });

function setThumbWidth(videoID, imgID)
{
	var widthImg = document.getElementById(videoID).offsetWidth;
	var heightImg = document.getElementById(videoID).offsetHeight;
	img = document.getElementById(imgID);
	img.width = widthImg;
	img.height = heightImg;
}

// JavaScript Document
$(document).ready(function(){
 	   var opacity = 0.5;
		//$(".accordion").accordion({ collapsible: true, active:false });		
		$(".toggle_container").show();
		$('.opacity').css('opacity', opacity);

	/*
		$("h3.trigger").click(function(){
			
			$(this).next(".toggle_container").slideToggle("slow,");
			$("h3.trigger2").removeClass("active2");
			$("h3.trigger3").removeClass("active3");
			$("h3.trigger2").next(".toggle_container").hide("slow,");
			$("h3.trigger3").next(".toggle_container").hide("slow,");
			if ($(this).hasClass('active')) {
    			$(this).removeClass("active");
   			 }else{
				$(this).addClass("active");	 
			}


		});
	*/	
	
		$("h3.trigger2").click(function(){ 
			
			$(this).next(".toggle_container").slideToggle("slow,");
			$("h3.trigger").removeClass("active");
			$("h3.trigger3").removeClass("active3");
			$("h3.trigger").next(".toggle_container").hide("slow,");
			$("h3.trigger3").next(".toggle_container").hide("slow,");
			if ($(this).hasClass('active2')) {
    			$(this).removeClass("active2");
   			 }else{
				$(this).addClass("active2");	 
			}
			
		});
	
		

});
