//*********************************************************************************//
//		MISC JAVASCRIPT
//*********************************************************************************//
		function MM_jumpMenu(targ,selObj,restore){ //v3.0
			eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
			if (restore) selObj.selectedIndex=0;
		}
		function selectURL(nexturl) {
			if (nexturl != "") {
					window.top.location.href = nexturl;
			 }
		}
		function pop_window_FreeShip() {
			window.open('/bpfiles/inc/incFreeShipping.asp', 'popup', 'width=425, height=500, top=100, left=100, menubar=0, scrollbars=0, location=0, toolbar=0,  resizable=0, status=0');
		}
		function pop_window_EstimateShip() {
			window.open('/bpfiles/inc/incEstimateShipping.asp?weight=<%=session("cartweight")%>&shipcountry=<%=session("shipcountry")%>', 'popup', 'width=550, height=600, top=100, left=100, menubar=0, scrollbars=1, location=0, toolbar=0,  resizable=0, status=0');
		}
		function pop_window_Fraud() {
			window.open('/bpfiles/inc/incFraudPopup.asp', 'popup', 'width=425, height=500, top=100, left=100, menubar=0, scrollbars=1, location=0, toolbar=0,  resizable=0, status=0');
		}
		function newImage(arg) {
			if (document.images) {
				rslt = new Image();
				rslt.src = arg;
				return rslt;
			}
		}
		function changeImagesMouseOver() {
			if (document.images && (preloadFlag == true)) {
				for (var i=0; i<changeImagesMouseOver.arguments.length; i+=2) {
					document[changeImagesMouseOver.arguments[i]].src = changeImagesMouseOver.arguments[i+1];
				}
			}
		}
		var preloadFlag = false;
		function preloadImages() {
			if (document.images) {
				searchbox_04_over = newImage("http://ext.tightboards.com/images/searchbox/images/searchbox_07-over.gif");
				preloadFlag = true;
			}
		}
		var win=null;
		function NewWindow(mypage,myname,w,h,scroll,pos){
			if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
			if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
			else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
			settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
			win=window.open(mypage,myname,settings);}
		var checkobj
		function agreesubmit(el){
			checkobj=el
			if (document.all||document.getElementById){
			for (i=0;i<checkobj.form.length;i++){  //hunt down submit button
			var tempobj=checkobj.form.elements[i]
			if(tempobj.type.toLowerCase()=="submit")
			tempobj.disabled=!checkobj.checked}}}
		function defaultagree(el){
			if (!document.all&&!document.getElementById){
			if (window.checkobj&&checkobj.checked)
			return true
			else{
			alert("Please read/accept terms to submit form")
			return false}}}
		function makevisible(cur,which){
			strength=(which==0)? 1 : 0.7
			if (cur.style.MozOpacity)
			cur.style.MozOpacity=strength
			else if (cur.filters)
			cur.filters.alpha.opacity=strength*100
			}

//*********************************************************************************//
//		THICKBOX
//*********************************************************************************//
var tb_pathToImage = "http://ext.tightboards.com/css/images/loading.gif";
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(c).2L(9(){1q(\'a.1c, 2M.1c, 2N.1c\');1r=1s 1t();1r.s=2O});9 1q(1U){$(1U).n(9(){6 t=M.N||M.1u||J;6 a=M.q||M.1V;6 g=M.1W||O;1d(t,a,g);M.2P();C O})}9 1d(D,d,Y){2Q{3(1X c.r.E.1Y==="1Z"){$("r","Z").o({j:"20%",f:"20%"});$("Z").o("21","2R");3(c.22("1v")===J){$("r").p("<P 5=\'1v\'></P><4 5=\'u\'></4><4 5=\'8\'></4>");$("#u").n(F)}}b{3(c.22("u")===J){$("r").p("<4 5=\'u\'></4><4 5=\'8\'></4>");$("#u").n(F)}}3(23()){$("#u").24("2S")}b{$("#u").24("2T")}3(D===J){D=""}$("r").p("<4 5=\'G\'><11 s=\'"+1r.s+"\' /></4>");$(\'#G\').2U();6 1e;3(d.K("?")!==-1){1e=d.2V(0,d.K("?"))}b{1e=d}6 1w=/\\.25$|\\.26$|\\.28$|\\.12$|\\.2a$/;6 Q=1e.1x().2b(1w);3(Q==\'.25\'||Q==\'.26\'||Q==\'.28\'||Q==\'.12\'||Q==\'.2a\'){1y="";1z="";13="";1A="";1B="";R="";1C="";1D=O;3(Y){A=$("a[@1W="+Y+"]").2W();2c(v=0;((v<A.1f)&&(R===""));v++){6 2X=A[v].q.1x().2b(1w);3(!(A[v].q==d)){3(1D){1A=A[v].N;1B=A[v].q;R="<1g 5=\'2d\'>&1h;&1h;<a q=\'#\'>2Y &2Z;</a></1g>"}b{1y=A[v].N;1z=A[v].q;13="<1g 5=\'2e\'>&1h;&1h;<a q=\'#\'>&31; 32</a></1g>"}}b{1D=1i;1C="1t "+(v+1)+" 33 "+(A.1f)}}}S=1s 1t();S.1j=9(){S.1j=J;6 1E=2f();6 x=1E[0]-2g;6 y=1E[1]-2g;6 k=S.f;6 l=S.j;3(k>x){l=l*(x/k);k=x;3(l>y){k=k*(y/l);l=y}}b 3(l>y){k=k*(y/l);l=y;3(k>x){l=l*(x/k);k=x}}14=k+30;1k=l+34;$("#8").p("<a q=\'\' 5=\'2h\' N=\'1F\'><11 5=\'35\' s=\'"+d+"\' f=\'"+k+"\' j=\'"+l+"\' 1V=\'"+D+"\'/></a>"+"<4 5=\'36\'>"+D+"<4 5=\'37\'>"+1C+13+R+"</4></4><4 5=\'38\'><a q=\'#\' 5=\'T\' N=\'1F\'><11 s=\'/1G/1H.12\' f=\'1I\' j=\'15\' 1J=\'0\' /></a></4>");$("#T").n(F);3(!(13==="")){9 16(){3($(c).L("n",16)){$(c).L("n",16)}$("#8").z();$("r").p("<4 5=\'8\'></4>");1d(1y,1z,Y);C O}$("#2e").n(16)}3(!(R==="")){9 1K(){$("#8").z();$("r").p("<4 5=\'8\'></4>");1d(1A,1B,Y);C O}$("#2d").n(1K)}c.1l=9(e){3(e==J){H=2i.2j}b{H=e.2k}3(H==27){F()}b 3(H==39){3(!(R=="")){c.1l="";1K()}}b 3(H==3a){3(!(13=="")){c.1l="";16()}}};18();$("#G").z();$("#2h").n(F);$("#8").o({U:"V"})};S.s=d}b{6 2l=d.2m(/^[^\\?]+\\??/,\'\');6 I=2n(2l);14=(I[\'f\']*1)+30||3b;1k=(I[\'j\']*1)+3c||3d;W=14-30;X=1k-3e;3(d.K(\'2o\')!=-1){1L=d.1M(\'3f\');$("#19").z();3(I[\'1N\']!="1i"){$("#8").p("<4 5=\'2p\'><4 5=\'1O\'>"+D+"</4><4 5=\'2q\'><a q=\'#\' 5=\'T\' N=\'1F\'><11 s=\'/1G/1H.12\' f=\'1I\' j=\'15\' 1J=\'0\' /></a></4></4><P 2r=\'0\' 2s=\'0\' s=\'"+1L[0]+"\' 5=\'19\' 1u=\'19"+1m.2t(1m.1P()*2u)+"\' 1j=\'1Q()\' E=\'f:"+(W+29)+"m;j:"+(X+17)+"m;\' > </P>")}b{$("#u").L();$("#8").p("<P 2r=\'0\' 2s=\'0\' s=\'"+1L[0]+"\' 5=\'19\' 1u=\'19"+1m.2t(1m.1P()*2u)+"\' 1j=\'1Q()\' E=\'f:"+(W+29)+"m;j:"+(X+17)+"m;\'> </P>")}}b{3($("#8").o("U")!="V"){3(I[\'1N\']!="1i"){$("#8").p("<4 5=\'2p\'><4 5=\'1O\'>"+D+"</4><4 5=\'2q\'><a q=\'#\' 5=\'T\'><11 s=\'/1G/1H.12\' f=\'1I\' j=\'15\' 1J=\'0\' /></a></4></4><4 5=\'B\' E=\'f:"+W+"m;j:"+X+"m\'></4>")}b{$("#u").L();$("#8").p("<4 5=\'B\' 3g=\'3h\' E=\'f:"+W+"m;j:"+X+"m;\'></4>")}}b{$("#B")[0].E.f=W+"m";$("#B")[0].E.j=X+"m";$("#B")[0].3i=0;$("#1O").Z(D)}}$("#T").n(F);3(d.K(\'3j\')!=-1){$("#B").p($(\'#\'+I[\'2v\']).2w());$("#8").2x(9(){$(\'#\'+I[\'2v\']).p($("#B").2w())});18();$("#G").z();$("#8").o({U:"V"})}b 3(d.K(\'2o\')!=-1){18();3($.1R.3k){$("#G").z();$("#8").o({U:"V"})}}b{$("#B").3l(d+="&1P="+(1s 3m().3n()),9(){18();$("#G").z();1q("#B a.1c");$("#8").o({U:"V"})})}}3(!I[\'1N\']){c.2y=9(e){3(e==J){H=2i.2j}b{H=e.2k}3(H==27){F()}}}}3o(e){}}9 1Q(){$("#G").z();$("#8").o({U:"V"})}9 F(){$("#3p").L("n");$("#T").L("n");$("#8").3q("3r",9(){$(\'#8,#u,#1v\').3s("2x").L().z()});$("#G").z();3(1X c.r.E.1Y=="1Z"){$("r","Z").o({j:"2z",f:"2z"});$("Z").o("21","")}c.1l="";c.2y="";C O}9 18(){$("#8").o({3t:\'-\'+2A((14/2),10)+\'m\',f:14+\'m\'});3(!(2B.1R.3u&&2B.1R.3v<7)){$("#8").o({3w:\'-\'+2A((1k/2),10)+\'m\'})}}9 2n(1S){6 1n={};3(!1S){C 1n}6 1T=1S.1M(/[;&]/);2c(6 i=0;i<1T.1f;i++){6 1a=1T[i].1M(\'=\');3(!1a||1a.1f!=2){3x}6 2C=2D(1a[0]);6 1o=2D(1a[1]);1o=1o.2m(/\\+/g,\' \');1n[2C]=1o}C 1n}9 2f(){6 1b=c.3y;6 w=2E.2F||2G.2F||(1b&&1b.2H)||c.r.2H;6 h=2E.2I||2G.2I||(1b&&1b.2J)||c.r.2J;2K=[w,h];C 2K}9 23(){6 1p=3z.1p.1x();3(1p.K(\'3A\')!=-1&&1p.K(\'3B\')!=-1){C 1i}}',62,224,'|||if|div|id|var||TB_window|function||else|document|url||width||||height|imageWidth|imageHeight|px|click|css|append|href|body|src||TB_overlay|TB_Counter||||remove|TB_TempArray|TB_ajaxContent|return|caption|style|tb_remove|TB_load|keycode|params|null|indexOf|unbind|this|title|false|iframe|urlType|TB_NextHTML|imgPreloader|TB_closeWindowButton|display|block|ajaxContentW|ajaxContentH|imageGroup|html||img|gif|TB_PrevHTML|TB_WIDTH||goPrev||tb_position|TB_iframeContent|KeyVal|de|thickbox|tb_show|baseURL|length|span|nbsp|true|onload|TB_HEIGHT|onkeydown|Math|Params|val|userAgent|tb_init|imgLoader|new|Image|name|TB_HideSelect|urlString|toLowerCase|TB_PrevCaption|TB_PrevURL|TB_NextCaption|TB_NextURL|TB_imageCount|TB_FoundURL|pagesize|Close|bpimages|close_popup_window|54|border|goNext|urlNoQuery|split|modal|TB_ajaxWindowTitle|random|tb_showIframe|browser|query|Pairs|domChunk|alt|rel|typeof|maxHeight|undefined|100|overflow|getElementById|tb_detectMacXFF|addClass|jpg|jpeg||png||bmp|match|for|TB_next|TB_prev|tb_getPageSize|150|TB_ImageOff|event|keyCode|which|queryString|replace|tb_parseQuery|TB_iframe|TB_title|TB_closeAjaxWindow|frameborder|hspace|round|1000|inlineId|children|unload|onkeyup|auto|parseInt|jQuery|key|unescape|window|innerWidth|self|clientWidth|innerHeight|clientHeight|arrayPageSize|ready|area|input|tb_pathToImage|blur|try|hidden|TB_overlayMacFFBGHack|TB_overlayBG|show|substr|get|urlTypeTemp|Next|gt||lt|Prev|of|60|TB_Image|TB_caption|TB_secondLine|TB_closeWindow|190|188|630|40|440|45|TB_|class|TB_modal|scrollTop|TB_inline|safari|load|Date|getTime|catch|TB_imageOff|fadeOut|fast|trigger|marginLeft|msie|version|marginTop|continue|documentElement|navigator|mac|firefox'.split('|'),0,{}))

//*********************************************************************************//
//		NAVIGATION DROP DOWN MENUS - DYNAMICDRIVE.COM
//*********************************************************************************//
		var ddlevelsmenu={
		downarrowpointer: ["", 0,0], //path to "down arrow" image that gets added to main menu items (last 2 parameters should be width/height of img)
		rightarrowpointer: ["http://ext.tightboards.com/images/buttons/allsites/bullet_box.gif", 10,10], //path to "right arrow" image that gets added to LI elements within drop down menu containing additional menus
		hideinterval: 200, //delay in milliseconds before sub menu(s) disappears onmouseout.
		httpsiframesrc: "blank.htm", //If menu is run on a secure (https) page, the IFRAME shim feature used by the script should point to an *blank* page *within* the secure area to prevent an IE security prompt. Specify full URL to that page on your server (leave as is if not applicable).
		topmenuids: [], //array containing ids of all the primary menus on the page
		topitems: {}, //object array containing all top menu items
		subuls: {}, //object array containing all ULs
		topitemsindex: -1,
		ulindex: -1,
		hidetimers: {}, //object array timer
		shimadded: false,
		getoffset:function(what, offsettype){
			return (what.offsetParent)? what[offsettype]+this.getoffset(what.offsetParent, offsettype) : what[offsettype]
		},
		getoffsetof:function(el){
			el._offsets={left:this.getoffset(el, "offsetLeft"), top:this.getoffset(el, "offsetTop")}
		},
		getwindowsize:function(){
			this.docwidth=window.innerWidth? window.innerWidth-10 : this.standardbody.clientWidth-10
			this.docheight=window.innerHeight? window.innerHeight-15 : this.standardbody.clientHeight-18
		},
		gettopitemsdimensions:function(){
			for (var m=0; m<this.topmenuids.length; m++){
				var topmenuid=this.topmenuids[m]
				for (var i=0; i<this.topitems[topmenuid].length; i++){
					var header=this.topitems[topmenuid][i]
					var submenu=document.getElementById(header.parentNode.getAttribute('rel'))
					header._dimensions={w:header.offsetWidth, h:header.offsetHeight, submenuw:submenu.offsetWidth, submenuh:submenu.offsetHeight}
				}
			}
		},
		isContained:function(m, e){
			var e=window.event || e
			var c=e.relatedTarget || ((e.type=="mouseover")? e.fromElement : e.toElement)
			while (c && c!=m)try {c=c.parentNode} catch(e){c=m}
			if (c==m)
				return true
			else
				return false
		},
		addpointer:function(target, imgclass, imginfo){
			var pointer=document.createElement("img")
			pointer.src=imginfo[0]
			pointer.style.width=imginfo[1]+"px"
			pointer.style.height=imginfo[2]+"px"
			pointer.className=imgclass
			target.appendChild(pointer)
		},
		
		css:function(el, targetclass, action){
			var needle=new RegExp("(^|\\s+)"+targetclass+"($|\\s+)", "ig")
			if (action=="check")
				return needle.test(el.className)
			else if (action=="remove")
				el.className=el.className.replace(needle, "")
			else if (action=="add" && !needle.test(el.className))
				el.className+=" "+targetclass
		},
		addshimmy:function(target){
			var shim=(!window.opera)? document.createElement("iframe") : document.createElement("div") //Opera 9.24 doesnt seem to support transparent IFRAMEs
			shim.className="ddiframeshim"
			shim.setAttribute("src", location.protocol=="https:"? this.httpsiframesrc : "about:blank")
			shim.setAttribute("frameborder", "0")
			target.appendChild(shim)
			try{
				shim.style.filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)'
			}
			catch(e){}
			return shim
		},
		positionshim:function(header, submenu, dir, scrollX, scrollY){
			if (header._istoplevel){
				var scrollY=window.pageYOffset? window.pageYOffset : this.standardbody.scrollTop
				var topgap=header._offsets.top-scrollY
				var bottomgap=scrollY+this.docheight-header._offsets.top-header._dimensions.h
				if (topgap>0){
					this.shimmy.topshim.style.left=scrollX+"px"
					this.shimmy.topshim.style.top=scrollY+"px"
					this.shimmy.topshim.style.width="99%"
					this.shimmy.topshim.style.height=topgap+"px" //distance from top window edge to top of menu item
				}
				if (bottomgap>0){
					this.shimmy.bottomshim.style.left=scrollX+"px"
					this.shimmy.bottomshim.style.top=header._offsets.top + header._dimensions.h +"px"
					this.shimmy.bottomshim.style.width="99%"
					this.shimmy.bottomshim.style.height=bottomgap+"px" //distance from bottom of menu item to bottom window edge
				}
			}
		},
		hideshim:function(){
			this.shimmy.topshim.style.width=this.shimmy.bottomshim.style.width=0
			this.shimmy.topshim.style.height=this.shimmy.bottomshim.style.height=0
		},
		buildmenu:function(mainmenuid, header, submenu, submenupos, istoplevel, dir){
			header._master=mainmenuid //Indicate which top menu this header is associated with
			header._pos=submenupos //Indicate pos of sub menu this header is associated with
			header._istoplevel=istoplevel
			if (istoplevel){
				this.addEvent(header, function(e){
				ddlevelsmenu.hidemenu(ddlevelsmenu.subuls[this._master][parseInt(this._pos)])
				}, "click")
			}
			this.subuls[mainmenuid][submenupos]=submenu
			header._dimensions={w:header.offsetWidth, h:header.offsetHeight, submenuw:submenu.offsetWidth, submenuh:submenu.offsetHeight}
			this.getoffsetof(header)
			submenu.style.left=0
			submenu.style.top=0
			submenu.style.visibility="hidden"
			this.addEvent(header, function(e){ //mouseover event
				if (!ddlevelsmenu.isContained(this, e)){
					if (typeof ddlevelsmenu.hidetimers[this._master][parseInt(this._pos)]!="undefined")
						clearTimeout(ddlevelsmenu.hidetimers[this._master][parseInt(this._pos)])
					if (this._istoplevel)
						ddlevelsmenu.css(this, "selected", "add")
					var submenu=ddlevelsmenu.subuls[this._master][parseInt(this._pos)]
					ddlevelsmenu.getoffsetof(header)
					var scrollX=window.pageXOffset? window.pageXOffset : ddlevelsmenu.standardbody.scrollLeft
					var scrollY=window.pageYOffset? window.pageYOffset : ddlevelsmenu.standardbody.scrollTop
					var submenurightedge=this._offsets.left + this._dimensions.submenuw + (this._istoplevel && dir=="topbar"? 0 : this._dimensions.w)
					var submenubottomedge=this._offsets.top + this._dimensions.submenuh
					//Sub menu starting left position
					var menuleft=(this._istoplevel? this._offsets.left + (dir=="sidebar"? this._dimensions.w : 0) : this._dimensions.w)
					if (submenurightedge-scrollX>ddlevelsmenu.docwidth){
						menuleft+= -this._dimensions.submenuw + (this._istoplevel && dir=="topbar" ? this._dimensions.w : -this._dimensions.w)
					}
					submenu.style.left=menuleft+"px"
					//Sub menu starting top position
					var menutop=(this._istoplevel? this._offsets.top + (dir=="sidebar"? 0 : this._dimensions.h) : this.offsetTop)
					if (submenubottomedge-scrollY>ddlevelsmenu.docheight){ //no room downwards?
						if (this._dimensions.submenuh<this._offsets.top+(dir=="sidebar"? this._dimensions.h : 0)-scrollY){ //move up?
							menutop+= - this._dimensions.submenuh + (this._istoplevel && dir=="topbar"? -this._dimensions.h : this._dimensions.h)
						}
						else{ //top of window edge
							menutop+= -(this._offsets.top-scrollY) + (this._istoplevel && dir=="topbar"? -this._dimensions.h : 0)
						}
					}
					submenu.style.top=menutop+"px"			
					ddlevelsmenu.positionshim(this, submenu, dir, scrollX, scrollY)
					submenu.style.visibility="visible"
				}
			}, "mouseover")
			this.addEvent(header, function(e){ //mouseout event
				if (this._istoplevel){
					var submenu=ddlevelsmenu.subuls[this._master][parseInt(this._pos)]
					if (!ddlevelsmenu.isContained(this, e) && !ddlevelsmenu.isContained(submenu, e)) //hide drop down ul if mouse moves out of menu bar item but not into drop down ul itself
						ddlevelsmenu.hidemenu(submenu)
				}
				else if (!this._istoplevel && !ddlevelsmenu.isContained(this, e)){
					var headerlist=this
					ddlevelsmenu.hidetimers[this._master][parseInt(this._pos)]=setTimeout(function(){
						var submenu=ddlevelsmenu.subuls[headerlist._master][parseInt(headerlist._pos)]
						ddlevelsmenu.hidemenu(submenu)
					}, ddlevelsmenu.hideinterval)
				}
			}, "mouseout")
		},
		hidemenu:function(submenu){
			if (typeof submenu._pos!="undefined"){ //if submenu is outermost UL drop down menu
				this.css(this.topitems[submenu._master][parseInt(submenu._pos)], "selected", "remove")
				this.hideshim()
			}
			submenu.style.left=0
			submenu.style.top="-1000px"
			submenu.style.visibility="hidden"
		},
		addEvent:function(target, functionref, tasktype) {
			if (target.addEventListener)
				target.addEventListener(tasktype, functionref, false);
			else if (target.attachEvent)
				target.attachEvent('on'+tasktype, function(){return functionref.call(target, window.event)});
		},
		init:function(mainmenuid, dir){
			this.standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
			this.topitemsindex=-1
			this.ulindex=-1
			this.topmenuids.push(mainmenuid)
			this.topitems[mainmenuid]=[] //declare array on object
			this.subuls[mainmenuid]=[] //declare array on object
			this.hidetimers[mainmenuid]=[] //declare array on object
			if (!this.shimadded){
				this.shimmy={}
				this.shimmy.topshim=this.addshimmy(document.body) //create top iframe shim obj
				this.shimmy.bottomshim=this.addshimmy(document.body) //create bottom iframe shim obj
				this.shimadded=true
			}
			var menubar=document.getElementById(mainmenuid)
			var menuitems=menubar.getElementsByTagName("*")
			this.getwindowsize()
			for (var i=0; i<menuitems.length; i++){
				if (menuitems[i].getAttribute('rel')){
					this.topitemsindex++
					this.ulindex++
					var menulink=menuitems[i].getElementsByTagName("a")[0]
					this.topitems[mainmenuid][this.topitemsindex]=menulink //store ref to main menu links
					var dropul=document.getElementById(menuitems[i].getAttribute('rel'))
					dropul.style.zIndex=2000 //give drop down menus a high z-index
					dropul._master=mainmenuid  //Indicate which main menu this main UL is associated with
					dropul._pos=this.topitemsindex //Indicate which main menu item this main UL is associated with
					this.addEvent(dropul, function(){ddlevelsmenu.hidemenu(this)}, "click")
					var arrowpointer=(dir=="sidebar")? "rightarrowpointer" : "downarrowpointer"
					this.addpointer(menulink, arrowpointer, this[arrowpointer])
					this.buildmenu(mainmenuid, menulink, dropul, this.ulindex, true, dir) //build top level menu
					this.addEvent(dropul, function(e){ //hide menu if mouse moves out of main UL element into open space
						if (!ddlevelsmenu.isContained(this, e) && !ddlevelsmenu.isContained(ddlevelsmenu.topitems[this._master][parseInt(this._pos)], e)){
							var dropul=this
							ddlevelsmenu.hidetimers[this._master][parseInt(this._pos)]=setTimeout(function(){
								ddlevelsmenu.hidemenu(dropul)
							}, ddlevelsmenu.hideinterval)
						}
					}, "mouseout")
					var subuls=dropul.getElementsByTagName("ul")
					for (var c=0; c<subuls.length; c++){
						this.ulindex++
						var parentli=subuls[c].parentNode
						this.addpointer(parentli.getElementsByTagName("a")[0], "rightarrowpointer", this.rightarrowpointer)
						this.buildmenu(mainmenuid, parentli, subuls[c], this.ulindex, false, dir) //build sub level menus
					}
				}
			} //end for loop
			this.addEvent(window, function(){ddlevelsmenu.getwindowsize(); ddlevelsmenu.gettopitemsdimensions()}, "resize")
		},
		setup:function(mainmenuid, dir){
			this.addEvent(window, function(){ddlevelsmenu.init(mainmenuid, dir)}, "load")
		}
		}

//*********************************************************************************//
//		VIRTUAL PAGINATION BY DYMANIC DRIVE
//*********************************************************************************//
		function virtualpaginate(className, chunksize, elementType){
		var elementType=(typeof elementType=="undefined")? "div" : elementType //The type of element used to divide up content into pieces. Defaults to "div"
		this.pieces=virtualpaginate.collectElementbyClass(className, elementType) //get total number of divs matching class name
		//Set this.chunksize: 1 if "chunksize" param is undefined, "chunksize" if it's less than total pieces available, or simply total pieces avail (show all)
		this.chunksize=(typeof chunksize=="undefined")? 1 : (chunksize>0 && chunksize <this.pieces.length)? chunksize : this.pieces.length
		this.pagecount=Math.ceil(this.pieces.length/this.chunksize) //calculate number of "pages" needed to show the divs
		this.showpage(-1) //show no pages (aka hide all)
		this.currentpage=0 //Having hidden all pages, set currently visible page to 1st page
		this.showpage(this.currentpage) //Show first page
		}
		
		virtualpaginate.collectElementbyClass=function(classname, element){ //Returns an array containing DIVs with specified classname
		var classnameRE=new RegExp("(^|\\s+)"+classname+"($|\\s+)", "i") //regular expression to screen for classname within element
		var pieces=[]
		var alltags=document.getElementsByTagName(element)
		for (var i=0; i<alltags.length; i++){
		if (typeof alltags[i].className=="string" && alltags[i].className.search(classnameRE)!=-1)
		pieces[pieces.length]=alltags[i]
		}
		return pieces
		}
		
		virtualpaginate.prototype.showpage=function(pagenumber){
		var totalitems=this.pieces.length //total number of broken up divs
		var showstartindex=pagenumber*this.chunksize //array index of div to start showing per pagenumber setting
		var showendindex=showstartindex+this.chunksize-1 //array index of div to stop showing after per pagenumber setting
		for (var i=0; i<totalitems; i++){
		if (i>=showstartindex && i<=showendindex)
		this.pieces[i].style.display="block"
		else
		this.pieces[i].style.display="none"
		}
		this.currentpage=parseInt(pagenumber)
		if (this.cpspan) //if <span class="paginateinfo> element is present, update it with the most current info (ie: Page 3/4)
		this.cpspan.innerHTML='Page '+(this.currentpage+1)+'/'+this.pagecount
		}
		
		virtualpaginate.prototype.paginate_build_selectmenu=function(paginatedropdown, anchortext){
		var instanceOfBox=this
		var anchortext=anchortext || new Array()
		this.selectmenupresent=1
		for (var i=0; i<this.pagecount; i++){
		if (typeof anchortext[i]!="undefined") //if custom anchor text for this link exists, use anchor text as each OPTION's text
		paginatedropdown.options[i]=new Option(anchortext[i], i)
		else //else, use auto incremented, sequential numbers
		paginatedropdown.options[i]=new Option("Page "+(i+1)+" of "+this.pagecount, i)
		}
		paginatedropdown.selectedIndex=this.currentpage
		paginatedropdown.onchange=function(){
		instanceOfBox.showpage(this.selectedIndex)
		}
		}
		
		virtualpaginate.prototype.paginate_build_regularlinks=function(paginatelinks){
		var instanceOfBox=this
		for (var i=0; i<paginatelinks.length; i++){
		var currentpagerel=paginatelinks[i].getAttribute("rel")
		if (currentpagerel=="previous" || currentpagerel=="next" || currentpagerel=="first" || currentpagerel=="last") //screen for these "rel" values
		paginatelinks[i].onclick=function(){
		instanceOfBox.navigate(this.getAttribute("rel"))
		return false
		}
		}
		}
		
		virtualpaginate.prototype.paginate_build_flatview=function(flatviewcontainer, anchortext){
		var instanceOfBox=this
		var flatviewhtml=""
		var anchortext=anchortext || new Array()
		for (var i=0; i<this.pagecount; i++){
		if (typeof anchortext[i]!="undefined") //if custom anchor text for this link exists
		flatviewhtml+='<a href="#flatview" rel="'+i+'">'+anchortext[i]+'</a> ' //build pagination link using custom anchor text
		else
		flatviewhtml+='<a href="#flatview" rel="'+i+'">'+(i+1)+'</a> ' //build  pagination link using auto incremented sequential number instead
		}
		flatviewcontainer.innerHTML=flatviewhtml
		this.flatviewlinks=flatviewcontainer.getElementsByTagName("a")
		for (var i=0; i<this.flatviewlinks.length; i++){
		this.flatviewlinks[i].onclick=function(){
		instanceOfBox.flatviewlinks[instanceOfBox.currentpage].className="" //"Unhighlight" last flatview link clicked on...
		this.className="selected" //while "highlighting" currently clicked on flatview link (setting its class name to "selected"
		instanceOfBox.showpage(this.getAttribute("rel"))
		return false
		}
		}
		this.flatviewlinks[this.currentpage].className="selected" //"Highlight" current page
		this.flatviewpresent=true //indicate flat view links are present
		}
		
		virtualpaginate.prototype.paginate_build_cpinfo=function(cpspan){
		this.cpspan=cpspan
		cpspan.innerHTML='Page '+(this.currentpage+1)+'/'+this.pagecount
		}
		
		virtualpaginate.prototype.buildpagination=function(divid, optnavtext){
		var instanceOfBox=this
		var paginatediv=document.getElementById(divid)
		if (this.chunksize==this.pieces.length){ //if user has set to display all pieces at once, no point in creating pagination div
		paginatediv.style.display="none"
		return
		}
		var paginationcode=paginatediv.innerHTML //Get user defined, "unprocessed" HTML within paginate div
		if (paginatediv.getElementsByTagName("select").length>0) //if there's a select menu in div
		this.paginate_build_selectmenu(paginatediv.getElementsByTagName("select")[0], optnavtext)
		if (paginatediv.getElementsByTagName("a").length>0) //if there are links defined in div
		this.paginate_build_regularlinks(paginatediv.getElementsByTagName("a"))
		var allspans=paginatediv.getElementsByTagName("span") //Look for span tags within passed div
		for (var i=0; i<allspans.length; i++){
		if (allspans[i].className=="flatview")
		this.paginate_build_flatview(allspans[i], optnavtext)
		else if (allspans[i].className=="paginateinfo")
		this.paginate_build_cpinfo(allspans[i])
		}
		this.paginatediv=paginatediv
		}
		
		virtualpaginate.prototype.navigate=function(keyword){
		if (this.flatviewpresent)
		this.flatviewlinks[this.currentpage].className="" //"Unhighlight" previous page (before this.currentpage increments)
		if (keyword=="previous")
		this.currentpage=(this.currentpage>0)? this.currentpage-1 : (this.currentpage==0)? this.pagecount-1 : 0
		else if (keyword=="next")
		this.currentpage=(this.currentpage<this.pagecount-1)? this.currentpage+1 : 0
		else if (keyword=="first")
		this.currentpage=0
		else if (keyword=="last")
		this.currentpage=this.pieces.length-1
		this.showpage(this.currentpage)
		if (this.selectmenupresent)
		this.paginatediv.getElementsByTagName("select")[0].selectedIndex=this.currentpage
		if (this.flatviewpresent)
		this.flatviewlinks[this.currentpage].className="selected" //"Highlight" current page
		}

//*********************************************************************************//
//		GOMEZ
//*********************************************************************************//
<!-- 
 var gomez={ 
		 gs: new Date().getTime(), 
		 acctId:'37DEFD', 
		 pgId:'', 
		 grpId:'' 
 }; 
//--> 
<!-- 
var gomez=gomez?gomez:{};gomez.h3=function(d, s){for(var p in s){d[p]=s[p];}return d;};gomez.h3(gomez,{b3:function(r){if(r<=0)return false;return Math.random()<=r&&r;},b0:function(n){var c=document.cookie;var v=c.match(new RegExp(';[ ]*'+n+'=([^;]*)'));if(!v)v=c.match(new RegExp(n+'=([^;]*)'));if(v)return unescape(v[1]);return '';},c2:function(n,v,e,p,d,s){try{var t=this,a=location.hostname;var c=n+'='+escape(v)+(e?';expires='+e.toGMTString():'')+(p?';path='+p:';path=/')+(d?';domain='+d:';domain='+a)+(s?';secure':'');document.cookie=c;}catch(e){}},z0:function(n){var t=this;if(n){var s =t.b0("__g_c");if(!s)return '';var v=s.match(new RegExp(n+':([^\|]*)'));if(v)return unescape(v[1]);return '';}else return '';},z1:function(n,m){var t=this;if(n){var s=t.b0("__g_c");if(s){if(s.indexOf(n+':')!=-1)s=s.replace(new RegExp('('+n+':[^\|]*)'),n+':'+m);else s=s==' '?n+':'+m:s+'|'+n+':'+m;t.c2("__g_c",s);}else t.c2("__g_c",n+':'+m);};}});if(gomez.wrate){gomez.i0=gomez.z0('w');if(gomez.i0){gomez.runFlg=parseInt(gomez.i0)>0?true:false;}else if(gomez.b3(parseFloat(gomez.wrate))){gomez.runFlg=true;gomez.z1('w',1);}else{gomez.runFlg=false;gomez.z1('w',0);}}else if(gomez.wrate==undefined){gomez.runFlg=true;gomez.z1('w',1);}else{gomez.runFlg=false;gomez.z1('w',0);};if(gomez.runFlg){gomez.h1=function(v,d){return v?v:d};gomez.gs=gomez.h1(gomez.gs,new Date().getTime());gomez.acctId=gomez.h1(gomez.acctId,'');gomez.pgId=gomez.h1(gomez.pgId,'');gomez.grpId=gomez.h1(gomez.grpId, '');gomez.E=function(c){this.s=c;};gomez.E.prototype={g1:function(e){var t=gomez,i=t.g6(e);if(i)i.e=t.b5();}};gomez.L=function(m){this.a=m;};gomez.L.prototype={g2:function(m){var t=gomez,n=t.b5();var s=document.getElementsByTagName(m);var e=t.k;if(m=='script')e=t.j;if(m=='iframe')e=t.l;if(s){var l=s.length;for(var i=0;i<l;i++){var u=s[i].src||s[i].href;if(u &&!e[u]){var r =new gomez.E(e);t.grm[u]=r;e[u]=new t.c7(u, n);if(t.gIE&&m=='script')t.e2(s[i],'readystatechange',t.d2,false);else t.e2(s[i],'load',r.g1,false);}}}}};gomez.L.m=new Object;gomez.L.m['script']=new gomez.L();gomez.L.m['link']=new gomez.L();gomez.L.m['iframe']=new gomez.L();gomez.S=function(){var t=this,h=gomez.acctId+".r.axf8.net";t.x=location.protocol+'//'+h+'/mr/b.gif?';t.y=location.protocol+'//'+h+'/mr/a.gif?';};gomez.h2=function(){var t=this;t.gIE=false;t.f=new Object;t._h=0;t.j=new Object;t.k=new Object;t.l=new Object;t.m=location.href;t.p=-1;t.q=-1;t.t=new Array;t.u=new Array;t._w=false;t.gSfr=/KHTML|WebKit/i.test(navigator.userAgent);t.gc={'n':'c'};t.grm=new Object;t.b;t.a=0;t.d=false;t.x=false;t.s=new gomez.S;t._a=false;t.h6=false;};gomez.h3(gomez,{h5:function(u){try{var s=document.createElement('script');s.src=u;s.type='text/javascript';if(document.body)document.body.appendChild(s);else if(document.documentElement.getElementsByTagName('head')[0])document.documentElement.getElementsByTagName('head')[0].appendChild(s);}catch(e){}},a9:function(){var t=gomez,i=t.z0('a'),g=t.b0('__g_u');t.gc.h=t.z0('b');if(!t.gc.h)t.gc.h=1;t.z1('b',parseInt(t.gc.h)+1);if(i){t.a=parseInt(i);if(t.a==1){t._w=true;}else if(t.a==3){t.x=true;t._w=true;};t.d=true;t.gc.c=t.z0('c');t.gc.d=t.z0('d');t.gc.i=t.z0('e');t.gc.j=t.z0('f');if(t._w&&!t._a){t.h7();t._a=true;};}else {if(!t.gc.a)return;var s='v=1';t.c2('__g_u','1',new Date(t.gt()+1000));if(t.b0('__g_u')&&g&&g!='1'&&g.indexOf('NaN')==-1&&g.indexOf('undefined')==-1){s='v=0';var r=g.split('_');t.b2(parseInt(r[0]),parseInt(r[1])+1);if(r[4]&&r[4]!='0'&&t.gt()<parseInt(r[5])&&r[2]&&r[2]!='0'){t.b1(parseFloat(r[2]),parseFloat(r[3]),parseFloat(r[4]),parseInt(r[5]));return;};};t.h6=true;s=t.s.y+'a='+t.gc.a+'&'+s;if(t.gSfr)document.write("<scr"+"ipt src='"+s+"'"+"><\/scr"+"ipt>");else t.h5(s);};t.b=t.z0('g');},h7:function(){var t=gomez,u=t.tloc?t.tloc:location.protocol+'//'+t.acctId+'.t.axf8.net/js/gtag4.js';if(t.gSfr)document.write("<scr"+"ipt src='"+u+"'"+"><\/scr"+"ipt>");else t.h5(u);},b1:function(v,s,q,f){var t=this;if(t._a)return;if(t.b3(v)){t._w=true;t.a=1;var p=parseFloat(s/v);if(t.b3(p)){t.x=true;t.a=3;};};t.d=true;t.z1('a',t.a);t.z1('e',v);t.z1('f',s);t.gc.i=v;t.gc.j=s;t.h4(v,s,q,f);if(t._w){t.h7();t._a=true;};},b2:function(v,s){var t=this,f=new Date(t.gt()+946080000000),g=''+v+'_'+s;if(t._a)return;t.c2('__g_u',g,f);t.gc.c=v;t.gc.d=s;t.z1('c',v);t.z1('d',s);},h4:function(o,p,q,d){var t=this,f=new Date(t.gt()+946080000000),g=t.b0('__g_u');if(g&&g!='1'&&g.indexOf('NaN')==-1&&g.indexOf('undefined')==-1){var r=g.split('_'),s;if(d)s=d;else if(q&&q>=0)s=new Date(t.gt()+parseInt(q*86400000)).getTime();else{q=5;s=new Date(t.gt()+432000000).getTime();};g=''+r[0]+'_'+r[1]+'_'+o+'_'+p+'_'+q+'_'+s;t.c2('__g_u',g,f);};},gt:function(){return new Date().getTime()},b5:function(){return new Date().getTime()-gomez.gs},b6:function(){var t=gomez;t.p=t.b5();},f8:function(){var t=this;if(t.pollId1)clearInterval(t.pollId1);if(t.pollId2)clearInterval(t.pollId2);if(t.pollId3)clearInterval(t.pollId3);if(t.pollId4)clearInterval(t.pollId4);},b7:function(){var t =gomez;t.f8();t.q=t.b5();},c7:function(u, s){var t=this;t.m=u;t.s=s;},c8:function(){var t=gomez,n=t.b5(),l=document.images.length;if(l>t._h){for(var i=t._h;i<l;++i){var u=document.images[i].src;if(u){var r =new gomez.E(t.f);t.grm[u]=r;t.f[u]=new t.c7(u, n);t.e2(document.images[i],'load',t.c4,false);t.e2(document.images[i],'error',t.c5,false);t.e2(document.images[i],'abort',t.c6,false);}}}t._h=l;},c4:function(e){var t=gomez,i=t.g6(e);if(i)i.e=t.b5();},c5:function(e){var t=gomez,i=t.g6(e);if(i){i.e=t.b5();i.b=1;}},c6:function(e){var t=gomez,i=t.g6(e);if(i)i.a=t.b5();},g6:function(e){var t=gomez,e=window.event?window.event:e,a=t.d8(e),i;if(t.grm[a.src||a.href]&&t.grm[a.src||a.href].s)i=t.grm[a.src||a.href].s[a.src||a.href];return i;},d2:function(){var t=gomez;var e=window.event?window.event:e,s=t.d8(e);if(s.readyState=='loaded'||s.readyState=='complete'){var o=t.j[s.src];if(o)o.e=t.b5();}},setPair:function(name,value){var t=this;t.t[t.t.length]={'n':'p','a':name,'b':value};},nameEvent:function(n){var t=this;t.f6(n,1);},startInterval:function(n){var t=this;t.f6(n,2,1);},endInterval:function(n){var t=this;t.f6(n,2,2);},f6:function(n,p,b){if(n&&n.length>20)n=n.substring(0,20);var t=this,f=t.u;f[f.length]={'n':'a','a':n,'b':t.b5(),'e':p,'f':b};},d8:function(e){if(gomez.gIE)return e.srcElement||{};else return e.currentTarget||e.target||{};},e2:function(e,p,f,c){var n='on'+p;if(e.addEventListener)e.addEventListener(p,f,c);else if(e.attachEvent)e.attachEvent(n, f);else{var x=e[n];if(typeof e[n]!='function')e[n]=f;else e[n]=function(a){x(a);f(a);};}},i1:function(){var d =window.document, done=false,i2=function (){if(!done){done=true;gomez.b6();gomez.a9();}};(function (){try{d.documentElement.doScroll('left');}catch(e){setTimeout(arguments.callee, 50);return;}i2();})();d.onreadystatechange=function(){if(d.readyState=='complete'){d.onreadystatechange=null;i2();}};},g7:function(){try{var t=gomez;t.gc.a=t.acctId;/*@cc_on t.gIE=true;@*/if(t.gIE){t.i1();window.attachEvent('onload', t.b7);}else if(t.gSfr){var m=setInterval(function(){if(/loaded|complete/.test(document.readyState)){clearInterval(m);delete m;t.b6();t.b7();}}, 10);}else if(window.addEventListener){window.addEventListener('DOMContentLoaded', t.b6, false);window.addEventListener('load', t.b7, false);}else return;t.c8();t.pollId1=setInterval(t.c8, 1);gomez.L.m['link'].g2('link');t.pollId3=setInterval("gomez.L.m['link'].g2('link')", 1);gomez.L.m['iframe'].g2('iframe');t.pollId4=setInterval("gomez.L.m['iframe'].g2('iframe')", 1);if(!t.gIE)t.a9();}catch(e){return;}}});gomez.h2();gomez.g7();}
//--> 

//*********************************************************************************//
//		RSS AJAX
//*********************************************************************************//
		function RSS2Enclosure(encElement)
		{
			if (encElement == null)
			{
				this.url = null;
				this.length = null;
				this.type = null;
			}
			else
			{
				this.url = encElement.getAttribute("url");
				this.length = encElement.getAttribute("length");
				this.type = encElement.getAttribute("type");
			}
		}
		function RSS2Guid(guidElement)
		{
			if (guidElement == null)
			{
				this.isPermaLink = null;
				this.value = null;
			}
			else
			{
				this.isPermaLink = guidElement.getAttribute("isPermaLink");
				this.value = guidElement.childNodes[0].nodeValue;
			}
		}
		function RSS2Source(souElement)
		{
			if (souElement == null)
			{
				this.url = null;
				this.value = null;
			}
			else
			{
				this.url = souElement.getAttribute("url");
				this.value = souElement.childNodes[0].nodeValue;
			}
		}
		function RSS2Item(itemxml)
		{
			//required
			this.title;
			this.link;
			this.description;
			//optional vars
			this.author;
			this.comments;
			this.pubDate;
			//optional objects
			this.category;
			this.enclosure;
			this.guid;
			this.source;
			var properties = new Array("title", "link", "description", "author", "comments", "pubDate");
			var tmpElement = null;
			for (var i=0; i<properties.length; i++)
			{
				tmpElement = itemxml.getElementsByTagName(properties[i])[0];
				if (tmpElement != null)
					eval("this."+properties[i]+"=tmpElement.childNodes[0].nodeValue");
			}
			this.category = new RSS2Category(itemxml.getElementsByTagName("category")[0]);
			this.enclosure = new RSS2Enclosure(itemxml.getElementsByTagName("enclosure")[0]);
			this.guid = new RSS2Guid(itemxml.getElementsByTagName("guid")[0]);
			this.source = new RSS2Source(itemxml.getElementsByTagName("source")[0]);
		}
		//objects inside the RSS2Channel object
		function RSS2Category(catElement)
		{
			if (catElement == null)
			{
				this.domain = null;
				this.value = null;
			}
			else
			{
				this.domain = catElement.getAttribute("domain");
				this.value = catElement.childNodes[0].nodeValue;
			}
		}
		//object containing RSS image tag info
		function RSS2Image(imgElement)
		{
			if (imgElement == null)
			{
			this.url = null;
			this.link = null;
			this.width = null;
			this.height = null;
			this.description = null;
			}
			else
			{
				imgAttribs = new Array("url","title","link","width","height","description");
				for (var i=0; i<imgAttribs.length; i++)
					if (imgElement.getAttribute(imgAttribs[i]) != null)
						eval("this."+imgAttribs[i]+"=imgElement.getAttribute("+imgAttribs[i]+")");
			}
		}
		//object containing the parsed RSS 2.0 channel
		function RSS2Channel(rssxml)
		{
			//required
			this.title;
			this.link;
			this.description;
			//array of RSS2Item objects
			this.items = new Array();
			//optional vars
			this.language;
			this.copyright;
			this.managingEditor;
			this.webMaster;
			this.pubDate;
			this.lastBuildDate;
			this.generator;
			this.docs;
			this.ttl;
			this.rating;
			//optional objects
			this.category;
			this.image;
			var chanElement = rssxml.getElementsByTagName("channel")[0];
			var itemElements = rssxml.getElementsByTagName("item");
			for (var i=0; i<itemElements.length; i++)
			{
				Item = new RSS2Item(itemElements[i]);
				this.items.push(Item);
				//chanElement.removeChild(itemElements[i]);
			}
			var properties = new Array("title", "link", "description", "language", "copyright", "managingEditor", "webMaster", "pubDate", "lastBuildDate", "generator", "docs", "ttl", "rating");
			var tmpElement = null;
			for (var i=0; i<properties.length; i++)
			{
				tmpElement = chanElement.getElementsByTagName(properties[i])[0];
				if (tmpElement!= null)
					eval("this."+properties[i]+"=tmpElement.childNodes[0].nodeValue");
			}
			this.category = new RSS2Category(chanElement.getElementsByTagName("category")[0]);
			this.image = new RSS2Image(chanElement.getElementsByTagName("image")[0]);
		}
		//uses xmlhttpreq to get the raw rss xml
		function getRSS(rssurl,numitems)
		{
			//call the right constructor for the browser being used
			if (window.ActiveXObject)
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
			else if (window.XMLHttpRequest)
				xhr = new XMLHttpRequest();
			else
				alert("not supported");
			//prepare the xmlhttprequest object
			getxml = rssurl
			displaynumitems = numitems
			xhr.open("GET",getxml,true);
			xhr.setRequestHeader("Cache-Control", "no-cache");
			xhr.setRequestHeader("Pragma", "no-cache");
			xhr.onreadystatechange = function() {
				if (xhr.readyState == 4)
				{
					if (xhr.status == 200)
					{
						if (xhr.responseText != null)
							processRSS(xhr.responseXML);
						else
						{
							alert("Failed to receive RSS file from the server - file not found.");
							return false;
						}
					}
					else
						alert("Error code " + xhr.status + " received: " + xhr.statusText);
				}
			}
			//send the request
			xhr.send(null);
		}
		//processes the received rss xml
		function processRSS(rssxml,displaynumitems)
		{
			RSS = new RSS2Channel(rssxml);
			showRSS(RSS,displaynumitems);
		}
		//shows the RSS content in the browser
		function showRSS(RSS,numitems)
		{
			//default values for html tags used
			var imageTag = "<img id='chan_image'";
			var startItemTag = "<div id='item' style='text-align:center;font-size:11px;font-weight:bold;font-family: Arial;'>";
			var startTitle = "<div id='item_title'>";
			var startLink = "<div id='item_link'>";
			var startDescription = "<div id='item_description'>";
			var endTag = "</div></BR>";
			//populate channel data
			var properties = new Array("title");
			for (var i=0; i<properties.length; i++)
			{
				eval("document.getElementById('chan_"+properties[i]+"').innerHTML = ''");
				curProp = eval("RSS."+properties[i]);
				if (curProp != null)
					eval("document.getElementById('chan_"+properties[i]+"').innerHTML = curProp");
			}
			//populate the items
			document.getElementById("chan_items").innerHTML = "";
			for (var i=0; i<displaynumitems; i++)
			{
				item_html = startItemTag;
				item_html += (RSS.items[i].title == null) ? "" : startTitle +"<a href=''>"+ RSS.items[i].title +"</a>"+ endTag;
				item_html += (RSS.items[i].description == null) ? "" : startDescription + RSS.items[i].description + endTag;
				item_html += endTag;
				document.getElementById("chan_items").innerHTML += item_html;
			}
			return true;
		}
		var xhr;

//*********************************************************************************//
//		JQUERY BGIFRAME MIN
//*********************************************************************************//
(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&/6.0/.test(navigator.userAgent)){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n;},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+'style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?'filter:Alpha(Opacity=\'0\');':'')+'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+'"/>';return this.each(function(){if($('> iframe.bgiframe',this).length==0)this.insertBefore(document.createElement(html),this.firstChild);});}return this;};})(jQuery);
