/*
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
GLOBAL VARIABLES
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
*/
var d	= document;
var w	= null;
var s 	= [screen.width,screen.height,screen.availWidth,screen.availHeight];
var url	= d.location.href;
var gv	= new Array;
var cfg	= null;


/*
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.merge				= merge;
	this.newWin				= newWin;
	this.getKeyCode			= getKeyCode;
	
	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:null
	};
	
	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 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};
	
	if (isIE)
	{
		function setMaxLength(evt,obj){return (evt.which&&evt.which==8)?true:(obj.value.length<obj.maxlength)};
	}
};


/*
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
EVENT MANAGER
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
*/
var DCO=new DocumentConfigObj;

cfg=
{
	frequency : 3000,
	intvResizeDividers : function(c)
	{
		var h=DCO.getSize(DCO.getByClassName(c)[0])[1];
		for (var i=0;i<cfg.divs.length;i++) DCO.setSize(cfg.divs[i],-1,h);
		cfg.curdivheight=h
	}
};


window.onload=function()
{
	var links = d.getElementsByTagName("a");
	var cname = null;
	
	if (/\/index\.asp(?:\?PageAction=(\w+))?/i.test(url))
	{
		cname			= "centercontent";
		var action		= RegExp.$1?RegExp.$1.toUpperCase():null;
		var content		= DCO.getObjCopy("AutoNumber4");
		var wrapper		= DCO.getByClassName("centercontent","td",content)[0];
		var links		= d.getElementsByTagName("a");
		var inps		= d.getElementsByTagName("input");
		var imgs		= d.getElementsByTagName("img");
		var cats_holder	= DCO.getByClassName("w_side_content","td")[0];
		
		
		/*
		IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
		FIX BROKEN LINKS
		IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
		*/
		for (var i=0;i<links.length;i++)
		{
			if (/\bHOME\b/i.test(links[i].innerHTML)) continue;
			if (/\.com\/?$/i.test(links[i].href)) links[i].href="index.asp";
		}
		
		
		/*
		IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
		CATEGORY MANAGER
		IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
		*/
		cats_holder.style.paddingBottom="0px";
		
		
		/*
		IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
		ENABLE PER-PAGE SCRIPTING
		IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
		*/
		switch (action)
		{
			default:
			for (var i=0;i<d.forms.length;i++)
			{
				if (d.forms[i].name.toUpperCase()!="FRMVIEW") continue;
				else
				{
					var wrapper	= d.forms[i].parentNode;
					var thb		= d.forms[i].getElementsByTagName("img")[0];
					var price	= DCO.getByClassName("price","font",wrapper)[0].parentNode;
					
					thb.style.background="url("+thb.src+") center no-repeat";
					DCO.setStyle(thb,"margin:5px;margin-left:auto;margin-right:auto");
					DCO.setStyle(wrapper,"padding:7px;text-align:center;vertical-align:top");
					price.style.margin="5px";
					
					thb.src="images/website/items/border_thumb.gif"
				}
			}
			break;
			
			case "CARTDETAILS":
			for (var i=0;i<imgs.length;i++)
			  if (/ProductImages/i.test(imgs[i].src)) DCO.setStyle(imgs[i],"border:1px solid #999999");
			break;
			
			case "VIEWCATS":
				for (var i=0,o=d.getElementsByTagName("img");i<o.length;i++)
				{
					if (/paging_\w+\.gif/i.test(o[i].src)) o[i].style.display="none";
				}
				
				for (var i=0,prod=d.getElementsByTagName("form");i<prod.length;i++)
				{
					if (!/^FRM/i.test(prod[i].name)) continue;
					
					var wrap	= prod[i].parentNode;
					var thumb	= prod[i].getElementsByTagName("img")[0];
					var buyit	= prod[i].lastChild;
					var price	= DCO.getByClassName("price","font",prod[i])[0].parentNode;
					
					wrap.className="top center";
					wrap.style.padding="7px";
					
					thumb.bgsrc=thumb.src;
					thumb.src="images/website/items/border_thumb.gif";
					thumb.style.backgroundImage="url("+thumb.bgsrc+")";
					thumb.style.backgroundPosition="center";
					thumb.style.backgroundRepeat="no-repeat";
					thumb.style.marginBottom="3px";
					thumb.className="center";
					
					DCO.setStyle(buyit,"margin-top:3px;");
					price.style.marginTop="3px"
				}
			break;
			
			case "VIEWPROD":
				var myform	= DCO.getObjCopy("frmAddItemToCart");
				var qtysel	= DCO.getObjCopy("intQtyController");
				var vars	= new Array;
				var lines	= new Array;
				var photo	= DCO.getByClassName("photo","img")[0];
							  /\/c(\d+)/.test(photo.style.backgroundImage)
				var catnumb	= Math.floor(RegExp.$1);
				var prodnum	= Math.floor(DCO.getHTTPvar("ProdID"));
				
				
				/*
				IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
				INITIALIZE PRODUCT VARIANTS
				IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
				*/
				for (var i=0;i<inps.length;i++) if (/^PQ-/.test(inps[i].name)) lines.push(inps[i]);
				for (var i=0,x=d.getElementsByTagName("select");i<x.length;i++)
				{
					if (x[i].name=="VariantProductOption_ID")
					{
						if (/_ID(\d+)$/.test(x[i].id))
						{
							var n=vars.length;
							
							vars[n]					= x[i];
							vars[n].number			= RegExp.$1;
							vars[n].optname			= DCO.getByClassName("subtitle2","font",vars[n].parentNode.parentNode.parentNode)[n].innerHTML;
							vars[n].engraving		= /\bENGRAVING\b/i.test(vars[n].optname);
							vars[n].selectedIndex	= 0;
							
							DCO.setStyle(vars[n],"width:160px;font-size:10px");
							for (var j=0;j<vars[n].options.length;j++) vars[n].options[j].style.fontSize="10px";
							vars[n].lines=lines;
						}
						else continue;
						
						vars[n].onchange=function()
						{
							changePriceValue(this.number);
							this.blur();
							
							if (this.engraving)
							{
								for (var i=0;i<this.lines.length;i++) this.lines[i].trigger=this;
								
								if (this.selectedIndex>0)
								{
									for (var i=0;i<this.lines.length;i++) {this.lines[i].value="";DCO.setOp(this.lines[i],100)}
									DCO.redir("#ProductQuestions");
									if (!this.lines[0].disabled) this.lines[0].focus();
								}
								else
								{
									for (var i=0;i<this.lines.length;i++)
									{
										this.lines[i].value="";
										DCO.setOp(this.lines[i],50)
									}
								}
							}
						};
						vars[n].onchange()
					}
				}
				
				if (lines && lines[0])
				{
					var linewrapper=DCO.getByClassName("ProductQuestions","a")[0].parentNode;
						linewrapper.style.paddingBottom="10px";
						
					for (var i=0;i<lines.length;i++)
					{
						lines[i].onfocus=function(){this.style.backgroundColor="#FFFFB7"};
						lines[i].onblur=function(){this.style.backgroundColor="#FFFFFF"};
						DCO.setStyle(lines[i],"border:1px solid #999999;width:233px;margin-bottom:3px");
						
						lines[i].onclick=function()
						{
							if (this.disabled) return;
							else if (this.trigger.selectedIndex==0)
							{
								this.trigger.selectedIndex=1;
								this.trigger.onchange()
							}
						};
					}
					
					var block=lines[0].parentNode.parentNode.parentNode.parentNode.parentNode;
					DCO.getByClassName("ProductDescription")[0].style.paddingBottom="10px";
					DCO.setStyle(block,"background:#DFEFBD;padding:7px;padding-top:15px;")
				}
				
				
				/*
				IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
				SPECIAL INSTRUCTIONS FOR EACH CATEGORY
				IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
				*/
				cfg.ConfigureMarkersAndPlaques=function(v,limit)
				{
					for (var i=0;i<v[0].options.length;i++)
					{
						if (!/\bPREMIUM\b/i.test(v[0].options[i].innerHTML)) continue;
						v[0].options[i].style.backgroundColor="#DFEFBD"
					}
					
					if (/\bSMALL\b/i.test(v[1].options[0].innerHTML))
					{
						var cmd=new Array;
						cmd.push("this.lines[0].focus();");
						cmd.push("var showall=this.selectedIndex==this.options.length-1;");
						cmd.push("for (var i=0;i<this.lines.length;i++)");
						cmd.push("{var yes=(showall||i<=this.selectedIndex);DCO.setOp(this.lines[i],yes?100:25);this.lines[i].disabled=!yes}");
						cmd=cmd.join("");
						
						DCO.chgEvent(v[1],"onchange",cmd,"app");
						setTimeout("DCO.getObjCopy('"+v[1].id+"').onchange()",500)
					}
				};
				
				switch (catnumb)
				{
					case 4:
					switch (prodnum)
					{
						default: if (vars.length) cfg.ConfigureMarkersAndPlaques(vars); break;
					}
					
					if (lines && lines[0])
					{
						lines[0].onclick();
						lines[0].trigger.onfocus=function(){this.blur()};
					}
					break;
					
					case 8:
						switch (prodnum)
						{
							// Athenian and Spartan Urns
							case 68:
								if (vars.length)
								{
									vars[3].disabled	= true;
									vars[2].partner		= vars[3];
									vars[3].lines		= vars[2].lines;
								}
								else break;
								
								lines[0].maxlength=20;
								lines[1].maxlength=30;
								lines[2].maxlength=26;
								
								var cmd=new Array;
								cmd.push("this.partner.disabled=this.selectedIndex==0");
								cmd.push("if (!this.partner.disabled) {this.partner.selectedIndex=0;this.partner.onchange()}");
								cmd=cmd.join(";");
								
								DCO.chgEvent(vars[2],"onchange",cmd,"app");
								
								vars[3].onchange=function()
								{
									changePriceValue(this.number);
									
									for (var i=0,n=1;i<this.lines.length;i++,n++)
									{
										var op=(this.selectedIndex==0||i>=this.selectedIndex)?50:100;
										
										this.lines[i].onblur();
										DCO.setOp(this.lines[i],op);
										this.lines[i].disabled=op<100
									}
									
									if (!this.lines[0].disabled) this.lines[0].focus();
									return
								};
								
								if (isIE)
								{
									for (var i=0;i<lines.length;i++)
									{
										lines[i].onkeypress=function(){return DCO.setMaxLength(event,this)};
									}
								}
							break;
						}
					break;
				}
				
				
				/*
				IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
				CONVERT QUNATITY BOX TO DROP-DOWN LIST
				IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
				*/
				qtysel.selectedIndex=0;
				qtysel.qtybox=myform.intQty;
				qtysel.onchange=function(){this.qtybox.value=this.options[this.selectedIndex].value};
				if (isIE) myform.intQty.style.display="none"; else myform.intQty.type="hidden";
			break;
		}
		
		/*
		IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
		APPLY BORDER FOR CENTER CONTENT AREA
		IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
		*/
		o=DCO.getByClassName("centercontent");
		for (var i=1;i<o.length;i++) o[i].style.border="none";
		o[0].style.borderRight="none";
		o[2].style.padding="10px";
		o[3].style.borderRight="1px solid #003366";
		
		if (isIE)
		{
			o[1].style.borderBottom="1px solid #003366";
			o[2].style.borderTop="1px solid #003366"
		}
		
		
		/*
		IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
		REFORMAT SUB-CATEGORY LINKS
		IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
		*/
		if (o=DCO.getByClassName("categories","font"))
		{
			for (var i=0;i<o.length;i++) if (/^\s*(?:&[a-z]+;)+\s*$/.test(o[i].innerHTML)) o[i].innerHTML="";
			for (var i=0,o=DCO.getByClassName("categories","a");i<o.length;i++)
			{
				if (action=="VIEWPROD") o[i].style.display="none";
				else DCO.setStyle(o[i],"font-weight:bold;font-size:14px;color:#4D661A");
			}
		}
		
		
		/*
		IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
		ENHANCE BUTTON IMAGES
		IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
		*/
		var img=DCO.merge([d.getElementsByTagName("img"),d.getElementsByTagName("input")]);
		
		for (var i=0;i<img.length;i++)
		{
			var name;
			
			if (isIE && img[i].src && img[i].nodeName=="INPUT") img[i].style.cursor="pointer";
			if (/button_themes\/\w+\/(.+)\.\w+$/i.test(img[i].src)) name=RegExp.$1.toLowerCase();
			else if (/\/images\/([^\/]+)\.gif$/i.test(img[i].src))
			{
				name=RegExp.$1.toLowerCase();
				
				switch (name.toUpperCase())
				{
					default: name=null; break;
					case "CALCULATE_SHIPPING": break;
				}
			}
			
			if (name)
			{
				img[i].onmouseover=img[i].onmouseout=function(){DCO.swapImg(this)};
				if (img[i].nodeName=="IMG") img[i].style.cursor="pointer";
				
				switch (name.toUpperCase())
				{
					default: break;
					
					case "BUY":
					if (/\S/.test(img[i].src))
					{
						DCO.setOp(img[i],50);
						img[i].onmouseover=img[i].onmouseout=null;
						img[i].style.cursor="default";
						
						img[i].onclick=function()
						{
							this.blur();
							
							var msg=new Array;
							msg.push("Our store is currently closed for maintenance.");
							msg.push("In the meantime, feel free to browse the rest of our products.");
							msg.push("And don't forget to come back for our Grand Opening on December 1st!");
							msg.push("_________________________________\n");
							msg.push("You can also signup for a FREE account.");
							msg.push("Click OK to register or CANCEL to continue browsing.");
							
							if (confirm(msg.join("\n"))) DCO.redir("?PageAction=CUSTREG");
							return false
						};
					}
					break;
				}
			}
		}
	}
	else
	{
		cname		= "w_PAGE_CONTENT";
		var pgname	= /(\w+)\.html$/i.test(url)?RegExp.$1.toLowerCase():"index";
		var pghead	= d.getElementsByTagName("head")[0];
		var canvas	= d.getElementsByTagName("body")[0];
		var content	= DCO.getByClassName("w_PAGE_CONTENT","td")[0];
		var wrapper = DCO.getByClassName("w_"+pgname.toUpperCase()+"_WRAPPER","table",content)[0];
		
		if (content.title)
		{
			content.style.backgroundImage="url(images/website/"+content.title+")";
			content.title=""
		}
		
		switch (pgname.toUpperCase())
		{
			default: break;
			
			case "FAQ":
				gv['SELECTED']=null;
				var q=DCO.getObjCopy("w_FAQ").getElementsByTagName("li");
				var buf=DCO.getByClassName("w_FAQ_BUFFER","div");
				
				for (var i=0;i<q.length;i++)
				{
					q[i].number=i;
					q[i].active=false;
					q[i].holder=DCO.getObjCopy("w_FAQ_DISPLAY").getElementsByTagName("td")[0];
					q[i].answer=DCO.alltrim(buf[i].innerHTML);
					
					q[i].onclick=function()
					{
						if (gv['SELECTED'])
						{
							if (this.number==gv['SELECTED'].number) return;
							gv['SELECTED'].active=false;
							gv['SELECTED'].onmouseout()
						}
						
						this.active=true;
						this.className="active";
						this.holder.innerHTML=this.answer;
						gv['SELECTED']=this
					};
					
					q[i].onmouseover=function(){if (!this.active) this.className="omo"};
					q[i].onmouseout=function(){if (!this.active) this.className=""};
				}
			break;
		}
	}
	
	
	/*
	IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
	LOW-LEVEL OPERATIONS
	IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
	*/
	cfg.divs			= DCO.getByClassName("w_PAGE_DIVIDER");
	cfg.curdivheight	= DCO.getSize(cfg.divs[0])[1];
	
	setInterval("cfg.intvResizeDividers('"+cname+"')",cfg.frequency);
	for (var i=0;i<links.length;i++) if (!links[i].onclick) links[i].onclick=function(){this.blur()};
	cfg.intvResizeDividers(cname)
};

