	
	
	function adsvrDisplaySingleAd(vImgRoot,vhtmlAd,vRC, vAppRoot, vID, vDivW, vDivH, vBtnW, vBtnH, vBtnT, vBtnL, vImgDualSwitch, vLid, vImgBdr, vImgMain,imgTarget,bgclr)
	{
	//alert("hi");
		if (vRC == "0") 
		{ 
		   //alert(vhtmlAd);  
               if(vhtmlAd == "0")
			{
			     //alert(vImgRoot + "inside");	
			     document.write("<div id='" + vID + "' style='Height:" + vDivH + ";Width:" + vDivW + "'>");
			     document.write("<A HREF='" + vAppRoot + "/ui/AdLinkManager.aspx?lid=" + vLid + "' TARGET='"+ imgTarget +"'><img  border='" + vImgBdr + "' src='" + vImgRoot + vImgMain + "' height='" + vDivH + "' width='" + vDivW + "'></A>");				     
			     document.write("</div>");
			}
			else if(vhtmlAd == "text")
			{
			     //alert(vImgRoot + "inside");	
			     document.write("<div id='" + vID + "' style='background-color:" + bgclr + "; Height:" + vDivH + ";Width:" + vDivW + "'>");
			     document.write("<A HREF='" + vAppRoot + "/ui/AdLinkManager.aspx?lid=" + vLid + "' TARGET='"+ imgTarget +"'>" + vImgRoot + "</A>");				     
			     document.write("</div>");
			}
			else if(vhtmlAd == "inflash")
			{
			     document.write("<script language='javascript'>;");			     	
			    // document.write("alert('hi');");
			     document.write("var vOBJECT_URL ='" + vImgRoot + vImgMain + "';"); 			     
			     document.write("var vOBJECT_CLICK ='" + vAppRoot + "/ui/AdLinkManager.aspx?lid=" + vLid + "';"); 
			     document.write("</script>");
			}
			else
			{	
			   //alert("in else");	
//			   var vhtml = "<object width='468' height='60' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0'><param name='movie' value='http://localhost:2228/Adserversolutions/ads/55.swf?clickTAG=http://www.Igoogle.com'><param name='quality' value='High'><param name='play' value='True'><param name='loop' value='False'><param name='menu' value='False'><param name='scale' value='Showall'><EMBED src='http://localhost:2228/Adserversolutions/ads/55.swf' quality=high WIDTH='468' HEIGHT='60' NAME='' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED></object>";			  
//			   alert(vhtml + "inside");	
			  document.write("<div id='" + vID + "' style='Height:" + vDivH + ";Width:" + vDivW + "'>");
			  document.write(vhtmlAd);
			  document.write("</div>");
			}
		} 
		else
		{    
			adsvrDisplayOtherNetworks();
		}
	}
	
