		var h=-610;
		var is_ie = (navigator.userAgent.indexOf('MSIE') >= 0) ? 1 : 0; 
		var is_ie5 = (navigator.appVersion.indexOf("MSIE 5.5")!=-1) ? 1 : 0; 
		var is_opera = ((navigator.userAgent.indexOf("Opera6")!=-1)||(navigator.userAgent.indexOf("Opera/6")!=-1)) ? 1 : 0; 
		//netscape, safari, mozilla behave the same??? 
		var is_netscape = (navigator.userAgent.indexOf('Netscape') >= 0) ? 1 : 0; 
		var is_mizila = (navigator.userAgent.indexOf('Firefox') >= 0) ? 1 : 0; 
		var wsize,w,ht;
		w=300;
		ht=320;
			function ShowbannerDiv()
			{
				wsize=(window.screen.width==1024) ? (window.screen.width/4+100):(window.screen.width/4+50);
						
				if (document.getElementById('svalue').value=="Hide")
				{
					return;
				}
				
				if(is_ie5 || is_ie)
				{
				
				document.getElementById("content").style.backgroundColor="Gainsboro";
				//document.getElementById("content").style.filter="alpha(opacity=30)";
				document.getElementById("bannerdiv").style.position="absolute";
				document.getElementById("bannerdiv").style.posTop=0;
				document.getElementById("bannerdiv").style.posLeft=100;
				domove();
				}
				if(is_mizila || is_netscape)
				{
				
				document.getElementById("content").style.backgroundColor="Gainsboro";
				//document.getElementById("content").style.filter="-moz-opacity:0.5";
				document.getElementById("bannerdiv").style.position="absolute";
				document.getElementById("bannerdiv").style.left=100;
				document.getElementById("bannerdiv").style.top=0;
				domove();
				}
			}
			function domove()
			{
				if (h < wsize )
					{
					//if (document.layers){
					if(is_ie5 || is_ie){
						h=h+20;
						document.getElementById("bannerdiv").style.top=135;
						//document.getElementById("bannerdiv").style.width=w;
						//document.getElementById("bannerdiv").style.height=ht;	
						document.getElementById("bannerdiv").style.overflow="hidden";
						document.getElementById("bannerdiv").style.display ='inline';
						document.getElementById('bannerdiv').style.left=h;
						window.setTimeout(domove,0);
						}
						if(is_mizila || is_netscape){
						h=h+10;
						//alert('called');
						document.getElementById("bannerdiv").style.top=135;
						document.getElementById("bannerdiv").style.overflow="";
						document.getElementById("bannerdiv").style.display="";
						document.getElementById("bannerdiv").style.left=h;
						//document.getElementById("bannerdiv").style.width=w;
						//document.getElementById("bannerdiv").style.height=ht;				
						//alert(h)
						window.setTimeout(domove,0);
						}
						//alert(h);
						//}
					}
				else
				{
					h=wsize;
				}
			}
		function domove1()
			{
			//alert(h);
			if (h > -630)
			{
				
				//document.getElementById('menu').style.display =''
				document.getElementById('bannerdiv').style.left=h;
				document.getElementById('bannerdiv').style.top=135;
						
				//document.getElementById("bannerdiv").style.overflow="hidden";
				document.getElementById("bannerdiv").style.display ='';
				
				h=h-20;
				window.setTimeout(domove1,0);
				
			}
		}
		
		/* Code for movable window*/
		
var ie=document.all;
var nn6=document.getElementById&&!document.all;
var isdrag=false;
var x,y;
var dobj;

function movemouse(e)
{
  if (isdrag)
  {
    dobj.style.left = nn6 ? tx + e.clientX - x : tx + event.clientX - x;
    dobj.style.top  = nn6 ? ty + e.clientY - y : ty + event.clientY - y;
    return false;
  }
}

function selectmouse(e)
{
  var fobj       = nn6 ? e.target : event.srcElement;
  var topelement = nn6 ? "HTML" : "BODY";
  while (fobj.tagName != topelement && fobj.className != "dragme")
  {
    fobj = nn6 ? fobj.parentNode : fobj.parentElement;
  }
  if (fobj.className=="dragme")
  {
    isdrag = true;
    dobj = fobj;
    tx = parseInt(dobj.style.left+0,10);
    ty = parseInt(dobj.style.top+0,10);
    
    x = nn6 ? e.clientX : event.clientX;
    y = nn6 ? e.clientY : event.clientY;
    document.onmousemove=movemouse;
    return false;
  }
}
document.onmousedown=selectmouse;
document.onmouseup=new Function("isdrag=false");
/*  close here movable window*/


/* Code for Flash display*/


function getdata()
{
 document.getElementById('content').innerHTML=c;
}
function tchk(val)
{
	document.getElementById('heading').innerHTML='&nbsp;' + val
	document.getElementById('tst').style.display='inline';	
	var str='<img src=images/BRAG/large/'+ val +'.jpg>';
	document.getElementById('chk').innerHTML=str;
	
}
function Show(a)
{
	
}
function sendmail()
{ 
	//location.href='http://localhost/humonlinenew/node/mailtofriend.aspx?topic=Exclusive Preview: '+myflash[r][2]+' &url=http://localhost/humonlinenew/node/userview.aspx?name='+ myflash[r][2]
	location.href='http://www.humonline.com/node/mailtofriend.aspx?topic=Exclusive Preview: '+myflash[r][2]+' &url=http://www.humonline.com/node/userview.aspx?name='+myflash[r][2]
}
function ShowFlashContent(cid,name)
{
	
	var str='<OBJECT id="Object1" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"'
					str+='height="493" width="500" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT>'
					str+='<PARAM NAME="_cx" VALUE="13229">'
					str+='<PARAM NAME="_cy" VALUE="13044">'
					str+='<PARAM NAME="FlashVars" VALUE="">'
					str+='<PARAM NAME="Movie" VALUE="images/'+name +'.swf">'
					str+='<PARAM NAME="Src" VALUE="images/'+name +'.swf">'
					str+='<PARAM NAME="WMode" VALUE="Window">'
					str+='<PARAM NAME="Play" VALUE="-1">'
					str+='<PARAM NAME="Loop" VALUE="-1">'
					str+='<PARAM NAME="Quality" VALUE="High">'
					str+='<PARAM NAME="SAlign" VALUE="">'
					str+='<PARAM NAME="Menu" VALUE="-1">'
					str+='<PARAM NAME="Base" VALUE="">'
					str+='<PARAM NAME="AllowScriptAccess" VALUE="">'
					str+='<PARAM NAME="Scale" VALUE="ShowAll">'
					str+='<PARAM NAME="DeviceFont" VALUE="0">'
					str+='<PARAM NAME="EmbedMovie" VALUE="0">'
					str+='<PARAM NAME="BGColor" VALUE="">'
					str+='<PARAM NAME="SWRemote" VALUE="">'
					str+='<PARAM NAME="MovieData" VALUE="">'
					str+='<PARAM NAME="SeamlessTabbing" VALUE="1">'
					str+='<PARAM NAME="Profile" VALUE="0">'
					str+='<PARAM NAME="ProfileAddress" VALUE="">'
					str+='<PARAM NAME="ProfilePort" VALUE="0">'
					str+='<PARAM NAME="AllowNetworking" VALUE="all">'
					str+='<embed src="images/kank.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"'
						str+='type="application/x-shockwave-flash" width="500" height="493"> </embed>'
				str+='</OBJECT>'
	document.getElementById(cid).innerHTML=str;
}
	/* Close here for Flash Display*/