(function($){
	$().ready(function(){
		if ( $(".video_list .bg2").length ) {
			$(".video_list .bg2 .arrow_icon a").each(function(){
				var bg2 = $(this).parents(".bg2");
				
				$(bg2).bind("click", function() {
					$($(".arrow_icon a", this)[0]).trigger("click");
				});
				
				$(this).bind("click", function(){
					$(this).blur();
					return false;
				});
			});
			
			
		}
		if ( $(".video_list2 .bg").length ) {
			$(".video_list2 .bg .arrow_icon a").each(function(){
				var bg2 = $(this).parents(".bg");
				
				$(bg2).bind("click", function() {
					if ($("a", this).length) {
						
						var a = $("a",this)[0];
						var rel = $(a).attr("rel");
						
						if ( $("#"+rel).length ) {
						
							if ( $(".video_display2 .video_desc").length ) {
								$(".video_display2 .video_desc").html( $("#"+rel).html() );
							}
						}
					}
					$($(".arrow_icon a", this)[0]).trigger("click");
				});
				
				$("a", this).bind("click", function(){
				
					$(this).blur();
					return false;
				});
			});
			
			
		}
		
		if ( $(".header_r .bg1").length ) {
			$(".header_r .bg1 a").each(function(){
				var bg2 = $(this).parents(".bg1");
				var href = $(this).attr("href");
				$(bg2).bind("click", function() {
					window.location = href;
				});
			});
			
		}
	});
})(jQuery);