$(document).ready(function() { 
	
			var flashvars = {};
			var params = {};
			params.scale = "noscale";
			params.salign = "tl";
			params.wmode = "transparent";
			var attributes = {};
			swfobject.embedSWF("bannerconfig/MediaSlideshowFX.swf", "bannerdiv", "628", "239", "9.0.0", false, flashvars, params, attributes);
	
	//for wallpaper section tab
	$(".div_wpcat").hide();
	$(".wp_cat_li").click(function(){ 
		var catid = $(this).attr("id");		
		$("#wallpapertabs > li").removeClass("current");
		$(this).addClass("current");		
		$("#category_wallpapers").html('<div><img src="../images/ajax-loader.gif" />   Loading wallpapers....</div>');
		//$("#category_wallpapers").html($("#wp_catdiv_"+catid).html());
				$.ajax({type: "POST", url: "a_wallpapers.php", dataType: 'html', data: "catid="+catid,
					success: function(resObj, statusText) {
						//if(resObj.status) {	
						if(resObj.split("__")[0] == 'success') {
							//alert(resObj);
							$("#category_wallpapers").html(resObj.split("__")[1]);
						} else {
							//alert("Soryy, some errors occured during reading image, please fill the details manually.");						
							$("#category_wallpapers").html("<br/>Sorry, We not found wallpapers in this category.");
							return false;
						}
					}
				});	
		
	});
	//for movie section tab
	$('.stars').rating();
	$(".movie_li").click(function(){ 
		var divid = $(this).attr("rel");
		$("#movie_tabs > li").removeClass("current");
		$(this).addClass("current");
		$("#movie_review_div").html($("#"+divid).html());
	});
 });
