// JavaScript Document

var imgArr;
var strdata;
function showid(ParentId,ChildId)
{
	
	var obj=document.getElementById(ParentId).getElementsByTagName("div");
	for (var i=0;i<obj.length;i++)
	{
			obj[i].style.display="none";
	}
	document.getElementById(ChildId).style.display="block";
}

function MakeHttpCall(divid)
{
	var xmlobj;
	try
	{
		xmlobj=new ActiveXObject("Microsoft.XMLHTTP");
	}
	catch(e)
	{
		xmlobj= new ActiveXObject("Msxml2.XMLHTTP");
	}
	if(xmlobj)
	{
		xmlobj.open("GET","HtmlMenu.aspx",true)
		xmlobj.onreadystatechange =function()
		{
				if(xmlobj.readyState==4)
				{
					
					document.getElementById(divid).innerHTML=xmlobj.responseText;
					
				}
		}
		xmlobj.send(null);
	}
}

function CallAsp()
{
	var xmlobj;
	try
	{
		xmlobj=new ActiveXObject("Microsoft.XMLHTTP");
	}
	catch(e)
	{
		xmlobj= new ActiveXObject("Msxml2.XMLHTTP");
	}
	if(xmlobj)
	{
		xmlobj.open("GET","slideshow.aspx",true)
		xmlobj.onreadystatechange =function()
		{
				if(xmlobj.readyState==4)
				{
					//document.getElementById(divid).innerHTML=xmlobj.responseText;
					imgArr=new Array(xmlobj.responseText);
					alert(xmlobj.responseText);
				}
				alert("data:"+imgArr[0]);
		}
		xmlobj.send(null);
//		alert("length of array:"+imgArr.length());

		
	}
}

function ShowHotProduct()
{
	var xmlobj;
	try
	{
		xmlobj=new ActiveXObject("Microsoft.XMLHTTP");
	}
	catch(e)
	{
		xmlobj= new ActiveXObject("Msxml2.XMLHTTP");
	}
	if(xmlobj)
	{
		xmlobj.open("GET","HotImage.aspx",true)
		xmlobj.onreadystatechange =function()
		{
				if(xmlobj.readyState==4)
				{
				    document.getElementById('HotProductId').innerHTML=xmlobj.responseText;
				}

		}
		xmlobj.send(null);
		
	}
}
// ShowSpecialProduct()

function ShowSpecialProduct()
{
	var xmlobj;
	try
	{
		xmlobj=new ActiveXObject("Microsoft.XMLHTTP");
	}
	catch(e)
	{
		xmlobj= new ActiveXObject("Msxml2.XMLHTTP");
	}
	if(xmlobj)
	{
		xmlobj.open("GET","SpecialImage.aspx",true)
		xmlobj.onreadystatechange =function()
		{
				if(xmlobj.readyState==4)
				{
				    document.getElementById('SpecialProductId').innerHTML=xmlobj.responseText;
				}

		}
		xmlobj.send(null);
		
	}
	
	
}

