	function login(){
		childWindow = window.open ("index.php?option=member&page=login&notemplate=yes","mywindow","location=1,status=1,scrollbars=1,width=390,height=380"); 
		if(childWindow.opener == null) childWindow.opener = self;
	}
	function lwMenu(e,opt) {
		document.getElementById("cleft_"+e).className = (opt==1) ? "act_l" : "inact_l";
		document.getElementById("cright_"+e).className = (opt==1) ? "act_r" : "inact_r";
		document.getElementById("bg_"+e).className = (opt==1) ? "act_bg" : "inact_bg";
	}
	function lwMenu_on(e) {
		if(e.length>0)
		{
			document.getElementById("cleft_"+e).className = "act_l";
			document.getElementById("cright_"+e).className = "act_r";
			document.getElementById("bg_"+e).className = "act_bg";
		}
	}
	function lwMenu_off(e) {
		if(e.length>0)
		{
			document.getElementById("cleft_"+e).className = "inact_l";
			document.getElementById("cright_"+e).className = "inact_r";
			document.getElementById("bg_"+e).className = "inact_bg";
		}
	}
	var contactUS = "Loans on Phone<br \>Call 093-";
	var content1 = "56269252|LOANWALA";
	var strChar = 'L,O,A,N,W,A,L,A';
	var strNumber = '5,6,2,6,9,2,5,2';
						
	var arrDisplay = new Array();
	arrDisplay[0] = strChar.split(',');
	arrDisplay[1] = strNumber.split(',');


	var delay = 30; //set delay between message change (in miliseconds)
	var maxsteps=30; // number of steps to take to change from start color to endcolor
	var stepdelay=20; // time in miliseconds of a single step				
	var startcolor= new Array(0,0,0); 
	var endcolor= new Array(0,0,0);				
	content1 = content1.split('|');
	begintag='<div align=center class ="contact-detail">'; //set opening tag, such as font declarations
	var fcontent=new Array();				
	var tempStr;
	for(i=0;i<content1.length;i++){
		tempStr="";						
		//fcontent[fcontent.length]=contactUS+content1[i];
		for(j=0;j<content1[0].length;j++){							
			tempStr+=arrDisplay[i][j];
			fcontent[fcontent.length]=contactUS+tempStr+content1[i].substring(j+1,content1[i].length);
			//alert(content1[i].substring(j,content1[i].length));
		}
	}
	closetag='</div>';				
	var fwidth='110px'; //set scroller width
	var fheight='30px'; //set scroller height
	var fadelinks=1;  //should links inside scroller content also fade like text? 0 for no, 1 for yes.
	///No need to edit below this line/////////////////				
	var IE4=document.all&&!document.getElementById;
	var DOM2=document.getElementById;
	var faderdelay=0;
	var index=0;			
	//function to change content
	function changecontent(){
		if (index>=fcontent.length) index=0;
		if (DOM2){
			document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"
			document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag				
			if (fadelinks) colorfade(1, 15);
		}else if (IE4) document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag;
		index++;
	}
	function linkcolorchange(step){
		var obj=document.getElementById("fscroller").getElementsByTagName("A");
		if (obj.length>0){
			for (i=0;i<obj.length;i++) obj[i].style.color=getstepcolor(step);
		}
	}				
	var fadecounter;
	function colorfade(step){
		if(step<=maxsteps) {	
			document.getElementById("fscroller").style.color=getstepcolor(step);
			if (fadelinks) linkcolorchange(step);
			step++;
			fadecounter=setTimeout("colorfade("+step+")",stepdelay);
		}else{
			clearTimeout(fadecounter);
			document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";
			setTimeout("changecontent()", delay);    					
		}
	}
	function getstepcolor(step) {
		var diff
		var newcolor=new Array(3);
		for(var i=0;i<3;i++) {
			diff = (startcolor[i]-endcolor[i]);
			if(diff > 0) {
				newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step);
			} else {
				newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step);
			}
		}
		return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")");
	}
	if (IE4||DOM2){
		document.getElementById("contact-detail").innerHTML = '<div id="fscroller" style="width:'+fwidth+';height:'+fheight+';"></div>';
	}
	if (window.addEventListener){ 
		window.addEventListener("load", changecontent, false);
	}else if (window.attachEvent){
		window.attachEvent("onload", changecontent);
	}else if (document.getElementById){
		window.onload=changecontent();			
	}
