	function P2W_CookieManager(n,e,d,p)
		{
			this.Name = n;
			this.Duration = e;
			this.Domain = d;
			this.Path = p;
			this.Delim = "|";	
			this.AddValue = p2w_cookiemanager_addvalue;
			this.RemoveValue = p2w_cookiemanager_removevalue;
			this.RemoveAll = p2w_cookiemanager_removeall;
			this.SetValue = p2w_cookiemanager_setvalue
			this.GetValues = p2w_cookiemanager_getvalues;						
		}
		function p2w_cookiemanager_removeall()
		{
			this.SetValue("");
		}
		function p2w_cookiemanager_setvalue(v)
		{
			var strCookie = "";
			
			if (this.Duration != null)
			{
				var expires = new Date();
				expires.setTime(expires.getTime() + this.Duration);	
				strCookie = this.Name + "= " + v + "; domain = " + this.Domain + "; path=" + this.Path + "; expires=" + expires.toGMTString();			
			}
			else
			{			
				strCookie = this.Name + "= " + v + "; domain = " + this.Domain + "; path=" + this.Path;
			}			
			document.cookie = strCookie;
		}
		function p2w_cookiemanager_removevalue(v)
		{
			var val = new Array();
			var str = "";
			var items = this.GetValues(this.Name);	
			if(items != "" && items != null)
			{
				for(var i=0; i<items.length; i++){				
					if (items[i] != v)
					{
						val[val.length] = items[i];							
					}				
				}
			}
			if(val.length > 0)
				str = val.join(this.Delim);
			this.SetValue(str);
		}
		function p2w_cookiemanager_addvalue(v)
		{
			var existing = this.GetValues(this.Name);			
			if(existing != "" && existing != null)
				v = existing.join(this.Delim) + this.Delim + v;			
			this.SetValue(v);						
		}
		function p2w_cookiemanager_getvalues()
		{
			var val = null;
			var arr = document.cookie.split(";");	
			
			for(var i=0; i<arr.length; i++){
				nv =  arr[i].split("=");
				var name = nv[0].toString()
			
				if (nv.length == 2 && name.indexOf(this.Name.toString()) != -1)
				{
					var v = nv[1].split(this.Delim);	
					if (v != "" && v != null)
					{
						val = v;
					}
					break;				
				}
			}
			return val;
		}
		function P2W_Clipper(){
			this.Delim = "~";
			this.ListItems = new Array();
			this.AddToList = p2w_clipper_addtolist;			
			this.Cookies = new P2W_CookieManager("List",(60* 60 * 1000),".print2webcorp.com","/");				
			this.Remove = p2w_clipper_remove;
			this.RemoveAll = p2w_clipper_removeall;
			this.Init = p2w_clipper_init;
			this.Count = 0;
			this.Init();			
		}
		function p2w_clipper_removeall()
		{
			this.Cookies.RemoveAll();
			this.ListItems = new Array();
			this.Count = 0;
		}
		
		function p2w_clipper_remove(url)
		{
				var arr = this.Cookies.GetValues();
				for(var i=0; i<arr.length; i++){
					var un = arr[i].split(this.Delim);
					if(un[0] == url)
					{
						this.Cookies.RemoveValue(un[0] + this.Delim + un[1]);
						this.ListItems[url] = null;	
						this.Count--;
					}
				}
							
		}			
		function p2w_clipper_addtolist(url, name)
		{		
			this.Init();
			if(!this.ListItems[url])
			{
				this.ListItems[url] = new P2W_Clipper_Item(name,url);
				this.Cookies.AddValue(url + this.Delim + name);
				this.Count++;		
			}		
		}
		
		function p2w_clipper_init()
		{
			this.ListItems = new Array();
			this.Count = 0;
			var arr = this.Cookies.GetValues();	
			
			if(arr)
			{
				for(var i=0; i<arr.length; i++)
				{
					var un = arr[i].split(this.Delim);
					this.ListItems[un[0]] = new P2W_Clipper_Item(un[1],un[0]);	
					this.Count++;													
				}			
			}				
		}
		function P2W_Clipper_Item(n,u)
		{
			this.Name = n;
			this.Url = u;
			
		}
