var gsflash=new ccGs();
gsflash.init();

function ccGs()
{	this.util=new clsUtil();
	this.page=new clsPage();
	this.cookie=new clsCookie();
	this.init=startRun;
	// no closing bracket
	function startRun(){this.util.init();this.page.init();}

	function clsUtil()
	{	this.init=startRun;
		//this.openBareWindow=fxOpenBareWindow;
		
		//this.isEmpty=fxIsEmpty; //may 6	
		
		// no closing bracket
		function startRun(){
		String.prototype.trim=fxTrim;
		}
		
		function fxTrim(strInput)
		{	var strResult=null;if(strInput==null)strInput=this;if(strInput)
			{
			strResult=new String(strInput);strResult=strResult.replace(/^\s+/,"");
			strResult=strResult.replace(/\s+$/,"");
			}
			return(strResult);
		}
		//function fxOpenBareWindow(url,title,width,height) { window.open(url,title,"scrollbars=no,menubar=no,toolbar=no,status=no,top=0,left=0,screenx=0,screeny=0,width="+width+",height="+height+",resizable=no");}
		/*function fxIsEmpty(x)
		{	blnIsEmpty=false;if((x==null)||(new String(x)=="undefined")||(x==""))
			{blnIsEmpty=true;}
			return(blnIsEmpty);
		}*/ //may9
	} // closing bracket of clsUtil()

		function clsPage()
		{	//this.onLoadList=new Array(); //may 6	
			//this.jumpSelect=fxJumpSelect;
			//this.onLoad=fxOnLoad;
			//this.addLoadEvent=fxAddLoadEvent;
			//this.removeLoadEvent=fxRemoveLoadEvent;
			this.init=startRun;
			//this.onResize=fxOnResize;
	
			function startRun(){
			//fxOnResize(true);
			}

			/*function fxOnResize(init)
			{	if(init==true)with(navigator)
				{	if((appName=="Netscape")&&(parseInt(appVersion)==4))
					{	document.MM_pgW=innerWidth;document.MM_pgH=innerHeight;onresize=fxOnResize;
					}
				}else if(innerWidth!=document.MM_pgW||innerHeight!=document.MM_pgH)
					{location.reload();}
			} */

	
			/*function fxJumpSelect(objSelect)
			{	var strLocation=objSelect.options[objSelect.selectedIndex].value;
				if(strLocation){document.location=strLocation;}
				objSelect.selectedIndex=0;
			}*/
			//may 6
			/*function fxOnLoad()
			{	var fx;for(var i=0;i<this.onLoadList.length;i++)
				{fx=this.onLoadList[i];fx();}
			}

			function fxAddLoadEvent(objFunction){this.onLoadList[this.onLoadList.length]=objFunction;}

			function fxNull(){}

			function fxRemoveLoadEvent(objFunction)
			{	for(var i=0;i<this.onLoadList.length;i++)
				{	fx=this.onLoadList[i];if(fx=objFunction)
					{	this.onLoadList[i]=fxNull;
					}
				}this.onLoadList[this.onLoadList.length]=fxOnLoad;
			}*/
			//may 6			
			
		} //end closing bracket of ccGs()
		
			function clsCookie()
			{	this.set=ccSet; //rnm may6-ccSet
				this.get=ccGet; //rnm may6-ccGet
				this.remove=ccRemove;  //rnm may6-ccRemove
				this.buildMatrix=ccBuildMatrix; //rnm may6-ccBuildMatrix
	
				function ccSet(strKey,strValue,dtExpires,strPath,strDomain,blnSecure)
				{	var strCookie=strKey+"="+escape(strValue)+";";
						if(dtExpires){strCookie+="expires="+dtExpires.toUTCString()+";";}
							if((strPath)&&(strPath!="")){strCookie+="path="+strPath+";";}
								if((strDomain)&&(strDomain!="")){strCookie+="domain="+strDomain+";";}
									if(blnSecure){strCookie+="secure";}document.cookie=strCookie;
				}
	
				function ccGet(strKey)
				{	var strValue=null;
					var arrCookies=this.buildMatrix(new String(document.cookie));
					for(var intIndex=0;intIndex<arrCookies.length;intIndex++)
						{	if(arrCookies[intIndex][0]==strKey){strValue=arrCookies[intIndex][1];
							break;
						}
					}
					return strValue;
				}
		
				function ccBuildMatrix(strCookies)
				{	var arrCookie;
					var arrCookies=strCookies.split(";");
					for(var intIndex=0;intIndex<arrCookies.length;intIndex++)
					{	arrCookie=arrCookies[intIndex].trim().split("=");
						arrCookie[1]=unescape(arrCookie[1]);
						arrCookies[intIndex]=arrCookie;
					}
					return arrCookies;
				}
	
				function ccRemove(strKey,strPath,strDomain)
				{	var strCookie,dtYesterday;
					var strValue=this.get(strKey);
					if(strValue)
					{	strCookie=strKey+"=;";
						if((strPath)&&(strPath!=""))
						{	strCookie+="path="+strPath+";";
						}	if((strDomain)&&(strDomain!=""))
							{	strCookie+="domain="+strDomain+";";
							}	dtYesterday=new Date();
								dtYesterday.setDate(dtYesterday.getDate()-1);
								strCookie+="expires="+dtYesterday.toGMTString()+";";
								document.cookie=strCookie;
					}
					return strValue;
				} // end function ccRemove
				
				
		}
				
	}
