if(!dbugScripts("http://c18-x-publish1.cnet.com:8100/html/rb/js/commerce/cat/",["decision-tree.js"])){

var StickyWin=new Class({options:{onDisplay:Class.empty,onClose:Class.empty,closeClassName:'closeSticky',pinClassName:'pinSticky',content:'',zIndex:10000,className:'',edge:false,position:'center',offset:{x:0,y:0},relativeTo:document.body,width:false,height:false,timeout:-1,allowMultipleByClass:false,allowMultiple:true,showNow:true,useIframeShim:true,iframeShimSelector:''},css:'.SWclearfix:after {content: "."; display: block; height: 0; clear: both; visibility: hidden;}'+'.SWclearfix {display: inline-table;}'+'* html .SWclearfix {height: 1%;}'+'.SWclearfix {display: block;}',initialize:function(options){options.id=options.id||'StickyWin_'+new Date().getTime();this.setOptions(options);this.makeWindow();if(this.options.content)this.setContent(this.options.content);if(this.options.showNow)this.show();window.addEvent('domready',function(){try{if(!$('StickyWinClearfix')){var style=new Element('style').setProperty('id','StickyWinClearfix').injectInside($$('head')[0]);if(!style.setText.attempt(this.css,style))style.appendText(this.css)}}catch(e){dbug.log('error: %s',e)}}.bind(this))},makeWindow:function(){this.destroyOthers();if(!$(this.options.id)){this.win=new Element('div').setProperty('id',this.options.id).addClass(this.options.className).addClass('StickyWinInstance').addClass('SWclearfix').setStyles({'display':'none','position':'absolute','zIndex':this.options.zIndex}).injectInside(document.body)}else this.win=$(this.options.id);if(this.options.width&&$type(this.options.width.toInt())=="number")this.win.setStyle('width',this.options.width.toInt()+'px');if(this.options.height&&$type(this.options.height.toInt())=="number")this.win.setStyle('height',this.options.height.toInt()+'px');return this},show:function(){this.fireEvent('onDisplay');if(!this.positioned)this.position();this.showWin();if(this.options.useIframeShim)this.showIframeShim();this.visible=true;return this},showWin:function(){this.win.setStyle('display','block')},hide:function(){this.fireEvent('onClose');this.hideWin();if(this.options.useIframeShim)this.hideIframeShim();this.visible=false;return this},hideWin:function(){this.win.setStyle('display','none')},destroyOthers:function(){if(!this.options.allowMultipleByClass||!this.options.allowMultiple){$$('div.StickyWinInstance').each(function(sw){if(!this.options.allowMultiple||(!this.options.allowMultipleByClass&&sw.hasClass(this.options.className)))sw.remove()},this)}},setContent:function(html){if(this.win.getChildren().length>0)this.win.empty();if($type(html)=="string")this.win.setHTML(html);else if($(html))this.win.adopt(html);this.win.getElements('.'+this.options.closeClassName).each(function(el){el.addEvent('click',this.hide.bind(this))},this);this.win.getElements('.'+this.options.pinClassName).each(function(el){el.addEvent('click',this.togglepin.bind(this))},this);return this},position:function(){this.positioned=true;this.win.setPosition({relativeTo:this.options.relativeTo,position:this.options.position,offset:this.options.offset,edge:this.options.edge});if(this.shim)this.shim.position();return this},pin:function(pin){if(!this.win.pin){dbug.log('you must include element.pin.js!');return false}this.pinned=$pick(pin,true);return this.win.pin(pin)},unpin:function(){this.pin(false)},togglepin:function(){this.pin(!this.pinned)},makeIframeShim:function(){if(!this.shim){this.shim=new IframeShim({element:(this.options.iframeShimSelector)?this.win.getElement(this.options.iframeShimSelector):$('StickyWinOverlay')||this.win,display:false,name:'StickyWinShim'})}},showIframeShim:function(){if(this.options.useIframeShim){this.makeIframeShim();this.shim.show()}},hideIframeShim:function(){if(this.options.useIframeShim)this.shim.hide()},destroy:function(){this.win.remove();if(this.options.useIframeShim)this.shim.remove();if($('StickyWinOverlay'))$('StickyWinOverlay').remove()}});StickyWin.implement(new Options);StickyWin.implement(new Events);var stickyWin=StickyWin;var StickyWinFx=StickyWin.extend({options:{fade:true,fadeDuration:150,fadeTransition:Fx.Transitions.sineInOut,draggable:false,dragOptions:{},dragHandleSelector:'h1.caption',resizable:false,resizeOptions:{},resizeHandleSelector:''},setContent:function(html){this.parent(html);if(this.options.draggable)this.makeDraggable();if(this.options.resizable)this.makeResizable();return this},hideWin:function(){if(this.options.fade)this.fade(1,0);else this.win.hide()},showWin:function(){if(this.options.fade){this.fade(0,1)}else this.win.show()},fade:function(from,to){if(!this.fadeFx){this.win.setStyles({opacity:'0',display:'block'});this.fadeFx=this.win.effect('opacity',{duration:this.options.fadeDuration,transition:this.options.fadeTransition})}if(to>0)this.win.setStyle('display','block');this.fadeFx.custom(from,to).chain(function(){if(to==0)this.win.setStyle('display','none')}.bind(this));return this},makeDraggable:function(){dbug.log('you must include Drag.js, cannot make draggable')},makeResizable:function(){dbug.log('you must include Drag.js, cannot make resizable')}});var simpleTemplateParser={STP:{},parseTemplate:function(template,object,regexOptions,wrappers){var STP=this.STP;STP.template=template;STP.object=object;STP.regexOptions=$pick(regexOptions,'ig');STP.wrappers=$pick(wrappers,{before:'%',after:'%'});return STP.result=this.runParser(STP.object,STP.template,STP.regexOptions)},runParser:function(object,string,regexOptions){for(value in object){switch($type(object[value])){case'string':string=this.tmplSubst(value,object[value],string,regexOptions);break;case'number':string=this.tmplSubst(value,object[value],string,regexOptions);break;case'object':string=this.runParser(object[value]);break;case'array':string=this.tmplSubst(value,object[value].toString(),string,regexOptions);break}}return string},tmplSubst:function(key,value,string,regexOptions){return string.replace(new RegExp(this.STP.wrappers.before+key+this.STP.wrappers.after,'gi'),value)}};var PopupDetail=new Class({visible:false,observed:false,hasData:false,options:{observer:false,observerAction:'mouseenter',closeOnMouseOut:true,linkPopup:false,data:{},templateOptions:{},useAjax:false,ajaxOptions:{},ajaxLink:false,delayOn:100,delayOff:100,stickyWinOptions:{},stickyWinToUse:StickyWinFx,showNow:false},initialize:function(html,options){this.setOptions(options);this.html=($(html))?$(html).innerHTML:html;if(this.options.showNow)this.show.delay(this.options.delayOn,this);this.setUpObservers()},setUpObservers:function(){var opt=this.options;if($(opt.observer)&&opt.observerAction){$(opt.observer).addEvent(opt.observerAction,function(){this.observed=true;this.show.delay(opt.delayOn,this)}.bind(this));if((opt.observerAction=="mouseenter"||opt.observerAction=="mouseover")&&this.options.closeOnMouseOut){$(opt.observer).addEvent("mouseleave",function(){this.observed=false;this.hide.delay(opt.delayOff,this)}.bind(this))}}return this},makePopup:function(){if(!this.stickyWin){var opt=this.options;this.content=this.parseTemplate(this.html,opt.data);this.stickyWin=new opt.stickyWinToUse($merge(opt.stickyWinOptions,{relativeTo:opt.observer||document.body,showNow:false,content:this.content,allowMultipleByClass:true}));if($(opt.linkPopup)||$type(opt.linkPopup)=='string'){this.stickyWin.win.setStyle('cursor','pointer').addEvent('click',function(){window.location.href=($type(url)=='string')?url:url.src})}this.stickyWin.win.addEvent('mouseenter',function(){this.observed=true}.bind(this));this.stickyWin.win.addEvent('mouseleave',function(){this.observed=false;if(opt.closeOnMouseOut)this.hide.delay(opt.delayOff,this)}.bind(this))}return this},getContent:function(){try{new Ajax((this.options.ajaxLink||this.options.observer.href),$merge(this.options.ajaxOptions,{onComplete:this.show.bind(this)})).request()}catch(e){dbug.log('ajax error on PopupDetail: %s',e)}},show:function(jsonObject){var opt=this.options;if(jsonObject)this.jsonData=jsonObject;if(this.observed&&!this.visible){if(opt.useAjax&&!this.jsonData){this.cursorStyle=$(opt.observer).getStyle('cursor');$(opt.observer).setStyle('cursor','wait');this.getContent();return false}else{if(this.cursorStyle)$(opt.observer).setStyle('cursor',this.cursorStyle);if(opt.useAjax)opt.data=Json.evaluate(this.jsonData);this.makePopup();this.stickyWin.show();this.visible=true;return this}}return this},hide:function(){if(!this.observed){if(this.stickyWin)this.stickyWin.hide();this.visible=false}return this}});PopupDetail.implement(simpleTemplateParser);PopupDetail.implement(new Options);var popupDetail=PopupDetail;var PopupDetailCollection=new Class({popupDetailObjs:[],initialize:function(options){this.setOptions({details:[],observers:[],links:[],ajaxLinks:[],template:'',popupDetailOptions:{}},options);var ln=this.options.ajaxLinks.length;if(ln<=0)ln=this.options.details.length;if(this.options.observers.length!=ln)dbug.log("warning: observers and details are out of synch");this.makePopupDetails()},makePopupDetails:function(){this.popupDetailObjs=this.options.observers.map(function(observer,index){var opt=this.options.popupDetailOptions;var pd=new PopupDetail(this.options.template,$merge(opt,{data:$pick(this.options.details[index],{}),observer:this.options.observers[index],linkItem:$pick(this.options.links[index],$pick(opt.linkItem,false)),ajaxLink:$pick(this.options.ajaxLinks[index],false)}));return pd},this)}});PopupDetailCollection.implement(new Options);var popupDetails=new Class({initialize:function(options){var pdcOptions=Object.extend(options,{popupDetailOptions:{stickyWinOptions:{position:$pick(options.observeCorner,'upperLeft'),offset:{x:options.offsetx||0,y:options.offsety||0},useIframeShim:(options.iframeShimSelector)?true:false}},delayOn:$pick(options.effectDelayOn,0),delayOff:$pick(options.effectDelayOff,0)});var pdc=new popupDetailCollection(pdcOptions);return pdc}});var popDetailsList=popupDetails;Element.extend({cleanWhitespace:function(){$A(this.childNodes).each(function(node){if(node.nodeType==3&&!/\S/.test(node.nodeValue))node.parentNode.removeChild(node)});return this},find:function(what){var element=this[what];while(element.nodeType!=1)element=element[what];return element},replace:function(html,evalScripts){if(this.outerHTML){this.outerHTML=html.stripScripts()}else{var range=this.ownerDocument.createRange();range.selectNodeContents(this);this.parentNode.replaceChild(range.createContextualFragment(html.stripScripts()),this)}if($pick(evalScripts,true))html.evalScripts.delay(10,html)},isEmpty:function(){return!!this.innerHTML.match(/^\s*$/)},getOffsetHeight:function(){return this.offsetWidth},getOffsetWidth:function(){return this.offsetWidth}});if(!Element.setText){Element.extend({setText:function(text){var tag=this.getTag();if(['style','script'].test(tag)){if(window.ie){if(tag=='style')this.styleSheet.cssText=text;else if(tag=='script')this.setProperty('text',text);return this}else{if(this.firstChild)this.removeChild(this.firstChild);return this.appendText(text)}}this[$type(this.innerText)?'innerText':'textContent']=text;return this}})}

}

