﻿
$(document).ready(function(){
	$(".menudiary2 > li").click(function(e){
		switch(e.target.id){
			case "punjab":
				//change status & style menu
				$("#punjab").addClass("active");
				$("#sindh").removeClass("active");
				$("#balochistan").removeClass("active");
				$("#kp").removeClass("active");
 
				//display selected division, hide others
		 
				$("div.punjab").fadeIn();
				$("div.sindh").css("display", "none");
				$("div.balochistan").css("display", "none");
				$("div.kp").css("display", "none");
			break;
			case "sindh":
				//change status & style menu
				$("#punjab").removeClass("active");
				$("#sindh").addClass("active");
				$("#balochistan").removeClass("active");
				$("#kp").removeClass("active");
 
				//display selected division, hide others
		 
				$("div.sindh").fadeIn();
				$("div.punjab").css("display", "none");
				$("div.balochistan").css("display", "none");
				$("div.kp").css("display", "none");
			break;
			case "balochistan":
				//change status & style menu
				$("#punjab").removeClass("active");
				$("#sindh").removeClass("active");
				$("#balochistan").addClass("active");
				$("#kp").removeClass("active");
 
				//display selected division, hide others
	 
				$("div.balochistan").fadeIn();
				$("div.punjab").css("display", "none");
				$("div.sindh").css("display", "none");
				$("div.kp").css("display", "none");
			break;
			case "kp":
				//change status & style menu
				$("#punjab").removeClass("active");
				$("#sindh").removeClass("active");
				$("#balochistan").removeClass("active");
				$("#kp").addClass("active");
		 
				//display selected division, hide others
		 
				$("div.kp").fadeIn();
				$("div.punjab").css("display", "none");
				$("div.sindh").css("display", "none");
				$("div.balochistan").css("display", "none");
			break;
			case "read":
				//change status & style menu
	            $("#emailed").removeClass("active");
				$("#read").addClass("active");
				//display selected division, hide others
				$("div.read").fadeIn();
				$("div.emailed").css("display", "none");
				
			break;
			case "emailed":
				//change status & style menu
		        $("#read").removeClass("active");
				$("#emailed").addClass("active");
				//display selected division, hide others
				$("div.emailed").fadeIn();
				$("div.read").css("display", "none");
				
			break;
		}
		//alert(e.target.id);
		return false;
	});
});





$(document).ready(function(){
	$(".popMenu > li").click(function(e){
		switch(e.target.id){
			case "read":
				//change status & style menu
	            $("#emailed").removeClass("active");
				$("#read").addClass("active");
				//display selected division, hide others
				$("div.read").fadeIn();
				$("div.emailed").css("display", "none");
				
			break;
			case "emailed":
				//change status & style menu
		        $("#read").removeClass("active");
				$("#emailed").addClass("active");
				//display selected division, hide others
				$("div.emailed").fadeIn();
				$("div.read").css("display", "none");
				
			break;
		}
		//alert(e.target.id);
		return false;
	});
});

$(document).ready(function(){
	$(".popMenu2 > li").click(function(e){
		switch(e.target.id){
			case "pulsecartoon":
				//change status & style menu
	            $("#pulsehoroscope").removeClass("active");
				$("#pulsecartoon").addClass("active");
				//display selected division, hide others
				$("div.pulsecartoon").fadeIn();
				$("div.pulsehoroscope").css("display", "none");
				
			break;
			case "pulsehoroscope":
				//change status & style menu
		        $("#pulsecartoon").removeClass("active");
				$("#pulsehoroscope").addClass("active");
				//display selected division, hide others
				$("div.pulsehoroscope").fadeIn();
				$("div.pulsecartoon").css("display", "none");
				
			break;
		}
		//alert(e.target.id);
		return false;
	});
});
