//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/news/cat/",["news.search.js"])){

/*	begin packed code	*/
var StickyWin=new Class({options:{onDisplay:Class.empty,onClose:Class.empty,closeClassName:'closeSticky',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:''},initialize:function(a){a.id=a.id||'StickyWin_'+new Date().getTime();this.setOptions(a);this.makeWindow();if(this.options.content)this.setContent(this.options.content);if(this.options.showNow)this.show()},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('clearfix').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.show()},hide:function(){this.fireEvent('onClose');this.hideWin();if(this.options.useIframeShim)this.hideIframeShim();this.visible=false;return this},hideWin:function(){this.win.hide()},destroyOthers:function(){if(!this.options.allowMultipleByClass||!this.options.allowMultiple){$$('div.StickyWinInstance').each(function(a){if(!this.options.allowMultiple||(!this.options.allowMultipleByClass&&a.hasClass(this.options.className)))a.remove()},this)}},setContent:function(b){if(this.win.getChildren().length>0)this.win.flush();if($type(b)=="string")this.win.setHTML(b);else if($(b))this.win.adopt(b);this.win.getElements('.'+this.options.closeClassName).each(function(a){a.addEvent('click',this.hide.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},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 DatePicker=new Class({defaultCss:'div.calendarHolder{width:210px; height:182px; padding-left:8px; padding-top:1px; '+'background:url(http://www.cnet.com/html/rb/assets/global/datePicker/calendar.back.png) no-repeat} '+'* html div.calendarHolder {background:url(http://www.cnet.com/html/rb/assets/global/datePicker/calendar.back.gif) no-repeat}'+'table.datePicker * {font-size:11px; line-height:16px;} '+'table.datePicker{margin:6px 0px 0px 0px; width:190px; padding:0px 5px 0px 5px} '+'table.datePicker td{cursor:pointer; text-align:center} '+'table.datePicker img.closebtn{margin-top:2px} '+'tr.dateNav{height:22px; margin-top:8px} '+'tr.dayNames td{color:#666; font-weight:bold; border-bottom:1px solid #ddd} '+'table.datePicker tr.dayRow td:hover{background:#ccc} '+'td.today{color:#bb0904} '+'td.otherMonthDate{border:1px solid #fff; color:#666; background:#f3f3f3} '+'td.selectedDate{border:1px solid #20397b; background:#dcddef}',fullDay:86400000,initialize:function(a,b){var c=(typeof StickyWinFx=="undefined")?StickyWin:StickyWinFx;this.setOptions({calendarId:false,months:["January","February","March","April","May","June","July","August","September","October","November","December"],days:["Su","Mo","Tu","We","Th","Fr","Sa"],stickyWinOptions:{position:"bottomLeft",offset:{x:10,y:10},fadeDuration:400},stickyWinToUse:c,draggable:true,dragOptions:{},additionalShowLinks:[],showOnInputFocus:true,useDefaultCss:true,hideCalendarOnPick:true,onPick:Class.empty,onShow:Class.empty,onHide:Class.empty},b);if(!this.options.calendarId)this.options.calendarId="popupCalendar"+new Date().getTime();this.input=$(a);if(this.options.useDefaultCss)this.writeCss();this.setUpObservers();this.getCalendar()},setUpObservers:function(){if(this.options.showOnInputFocus)this.input.addEvent('focus',this.show.bind(this));try{this.input.addEvent('blur',this.updateInput.bind(this))}catch(e){}this.options.additionalShowLinks.each(function(a){$(a).addEvent('click',this.show.bind(this))},this)},writeCss:function(a){a=$pick(a,this.defaultCss);window.onDomReady(function(){try{if(!$('datePickerStyle'))new Element('style').setProperty('id','datePickerStyle').injectInside($$('head')[0]).appendText(a)}catch(e){dbug.log('error: %s',e)}})},updateInput:function(a){if(!$type(a)=="string"||(a&&!a.getTime))a=this.input.getValue();var b=this.formatDate(this.validDate(a));if($type(b)=="string"){this.input.value=b;return b}return a},validDate:function(a){a=$pick(a,this.input.getValue());a=a.replace(/^\s+|\s+$/g,"");var b=Date.parse(a);if(isNaN(b))b=Date.parse(a.replace(/[^\w\s]/g,"/"));if(isNaN(b))b=Date.parse(a.replace(/[^\w\s]/g,"/")+"/"+new Date().getFullYear());if(!isNaN(b)){var c=new Date(b);if(c.getFullYear()<2000&&a.indexOf(c.getFullYear())<0){c.setFullYear(c.getFullYear()+100)}return c}else return b},formatDate:function(a){try{var b=((a.getUTCMonth()<9)?"0":"")+(a.getUTCMonth()+1)+"/";b+=((a.getUTCDate()<10)?"0":"")+a.getUTCDate()+"/";b+=a.getUTCFullYear();return b}catch(e){return a}},zeroHourGMT:function(a){a.setTime(a.getTime()-a.getTime()%86400000);return a},getCalendar:function(){if(!this.calendar){var a=new Element("table").setProperties({'id':this.options.calendarId,'border':'0','cellpadding':'0','cellspacing':'0'});a.addClass('datePicker');$(a.insertRow(0).insertCell(0)).appendText("x");for(var c=0;c<6;c++)$(a.rows[0]).adopt(a.rows[0].cells[0].cloneNode(true));for(var r=0;r<7;r++)$(a.rows[0].parentNode).adopt(a.rows[0].cloneNode(true));$(a.rows[1]).addClass('dayNames');for(var r=2;r<8;r++)$(a.rows[r]).addClass('dayRow');for(var d=0;d<7;d++)a.rows[1].cells[d].firstChild.data=this.options.days[d];for(var t=6;t>3;t--)a.rows[0].deleteCell(t);$(a.rows[0]).addClass('dateNav');if(!window.ie6)a.rows[0].cells[0].firstChild.data=String.fromCharCode(9668);else a.rows[0].cells[0].firstChild.data="<";a.rows[0].cells[1].colSpan=4;if(!window.ie6)a.rows[0].cells[2].firstChild.data=String.fromCharCode(9658);else a.rows[0].cells[2].firstChild.data=">";a.rows[0].cells[3].firstChild.data=String.fromCharCode(215);$(a.rows[0].cells[3].setHTML('')).adopt(this.getCloseImg());a.addEvent('click',this.clickCalendar.bind(this));this.calendar=a;this.container=new Element('div').adopt(a).addClass('calendarHolder');this.options.stickyWinOptions.content=this.container;this.options.stickyWinOptions.showNow=false;this.options.stickyWinOptions.relativeTo=this.input;this.stickyWin=new this.options.stickyWinToUse(this.options.stickyWinOptions);if(this.options.draggable){try{this.stickyWin.win.makeDraggable(Object.extend(this.options.dragOptions,{handle:a.rows[0].cells[1],onDrag:function(){if(this.stickyWin.shim)this.stickyWin.shim.show.bind(this.stickyWin)}.bind(this)}));a.rows[0].cells[1].setStyle('cursor','move')}catch(e){}}}return this.calendar},getCloseImg:function(){var a=new Element("img").setProperty('src','http://www.cnet.com/html/rb/assets/global/simple.error.popup/closebtn.gif');a.addEvents({'mouseover':function(){a.src=a.src.replace('.gif','_over.gif')},'mouseout':function(){a.src=a.src.replace('_over.gif','.gif')},'click':this.hide.bind(this)}).setStyles({width:'13px',height:'13px'}).addClass('closebtn');return a},hide:function(){this.stickyWin.hide();this.fireEvent('onHide')},show:function(){this.today=this.zeroHourGMT(new Date());this.inputDate=new Date(this.updateInput());this.refDate=isNaN(this.inputDate)?this.today:this.zeroHourGMT(new Date(this.inputDate));this.getCalendar();this.fillCalendar(this.refDate);this.stickyWin.show();this.fireEvent('onShow')},clickCalendar:function(a){a=new Event(a);if(!a.target.firstChild||!a.target.firstChild.data)return;var b=a.target.firstChild.data;if(b.charCodeAt(0)>9600||b=="<"||b==">"){var c=this.calendar.rows[2].cells[0].refDate-this.fullDay;if(b.charCodeAt(0)!=9668&&b!="<")c=this.calendar.rows[7].cells[6].refDate+this.fullDay;this.fillCalendar(new Date(c));return}if(a.target.refDate){var d=new Date(a.target.refDate);this.input.value=this.formatDate(d);this.input.fireEvent("change");this.input.fireEvent("blur");this.fireEvent('onPick');if(this.options.hideCalendarOnPick)this.hide()}},fillCalendar:function(b){var c=new Date(b.getTime());c.setUTCDate(1);c.setTime(c.getTime()-(this.fullDay*c.getUTCDay()));this.calendar.rows[0].cells[1].firstChild.data=this.options.months[b.getUTCMonth()]+" "+b.getUTCFullYear();var e=c;this.calendar.getElements('td').each(function(a){a.removeClass('selectedDate').removeClass('otherMonthDate').removeClass('today')});for(var w=2;w<8;w++)for(var d=0;d<7;d++){var f=this.calendar.rows[w].cells[d];f.firstChild.data=e.getUTCDate();f.refDate=e.getTime();if(e.getTime()==this.today.getTime())f.addClass('today');if(e.getTime()==this.refDate.getTime())f.addClass('selectedDate');if(e.getUTCMonth()!=b.getUTCMonth())f.addClass('otherMonthDate');e.setTime(e.getTime()+this.fullDay)}}});DatePicker.implement(new Options);DatePicker.implement(new Events);window.addEvent('domready',function(){try{startCal=new DatePicker('startdate',{formPrefill:'01/01/1995',showOnInputFocus:false,additionalShowLinks:['startDateCal']});endCal=new DatePicker('enddate',{formPrefill:true,showOnInputFocus:false,additionalShowLinks:['endDateCal']})}catch(e){dbug.log("Date fields not initialized: %s",e)}});var toggleSummaries=function(a){var b=document.location.href;var c=window.getQueryStringValue("summaries");if(c==undefined){b=b+"&summaries=1"}else if(c==''){b=b.replace("summaries=","summaries=1")}else{c="summaries="+c;if(b.test(c)){if(b.test(c+"&")){b=b.replace(c+"&","")}else if(b.test("&"+c)){b=b.replace("&"+c,"")}else{b=b.replace("?"+c,"")}}}document.location=b};
/*	end packed code	*/
}
