// JavaScript Document

//jQuery(document).ready(function(){CommunityScript();});
var objid;

function showContent(obj,val)
{


if(objid != val)
	{
		
		if(objid==1)
				jQuery("#tdwhoContent").css("display","none");
		else if(objid==2)
			jQuery("#tdwhyContent").css("display","none");
		else if(objid==3)
			jQuery("#tdwhatContent").css("display","none");
		else if(objid==4)
			jQuery("#tdwhereContent").css("display","none");
		else 
			jQuery("#tdwhenContent").css("display","none");
		objid=val;	
	}
	
	
if(val ==1)
	{
	if(jQuery("#tdwho").html()=='Who')		
		{
			jQuery("#tdwhoContent").slideDown("slow");	
			jQuery("#tdwho").attr("title","Hide Content");
		}
	else
		{
			jQuery("#tdwhoContent").slideUp("slow");					
			jQuery("#tdwho").attr("title","Show Content");					
		}
		
		
	}
else if(val==2)
	{
		if(jQuery("#tdwhy").html()=='Why')		
		{
			jQuery("#tdwhyContent").slideDown("slow");	
			jQuery("#tdwhy").attr("title","Hide Content");
		}
	else
		{
			jQuery("#tdwhyContent").slideUp("slow");					
			jQuery("#tdwhy").attr("title","Show Content");					
		}
		
	}
else if(val==3)
	{
	if(jQuery("#tdwhat").html()=='What')		
		{
			jQuery("#tdwhatContent").slideDown("slow");	
			jQuery("#tdwhat").attr("title","Hide Content");
		}
	else
		{
			jQuery("#tdwhatContent").slideUp("slow");					
			jQuery("#tdwhat").attr("title","Show Content");					
		}	
	}
else if(val==4)
	{
	if(jQuery("#tdwhere").html()=='Where')		
		{
			jQuery("#tdwhereContent").slideDown("slow");	
			jQuery("#tdwhere").attr("title","Hide Content");
		}
	else
		{
			jQuery("#tdwhereContent").slideUp("slow");					
			jQuery("#tdwhere").attr("title","Show Content");					
		}
		
	}
else 
	{
	
		if(jQuery("#tdwhen").html()=='When')		
			{
				jQuery("#tdwhenContent").slideDown("slow");	
				jQuery("#tdwhen").attr("title","Hide Content");
			}
		else
			{
				jQuery("#tdwhenContent").slideUp("slow");					
				jQuery("#tdwhen").attr("title","Show Content");					
			}
		
	}
	

}

function Expand(value)
{
if(value ==1)
	{
		document.getElementById('sp1').style.display = "none";	
		document.getElementById('sp2').style.display = "block";	
		jQuery("#tdwhoContent").css("display","block");
		jQuery("#tdwhyContent").css("display","block");
		jQuery("#tdwhatContent").css("display","block");
		jQuery("#tdwhereContent").css("display","block");
		jQuery("#tdwhenContent").css("display","block");
		
	}
else
	{
		document.getElementById('sp1').style.display = "block";	
		document.getElementById('sp2').style.display = "none";		
		jQuery("#tdwhoContent").css("display","none");
		jQuery("#tdwhyContent").css("display","none");
		jQuery("#tdwhatContent").css("display","none");
		jQuery("#tdwhereContent").css("display","none");
		jQuery("#tdwhenContent").css("display","none");	
	}
}

