var categories="<FONT face=arial size=-1><strong>PussyCash Sites & Categories:</strong><br>  All the sites we promote fall under the five most popular categories of the adult online industry:  VideoChat, Adult Matchmaking, Video On Demand, Adult Content Sites and Adult Niche Sites</font>";
var promotools="<FONT face=arial size=-1><strong>Promo Tools:</strong> <br>  These are the marketing creatives we offer to promote our sites.  They include a variety of ads such as banners, galleries and other sophisticated and innovative tools. All you have to do to earn money with PussyCash is to add our promo tools to your web pages.</font>";
var programs="<FONT face=arial size=-1><strong>Payment Programs:</strong><br>    PussyCash offers several means of getting paid for the users you send to our sites.  With every promo tool you take, you get to select your preferred payment program plan.  For example, you can add a banner to your site using the revenue sharing program or you can choose to get paid a flat fee instead.  The choice is yours to make every time you take a new promo tool.</font>";
	
	function createPopup(obj){
			this.targetObj=document.getElementById(obj.targetObj);
			this.curElem=obj.curElem;
			this.width=obj.width||"100";
			this.height=obj.height||"100";
			this.backgroundColor=obj.backgroundColor||"white";
			this.fontColor=obj.fontColor||"black";
			this.fontFamily=obj.fontFamily||"arial";
			this.fontSize=obj.fontSize||"12";
			this.borderWidth=obj.borderWidth||"1";
			this.borderColor=obj.borderColor||"black";
			this.posTop=parseInt(obj.posTop);
			this.posLeft=parseInt(obj.posLeft) + 20;
			this.HTMLCode=obj.HTMLCode;
			this.drawPopup=drawPopup;
		}
	
	
	function drawPopup(){
		try{
	        var strElement = "<table onmouseout=\"document.getElementById('curObj').innerHTML=''\" style='font-size:" + this.fontSize + "' height='" + this.height + "' width='" + this.width + "' cellspacing='" + this.borderWidth + "' cellpadding='4' border='0' bgcolor='" + this.borderColor + "'>";
	        strElement += "<tr align='left' bgcolor='" + this.backgroundColor + "'>";
	        strElement += "<td style='color:" + this.fontColor + ";fontFamily:" + this.fontFamily + "'>";
		    strElement += this.HTMLCode;
		    strElement += "</td></tr></table>";

            if (document.layers){
			    this.targetObj.style.top = this.posTop;
			    this.targetObj.style.left = this.posLeft;
            }
            else{ 
		        if ((navigator.userAgent.indexOf("Opera 5")!=-1) || (navigator.userAgent.indexOf("Opera/5")!=-1)) {
			        this.targetObj.style.posTop = this.posTop;
			        this.targetObj.style.posLeft = this.posLeft;
		        } else {
			        this.targetObj.style.top = this.posTop + 'px';
 			        this.targetObj.style.left = this.posLeft + 'px';
		        }	
			}
			this.targetObj.innerHTML = strElement;
			this.targetObj.focus();
		}
		catch(e){}	
	}
		
		function show(htm,wdth,hght,backcol,fontcol,brdwdth,brdcol,curElem,fontFamily,fontSize){
			try{
				//popup=new createPopup({targetObj:"curObj",width:wdth,height:hght,backgroundColor:backcol,fontColor:fontcol,borderWidth:brdwdth,borderColor:brdcol,posTop:parseInt(window.event.srcElement.offsetTop)+17,posLeft:parseInt(window.event.srcElement.offsetLeft-wdth/2-8),HTMLCode:htm,fontFamily:fontFamily,fontSize:fontSize});
				
				//popup=new createPopup({targetObj:"curObj",width:wdth,height:hght,backgroundColor:backcol,fontColor:fontcol,borderWidth:brdwdth,borderColor:brdcol,posTop:parseInt(curElem.offsetTop)+17,posLeft:parseInt(curElem.offsetLeft-wdth/2-8),HTMLCode:htm,fontFamily:fontFamily,fontSize:fontSize});
				popup=new createPopup({targetObj:"curObj",width:wdth,height:hght,backgroundColor:backcol,fontColor:fontcol,borderWidth:brdwdth,borderColor:brdcol,posTop:parseInt(curElem.offsetTop)+17,posLeft:parseInt(curElem.offsetLeft),HTMLCode:htm,fontFamily:fontFamily,fontSize:fontSize});
				popup.drawPopup();
			}
			catch(e){}		
		}
		
		function HideDiv(ev){
		    var tagName;
		    if(window.event){
		        if(window.event.srcElement)
		            tagName = event.srcElement.tagName;
		    }
		    else if(ev){
		        tagName = ev.target.tagName;
		    }
			if(tagName=="BODY" || tagName=="TD" || tagName=="TR"){
				try{
					//this.targetObj.innerHTML='';
					document.getElementById("curObj").innerHTML='';
					//this.targetObj.innerHTML='';
				}
				catch(e){}	
			}	
		}
		
				
		function addEvent(obj, evType, fn){
			try{
				if (obj.addEventListener){ 
					obj.addEventListener(evType, fn, false); 
				} else if (obj.attachEvent){ 
					obj.attachEvent("on"+evType, fn); 
				} else { 
					eval(fn + "()");
				} 
			}
			catch(e){}
		}
		
		try{
			addEvent(document, 'mousemove', HideDiv);
		}
		catch(e){}		

