var volumeset2=100;
var currentVid;
	jQuery(document).ready(function() {
									setTimeout(loadingVid,5000);
	currentVid=jQuery("#catpages div ul li a").attr("id");
	jQuery(".vidover").fadeOut(1);
	var theBox=jQuery("#cat_1").html();
		jQuery("#videobox-side").html(theBox);

	jQuery(".catlink").click(function() {
	jQuery(".active").removeClass('active');								  
	jQuery(this).addClass('active');
		var catid=jQuery(this).attr("title");
		
		theBox=jQuery("#cat_" + catid).html();
		jQuery("#videobox-side").html(theBox);
				jQuery(".vidlink2").click(function() {
		
			var vidnum=jQuery(this).attr('name');
			//jQuery("#paramMovie").attr('value','http://www.youtube.com/v/' + vidnum + '&hl=en&fs=1');
			//jQuery("#embedMovie").attr('src','http://www.youtube.com/v/' + vidnum + '&hl=en&fs=1');
			loadNewVideo(vidnum,"0");
			return false;
		});
		
		jQuery(".vidlink").click(function() {
			var vidnum=jQuery(this).attr('name');
			//jQuery("#paramMovie").attr('value','http://www.youtube.com/v/' + vidnum + '&hl=en&fs=1');
			//jQuery("#embedMovie").attr('src','http://www.youtube.com/v/' + vidnum + '&hl=en&fs=1');
			var theType=jQuery(this).hasClass('google');
			if (jQuery(this).hasClass('google')) {
			loadGoogle(vidnum);
			}else{
			loadNewVideo(vidnum,"0");
			}
			return false;
		});
		return false;
	});
		jQuery(".vidlink").click(function() {
		
			var vidnum=jQuery(this).attr('id');
	
			//jQuery("#paramMovie").attr('value','http://www.youtube.com/v/' + vidnum + '&hl=en&fs=1');
			//jQuery("#embedMovie").attr('src','http://www.youtube.com/v/' + vidnum + '&hl=en&fs=1');
			var theType=jQuery(this).hasClass('google');
			if (jQuery(this).hasClass('google')) {
			loadGoogle(vidnum);
			}else{
			loadNewVideo(vidnum,"0");
			}
			return false;
		});
		
			jQuery(".vidlink2").click(function() {
		
			var vidnum=jQuery(this).attr('name');
			//jQuery("#paramMovie").attr('value','http://www.youtube.com/v/' + vidnum + '&hl=en&fs=1');
			//jQuery("#embedMovie").attr('src','http://www.youtube.com/v/' + vidnum + '&hl=en&fs=1');
			loadNewVideo(vidnum,"0");
			return false;
		});
		
		
		
		jQuery("#videobox-side ul li").mouseover(function(data) {
			if (jQuery(this).is(":animated")) {
				jQuery(this).stop().animate({backgroundColor:"#D5D1C8"}, 500);
				
			}else{
				jQuery(this).animate({backgroundColor:"#D5D1C8"}, 700);
			
			}
			
			jQuery(this).addClass('activated');
			
			
			jQuery(this).click(function() {
				var vidnum=jQuery(".activated a").attr('id');
			jQuery("#paramMovie").attr('value','http://www.youtube.com/v/' + vidnum + '&hl=en&fs=1&autoplay=1');
			jQuery("#embedMovie").attr('src','http://www.youtube.com/v/' + vidnum + '&hl=en&fs=1&autoplay=1');
			return false;
				
			
			});
			
			
	
			jQuery("#videobox-side ul li").mouseout(function(data) {
			if (jQuery(this).is(":animated")) {
			jQuery(this).stop().animate({backgroundColor:"#ffffff"}, 500);
		

		}else{
			jQuery(this).animate({backgroundColor:'#ffffff'}, 700);
			

		}
		
		
		
jQuery(this).removeClass('activated');
		});
		});
		
	});