if (!PP)
{
	function PP_handler()
	{
		this.f_id			= 0;
		this.URLV			= -1;
		this.classes		= new Object();
		this.lookups		= new Object();
		this.constructors	= new Object();
		this.rnd			= function() { return(Math.ceil(10000000*Math.random())); };
		this.kill_elem		= function(id) { setTimeout("document.getElementById(\"" + id + "\").parentNode.removeChild(document.getElementById(\"" + id + "\"));",250); };
		this.setCookie = function(c_name,value,expiredays)
		{
			var exdate=new Date();
			exdate.setDate(exdate.getDate()+expiredays);
			document.cookie=c_name + "=" + escape(value) + ((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
		};
		this.killNodes = function()
		{
			var i;
			for (i = 0 ; i < arguments.length ; i++)
				if (arguments[i])
					if (arguments[i].parentNode)
						arguments[i].parentNode.removeChild(arguments[i]);
		};
		this.unhideNodes = function()
		{
			var i,j;
			for (i = 0 ; i < arguments.length ; i++)
				if (arguments[i])
					for (j in this.hN)
						arguments[i].style[j] = "";
		};
		this.hideNodes = function()
		{
			var i,j;
			for (i = 0 ; i < arguments.length ; i++)
				if (arguments[i])
					for (j in this.hN)
						arguments[i].style[j] = this.hN[j];
		};
		this.setID = function()
		{
			var i;
			for (i = 0 ; i < arguments.length ; i += 2)
			{
				arguments[i].setAttribute("id",arguments[i+1]);
				arguments[i].setAttribute("name",arguments[i+1]);
			}
		};
		this.URL = function(name)
		{
			if (this.URLV == -1)
			{
				this.URLV = new Object();
				var i,k,j = String(document.location).split("?");
				if (j.length==2)
				{
					j=j[1].split("&");
					for (i = 0 ; i < j.length ; i++)
					{
						k=j[i].split("=");
						this.URLV[k[0]]=unescape(k[1]);
					}
				}
			}
			return(this.URLV[name]);
		};
		this.browser = ((navigator.appName.indexOf("Microsoft Internet Explorer") >= 0) ? 0 : 1);
		this.isIE = (this.browser == 0);
		this.isFF = (this.browser == 1);
		var i,script = document.getElementById("pp_include_script");
		this.isBlank = function(ptr)
		{
			return(ptr[PP.innerText].replace(/ /g,"").replace(new RegExp( String.fromCharCode(160), "gi" ),"") == "");
		};
		if (script)
			this.include_dir = script.src.replace(/js\/pp.js/g,"");
		if (this.browser == 0)
		{
			this.hN = new Object({visibility: "hidden", position:"absolute",height: "0px",width: "0px",left: "0px" ,top: "0px"});
			this.setClass = function(ptr,cls)
			{
				ptr.setAttribute("className",cls);
				ptr.setAttribute("class",cls);
			};
			this.getClass = function(ptr)
			{
				return(ptr.getAttribute("className"));
			};
			this.innerText = "innerText";
		}
		else
		{
			this.hN = new Object({visibility: "collapse"});
			this.setClass = function(ptr,cls)
			{
				ptr.setAttribute("class",cls);
			};
			this.getClass = function(ptr)
			{
				return(ptr.getAttribute("class"));
			};
			this.innerText = "textContent";
		}
		
	}
	
	var PP = new PP_handler();
}

