function getMovieInfo(_movieID,_pooUpSize,_direction)
			{	

				var movieID = 0;
				var popUpSize = " ";
				var direction = " ";

				movieID = _movieID ;
				popUpSize = _pooUpSize;
				direction = _direction;
				var xmlHttp = setXMLHttpReq();

				xmlHttp.open( "get", "AjaxMovieDetails.php?id="+movieID, true ); 
				xmlHttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
				xmlHttp.send(null);

				xmlHttp.onreadystatechange = function()
				{	
					if(xmlHttp.readyState == 4)
					{
						if(xmlHttp.status == 200)
						{
							if(xmlHttp.responseText != null)
							{
								var _showDiv = document.getElementById('PopUp') ; 
								//alert("asdf");
			 					_showDiv.innerHTML =xmlHttp.responseText;
								
							}	
						}
						else
						{
							//do nothing
						}
					}
				}
			} 

function SwitchMenu2(obj, count){
	var qid="q"+count;
	if(document.getElementById)
	{
		var el = document.getElementById(obj);
		var sp = document.getElementById(count);
		var np = document.getElementById("masterspan2").getElementsByTagName("span");
		var ar = document.getElementById("masterspan2").getElementsByTagName("span"); //DynamicDrive.com change
		if(el.style.display != "block")
		{ //DynamicDrive.com change
			for (var i=0; i< ar.length; i++)
			{
				if (ar[i].className=="submenu2")
				//DynamicDrive.com change
				ar[i].style.display = "none";
			}
			sp.style.display = "none";
			el.style.display = "block";
		}
		else{
			el.style.display = "none";
		}

		for(i=0;i<np.length;i++)
		{
			if((np[i].className == "menutitle2") && (np[i].id != count))
			{
				np[i].style.display = "block";
			}

			if((np[i].className == "question2") && (np[i].id == qid))
			{
				np[i].className = "question_high2";
			}
			if((np[i].className == "question_high2") && (np[i].id != qid))
			{
				np[i].className = "question2";
			}

		}
	}
}

function SwitchMenu1(obj, count){
	var qid="q"+count;
	if(document.getElementById)
	{
		var el = document.getElementById(obj);
		var sp = document.getElementById(count);
		var np = document.getElementById("masterspan1").getElementsByTagName("span");
		var ar = document.getElementById("masterspan1").getElementsByTagName("span"); //DynamicDrive.com change
		if(el.style.display != "block")
		{ //DynamicDrive.com change
			for (var i=0; i< ar.length; i++)
			{
				if (ar[i].className=="submenu1")
				//DynamicDrive.com change
				ar[i].style.display = "none";
			}
			sp.style.display = "none";
			el.style.display = "block";
		}
		else{
			el.style.display = "none";
		}

		for(i=0;i<np.length;i++)
		{
			if((np[i].className == "menutitle1") && (np[i].id != count))
			{
				np[i].style.display = "block";
			}

			if((np[i].className == "question1") && (np[i].id == qid))
			{
				np[i].className = "question_high1";
			}
			if((np[i].className == "question_high1") && (np[i].id != qid))
			{
				np[i].className = "question1";
			}

		}
	}
}
function SwitchMenu(obj, count){
	var qid="qw"+count;
	if(document.getElementById)
	{
		var el = document.getElementById(obj);
		var sp = document.getElementById(count);
		var np = document.getElementById("masterspan").getElementsByTagName("span");
		var ar = document.getElementById("masterspan").getElementsByTagName("span"); //DynamicDrive.com change
		if(el.style.display != "block")
		{ //DynamicDrive.com change
			for (var i=0; i< ar.length; i++)
			{
				if (ar[i].className=="submenu")
				//DynamicDrive.com change
				ar[i].style.display = "none";
			}
			sp.style.display = "none";
			el.style.display = "block";
		}
		else{
			el.style.display = "none";
		}

		for(i=0;i<np.length;i++)
		{
			if((np[i].className == "menutitle") && (np[i].id != count))
			{
				np[i].style.display = "block";
			}

			if((np[i].className == "question") && (np[i].id == qid))
			{
				np[i].className = "question_high";
			}
			if((np[i].className == "question_high") && (np[i].id != qid))
			{
				np[i].className = "question";
			}

		}
	}
}
