//dbugScripts - will include non-compressed versions of this code if "jsdebug=true" is in the url of this page,
//otherwise it will execute this code.
//example: dbugScripts("/the/location/of/my/scripts/",["script1.js","script2.js","etc"])
//returns true if scripts are included, otherwise false.
if(!dbugScripts("http://c18-x-publish1.cnet.com:8100/html/rb/js/download/cat/",["download.listings.js"])){
/* begin packed code */
var StickyWinFx=StickyWin.extend({initialize:function(options){this.parent($merge({fade:true,fadeDuration:150,fadeTransition:Fx.Transitions.sineInOut,draggable:false,dragOptions:{},dragHandleSelector:'h1.caption',resizable:false,resizeOptions:{},resizeHandleSelector:''},options))},setContent:function(html){this.parent(html);if(this.options.draggable)this.makeDraggable();if(this.options.resizable)this.makeResizable()},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 PopupDetail=new Class({visible:false,observed:false,hasData:false,initialize:function(html,options){this.setOptions({observer:false,observerAction:'mouseover',closeOnMouseOut:true,linkPopup:false,data:{},templateOptions:{},useAjax:false,ajaxOptions:{},ajaxLink:false,delayOn:100,delayOff:100,stickyWinOptions:{},stickyWinToUse:StickyWinFx,showNow:false},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=="mouseover"&&this.options.closeOnMouseOut){$(opt.observer).addEvent("mouseout",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('mouseover',function(){this.observed=true}.bind(this));this.stickyWin.win.addEvent('mouseout',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;
/* end packed code */
} //end debug scripts
