/*
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
GLOBAL VARIABLES
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
*/
var d	= document;
var w	= null;
var s 	= [screen.width,screen.height,screen.availWidth,screen.availHeight];


/*
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
BROWSER IDENTIFICATION
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
*/
function getBrowser(obj){var b=new Array("unknown","unknown","unknown","unknown");(isEmpty(obj)?brs=navigator.userAgent.toLowerCase():brs=obj);if(brs.search(/omniweb[\/\s]v?(\d+([\.-]\d)*)/)!=-1){b[0]="omniweb";b[1]=brs.match(/omniweb[\/\s]v?(\d+([\.-]\d)*)/)[1];(b[1]>4.5?b[2]="khtml":b[2]="omniweb");(brs.search(/omniweb[\/\s]((\d+([\.-]\d)*)-)?v(\d+([\.-]\d)*)/)==-1?b[3]=brs.match(/omniweb[\/\s](\d+([\.-]\d)*)/)[1]:b[3]=brs.match(/omniweb[\/\s]((\d+([\.-]\d)*)-)?v(\d+([\.-]\d)*)/)[4]);return b}else if(brs.search(/opera[\/\s](\d+(\.?\d)*)/)!=-1){b[0]="opera";b[1]=brs.match(/opera[\/\s](\d+(\.?\d)*)/)[1];b[2]="opera";b[3]=b[1];return b}else if(brs.search(/crazy\s?browser\s(\d+(\.?\d)*)/)!=-1){b[0]="crazy";b[1]=brs.match(/crazy\s?browser\s(\d+(\.?\d)*)/)[1];b[2]="msie";b[3]=getMSIEVersion();return b}else if(brs.search(/myie2/)!=-1){b[0]="myie2";b[2]="msie";b[3]=brs.match(/msie\s(\d+(\.?\d)*)/)[1];return b}else if(brs.search(/netcaptor/)!=-1){b[0]="netcaptor";b[1]=brs.match(/netcaptor\s(\d+(\.?\d)*)/)[1];b[2]="msie";b[3]=getMSIEVersion();return b}else if(brs.search(/avant\sbrowser/)!=-1){b[0]="avantbrowser";b[2]="msie";b[3]=getMSIEVersion();return b}else if(brs.search(/msn\s(\d+(\.?\d)*)/)!=-1){b[0]="msn";b[1]=brs.match(/msn\s(\d+(\.?\d)*)/)[1];b[2]="msie";b[3]=getMSIEVersion();return b}else if(brs.search(/msie\s(\d+(\.?\d)*)/)!=-1){b[0]="msie";b[1]=getMSIEVersion();b[2]="msie";b[3]=b[1];return b}else if(brs.search(/powermarks\/(\d+(\.?\d)*)/)!=-1){b[0]="powermarks";b[1]=brs.match(/powermarks\/(\d+(\.?\d)*)/)[1];b[2]="msie";try{b[3]=getMSIEVersion()}catch(e){}return b}else if(brs.search(/konqueror[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="konqueror";b[1]=brs.match(/konqueror[\/\s](\d+([\.-]\d)*)/)[1];b[2]="khtml";return b}else if(brs.search(/safari\/(\d)*/)!=-1){b[0]="safari";b[1]=brs.match(/safari\/(\d+(\.?\d*)*)/)[1];b[2]="khtml";b[3]=brs.match(/applewebkit\/(\d+(\.?\d*)*)/)[1];return b}else if(brs.search(/zyborg/)!=-1){b[0]="zyborg";b[1]=brs.match(/zyborg\/(\d+(\.?\d)*)/)[1];b[2]="robot";b[3]="-1";return b}else if(brs.search(/netscape6[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="netscape";b[1]=brs.match(/netscape6[\/\s](\d+([\.-]\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b}else if(brs.search(/netscape\/(7\.\d*)/)!=-1){b[0]="netscape";b[1]=brs.match(/netscape\/(7\.\d*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b}else if(brs.search(/galeon[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="galeon";b[1]=brs.match(/galeon[\/\s](\d+([\.-]\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b}else if(brs.search(/nautilus[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="nautilus";b[1]=brs.match(/nautilus[\/\s](\d+([\.-]\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b}else if(brs.search(/firefox[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="firefox";b[1]=brs.match(/firefox[\/\s](\d+([\.-]\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b}else if(brs.search(/k-meleon[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="kmeleon";b[1]=brs.match(/k-meleon[\/\s](\d+([\.-]\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b}else if(brs.search(/playstation\s3/)!=-1){b[0]="netfront";b[1]="2.81";b[2]="playstation3";b[3]=brs.match(/playstation\s3;\s(\d+\.\d+)/)[1];return b}else if(brs.search(/firebird[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="firebird";b[1]=brs.match(/firebird[\/\s](\d+([\.-]\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b}else if(brs.search(/phoenix[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="phoenix";b[1]=brs.match(/phoenix[\/\s](\d+([\.-]\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b}else if(brs.search(/camino[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="camino";b[1]=brs.match(/camino[\/\s](\d+([\.-]\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b}else if(brs.search(/epiphany[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="epiphany";b[1]=brs.match(/epiphany[\/\s](\d+([\.-]\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b}else if(brs.search(/chimera[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="chimera";b[1]=brs.match(/chimera[\/\s](\d+([\.-]\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b}else if(brs.search(/icab[\s\/]?(\d+(\.?\d)*)/)!=-1){b[0]="icab";b[1]=brs.match(/icab[\s\/]?(\d+(\.?\d)*)/)[1];b[2]="icab";b[3]=b[1];return b}else if(brs.search(/netfront\/(\d+([\._]\d)*)/)!=-1){b[0]="netfront";b[1]=brs.match(/netfront\/(\d+([\._]\d)*)/)[1];b[2]="netfront";b[3]=b[1];return b}else if(brs.search(/netscape4\/(\d+([\.-]\d)*)/)!=-1){b[0]="netscape";b[1]=brs.match(/netscape4\/(\d+([\.-]\d)*)/)[1];b[2]="mozold";b[3]=b[1];return b}else if((brs.search(/mozilla\/(4.\d*)/)!=-1)&&(brs.search(/msie\s(\d+(\.?\d)*)/)==-1)){b[0]="netscape";b[1]=brs.match(/mozilla\/(4.\d*)/)[1];b[2]="mozold";b[3]=b[1];return b}else if((brs.search(/mozilla\/5.0/)!=-1)&&(brs.search(/gecko\//)!=-1)){b[0]="mozsea";b[1]=brs.match(/rv\x3a(\d+(\.?\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b}else if(brs.search(/elinks/)!=-1){b[0]="elinks";(brs.search(/elinks\/(\d+(\.?\d)*)/)==-1?b[1]=brs.match(/elinks\s\x28(\d+(\.?\d)*)/)[1]:b[1]=brs.match(/elinks\/(\d+(\.?\d)*)/)[1]);b[2]="elinks";b[3]=b[1];return b}else if(brs.search(/w3m\/(\d+(\.?\d)*)/)!=-1){b[0]="w3m";b[1]=brs.match(/(^w3m|\sw3m)\/(\d+(\.?\d)*)/)[2];b[2]="w3m";b[3]=b[1];return b}else if(brs.search(/links/)!=-1){b[0]="links";(brs.search(/links\/(\d+(\.?\d)*)/)==-1?b[1]=brs.match(/links\s\x28(\d+(\.?\d)*)/)[1]:b[1]=brs.match(/links\/(\d+(\.?\d)*)/)[1]);b[2]="links";b[3]=b[1];return b}else if(brs.search(/java[\/\s]?(\d+([\._]\d)*)/)!=-1){b[0]="java";b[1]=brs.match(/java[\/\s]?(\d+([\._]\d)*)/)[1];b[2]="java";b[3]=b[1];return b}else if(brs.search(/lynx/)!=-1){b[0]="lynx";b[1]=brs.match(/lynx\/(\d+(\.?\d)*)/)[1];b[2]="libwww-fm";b[3]=brs.match(/libwww-fm\/(\d+(\.?\d)*)/)[1];return b}else if(brs.search(/dillo/)!=-1){b[0]="dillo";b[1]=brs.match(/dillo\s*\/*(\d+(\.?\d)*)/)[1];b[2]="dillo";b[3]=b[1];return b}else if(brs.search(/wget/)!=-1){b[0]="wget";b[1]=brs.match(/wget\/(\d+(\.?\d)*)/)[1];b[2]="robot";b[3]="-1";return b}else if(brs.search(/googlebot\-image/)!=-1){b[0]="googlebotimg";b[1]=brs.match(/googlebot\-image\/(\d+(\.?\d)*)/)[1];b[2]="robot";b[3]="-1";return b}else if(brs.search(/googlebot/)!=-1){b[0]="googlebot";b[1]=brs.match(/googlebot\/(\d+(\.?\d)*)/)[1];b[2]="robot";b[3]="-1";return b}else if(brs.search(/msnbot/)!=-1){b[0]="msnbot";b[1]=brs.match(/msnbot\/(\d+(\.?\d)*)/)[1];b[2]="robot";b[3]="-1";return b}else if(brs.search(/turnitinbot/)!=-1){b[0]="turnitinbot";b[1]=brs.match(/turnitinbot\/(\d+(\.?\d)*)/)[1];b[2]="robot";b[3]="-1";return b}else{b[0]="unknown";return b}};function getMajorVersion(v){return(isEmpty(v)?-1:(hasDot(v)?v:v.match(/(\d*)(\.\d*)*/)[1]))};function getMinorVersion(v){return(!isEmpty(v)?(!hasDot(v)?v.match(/\.(\d*([-\.]\d*)*)/)[1]:0):-1)};function getOS(obj){var os=new Array("unknown","unknown");(isEmpty(obj)?brs=navigator.userAgent.toLowerCase():brs=obj);if(brs.search(/windows\sce/)!=-1){os[0]="wince";try{os[1]=brs.match(/windows\sce\/(\d+(\.?\d)*)/)[1]}catch(e){}return os}else if((brs.search(/windows/)!=-1)||((brs.search(/win9\d{1}/)!=-1))){os[0]="win";if(brs.search(/nt\s5\.1/)!=-1){os[1]="xp"}else if(brs.search(/nt\s5\.0/)!=-1){os[1]="2000"}else if((brs.search(/win98/)!=-1)||(brs.search(/windows\s98/)!=-1)){os[1]="98"}else if(brs.search(/windows\sme/)!=-1){os[1]="me"}else if(brs.search(/nt\s5\.2/)!=-1){os[1]="win2k3"}else if((brs.search(/windows\s95/)!=-1)||(brs.search(/win95/)!=-1)){os[1]="95"}else if((brs.search(/nt\s4\.0/)!=-1)||(brs.search(/nt4\.0/))!=-1){os[1]="nt4"}return os}else if(brs.search(/linux/)!=-1){os[0]="linux";try{os[1]=brs.match(/linux\s?(\d+(\.?\d)*)/)[1]}catch(e){}return os}else if(brs.search(/mac\sos\sx/)!=-1){os[0]="macosx";return os}else if(brs.search(/freebsd/)!=-1){os[0]="freebsd";try{os[1]=brs.match(/freebsd\s(\d(\.\d)*)*/)[1]}catch(e){}return os}else if(brs.search(/sunos/)!=-1){os[0]="sunos";try{os[1]=brs.match(/sunos\s(\d(\.\d)*)*/)[1]}catch(e){}return os}else if(brs.search(/irix/)!=-1){os[0]="irix";try{os[1]=brs.match(/irix\s(\d(\.\d)*)*/)[1]}catch(e){}return os}else if(brs.search(/openbsd/)!=-1){os[0]="openbsd";try{os[1]=brs.match(/openbsd\s(\d(\.\d)*)*/)[1]}catch(e){}return os}else if((brs.search(/macintosh/)!=-1)||(brs.search(/mac\x5fpowerpc/)!=-1)){os[0]="macclassic";return os}else if(brs.search(/os\/2/)!=-1){os[0]="os2";try{os[1]=brs.match(/warp\s((\d(\.\d)*)*)/)[1]}catch(e){}return os}else if(brs.search(/openvms/)!=-1){os[0]="openvms";try{os[1]=brs.match(/openvms\sv((\d(\.\d)*)*)/)[1]}catch(e){}return os}else if((brs.search(/amigaos/)!=-1)||(brs.search(/amiga/)!=-1)){os[0]="amigaos";try{os[1]=brs.match(/amigaos\s?(\d(\.\d)*)*/)[1]}catch(e){}return os}else if(brs.search(/hurd/)!=-1){os[0]="hurd";return os}else if(brs.search(/hp\-ux/)!=-1){os[0]="hpux";try{os[1]=brs.match(/hp\-ux\sb\.[\/\s]?(\d+([\._]\d)*)/)[1]}catch(e){}return os}else if((brs.search(/unix/)!=-1)||(brs.search(/x11/)!=-1)){os[0]="unix";return os}else if(brs.search(/cygwin/)!=-1){os[0]="cygwin";return os}else if(brs.search(/java[\/\s]?(\d+([\._]\d)*)/)!=-1){os[0]="java";try{os[1]=brs.match(/java[\/\s]?(\d+([\._]\d)*)/)[1]}catch(e){}return os}else if(brs.search(/palmos/)!=-1){os[0]="palmos";return os}else if(brs.search(/symbian\s?os\/(\d+([\._]\d)*)/)!=-1){os[0]="symbian";try{os[1]=brs.match(/symbian\s?os\/(\d+([\._]\d)*)/)[1]}catch(e){}return os}else{os[0]="unknown";return os}};function getGeckoVersion(){return brs.match(/gecko\/([0-9]+)/)[1]};function getMSIEVersion(){return brs.match(/msie\s(\d+(\.?\d)*)/)[1]};function getFullUAString(obj){(isEmpty(obj)?brs=navigator.userAgent.toLowerCase():brs=obj);return brs};function hasFlashPlugin(obj){(isEmpty(obj)?brs=navigator.userAgent.toLowerCase():brs=obj);var f=new Array("0","0");var brwEng=getBrowser(obj)[2];var opSys=getOS(obj)[0];if((brwEng=="gecko")||(brwEng=="opera")||(brwEng=="khtml")||(brwEng=="mozold")||(opSys=="macosx")||(opSys=="macclassic")){if(navigator.plugins&&navigator.plugins.length){x=navigator.plugins["Shockwave Flash"];if(x){f[0]=2;if(x.description){y=x.description;f[1]=y.charAt(y.indexOf('.')-1)}}else{f[0]=1}if(navigator.plugins["Shockwave Flash 2.0"]){f[0]=2;f[0]=2}}else if(navigator.mimeTypes&&navigator.mimeTypes.length){x=navigator.mimeTypes['application/x-shockwave-flash'];if(x&&x.enabledPlugin){f[0]=2}else{f[0]=1}}return f}else if(brwEng=="msie"){for(var i=15;i>0;i--){try{var flash=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);f[1]=i;break}catch(e){}}if(f[1]>0){f[0]=2}else{f[0]=1}return f}else{f[0]=0;f[1]=0;return f}};function isEmpty(input){return(input==null||input=="")};function hasDot(input){return(input.search(/\./)==-1)};

var br		= getBrowser();										// Browser Identification
var os		= getOS();											// Operating System
var flash	= hasFlashPlugin();									// Flash Plugin Information
var isDOM	= d.getElementById?1:0;								// W3C-DOM compatible browser? (IE5+, NS6+, others like Opera, Konqueror, etc.)
var isIE	= (d.all&&br[0]=="msie"&&br[2]=="msie")?1:0;		// Internet Explorer (v4 and up)
var isIE4	= isIE&&!isDOM?1:0;									// One of the 4-series browsers (not DOM compatible)
var isIE6	= isIE&&isDOM&&getMajorVersion(br[1])==6?1:0;		// Internet Explorer (v6)
var isIE7	= isIE&&isDOM&&getMajorVersion(br[1])>=7?1:0;		// Internet Explorer (v7 and up)
var isNS	= br[0]=="netscape"||br[0]=="mozsea"?1:0;			// Netscape Navigator (version 4 and up)
var isNS4	= isNS&&!isDOM?1:0;									// One of the 4-series browsers (not DOM compatible)
var isNS6	= isNS&&isDOM&&br[2]=="gecko"?1:0;					// Netscape Navigator (v7 and up)
var isOp	= br[0]=="opera"&&br[2]=="opera"?1:0;				// Any Opera version (useful as Opera emulates IE above)
var isOp9	= isDOM&&isOp&&getMajorVersion(br[1])>=9?1:0;		// Opera (version 9 and up)
var isSaf	= br[0]=="safari"&&getMajorVersion(br[1])>300?1:0;	// Safari (Build 300 and up)
var isMoz	= br[0]=="firefox"&&getMajorVersion(br[1])>=1?1:0;	// Firefox (2.0 and up)
var isDyn	= isDOM||isIE||isNS4||isOp9;						// Any DHTML-capable browser
var isWin	= os[0]=="win"?1:0;									// True if Windows, false if Mac/Linux etc.
var isCmp	= isIE6||isIE7||isNS6||isOp9||isSaf||isMoz;			// True if browser is compatible, false otherwise


/*
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
LIBRARY (DOCUMENT CONFIGURATION OBJECT)
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
*/
function DocumentConfigObj(objDocument)
{
	var d = objDocument?objDocument:document;
	var w = null;
	var s = [screen.width,screen.height,screen.availWidth,screen.availHeight];
	
	this.getObj				= getObj;
	this.getObjNN4			= getObjNN4;
	this.getObjCopy			= getObjCopy;
	this.getObjProps		= getObjProps;
	this.isFunction			= isFunction;
	this.isEmail			= isEmail;
	this.isDomain			= isDomain;
	this.isStyle			= isStyle;
	this.isNumb				= isNumb;
	this.isArray			= isArray;
	this.getSize			= getSize;
	this.setSize			= setSize;
	this.getPos				= getPos;
	this.setPos				= setPos;
	this.getByClassName		= getByClassName;
	this.include			= include;
	this.getOp				= getOp;
	this.setOp				= setOp;
	this.tweenOp			= tweenOp;
	this.getVis				= getVis;
	this.setVis				= setVis;
	this.getRandomElementId	= getRandomElementId
	this.getLocation		= getLocation;
	this.getHTTPvar			= getHTTPvar;
	this.rand				= rand;
	this.redir				= redir;
	this.chgEvent			= chgEvent;
	this.css2js				= css2js;
	this.getCSSspecs		= getCSSspecs;
	this.getStyleGroup		= getStyleGroup;
	this.clrStyles			= clrStyles;
	this.setStyle			= setStyle;
	this.swapImg			= swapImg;
	this.striptags			= striptags;
	this.ltrim				= ltrim;
	this.rtrim				= rtrim;
	this.alltrim			= alltrim;
	this.sanitize			= sanitize;
	this.merge				= merge;
	this.newWin				= newWin;
	this.getKeyCode			= getKeyCode;
	this.getObjProps		= getObjProps;
	
	if (isIE)
	{
		this.setMaxLength = setMaxLength;
	}
	
	function getObj(e)
	{
		var o;
		if (o=d.getElementById?d.getElementById(e):d.all?d.all[e]:null)
		{
			this.obj=o;
			this.style=o.style
		}
		else if (d.layers && (o=getObjNN4(d,e)))
		{
			this.obj=o;
			this.style=this.obj
		}
	};
	
	function getObjNN4(o,e)
	{
		var lyr;
		var x=o.layers;
		for (var i=0;i<x.length;i++)
		{
			if (x[i].id==e) lyr=x[i];
			else if (x[i].layers.length) var tmp=getObjNN4(x[i],e);
			if (tmp) lyr=tmp;
		}
		return lyr
	};
	
	function getObjCopy(x){return (typeof(x)=="object")?x:new getObj(x).obj};
	function getObjProps(e)
	{
		var o,p=[];
		if (!(o=getObjCopy(e))) return;
		for (var x in o) p.push(o[x]);
		return p
	};
	
	function getVis(e)
	{
		var o;
		if (!(o=getObjCopy(e))) return;
		var vis=isNS4?o.visibility:o.style.visibility;
		return vis?(vis.substr(0,1).toUpperCase()=="V"):o.id.length;
	};
	
	function setVis(e,show,tween,op)
	{
		var o;
		if (!(o=getObjCopy(e))) return;
		else if (!o.id) o.id=getRandomElementId();
		var dur=tween?500:0;
		
		if (show)
		{
			if (!isNumb(op,"POSINT")) op=null;
			if (tween)
			{
				setOp(o,0);
				o.style.visibility="visible";
				tweenOp(o,0,(!op||op>100?100:op))
			}
			else
			{
				if (op!=null) setOp(o,op);
				o.style.visibility="visible"
			}
		}
		else
		{
			if (!tween) o.style.visibility="hidden";
			else
			{
				tweenOp(o,-1,0);
				setTimeout('DCO.getObjCopy("'+o.id+'").style.visibility="hidden"',dur)
			}
		}
		return true
	};
	
	function newWin(url,id,siz,pos,attrib)
	{
		if (!isArray(siz)) siz=[];
		if (!isArray(pos)) pos=[];
		if (id==null) id="ChildWindow";
		if (w && w.open && !w.closed) w.close();
		if (!isNumb(siz[0],"POSINT")) siz[0]=Math.floor(s[0]/2);
		if (!isNumb(siz[1],"POSINT")) siz[1]=Math.floor(s[1]/2);
		if (!isNumb(pos[0],"POSINT")) pos[0]=Math.floor((s[0]-siz[0])/2);
		if (!isNumb(pos[1],"POSINT")) pos[1]=Math.floor((s[1]-siz[1])/2);
		if (typeof(attrib)!="string") attrib="";
		switch (attrib)
		{
			case "FULL":
			attrib="width="+siz[0]+",height="+siz[1];
			attrib+=isIE?",left="+pos[0]+",top="+pos[1]:",screenX="+pos[0]+",screenY="+pos[1];
			w=window.open(url,id,attrib+",location,menubar,resizable,scrollbars,status,toolbar");
			break;
			
			case "FULLSCREEN":
			siz=[screen.availWidth,screen.availHeight];
			pos=[0,0];
			attrib="width="+siz[0]+",height="+siz[1];
			attrib+=isIE?",left=0,top=0":",screenX=0,screenY=0";
			w=window.open(url,id,attrib+",location,menubar,resizable,scrollbars,status,toolbar");
			break;
			
			default:
			if (attrib.length && attrib.charAt(attrib.length-1)!=",") attrib+=",";
			attrib+="width="+siz[0]+",height="+siz[1];
			w=window.open(url,id,attrib);
			break;
		}
		
		if (!(id.toUpperCase()=="XWEB" && isIE))
		{
			if (!isIE)
			{
				w.resizeTo(siz[0],siz[1]);
				w.moveTo(pos[0],pos[1]);
				w.focus();
				w.window.focus()
			}
		}
		return
	};
	
	function isFunction(x){return x!=null && typeof(x)=="function"};
	function isEmail(x){return /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,6})+$/.test(x)};
	function isDomain(x){return /^([a-z0-9]([-a-z0-9]*[a-z0-9])?.)+((a[cdefgilmnoqrstuwxz]|aero|arpa)|(b[abdefghijmnorstvwyz]|biz)|(c[acdfghiklmnorsuvxyz]|cat|com|coop)|d[ejkmoz]|(e[ceghrstu]|edu)|f[ijkmor]|(g[abdefghilmnpqrstuwy]|gov)|h[kmnrtu]|(i[delmnoqrst]|info|int)|(j[emop]|jobs)|k[eghimnprwyz]|l[abcikrstuvy]|(m[acdghklmnopqrstuvwxyz]|mil|mobi|museum)|(n[acefgilopruz]|name|net)|(om|org)|(p[aefghklmnrstwy]|pro)|qa|r[eouw]|s[abcdeghijklmnortvyz]|(t[cdfghjklmnoprtvwz]|travel)|u[agkmsyz]|v[aceginu]|w[fs]|y[etu]|z[amw])$/i.test(x)};
	function isStyle(x){return /^\s*([a-z]+(?:-[a-z]+)*:[^:;]+(?:;[a-z]+(?:-[a-z]+)*:[^:;]+)*;?)\s*$/i.test(x)};
	function isNumb(x,mode)
	{
		if (x==null) return;
		if (!mode) mode="DEC";
		x=x.toString();
		switch (mode.toUpperCase())
		{
			case "DEC": return x.search(/-?\d+(\.\d+)?$/)!=-1; break;
			case "POSDEC": return x.search(/^\d+\.\d+$/)!=-1; break;
			case "NEGDEC": return x.search(/-\d+(\.\d+)?$/)!=-1; break;
			case "INT": return x.search(/^-?\d+$/)!=-1; break;
			case "POSINT": return x.search(/^\d+$/)!=-1; break;
			case "NEGINT": return x.search(/^-\d+$/)!=-1; break;
		}
		return
	};
	
	function isArray(x)
	{
		if (!x) return;
		else if (isSaf) return typeof(x)=="object"&&x.length!="undefined";
		else if (x.constructor) return x.constructor.toString().indexOf("Array")!=-1;
	};
	
	function getSize(e)
	{
		var o;
		if (!(o=getObjCopy(e))) return;
		return isNS4?[o.clip.width,o.clip.height]:[o.offsetWidth,o.offsetHeight];
	};
	
	function setSize(e,w,h)
	{
		var o;
		if (!(o=getObjCopy(e))) return;
		if (w==null || w<0) w=getSize(e)[0];
		if (h==null || h<0) h=getSize(e)[1];
		if (isNS4) o.width=w,o.height=h;
		else o.style.width=w+"px",o.style.height=h+"px";
		return [w,h]
	};
	
	function getPos(e)
	{
		var o;
		if (!(o=getObjCopy(e))) return;
		var x=y=0;
		
		if (o.offsetParent)
		{
			x=o.offsetLeft,y=o.offsetTop;
			while (o=o.offsetParent) x+=o.offsetLeft,y+=o.offsetTop;
		}
		return [x,y]
	};
	
	function setPos(e,x,y,mode)
	{
		var o,cpos;
		if (!(o=getObjCopy(e))) return; else cpos=getPos(o);
		if (x!=null && !isNumb(x,"INT")) x=cpos[0];
		if (y!=null && !isNumb(y,"INT")) y=cpos[1];
		
		switch (mode?mode.toUpperCase():"")
		{
			case "REL":
			if (x!=null) x+=cpos[0];
			if (y!=null) y+=cpos[1];
			break;
		}
		
		if (x!=null) o.style.left=x+"px";
		if (y!=null) o.style.top=y+"px";
		return [x,y]
	};
	
	function getByClassName(strClass,strTag,objContElm)
	{
		strTag=strTag||"*";
		objContElm=objContElm||d;
		var objColl=objContElm.getElementsByTagName(strTag);
		if (!objColl.length&&strTag=="*"&&objContElm.all) objColl=objContElm.all;
		var arr=new Array();
		var delim=strClass.indexOf('|')!=-1?'|':' ';
		var arrClass=strClass.split(delim);
		for (var i=0,j=objColl.length;i<j;i++)
		{
			var arrObjClass=objColl[i].className.split(' ');
			if (delim==' ' && arrClass.length>arrObjClass.length) continue;
			var c=0;
			comparisonLoop:
			for (var k=0,l=arrObjClass.length;k<l;k++)
			{
				for (var m=0,n=arrClass.length;m<n;m++)
				{
					if (arrClass[m]==arrObjClass[k]) c++;
					if ((delim=='|'&&c==1) || (delim==' '&&c==arrClass.length))
					{
						arr.push(objColl[i]);
						break comparisonLoop
					}
				}
			}
		}
		return arr
	};
	
	function include(file,type,where)
	{
		var pg=d.getElementsByTagName(where?where.toLowerCase():"head").item(0);
		var el;
		
		switch (type?type.toUpperCase():"JS")
		{
			default:
				el=d.createElement("script");
				if (cfg['PG_NOCACHE']) file+="?"+rand(1000)+"="+rand(1000);
				el.setAttribute("language","javascript");
				el.setAttribute("type","text/javascript");
				el.setAttribute("src",file);
			break;
			
			case "CSS":
				el=d.createElement("link");
				el.setAttribute("rel","stylesheet");
				el.setAttribute("type","text/css");
				el.setAttribute("href",file);
			break;
		}
		
		pg.appendChild(el);
		return false
	};
	
	function getOp(e)
	{
		var o;
		if (!(o=getObjCopy(e))) return;
		var op=isNS4?o.opacity:isIE?o.style.filter:o.style.opacity;
		if (op!=null && op.length)
		{
			isIE?op.search(/(\d+)/):op.search(/(\d*(\.\d*)?)/);
			if (RegExp.$1!=null && RegExp.$1.length)
			{
				op=RegExp.$1;
				return isIE?op:op*100;
			}
		}
		return
	};
	
	function setOp(e,n)
	{
		var o;
		if (!(o=getObjCopy(e)) || !isNumb(n,'POSINT')) return;
		if (!isIE) o.style.opacity=n/100;
		else
		{
			if (o.style.filter)
			{
				if (/alpha\(/i.test(o.style.filter))
				  o.style.filter=o.style.filter.replace(/alpha\([^\)]+\)/i,"alpha(opacity="+n+")");
				else o.style.filter+=" alpha(opacity="+n+")";
			}
			else o.style.filter="alpha(opacity="+n+")";
		}
		return true
	};
	
	function tweenOp(e,start,end,dur,spd)
	{
		var o;
		if (!(o=getObjCopy(e))) return;
		else if (!isNumb(start,"INT") || !isNumb(end,"POSINT")) return;
		if (start<0) start=getOp(e)!=null?getOp(e):100;
		if (!isNumb(dur,"POSINT")) dur=500;
		if (!isNumb(spd,"POSINT")) spd=Math.floor(dur/4);
		var speed=Math.round(dur/spd);
		var timer=0;
		
		if (o.id==null || !o.id.length)
		{
			var tmpId="TEMP_"+rand(100);
			while (getObjCopy(tmpId)) tmpId="TEMP_"+rand(100);
			o.id=tmpId
		}
		if (start>end)
		{
			for (var i=(!isWin||isNS?end:start);i>=end;i--)
			{
				setTimeout("DCO.setOp('"+o.id+"',"+i+")",timer*speed);
				timer++
			}
		}
		else
		{
			for (var i=(!isWin||isNS?end:start);i<=end;i++)
			{
				setTimeout("DCO.setOp('"+o.id+"',"+i+")",timer*speed);
				timer++
			}
		}
		return true
	};
	
	function getHTTPvar(name,url,bCS)
	{
		var rx="/\\b"+name+"\\b=([^&#]*)/"+(bCS?"":"i");
		return eval(rx).test(url?url:getLocation())?RegExp.$1:""
	};
	
	function redir(url){d.location.href=url?url:getLocation()};
	function getLocation(){return isIE?window.location.href:d.location.href};
	function getRandomElementId()
	{
		var n=100;
		var id=rand(n);
		for (var i=rand(n);!i||getObjCopy(i);i=rand(n)) continue;
		return i
	};
	
	function rand(rng,f)
	{
		if (!isNumb(rng,'POSINT')) rng=0;
		var numb=Math.random()*(++rng);
		return f?numb:Math.floor(numb);
	};
	
	function chgEvent(o,ev,expr,mode)
	{
		if (!o || typeof(ev)!="string" && typeof(expr)!="string") return;
		if (mode)
		{
			var buf=eval("o."+ev);
			if (buf)
			{
				buf=buf.toString().replace(/\n/g,"");
				buf=buf.replace(/function[^{]*\{(.+)\}[^}]*$/,"$1");
				if (buf.charAt(buf.length-1)!=";") buf+=";";
			}
			else buf="";
			var cmd="o."+ev+"=function(){%CODE%}";
			switch (mode.toUpperCase())
			{
				default: return; break;
				case "APP": cmd=cmd.replace("%CODE%",buf+expr); break;
				case "PRE": cmd=cmd.replace("%CODE%",expr+buf); break;
			}
			eval(cmd);
		}
		else eval("o."+ev+"=function(){"+expr+"}");
		return true
	};
	
	function css2js(str)
	{
		if (typeof(str)!="string") return;
		var x=str.split("");
		for (var i=0;i<x.length;i++) if (x[i]=="-") x[i+1]=x[i+1].toUpperCase();
		return x.join("").replace(/-/g,"")
	};
	
	function getCSSspecs(raw)
	{
		var buf=['azimuth','background','background-attachment','background-color','background-image','background-position','background-repeat','border','border-collapse','border-color','border-spacing','border-style','border-top','border-right','border-bottom','border-left','border-top-color','border-right-color','border-bottom-color','border-left-color','border-top-style','border-right-style','border-bottom-style','border-left-style','border-top-width','border-right-width','border-bottom-width','border-left-width','border-width','bottom','caption-side','clear','clip','color','content','counter-increment','counter-reset','cue','cue-after','cue-before','cursor','direction','display','elevation','empty-cells','float','font','font-family','font-size','font-size-adjust','font-stretch','font-style','font-variant','font-weight','height','left','letter-spacing','line-height','list-style','list-style-image','list-style-position','list-style-type','margin','margin-top','margin-right','margin-bottom','margin-left','marker-offset','marks','max-height','max-width','min-height','min-width','orphans','outline','outline-color','outline-style','outline-width','overflow','padding','padding-top','padding-right','padding-bottom','padding-left','page','page-break-after','page-break-before','page-break-inside','pause','pause-after','pause-before','pitch','pitch-range','play-during','position','quotes','richness','right','size','speak','speak-header','speak-numeral','speak-punctuation','speech-rate','stress','table-layout','text-align','text-decoration','text-indent','text-shadow','text-transform','top','unicode-bidi','vertical-align','visibility','voice-family','volume','white-space','widows','width','word-spacing','z-index'];
		
		if (!raw) for (var i=0;i<buf.length;i++) buf[i]=css2js(buf[i]);
		return buf
	};
	
	function getStyleGroup(e)
	{
		var o;
		if (!(o=getObjCopy(e))) return;
		var sty=new Array();
		for (var i=0,css=getCSSspecs();i<css.length;i++)
		{
			if (css[i]=="float"&&(isNS||isSaf)) continue;
			else if (isIE && css[i]=="zIndex" && !(css[i]>0)) continue;
			else var prop=eval("o.style."+css[i]);
			if (prop!=null&&prop.toString().search(/^\s*$/)==-1) sty.push(css[i]);
		}
		return sty
	};
	
	function clrStyles(e)
	{
		var o;
		if (!(o=getObjCopy(e))) return;
		for (var i=0,cmd,x,sty=getStyleGroup(o);i<sty.length;i++)
		{
			cmd="o.style."+sty[i];
			x=eval(cmd);
			if (x && x.length) eval(cmd+"=''");
		}
		return true
	};
	
	function setStyle(e,sty)
	{
		var o;
		if ((o=getObjCopy(e)) && typeof(sty)=="string" && /\S/.test(sty))
		{
			for (var i=0,buf=sty.split(";"),x;i<buf.length;i++)
			{
				x=buf[i].split(":");
				if (x.length!=2) continue;
				x[0]=css2js(x[0]);
				eval("o.style."+x[0]+"='"+x[1]+"'")
			}
			return true
		}
		return
	};
	
	function swapImg(e,repl,perm)
	{
		var o;
		if (!(o=getObjCopy(e))) return;
		if (repl==null) repl=/_omo\.\w+$/.test(o.src)?o.src.replace(/_omo\.(\w+)$/,".$1"):o.src.replace(/\.(\w+)$/,"_omo.$1");
		if (!perm) chgEvent(o,"onmouseout","this.src='"+o.src+"'");
		return o.src=repl
	};
	
	function striptags(str){return str.replace(/(<([^>]+)>)/ig,"")};
	function ltrim(str){return str.replace(/^\s+/,"")};
	function rtrim(str){return str.replace(/\s+$/,"")};
	function alltrim(str){return str.replace(/^\s+|\s+$/g,"").replace(/\s{2,}/g," ")};
	function sanitize(str){return str.length?alltrim(striptags(str)):""};
	
	function merge(arrays)
	{
		for (var i=0,merged=new Array;i<arrays.length;i++)
		{
			for (var j=0;j<arrays[i].length;j++) merged.push(arrays[i][j]);
		}
		return merged
	};
	
	function getKeyCode(e){return window.event?event.keyCode:e.keyCode};
	
	function getObjProps(obj)
	{
		var p=[];
		for (var x in obj) p.push(obj[x]);
		return p
	};
	
	if (isIE)
	{
		function setMaxLength(evt,obj){return (evt.which&&evt.which==8)?true:(obj.value.length<obj.maxlength)};
	}
};


/*
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
API CONFIGURATION
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
*/
var DCO = new DocumentConfigObj;
var cfg = {};

if (/^(https?:\/\/)www\.(.+)$/i.test(d.location.href)) d.location.href=RegExp.$1.toLowerCase()+RegExp.$2;
else
{
/*
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
EVENT MANAGER
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
*/
window.onload=function()
{
	/*
	IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
	ENVIRONMENTAL VARIABLES
	IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
	*/
	cfg=
	{
		PG			: DCO.getObjCopy("PAGE"),
		PG_WRAPPER	: DCO.getObjCopy("WRAPPER"),
		BTNCART		: DCO.getObjCopy("BTN_CART"),
		PG_WINDOW	: DCO.getHTTPvar("win"),
		PG_NAME		: DCO.getHTTPvar("pg").toUpperCase(),
		FREQ		: 1500,
		LINKS		: d.getElementsByTagName("a"),
		WEB			: {},
		URL			: DCO.getLocation(),
		STORE		: /\/shop\/.+/.test(DCO.getLocation()),
		
		GetImgName	: function(img){return /([^\/]+)\.\w+$/.test(img.src)?RegExp.$1:null},
		GetWebAddr	: function(url){/^(https?:\/\/[^\/]+)/.test(url?url:cfg.URL);return RegExp.$1.toLowerCase()},
		
		OpenCart : function() { with (cfg)
		{
			var defurl="?pg=purchase";
			DCO.redir(defurl);
			return;
			
			var defurl="?pg=purchase&loc=cart";
			if (isIE) DCO.redir(defurl);
			else
			{
				switch (PG_NAME)
				{
					default: DCO.redir(defurl); break;
					case "PURCHASE": STORE.frame.location.href=GetWebAddr()+"/shop/shopping_cart.php"; break;
				}
			}
		}
		}
	};
	
	
	/*
	IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
	STORE MANAGEMENT
	IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
	*/
	if (cfg.STORE)
	{
		cfg.STORE=document;
		
		if (cfg.XPG=DCO.getObjCopy("XPG"))
		{
			with (cfg)
			{
				XPG.Unhide	= function(){this.style.display="block"};
				XPG.BUF		= DCO.merge([XPG.getElementsByTagName("img"),XPG.getElementsByTagName("input")]);
				XPG.B		= [];
				XPG.FORM	= d.forms[0];
				XPG.FORM.e	= XPG.FORM.elements;
			}
			
			with (cfg.XPG)
			{
				for (var i=n=0;i<BUF.length;i++)
				{
					if (/\/buttons\/.*?([^\/]+)$/i.test(BUF[i].src))
					{
						B[n]			= BUF[i];
						B[n].filename	= RegExp.$1.toLowerCase().replace("button_","");
						B[n].src		= "../images/btn/"+B[n].filename;
						B[n].width		= 120;
						B[n].height		= 20;
						n++
					}
				}
				
				for (var i=0;i<FORM.e.length;i++) { with (FORM.e[i])
				{
					switch (nodeName)
					{
						case "INPUT":
						switch (type.toUpperCase())
						{
							case "TEXT": className="text"; break;
						}
						break;
					}
				}
				}
			}
			setTimeout("cfg.XPG.Unhide()",500)
		}
		
		with (cfg.STORE)
		{
			/([^\/]+)\.php/i.test(location.href);
			
			switch (RegExp.$1.toUpperCase())
			{
				case "INDEX":
				cfg.STORE.IMGPREV	= getElementById("HHPREVIEW");
				cfg.STORE.P			= DCO.getByClassName("hhitem","table");
				
				if (!IMGPREV) break;
				
				IMGPREV.img		= IMGPREV.getElementsByTagName("img")[0];
				IMGPREV.def		= IMGPREV.img.src;
				IMGPREV.cap		= IMGPREV.getElementsByTagName("td")[1];
				IMGPREV.Reset	= function(){this.img.src=this.def};
				IMGPREV.Show	= function(){DCO.setVis(this,true)};
				IMGPREV.Hide	= IMGPREV.onclick=function(){this.img.src=this.def;DCO.setVis(this.cap);DCO.setVis(this)};
				IMGPREV.Insert	= function(newsrc){this.img.src=newsrc;DCO.setVis(this.cap,true)};
				
				for (var i=0;i<P.length;i++)
				{
					P[i].thb			= P[i].getElementsByTagName("img")[0];
					P[i].thb.realsrc	= P[i].thb.title;
					P[i].thb.lyr		= IMGPREV;
					P[i].thb.title		= "";
					P[i].thb.onclick	= function(){this.lyr.Reset();this.lyr.Show();setTimeout("cfg.STORE.IMGPREV.Insert('"+this.realsrc+"')",1500)};
				}
				break;
				
				case "SHOPPING_CART":
				break;
				
				case "LOGIN":
				cfg.STORE.MSG=DCO.getObjCopy("HHLOGIN_MSG");
				MSG.Show=function(){DCO.setVis(this,true,true)};
				MSG.Hide=MSG.onclick=function(){DCO.setVis(this)};
				break;
				
				/*
				IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
				USER REGISTRATION + FORM VALIDATION
				IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
				*/
				case "CREATE_ACCOUNT":
				cfg.STORE.form	= d.forms[0];
				form.e			= form.elements;
				
				for (var i=0;i<form.e.length;i++) { with (form.e[i])
				{
					switch (nodeName)
					{
						case "SELECT": form.e[i].onchange=function(){this.blur()}; break;
						
						case "INPUT":
						switch (type.toUpperCase())
						{
							case "TEXT"		: form.e[i].onblur=function(){this.value=DCO.sanitize(this.value)}; break;
							case "CHECKBOX"	: form.e[i].onclick=function(){this.blur()};
						}
						break;
					}
				}
				}
				
				form.onsubmit=function() { with (this)
				{
					var die=false;
					for (var i=0;i<e.length;i++) { with (e[i])
					{
						switch (name.toUpperCase())
						{
							case "FIRSTNAME"		: if (!/\S/.test(value)) die="Please enter your full name."; break;
							case "LASTNAME"			: if (!/\S/.test(value)) die="Please enter your full name."; break;
							case "STREET_ADDRESS"	: if (!/\S/.test(value)) die="Please enter your street address."; break;
							case "CITY"				: if (!/\S/.test(value)) die="Please enter your city."; break;
							case "FAX"				: if (value.length && !/^\d{10}$/.test(value)) die="Fax is incorrect. Please enter a 10-digit number."; break;
							case "EMAIL_ADDRESS"	: if (!DCO.isEmail(value)){select();die="Please enter a valid email address."} break;
							
							case "TELEPHONE":
							if (!value.length) die="Please enter a phone number.";
							else if (!/^\d{10}$/.test(value)) die="Phone is incorrect. Please enter a 10-digit number.";
							break;
							
							case "POSTCODE":
							if (!value.length) die="Please enter a 5-digit zip code.";
							else if (!/^\d{5}$/.test(value)){value="";die="Please enter a 5-digit zip code."}
							break;
							
							case "DOB":
							if (!value.length) die="Please enter your date of birth.";
							else if (!/^\d{2}\/\d{2}\/\d{4}$/.test(value)){value="";die="Please enter a date using MM/DD/YYYY format."}
							break;
							
							case "PASSWORD":
							if (!value.length) die="Please enter a password.";
							else if (!/^\w{6,}$/.test(value)){value="";die="Password is invalid. (6 characters min. + alphanumeric)"}
							else if (this.confirmation.value!=value){this.confirmation.value="";die="Password confirmation failed. Please try again."}
						}
						
						if (die){e[i].focus();break}
					}
					}
					
					if (die) {alert(die);return false} else return true;
				}
				};
				break;
				
				
				/*
				IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
				CHECKOUT_SHIPPING.PHP
				IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
				*/
				case "CHECKOUT_SHIPPING":
				if (d.forms.length) d.forms[0].submit();
				break;
			}
			
			return
		}
	}
	else { with (cfg)
	{
		/*
		IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
		SHOPPING CART BUTTON
		IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
		*/
		BTNCART.ref		= DCO.getByClassName("body","td",PG_WRAPPER)[0];
		BTNCART.offset	= 92;
		BTNCART.onclick	= OpenCart;
		
		BTNCART.Init=function() { with (this)
		{
			this.pos=DCO.getPos(ref);
			DCO.setPos(this,pos[0]+offset,pos[1]);
			DCO.setVis(this,true)
		}
		};
		
		BTNCART.Init();
		DCO.chgEvent(window,"onresize","cfg.BTNCART.Init()")
	}
	}
	
	
	/*
	IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
	WINDOW MANAGEMENT
	IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
	*/
	if (cfg.PG_WINDOW)
	{
		return
	}
	
	
	/*
	IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
	WEB ELEMENTS
	IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
	*/
	cfg.WEB=
	{
		PG			: DCO.getByClassName("page","td",cfg.PG)[0],
		SUBMITTER	: DCO.getByClassName("pointer","td",d.forms[0])[0],
		MENU		: DCO.getByClassName("menu","td")[0].getElementsByTagName("img"),
		COURSES		: DCO.getObjCopy("HH_COURSES").getElementsByTagName("img")
	};
	
	
	/*
	IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
	SEARCH BOX
	IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
	*/
	cfg.WEB.SUBMITTER.form=d.forms[0];
	cfg.WEB.SUBMITTER.form.onsubmit=function(){return cfg.SUBMITTER.onclick()};
	cfg.WEB.SUBMITTER.onclick=function()
	{
		this.form.qu.value=DCO.sanitize(this.form.qu.value);
		if (/\S/.test(this.form.qu.value)) this.form.submit();
		return false
	};	
	
	
	/*
	IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
	MAIN MENU
	IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
	*/
	for (var i=0;i<cfg.WEB.MENU.length;i++)
	{
		var pg=cfg.GetImgName(cfg.WEB.MENU[i]);
		cfg.WEB.MENU[i].onclick=new Function("DCO.redir('?pg="+pg+"')")
	}
	
	
	/*
	IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
	COURSE MENU
	IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
	*/
	for (var i=0;i<cfg.WEB.COURSES.length;i++) { with (cfg.WEB.COURSES[i])
	{
		if (/transparent/.test(className))
		{
			cfg.WEB.COURSES[i].url			= "?pg=media&vid="+Math.floor(cfg.GetImgName(cfg.WEB.COURSES[i]));
			cfg.WEB.COURSES[i].onclick		= function(){DCO.redir(this.url)};
			cfg.WEB.COURSES[i].onmouseover	= function(){this.className="solid"};
			cfg.WEB.COURSES[i].onmouseout	= function(){this.className="transparent"};
		}
	}}
	
	
	/*
	IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
	PAGE ACTIONS
	IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
	*/
	switch (cfg.PG_NAME)
	{
		default: break;
		
		
		/*
		IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
		STORE LOADER
		IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
		*/
		case "PURCHASE":
		cfg.STORE=
		{
			frame	: window.frames[0].document,
			layer	: DCO.getObjCopy("FRAME"),
			Load	: function(){DCO.setVis(this.layer.firstChild,true)}
		};
		
		setTimeout("cfg.STORE.Load()",1500);
		break;
		
		
		/*
		IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
		SEARCH
		IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
		*/
		case "SEARCH":
		cfg.SEARCH=
		{
			Load : function() { with (DCO)
			{
				var res				= [];
				var frame			= parent.window.frames[0].document;
				var buf				= getByClassName("blue","p",frame);
				var wrapper			= getObjCopy("RES").getElementsByTagName("td")[0];
				var templ			= '<p><b>%N%.</b> <a href="%URL%"><b>%URL%</b></a><br /><b>[%SCORE%%]</b> %DESCR%</p>';
				wrapper.className	= "loaded";
				wrapper.innerHTML	= "";
				
				for (var i=n=0;i<buf.length;i++)
				{
					if (/\[(\d+\.\d+)\s+%\]/.test(buf[i].innerHTML)) res.push(buf[i]); else continue;
					
					res[n].score = RegExp.$1;
					res[n].score = alltrim(RegExp.$1);
					res[n].descr = alltrim(getByClassName("grey","blockquote",frame)[n].innerHTML);
					res[n].where = alltrim(res[n].getElementsByTagName("a")[0].href);
					
					wrapper.innerHTML+=templ;
					wrapper.innerHTML=wrapper.innerHTML.replace("%N%",res.length);
					wrapper.innerHTML=wrapper.innerHTML.replace("%SCORE%",res[n].score);
					wrapper.innerHTML=wrapper.innerHTML.replace(/%URL%/g,res[n].where);
					wrapper.innerHTML=wrapper.innerHTML.replace("%DESCR%",res[n].descr);
					n++
				}
				
				if (!res.length) wrapper.innerHTML="<b>There are no results to display.</b> Please refine your search and try again.";
				else if (isIE6) wrapper.innerHTML=wrapper.innerHTML.replace(/".+?([^\/]+)"/g,"\"$1\"");
			}
			}
		};
		
		setTimeout("cfg.SEARCH.Load()",1500);
		break;
		
		
		/*
		IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
		MEDIA LOADER
		IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
		*/
		case "MEDIA":
		cfg.MEDIA=
		{
			ACTIVELINK : null
		};
		
		var links = d.getElementsByTagName("h6");
		var media = d.getElementsByTagName("embed")[0]||d.getElementsByTagName("object")[0];
		var layer = cfg.PG.getElementsByTagName("div")[0];
		
		if (flash[1]!=9)
		{
			var msg=DCO.getObjCopy("NO_FLASH");
			var pos=DCO.getPos(layer);
			
			DCO.setVis(layer,false);
			DCO.setPos(msg,pos[0],pos[1]);
			DCO.setVis(msg,true);
			
			msg.onclick=function(){DCO.redir("http://www.macromedia.com/go/getflashplayer")};
			return
		}
		
		eval("/(<"+media.nodeName+"\\s.*>)/i").test(media.parentNode.innerHTML);
		media.dhtml=DCO.alltrim(RegExp.$1);
		
		media.transcode=function(movie)
		{
			var code;
			switch (media.nodeName)
			{
				case "EMBED": code=this.dhtml.replace(/src="?([^\.]+)\/.+?\.(\w+)"?/i,'src="$1/'+movie+'.$2"'); break;
				case "OBJECT": code=this.dhtml.replace(/value="([^>]+)\/\w+\.(swf)"/gi,'value="$1/'+movie+'.$2"'); break;
			}
			return code
		};
		
		for (var i=0;i<links.length;i++) { with (links[i])
		{
			links[i].number	= i;
			links[i].lyr	= layer;
			links[i].movie	= innerHTML.replace(" ","_").toLowerCase();
			links[i].code	= media.transcode(links[i].movie)
			
			links[i].onclick=function() { with (this)
			{
				if (cfg.MEDIA.ACTIVELINK)
				{
					if (cfg.MEDIA.ACTIVELINK.number==number) return;
					else
					{
						cfg.MEDIA.ACTIVELINK.className="";
						cfg.MEDIA.ACTIVELINK=null
					}
				}
				className="active";
				lyr.innerHTML=code;
				cfg.MEDIA.ACTIVELINK=this
			}
			};
		}
		}
		
		links[0].onclick();
		break;
	};
}
}
