function ShowVideo(html){
	$("#VideosItem").html(html);
	$("#VideosItem").fadeIn("fast");
}

$(document).ready(function(){
//init START
	//LEFT ADS
//	$("#Ads2HiddenData1").hide();
	//$("#Ads2HiddenData2").show();
	//LEFT ADS
	//CENTER ADS
		$("#centerAds").show("slow");

		//$("#Ads2HiddenData2").html('<br /><img src="image/loading.gif" /> <br /> <br /> <br />');
		//$("#Ads2HiddenData2").hide();
	
	//CENTER ADS
//init END

//EFFECTS ON THE Right ADS START

//added july 12 2009
/*
	effects on video 
*/
	 $(".ListingItems").click(function(event){
	  			$("#VideosItem").fadeOut("fast");
				$("#VideosItem").html('<br /><img src="img/loading.gif" /> <br /> <br /> <br />');
	  			$("#VideosItem").fadeIn("fast");
				$.ajax({
					  url:"pages/video.php?id="+$(this).attr("id"),				  
					  cache: false,
					  async: false,
					  success: function(html){
						  //VideosItem	
						setTimeout("ShowVideo("+(html)+")",2000);
					  }
				});

	});
//added july 12 2009




	$(".clickbuzz").mousedown(function(event){
			$("#Ads2HiddenData2").html('<br /><img src="image/loading.gif" /> <br /> <br /> <br />');
			//$("#Ads2HiddenData2").show();
	});
	
	$(".clickbuzz2").mousedown(function(event){
			$("#Ads2HiddenData2").html('<br /><img src="image/loading.gif" /> <br /> <br /> <br />');
			$("#Ads2HiddenData2").show();
	});
								   
	$(".clickbuzz").click(function(event){
			$(".clickbuzz").css("color","#666666");
			$(".clickbuzz2").css("color","#666666");
			
			$(this).css("color","red");
			$("#Ads2HiddenData2").css("visibility","visible");
			$("#Ads2HiddenData2").show();

			ajaxLeftads("leftads.php?id="+$(this).attr("id"));

	});
	

	$(".clickbuzz2").click(function(event){
			$(".clickbuzz").css("color","#666666");
			$(".clickbuzz2").css("color","#666666");

			$(this).css("color","red");
			$("#Ads2HiddenData2").css("visibility","visible");
			ajaxLeftads2("leftads.php?id="+$(this).attr("id"));

	});

	
	
	$("#clickvack").click(function(event){
			$("#Ads2HiddenData2").css("visibility","visible");
			$("#Ads2HiddenData1").hide("fast");
			$("#Ads2HiddenData2").show("slow");
			$("#Ads2HiddenData1").css("visibility","hidden");
	 });
//EFFECTS ON THE LEFT ADS END
	
//EFFECTS ON THE CENTER ADS START
	 $(".CA_item").click(function(event){
			//alert($(this).attr("id"));
				$.ajax({
					  url: "pageajax.php?id="+$(this).attr("id"),				  
					  cache: false,
					  async: false,
					  success: function(html){
						  //alert(html);
						$("#centerAds").hide("slow");
						$("#centerAds").show("slow");
						$("#centerAds").html(html);
					  }
				});





});
//EFFECTS ON THE CENTER ADS END


///functions 
function ajaxLeftads($url){
	$.ajax({
		  url: $url,				  
		  cache: false,
		  async: false,
		  success: function(html){
			  ///alert($url);
			//$("#Ads2HiddenData1").hide("slow");
			//$("#Ads2HiddenData1").html('<br /><img src="image/loading.gif" /> <br />');
			//$("#Ads2HiddenData1").show("slow");
			$("#Ads2HiddenData2").html(html);
			$("#Ads2HiddenData2").show("slow");
		  }
	});
}

function ajaxLeftads2($url){
	$.ajax({
		  url: $url,				  
		  cache: false,
		  async: false,
		  success: function(html){
			  //alert(html);
			//$("#Ads2HiddenData1").hide("slow");
			$("#Ads2HiddenData2").html(html);
			$("#Ads2HiddenData2").show("slow");
		  }
	});
}

///functons
//rigth bar
//ListingItem

});	

function al($ids){
	$($ids).ready(function(){
		$ListId=$($ids).attr("id");
		//RigthImage
	$url="leftads.php?id="+$ListId+"&ph=2";
	$.ajax({
		  url: $url,				  
		  cache: false,
		  async: false,
		  success: function(html){
				$("#RigthImage").html(html);
		  }
	});
		
		
	});
	return;
}



