Changeset 5778

Show
Ignore:
Timestamp:
06/02/08 15:18:22 (6 months ago)
Author:
kinoshita
Message:

2877

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinelz/trunk/compress/javascripts/spinelz/calendar.js

    r5776 r5778  
    948948} 
    949949Element.setStyle(item,_116); 
    950 if(_111){ 
    951 var _117=Builder.node("DIV",{id:"scheduleDeleteImg_"+_10e.id,className:this.calendar.css.joinClassNames("deleteImg")}); 
    952 Element.hide(_117); 
    953 item.appendChild(_117); 
     950var _117=(_10e.removable==undefined||_10e.removable); 
     951if(_111&&_117){ 
     952var _118=Builder.node("DIV",{id:"scheduleDeleteImg_"+_10e.id,className:this.calendar.css.joinClassNames("deleteImg")}); 
     953Element.hide(_118); 
     954item.appendChild(_118); 
    954955if(!_115){ 
    955 Event.observe(_117,"click",this.clickDeleteImage.bind(this,_10e)); 
    956 Event.observe(item,"mouseover",this.showDeleteImage.bind(this,_117)); 
    957 Event.observe(item,"mouseout",this.hideDeleteImage.bind(this,_117)); 
     956Event.observe(_118,"click",this.clickDeleteImage.bind(this,_10e)); 
     957Event.observe(item,"mouseover",this.showDeleteImage.bind(this,_118)); 
     958Event.observe(item,"mouseout",this.hideDeleteImage.bind(this,_118)); 
    958959} 
    959960} 
     
    961962Event.observe(item,"dblclick",this.calendar.options.dblclickSchedule.bind(this,_10e)); 
    962963} 
    963 var _118=null; 
     964var _119=null; 
    964965if(_111){ 
    965 _118=Builder.node("DIV",{className:this.calendar.css.joinClassNames("scheduleHandler")}); 
     966_119=Builder.node("DIV",{className:this.calendar.css.joinClassNames("scheduleHandler")}); 
    966967if(_115){ 
    967 Element.hide(_118); 
    968 } 
    969 item.appendChild(_118); 
     968Element.hide(_119); 
     969} 
     970item.appendChild(_119); 
    970971} 
    971972var icon=null; 
     
    986987var body=Builder.node("DIV"); 
    987988var text=this.getTimeText((_10f)?_10e.start:{hour:"0",min:"0"},_10e.finish); 
    988 var _11c=Builder.node("DIV",{id:id+"_text",style:"float: left;"},[text]); 
    989 this.calendar.css.addClassNames(_11c,"scheduleTimeArea"); 
    990 item.appendChild(_11c); 
    991 var _11d=_10e.description.unescapeHTML(); 
    992 item.appendChild(Builder.node("DIV",{id:id+"_description"},[_11d])); 
    993 item.title=text+"-"+this.calendar.formatTime(_10e.finish)+" "+_11d
     989var _11d=Builder.node("DIV",{id:id+"_text",style:"float: left;"},[text]); 
     990this.calendar.css.addClassNames(_11d,"scheduleTimeArea"); 
     991item.appendChild(_11d); 
     992var _11e=_10e.description.unescapeHTML(); 
     993item.appendChild(Builder.node("DIV",{id:id+"_description"},[_11e])); 
     994item.title=text+"-"+this.calendar.formatTime(_10e.finish)+" "+_11e
    994995item.schedule=_10e; 
    995 return [item,_118]; 
    996 },adjustScheduleStyle:function(item,_11f,_120,_121){ 
     996return [item,_119]; 
     997},adjustScheduleStyle:function(item,_120,_121,_122){ 
    997998var self=this; 
    998 var _123=parseInt(Element.getStyle(item,"height"),10); 
     999var _124=parseInt(Element.getStyle(item,"height"),10); 
    9991000var top=parseInt(Element.getStyle(item,"top"),10); 
    1000 var _125=this.getScheduleRange(item); 
     1001var _126=this.getScheduleRange(item); 
    10011002var tops=[]; 
    1002 var _127=3; 
    1003 _121.each(function(_128){ 
    1004 var _129=self.getScheduleRange(_128); 
    1005 if(_125.any(function(r){ 
    1006 return _129.include(r); 
     1003var _128=3; 
     1004_122.each(function(_129){ 
     1005var _12a=self.getScheduleRange(_129); 
     1006if(_126.any(function(r){ 
     1007return _12a.include(r); 
    10071008})){ 
    1008 tops.push(_128.topIndex); 
    1009 } 
    1010 }); 
    1011 var _12b=$R(0,tops.length,true).detect(function(i){ 
     1009tops.push(_129.topIndex); 
     1010} 
     1011}); 
     1012var _12c=$R(0,tops.length,true).detect(function(i){ 
    10121013return !tops.include(i); 
    10131014}); 
    1014 if(isNaN(_12b)){ 
    1015 _12b=tops.length; 
    1016 } 
    1017 item.topIndex=_12b
    1018 Element.setStyle(item,{top:top+(_123+2)*_12b+"px"}); 
    1019 if(_12b>=_127){ 
     1015if(isNaN(_12c)){ 
     1016_12c=tops.length; 
     1017} 
     1018item.topIndex=_12c
     1019Element.setStyle(item,{top:top+(_124+2)*_12c+"px"}); 
     1020if(_12c>=_128){ 
    10201021Element.hide(item); 
    1021 var node=this.buildSkipSchedule(_11f+"_"+_120,item); 
     1022var node=this.buildSkipSchedule(_120+"_"+_121,item); 
    10221023if(node){ 
    10231024var left=Element.getStyle(item,"left"); 
    1024 Element.setStyle(node,{top:top+(_123+2)*_12b+"px",left:left}); 
     1025Element.setStyle(node,{top:top+(_124+2)*_12c+"px",left:left}); 
    10251026} 
    10261027return node; 
    10271028} 
    1028 },buildSkipSchedule:function(_12f,item){ 
    1029 var id=this.calendar.element.id.appendSuffix(_12f); 
     1029},buildSkipSchedule:function(_130,item){ 
     1030var id=this.calendar.element.id.appendSuffix(_130); 
    10301031if(!this.skipNode[id]){ 
    1031 var _132=this.getAdjustSize()+(UserAgent.isIE()?0.5:0); 
    1032 var _133=this.column.width+_132-1+"px"; 
    1033 var node=Builder.node("a",{id:id,style:"display: block; z-index: 1000; cursor: pointer; width: "+_133+";",href:"javascript:void(0);"},["more"]); 
     1032var _133=this.getAdjustSize()+(UserAgent.isIE()?0.5:0); 
     1033var _134=this.column.width+_133-1+"px"; 
     1034var node=Builder.node("a",{id:id,style:"display: block; z-index: 1000; cursor: pointer; width: "+_134+";",href:"javascript:void(0);"},["more"]); 
    10341035this.calendar.css.addClassNames(node,"skipNode"); 
    10351036node.skipId=id; 
     
    10431044return item.cellIndex+i; 
    10441045}); 
    1045 },setScheduleBaseStyle:function(item,_138,_139,_13a){ 
    1046 var _13b=this.column.height; 
    1047 var top=_13b*_138+this.column.dateTextHeight; 
    1048 var _13d=this.getAdjustSize()+(UserAgent.isIE()?0.5:0); 
    1049 Element.setStyle(item,{top:top+"px",width:this.column.width*_13a+_13d*(_13a-1)+"px",left:this.column.width*_139+_139*_13d+"px"}); 
     1046},setScheduleBaseStyle:function(item,_139,_13a,_13b){ 
     1047var _13c=this.column.height; 
     1048var top=_13c*_139+this.column.dateTextHeight; 
     1049var _13e=this.getAdjustSize()+(UserAgent.isIE()?0.5:0); 
     1050Element.setStyle(item,{top:top+"px",width:this.column.width*_13b+_13e*(_13b-1)+"px",left:this.column.width*_13a+_13a*_13e+"px"}); 
    10501051},afterBuild:function(){ 
    1051 var _13e=this.getTooltipId(); 
    1052 if($(_13e)){ 
    1053 Element.appendToBody(_13e); 
     1052var _13f=this.getTooltipId(); 
     1053if($(_13f)){ 
     1054Element.appendToBody(_13f); 
    10541055} 
    10551056this.scheduleNodes=[]; 
     
    10641065this.setSelector(); 
    10651066var self=this; 
    1066 var _140=this.calendar.options.displayIndexes; 
    1067 var _141=this.getDragDistance(); 
    1068 var _142=$R(0,$(this.getCalendarTableId()).rows.length).map(function(){ 
     1067var _141=this.calendar.options.displayIndexes; 
     1068var _142=this.getDragDistance(); 
     1069var _143=$R(0,$(this.getCalendarTableId()).rows.length).map(function(){ 
    10691070return []; 
    10701071}); 
    10711072var date=this.calendar.date; 
    1072 var _144=DateUtil.getFirstDate(date.getFullYear(),date.getMonth()); 
    1073 var _145=_144.days(); 
    1074 var _146=DateUtil.getLastDate(date.getFullYear(),date.getMonth()).days(); 
    1075 self.calendar.options.schedules.each(function(_147,_148){ 
    1076 var _149=self.toDate(_147.start); 
    1077 var _14a=_149.days(); 
    1078 var _14b=self.toDate(_147.finish); 
    1079 var _14c=_14b.days(); 
    1080 var days=self.getDayDiff(_147); 
    1081 if(_147.finish.hour==0&&_147.finish.min==0){ 
     1073var _145=DateUtil.getFirstDate(date.getFullYear(),date.getMonth()); 
     1074var _146=_145.days(); 
     1075var _147=DateUtil.getLastDate(date.getFullYear(),date.getMonth()).days(); 
     1076self.calendar.options.schedules.each(function(_148,_149){ 
     1077var _14a=self.toDate(_148.start); 
     1078var _14b=_14a.days(); 
     1079var _14c=self.toDate(_148.finish); 
     1080var _14d=_14c.days(); 
     1081var days=self.getDayDiff(_148); 
     1082if(_148.finish.hour==0&&_148.finish.min==0){ 
    10821083days--; 
    10831084} 
    1084 if((_14a>=_145&&_14a<=_146)||(_14c>=_145&&_14c<=_146)){ 
    1085 if(!_144.sameMonth(_149)){ 
    1086 _149=_144
    1087 } 
    1088 self.setSchedule(_147,_142,_141,days); 
     1085if((_14b>=_146&&_14b<=_147)||(_14d>=_146&&_14d<=_147)){ 
     1086if(!_145.sameMonth(_14a)){ 
     1087_14a=_145
     1088} 
     1089self.setSchedule(_148,_143,_142,days); 
    10891090} 
    10901091}); 
     
    11111112} 
    11121113} 
    1113 },setSchedule:function(_150,_151,_152,days){ 
    1114 var _154=[]; 
    1115 var _155=6; 
    1116 var _156=DateUtil.toDate(_150.start); 
    1117 var date=_156
    1118 var _158=this.calendar.options.displayIndexes; 
    1119 var _159=this.calendar.date; 
    1120 var _15a=this.calendar.options.noEvent; 
    1121 var _15b=this.calendar.options.clickSkipNode; 
     1114},setSchedule:function(_151,_152,_153,days){ 
     1115var _155=[]; 
     1116var _156=6; 
     1117var _157=DateUtil.toDate(_151.start); 
     1118var date=_157
     1119var _159=this.calendar.options.displayIndexes; 
     1120var _15a=this.calendar.date; 
     1121var _15b=this.calendar.options.noEvent; 
     1122var _15c=this.calendar.options.clickSkipNode; 
    11221123while(days>=0){ 
    1123 var _15c=this.getLastWday(date); 
    1124 var _15d=days+1; 
    1125 var _15e=date.getDay(); 
    1126 var _15f=date.advance({days:_15d-1}); 
    1127 if(_15f.getTime()>_15c.getTime()){ 
    1128 _15f=_15c
    1129 _15d=_15f.days()-date.days()+1; 
    1130 } 
    1131 var _160=_15f.getDay(); 
    1132 var _161=null; 
    1133 if(_15e<=_160){ 
    1134 _161=$R(_15e,_160,false); 
    1135 }else{ 
    1136 _161=$R(0,_160,false).toArray().concat($R(_15e,_155,false).toArray()); 
    1137 } 
    1138 var _162=_161.findAll(function(day){ 
    1139 return _158.include(day); 
     1124var _15d=this.getLastWday(date); 
     1125var _15e=days+1; 
     1126var _15f=date.getDay(); 
     1127var _160=date.advance({days:_15e-1}); 
     1128if(_160.getTime()>_15d.getTime()){ 
     1129_160=_15d
     1130_15e=_160.days()-date.days()+1; 
     1131} 
     1132var _161=_160.getDay(); 
     1133var _162=null; 
     1134if(_15f<=_161){ 
     1135_162=$R(_15f,_161,false); 
     1136}else{ 
     1137_162=$R(0,_161,false).toArray().concat($R(_15f,_156,false).toArray()); 
     1138} 
     1139var _163=_162.findAll(function(day){ 
     1140return _159.include(day); 
    11401141}).length; 
    1141 var _164=new Date(date.getTime()); 
    1142 while(_164.days()<=_15f.days()){ 
    1143 if(_164.getMonth()==_159.getMonth()){ 
    1144 var _165=this.getCellPosition(_164.getDate()); 
    1145 if(_165){ 
    1146 var _166=_165.rowIndex; 
    1147 var _167=_165.cellIndex; 
    1148 var _168=this.buildSchedule(_150,_156.sameDate(_164)); 
    1149 var item=_168.first(); 
    1150 item.length=_162
    1151 item.cellIndex=_167
    1152 item.cellDate=_164
     1142var _165=new Date(date.getTime()); 
     1143while(_165.days()<=_160.days()){ 
     1144if(_165.getMonth()==_15a.getMonth()){ 
     1145var _166=this.getCellPosition(_165.getDate()); 
     1146if(_166){ 
     1147var _167=_166.rowIndex; 
     1148var _168=_166.cellIndex; 
     1149var _169=this.buildSchedule(_151,_157.sameDate(_165)); 
     1150var item=_169.first(); 
     1151item.length=_163
     1152item.cellIndex=_168
     1153item.cellDate=_165
    11531154this.container.appendChild(item); 
    1154 this.setScheduleBaseStyle(item,_166,_167,_162); 
    1155 var _16a=this.adjustScheduleStyle(item,_166,_167,_151[_166]); 
    1156 if(_16a){ 
    1157 this.container.appendChild(_16a); 
    1158 Event.observe(_16a,"click",this.clickSkipNode.bindAsEventListener(this,_164)); 
    1159 Event.observe(_16a,"mouseover",this.showTooltip.bindAsEventListener(this,_16a.skipId,_164)); 
    1160 Event.observe(_16a,"mouseout",this.hideTooltip.bindAsEventListener(this)); 
    1161 } 
    1162 if(!_15a&&((_150.edit==undefined)||_150.edit)){ 
    1163 this.setDraggable(item,_168.last(),_152); 
     1155this.setScheduleBaseStyle(item,_167,_168,_163); 
     1156var _16b=this.adjustScheduleStyle(item,_167,_168,_152[_167]); 
     1157if(_16b){ 
     1158this.container.appendChild(_16b); 
     1159Event.observe(_16b,"click",this.clickSkipNode.bindAsEventListener(this,_165)); 
     1160Event.observe(_16b,"mouseover",this.showTooltip.bindAsEventListener(this,_16b.skipId,_165)); 
     1161Event.observe(_16b,"mouseout",this.hideTooltip.bindAsEventListener(this)); 
     1162} 
     1163if(!_15b&&((_151.edit==undefined)||_151.edit)){ 
     1164this.setDraggable(item,_169.last(),_153); 
    11641165this.setResize(item); 
    11651166} 
    1166 _151[_166].push(item); 
     1167_152[_167].push(item); 
    11671168this.scheduleNodes.push(item); 
    11681169break; 
    11691170}else{ 
    1170 if(_158.include(_164.getDay())){ 
    1171 _162--; 
     1171if(_159.include(_165.getDay())){ 
     1172_163--; 
    11721173}else{ 
    11731174this.hasInvisibleSchedule=true; 
     
    11751176} 
    11761177}else{ 
    1177 if(_158.include(_164.getDay())){ 
    1178 _162--; 
    1179 } 
    1180 } 
    1181 _164=_164.advance({days:1}); 
    1182 } 
    1183 if(_154.length==0){ 
    1184 days-=_15d
     1178if(_159.include(_165.getDay())){ 
     1179_163--; 
     1180} 
     1181} 
     1182_165=_165.advance({days:1}); 
     1183} 
     1184if(_155.length==0){ 
     1185days-=_15e
    11851186}else{ 
    11861187days-=7; 
    11871188} 
    1188 var date=_15f.advance({days:1}); 
     1189var date=_160.advance({days:1}); 
    11891190if(item){ 
    1190 _154.push(item); 
     1191_155.push(item); 
    11911192} 
    11921193} 
    11931194var self=this; 
    1194 if(!_15a){ 
    1195 _154.each(function(item){ 
    1196 Event.observe(item,"mouseover",self.mouseOverSubSchedule.bind(this,_154)); 
    1197 Event.observe(item,"mouseout",self.mouseOutSubSchedule.bind(this,_154)); 
     1195if(!_15b){ 
     1196_155.each(function(item){ 
     1197Event.observe(item,"mouseover",self.mouseOverSubSchedule.bind(this,_155)); 
     1198Event.observe(item,"mouseout",self.mouseOutSubSchedule.bind(this,_155)); 
    11981199}); 
    11991200} 
     
    12021203this.calendar.setIndex(); 
    12031204} 
    1204 var _16e=this.calendar.wdays.indexOf(date.getDay())+1; 
    1205 return date.advance({days:this.calendar.wdays.length-_16e}); 
     1205var _16f=this.calendar.wdays.indexOf(date.getDay())+1; 
     1206return date.advance({days:this.calendar.wdays.length-_16f}); 
    12061207},setSelector:function(){ 
    1207 var _16f=$(this.getSelectorId()); 
    1208 Element.setStyle(_16f,{width:this.column.width+"px",height:this.column.height-2+"px"}); 
    1209 Element.setOpacity(_16f,0.6); 
    1210 },setDraggable:function(item,_171,_172){ 
     1208var _170=$(this.getSelectorId()); 
     1209Element.setStyle(_170,{width:this.column.width+"px",height:this.column.height-2+"px"}); 
     1210Element.setOpacity(_170,0.6); 
     1211},setDraggable:function(item,_172,_173){ 
    12111212var self=this; 
    1212 var _174=Position.cumulativeOffset(this.container); 
    1213 var _175=$(this.getSelectorId()); 
    1214 var _176=this.column.width+(UserAgent.isIE()?0.5:0); 
    1215 var _177=this.column.height+(UserAgent.isIE()?1:0); 
    1216 var _178=this.rowMax||$(this.getCalendarTableId()).rows.length; 
    1217 var _179=this.calendar.options.displayIndexes.length-1; 
    1218 var _17a=this.getAdjustSize(); 
    1219 new Draggable(item,{handle:_171,scroll:window,starteffect:Prototype.emptyFunction,endeffect:Prototype.emptyFunction,onStart:function(_17b){ 
    1220 Element.show(_175); 
    1221 },onDrag:function(_17c,_17d){ 
    1222 var _17e=_17c.element; 
    1223 var top=parseInt(Element.getStyle(_17e,"top"),10); 
    1224 var _180=Math.floor(top/_177); 
    1225 var left=parseInt(Element.getStyle(_17e,"left"),10); 
    1226 var _182=Math.floor(left/_176); 
    1227 if((_182>=0&&_180>=0)&&(_182<=_179&&_180<=_178)){ 
    1228 Element.setStyle(_175,{left:_176*_182+_17a*_182+"px",top:_177*_180+"px"}); 
    1229 } 
    1230 },onEnd:function(_183){ 
    1231 Element.hide(_175); 
    1232 self.changeSchedule(_183); 
     1213var _175=Position.cumulativeOffset(this.container); 
     1214var _176=$(this.getSelectorId()); 
     1215var _177=this.column.width+(UserAgent.isIE()?0.5:0); 
     1216var _178=this.column.height+(UserAgent.isIE()?1:0); 
     1217var _179=this.rowMax||$(this.getCalendarTableId()).rows.length; 
     1218var _17a=this.calendar.options.displayIndexes.length-1; 
     1219var _17b=this.getAdjustSize(); 
     1220new Draggable(item,{handle:_172,scroll:window,starteffect:Prototype.emptyFunction,endeffect:Prototype.emptyFunction,onStart:function(_17c){ 
     1221Element.show(_176); 
     1222},onDrag:function(_17d,_17e){ 
     1223var _17f=_17d.element; 
     1224var top=parseInt(Element.getStyle(_17f,"top"),10); 
     1225var _181=Math.floor(top/_178); 
     1226var left=parseInt(Element.getStyle(_17f,"left"),10); 
     1227var _183=Math.floor(left/_177); 
     1228if((_183>=0&&_181>=0)&&(_183<=_17a&&_181<=_179)){ 
     1229Element.setStyle(_176,{left:_177*_183+_17b*_183+"px",top:_178*_181+"px"}); 
     1230} 
     1231},onEnd:function(_184){ 
     1232Element.hide(_176); 
     1233self.changeSchedule(_184); 
    12331234}}); 
    12341235},setResize:function(item){ 
    12351236var self=this; 
    1236 new CalendarResizeableEx(item,{left:0,top:0,bottom:0,distance:this.column.width,restriction:true,resize:function(_186){ 
    1237 self.updateTirm(_186); 
     1237new CalendarResizeableEx(item,{left:0,top:0,bottom:0,distance:this.column.width,restriction:true,resize:function(_187){ 
     1238self.updateTirm(_187); 
    12381239}}); 
    1239 },getDate:function(_187){ 
     1240},getDate:function(_188){ 
    12401241var date=this.calendar.date; 
    1241 if(_187.constructor==String){ 
    1242 return new Date(date.getFullYear(),date.getMonth(),_187); 
    1243 }else{ 
    1244 return new Date(date.getFullYear(),date.getMonth(),_187.id.getSuffix()); 
    1245 } 
    1246 },abstractSelect:function(_189,_18a){ 
    1247 var _18b=null; 
     1242if(_188.constructor==String){ 
     1243return new Date(date.getFullYear(),date.getMonth(),_188); 
     1244}else{ 
     1245return new Date(date.getFullYear(),date.getMonth(),_188.id.getSuffix()); 
     1246} 
     1247},abstractSelect:function(_18a,_18b){ 
     1248var _18c=null; 
    12481249if(this.calendar.options.size=="large"){ 
    1249 _18b=this.findClickedElement(_189); 
    1250 }else{ 
    1251 _18b=Event.element(_189); 
    1252 if(_18b.tagName!="TD"){ 
    1253 _18b=Element.getParentByTagName(["TD"],_18b); 
    1254 } 
    1255 } 
    1256 if(_18b&&_18b.id&&!_18b.id.match(/emptyRow/)){ 
    1257 var date=this.getDate(_18b); 
    1258 _18a(date,_18b); 
     1250_18c=this.findClickedElement(_18a); 
     1251}else{ 
     1252_18c=Event.element(_18a); 
     1253if(_18c.tagName!="TD"){ 
     1254_18c=Element.getParentByTagName(["TD"],_18c); 
     1255} 
     1256} 
     1257if(_18c&&_18c.id&&!_18c.id.match(/emptyRow/)){ 
     1258var date=this.getDate(_18c); 
     1259_18b(date,_18c); 
    12591260} 
    12601261},getSelectedTerm:function(){ 
    12611262var self=this; 
    1262 var _18e=this.calendar.getSelected(); 
    1263 return [_18e.first(),_18e.last()].map(function(e){ 
     1263var _18f=this.calendar.getSelected(); 
     1264return [_18f.first(),_18f.last()].map(function(e){ 
    12641265return self.getDate(e); 
    12651266}); 
    1266 },selectDay:function(_190){ 
    1267 var _191=this.calendar; 
    1268 var th=Event.element(_190); 
     1267},selectDay:function(_191){ 
     1268var _192=this.calendar; 
     1269var th=Event.element(_191); 
    12691270if(th.tagName!="TH"){ 
    12701271th=Element.getParentByTagName("TH",th); 
     
    12721273this.iterateTable({doCell:function(cell){ 
    12731274if((cell.cellIndex==th.cellIndex)&&cell.id){ 
    1274 _191.addSelectedClass(cell); 
     1275_192.addSelectedClass(cell); 
    12751276} 
    12761277}}); 
    1277 },inspectArgument:function(_194,time){ 
     1278},inspectArgument:function(_195,time){ 
    12781279var self=this; 
    1279 var _197=this.calendar.getSelected(); 
    1280 var _198=[]; 
    1281 self.calendar.recurrence(_194,function(o){ 
     1280var _198=this.calendar.getSelected(); 
     1281var _199=[]; 
     1282self.calendar.recurrence(_195,function(o){ 
    12821283if(!o.date){ 
    1283 _197.each(function(d){ 
    1284 var _19b={}; 
     1284_198.each(function(d){ 
     1285var _19c={}; 
    12851286if(!o.date){ 
    1286 _19b={date:self.getDate(d)}; 
     1287_19c={date:self.getDate(d)}; 
    12871288if(time){ 
    1288 _19b.start={hour:0,min:0}; 
    1289 _19b.finish={hour:0,min:0}; 
    1290 } 
    1291 } 
    1292 Object.extend(_19b,o); 
    1293 _198.push(_19b); 
     1289_19c.start={hour:0,min:0}; 
     1290_19c.finish={hour:0,min:0}; 
     1291} 
     1292} 
     1293Object.extend(_19c,o); 
     1294_199.push(_19c); 
    12941295}); 
    12951296}else{ 
    12961297if(o.date.constructor==Object){ 
    12971298o.date=new Date(o.date.year,o.date.month,o.date.day); 
    1298 _198.push(o); 
    1299 }else{ 
    1300 _198.push(o); 
    1301 } 
    1302 } 
    1303 }); 
    1304 return _198
     1299_199.push(o); 
     1300}else{ 
     1301_199.push(o); 
     1302} 
     1303} 
     1304}); 
     1305return _199
    13051306},inspectDateArgument:function(date){ 
    13061307if(date){ 
     
    13151316return map; 
    13161317}else{ 
    1317 var _19e=this; 
    1318 var _19f=this.calendar.getSelected(); 
    1319 if(_19f.length==0){ 
     1318var _19f=this; 
     1319var _1a0=this.calendar.getSelected(); 
     1320if(_1a0.length==0){ 
    13201321return null; 
    13211322} 
    1322 return _19f.collect(function(d){ 
    1323 return _19e.getDate(d); 
    1324 }); 
    1325 } 
    1326 },findClickedElement:function(_1a1){ 
    1327 var _1a2=$(this.getScheduleContainerId()); 
    1328 var _1a3=Position.cumulativeOffset(_1a2); 
    1329 var _1a4=Position.realOffset(_1a2).last(); 
    1330 _1a4-=document.documentElement.scrollTop||document.body.scrollTop; 
    1331 var x=Event.pointerX(_1a1)-_1a3[0]; 
    1332 var y=Event.pointerY(_1a1)-_1a3[1]+_1a4
    1333 var _1a7=Math.floor(y/this.column.height); 
    1334 var _1a8=Math.floor(x/this.column.width); 
    1335 return $(this.calendarTable.rows[_1a7].cells[_1a8]); 
    1336 },multipleSelection:function(_1a9){ 
     1323return _1a0.collect(function(d){ 
     1324return _19f.getDate(d); 
     1325}); 
     1326} 
     1327},findClickedElement:function(_1a2){ 
     1328var _1a3=$(this.getScheduleContainerId()); 
     1329var _1a4=Position.cumulativeOffset(_1a3); 
     1330var _1a5=Position.realOffset(_1a3).last(); 
     1331_1a5-=document.documentElement.scrollTop||document.body.scrollTop; 
     1332var x=Event.pointerX(_1a2)-_1a4[0]; 
     1333var y=Event.pointerY(_1a2)-_1a4[1]+_1a5
     1334var _1a8=Math.floor(y/this.column.height); 
     1335var _1a9=Math.floor(x/this.column.width); 
     1336return $(this.calendarTable.rows[_1a8].cells[_1a9]); 
     1337},multipleSelection:function(_1aa){ 
    13371338if(!this.calendar.selectedBase||!this.calendar.mouseDown){ 
    13381339return; 
    13391340} 
    13401341var self=this; 
    1341 var _1ab=this.calendar; 
    1342 var _1ac=this.calendar.selectedBase; 
    1343 this.abstractSelect(_1a9,function(date,_1ae){ 
    1344 var _1af=$(_1ac.id); 
    1345 var _1b0=_1ab.createRange(parseInt(_1af.id.getSuffix()),parseInt(_1ae.id.getSuffix())); 
     1342var _1ac=this.calendar; 
     1343var _1ad=this.calendar.selectedBase; 
     1344this.abstractSelect(_1aa,function(date,_1af){ 
     1345var _1b0=$(_1ad.id); 
     1346var _1b1=_1ac.createRange(parseInt(_1b0.id.getSuffix()),parseInt(_1af.id.getSuffix())); 
    13461347self.iterateTable({doCell:function(cell){ 
    13471348if(cell.tagName!="TD"||!cell.id){ 
     
    13491350} 
    13501351var id=parseInt(cell.id.getSuffix(),10); 
    1351 if(_1b0.include(id)){ 
    1352 _1ab.addSelectedClass(cell); 
    1353 }else{ 
    1354 _1ab.removeSelectedClass(cell); 
     1352if(_1b1.include(id)){ 
     1353_1ac.addSelectedClass(cell); 
     1354}else{ 
     1355_1ac.removeSelectedClass(cell); 
    13551356} 
    13561357}}); 
    13571358}); 
    13581359},iterateTable:function(){ 
    1359 var _1b3=Object.extend({doTable:null,doRow:null,doCell:null},arguments[0]); 
    1360 var _1b4=$(this.getCalendarTableId()); 
    1361 if(_1b3.doTable){ 
    1362 _1b3.doTable(_1b4); 
    1363 } 
    1364 $A(_1b4.rows).each(function(row){ 
    1365 if(_1b3.doRow){ 
    1366 _1b3.doRow(row); 
     1360var _1b4=Object.extend({doTable:null,doRow:null,doCell:null},arguments[0]); 
     1361var _1b5=$(this.getCalendarTableId()); 
     1362if(_1b4.doTable){ 
     1363_1b4.doTable(_1b5); 
     1364} 
     1365$A(_1b5.rows).each(function(row){ 
     1366if(_1b4.doRow){ 
     1367_1b4.doRow(row); 
    13671368} 
    13681369$A(row.cells).each(function(cell){ 
    1369 if(_1b3.doCell){ 
    1370 _1b3.doCell(cell); 
    1371 } 
    1372 }); 
    1373 }); 
    1374 },findRow:function(_1b7){ 
    1375 var _1b8=$(this.getCalendarTableId()); 
    1376 return $A(_1b8.rows).detect(function(row){ 
    1377 return row.rowIndex==_1b7
    1378 }); 
    1379 },findCell:function(_1ba,_1bb){ 
    1380 return $A(this.findRow(_1ba).cells).detect(function(cell){ 
    1381 return cell.cellIndex==_1bb
     1370if(_1b4.doCell){ 
     1371_1b4.doCell(cell); 
     1372} 
     1373}); 
     1374}); 
     1375},findRow:function(_1b8){ 
     1376var _1b9=$(this.getCalendarTableId()); 
     1377return $A(_1b9.rows).detect(function(row){ 
     1378return row.rowIndex==_1b8
     1379}); 
     1380},findCell:function(_1bb,_1bc){ 
     1381return $A(this.findRow(_1bb).cells).detect(function(cell){ 
     1382return cell.cellIndex==_1bc
    13821383}); 
    13831384},getDateId:function(date){ 
     
    13971398return {cellIndex:cell.cellIndex,rowIndex:row.rowIndex}; 
    13981399} 
    1399 },changeSchedule:function(_1c3){ 
    1400 var _1c4=_1c3.element; 
    1401 var _1c5=_1c4.schedule; 
    1402 this.calendar.cacheSchedule(_1c5); 
    1403 var top=parseInt(Element.getStyle(_1c4,"top"),10); 
    1404 var _1c7=Math.floor(top/this.column.height); 
    1405 var left=parseInt(Element.getStyle(_1c4,"left"),10); 
    1406 var _1c9=Math.floor(left/this.column.width); 
    1407 var _1ca=$(this.getCalendarTableId()); 
    1408 var _1cb=_1ca.rows.length-1; 
    1409 var _1cc=this.calendar.options.displayIndexes.length-1; 
    1410 if((_1c9>=0&&_1c7>=0)&&(_1c9<=_1cc&&_1c7<=_1cb)){ 
    1411 var cell=this.findCell(_1c7,_1c9); 
     1400},changeSchedule:function(_1c4){ 
     1401var _1c5=_1c4.element; 
     1402var _1c6=_1c5.schedule; 
     1403this.calendar.cacheSchedule(_1c6); 
     1404var top=parseInt(Element.getStyle(_1c5,"top"),10); 
     1405var _1c8=Math.floor(top/this.column.height); 
     1406var left=parseInt(Element.getStyle(_1c5,"left"),10); 
     1407var _1ca=Math.floor(left/this.column.width); 
     1408var _1cb=$(this.getCalendarTableId()); 
     1409var _1cc=_1cb.rows.length-1; 
     1410var _1cd=this.calendar.options.displayIndexes.length-1; 
     1411if((_1ca>=0&&_1c8>=0)&&(_1ca<=_1cd&&_1c8<=_1cc)){ 
     1412var cell=this.findCell(_1c8,_1ca); 
    14121413var date=new Date(this.calendar.date.getTime()); 
    1413 var _1cf=_1c4.cellDate.days()-DateUtil.toDate(_1c5.start).days(); 
    1414 date.setDate(parseInt(cell.id.getSuffix(),10)-_1cf); 
    1415 var diff=this.getDayDiff(_1c5); 
    1416 var _1d1=date.advance({days:diff}); 
    1417 if(_1c5.start.month==date.getMonth()&&_1c5.start.day==date.getDate()&&_1c5.finish.month==_1d1.getMonth()&&_1c5.finish.day==_1d1.getDate()){ 
     1414var _1d0=_1c5.cellDate.days()-DateUtil.toDate(_1c6.start).days(); 
     1415date.setDate(parseInt(cell.id.getSuffix(),10)-_1d0); 
     1416var diff=this.getDayDiff(_1c6); 
     1417var _1d2=date.advance({days:diff}); 
     1418if(_1c6.start.month==date.getMonth()&&_1c6.start.day==date.getDate()&&_1c6.finish.month==_1d2.getMonth()&&_1c6.finish.day==_1d2.getDate()){ 
    14181419this.calendar.refreshSchedule(); 
    14191420return; 
    14201421} 
    1421 _1c5.start.year=date.getFullYear(); 
    1422 _1c5.start.month=date.getMonth(); 
    1423 _1c5.start.day=date.getDate(); 
    1424 _1c5.finish.year=_1d1.getFullYear(); 
    1425 _1c5.finish.month=_1d1.getMonth(); 
    1426 _1c5.finish.day=_1d1.getDate(); 
     1422_1c6.start.year=date.getFullYear(); 
     1423_1c6.start.month=date.getMonth(); 
     1424_1c6.start.day=date.getDate(); 
     1425_1c6.finish.year=_1d2.getFullYear(); 
     1426_1c6.finish.month=_1d2.getMonth(); 
     1427_1c6.finish.day=_1d2.getDate(); 
    14271428this.calendar.refreshSchedule(); 
    1428 this.calendar.options.changeSchedule(_1c5); 
     1429this.calendar.options.changeSchedule(_1c6); 
    14291430}else{ 
    14301431this.calendar.refreshSchedule(); 
    14311432} 
    1432 },updateTirm:function(_1d2){ 
    1433 var _1d3=_1d2.schedule; 
    1434 var _1d4=parseInt(Element.getStyle(_1d2,"width")); 
    1435 var top=parseInt(Element.getStyle(_1d2,"top")); 
    1436 var left=parseInt(Element.getStyle(_1d2,"left")); 
    1437 var _1d7=Math.round((left+_1d4)/this.column.width)-1; 
    1438 var _1d8=Math.round(top/this.column.height); 
    1439 var cell=this.findCell(_1d8,_1d7); 
    1440 var _1da=_1d3.finish; 
    1441 var _1db=null; 
     1433},updateTirm:function(_1d3){ 
     1434var _1d4=_1d3.schedule; 
     1435var _1d5=parseInt(Element.getStyle(_1d3,"width")); 
     1436var top=parseInt(Element.getStyle(_1d3,"top")); 
     1437var left=parseInt(Element.getStyle(_1d3,"left")); 
     1438var _1d8=Math.round((left+_1d5)/this.column.width)-1; 
     1439var _1d9=Math.round(top/this.column.height); 
     1440var cell=this.findCell(_1d9,_1d8); 
     1441var _1db=_1d4.finish; 
     1442var _1dc=null; 
    14421443if(this.dateMap){ 
    1443 _1db=this.dateMap[cell.id].toHash(); 
    1444 }else{ 
    1445 _1db=new Date(this.calendar.date.getTime()); 
    1446 _1db.setDate(parseInt(cell.id.getSuffix(),10)); 
    1447 _1db=_1db.toHash(); 
    1448 } 
    1449 _1db.hour=_1da.hour; 
    1450 _1db.min=_1da.min; 
    1451 if(DateUtil.toDate(_1d3.start).getTime()>=DateUtil.toDate(_1db).getTime()){ 
    1452 var _1dc=23; 
    1453 var _1dd=55; 
    1454 if(_1d3.start.hour==_1dc&&_1d3.start.min==_1dd){ 
     1444_1dc=this.dateMap[cell.id].toHash(); 
     1445}else{ 
     1446_1dc=new Date(this.calendar.date.getTime()); 
     1447_1dc.setDate(parseInt(cell.id.getSuffix(),10)); 
     1448_1dc=_1dc.toHash(); 
     1449} 
     1450_1dc.hour=_1db.hour; 
     1451_1dc.min=_1db.min; 
     1452if(DateUtil.toDate(_1d4.start).getTime()>=DateUtil.toDate(_1dc).getTime()){ 
     1453var _1dd=23; 
     1454var _1de=55; 
     1455if(_1d4.start.hour==_1dd&&_1d4.start.min==_1de){ 
    14551456this.calendar.refreshSchedule(); 
    14561457this.calendar.options.updateTirm(); 
    14571458return; 
    14581459}else{ 
    1459 _1db.hour=_1dc
    1460 _1db.min=_1dd
    1461 } 
    1462 } 
    1463 _1d3.finish=_1db
     1460_1dc.hour=_1dd
     1461_1dc.min=_1de
     1462} 
     1463} 
     1464_1d4.finish=_1dc
    14641465this.calendar.refreshSchedule(); 
    1465 this.calendar.options.updateTirm(_1d3); 
    1466 },getTimeText:function(_1de,_1df){ 
    1467 var _1e0=this.calendar; 
    1468 return _1e0.formatTime(_1de); 
    1469 },getDayDiff:function(_1e1){ 
    1470 return DateUtil.numberOfDays(this.toDate(_1e1.start),this.toDate(_1e1.finish)); 
     1466this.calendar.options.updateTirm(_1d4); 
     1467},getTimeText:function(_1df,_1e0){ 
     1468var _1e1=this.calendar; 
     1469return _1e1.formatTime(_1df); 
     1470},getDayDiff:function(_1e2){ 
     1471return DateUtil.numberOfDays(this.toDate(_1e2.start),this.toDate(_1e2.finish)); 
    14711472}}); 
    14721473var CalendarWeek=Class.create(); 
    14731474CalendarWeek.id=["calTable","columnContainer","columnHeader","column","next","pre","headerText"]; 
    14741475Object.extend(CalendarWeek.prototype,AbstractCalendar.prototype); 
    1475 Object.extend(CalendarWeek.prototype,{initialize:function(_1e2){ 
    1476 this.calendar=_1e2
    1477 var _1e3=this.getWeek(); 
    1478 this.week=_1e3[0]; 
    1479 this.invisibleWeek=_1e3[1]; 
     1476Object.extend(CalendarWeek.prototype,{initialize:function(_1e3){ 
     1477this.calendar=_1e3
     1478var _1e4=this.getWeek(); 
     1479this.week=_1e4[0]; 
     1480this.invisibleWeek=_1e4[1]; 
    14801481this.ids=SpinelzUtil.concat(this.calendar.element.id,CalendarWeek.id); 
    14811482this.setDisplayTime(); 
     
    14831484return "<td class='"+this.calendar.classNames.preYears+"'>"+"<div id='"+this.ids.pre+"' class='"+this.calendar.classNames.preWeekMark+"'></div>"+"</td>"; 
    14841485},buildHeaderCenter:function(){ 
    1485 var _1e4=[]; 
     1486var _1e5=[]; 
    14861487if(this.calendar.options.weekHeaderFormat){ 
    1487 _1e4=[this.formatHeaderDate(this.week.first()),"-",this.formatHeaderDate(this.week.last())]; 
    1488 } 
    1489 return "<td class='"+this.calendar.classNames.years+"'>"+"<span class='"+this.calendar.classNames.ym+"'>"+(_1e4[0]||this.week[0].toDateString())+"</span>"+"<span class='"+this.calendar.classNames.ym+"'>"+(_1e4[1]||"-")+"</span>"+"<span class='"+this.calendar.classNames.ym+"'>"+(_1e4[2]||this.week.last().toDateString())+"</span>"+"</td>"; 
     1488_1e5=[this.formatHeaderDate(this.week.first()),"-",this.formatHeaderDate(this.week.last())]; 
     1489} 
     1490return "<td class='"+this.calendar.classNames.years+"'>"+"<span class='"+this.calendar.classNames.ym+"'>"+(_1e5[0]||this.week[0].toDateString())+"</span>"+"<span class='"+this.calendar.classNames.ym+"'>"+(_1e5[1]||"-")+"</span>"+"<span class='"+this.calendar.classNames.ym+"'>"+(_1e5[2]||this.week.last().toDateString())+"</span>"+"</td>"; 
    14901491},formatHeaderDate:function(date){ 
    14911492if(this.calendar.options.weekHeaderFormat){ 
     
    14961497return "<td class='"+this.calendar.classNames.nextYears+"' align='right'>"+"<div id='"+this.ids.next+"' class='"+this.calendar.classNames.nextWeekMark+"'></div>"+"</td>"; 
    14971498},buildCalendar:function(){ 
    1498 var _1e6=(this.calendar.options.displayTimeLine)?this.buildTimeLine():""; 
    1499 _1e6+=this.buildCalendarContainer(); 
    1500 return "<table id='"+this.ids.columnContainer+"' class='"+this.calendar.classNames.weekTable+"'>"+"<tr>"+_1e6+"</tr>"+"</table>"; 
     1499var _1e7=(this.calendar.options.displayTimeLine)?this.buildTimeLine():""; 
     1500_1e7+=this.buildCalendarContainer(); 
     1501return "<table id='"+this.ids.columnContainer+"' class='"+this.calendar.classNames.weekTable+"'>"+"<tr>"+_1e7+"</tr>"+"</table>"; 
    15011502},buildTimeLine:function(){ 
    15021503var time=new Date(); 
    1503 var hour=0,_1e9=24; 
     1504var hour=0,_1ea=24; 
    15041505time.setHours(hour); 
    15051506time.setMinutes(0); 
    1506 var _1ea=this.buildTimeLineTop(); 
     1507var _1eb=this.buildTimeLineTop(); 
    15071508var now=new Date().getHours(); 
    1508 while(hour<_1e9){ 
     1509while(hour<_1ea){ 
    15091510if(this.includeDisplayTime(hour)){ 
    1510 var _1ec="pointer: default;"; 
    1511 if(_1ea.length==0){ 
    1512 _1ec+="border-top: none;"; 
    1513 } 
    1514 var _1ed=this.calendar.classNames.timeLineTime; 
     1511var _1ed="pointer: default;"; 
     1512if(_1eb.length==0){ 
     1513_1ed+="border-top: none;"; 
     1514} 
     1515var _1ee=this.calendar.classNames.timeLineTime; 
    15151516if(hour==now){ 
    1516 _1ed+=" "+this.calendar.classNames.highlightTime; 
    1517 } 
    1518 _1ea+="<div class='"+_1ed+"' style='"+_1ec+"'>"+this.formatTime(time)+"</div>"; 
     1517_1ee+=" "+this.calendar.classNames.highlightTime; 
     1518} 
     1519_1eb+="<div class='"+_1ee+"' style='"+_1ed+"'>"+this.formatTime(time)+"</div>"; 
    15191520} 
    15201521hour++; 
    15211522time.setHours(hour); 
    15221523} 
    1523 return "<td class='"+this.calendar.classNames.timeLine+"'>"+_1ea+"</td>"; 
     1524return "<td class='"+this.calendar.classNames.timeLine+"'>"+_1eb+"</td>"; 
    15241525},buildTimeLineTop:function(){ 
    15251526return "<div class='"+this.calendar.classNames.timeLineTimeTop+"'></div>"; 
     
    15271528return "<td>"+"<table class='"+this.calendar.classNames.weekMainTable+"'>"+this.buildCalendarHeader()+this.buildCalendarMain()+"</table>"+"</td>"; 
    15281529},buildCalendarHeader:function(){ 
    1529 var _1ee=this.calendar.options.displayIndexes; 
     1530var _1ef=this.calendar.options.displayIndexes; 
    15301531var ths=""; 
    1531 var _1f0=new Date().days(); 
    1532 var _1f1=100/_1ee.length+"%"; 
    1533 var _1f2=this.calendar.element.id.appendSuffix(this.ids.column); 
    1534 var _1f3=this.calendar.element.id.appendSuffix(this.ids.headerText); 
     1532var _1f1=new Date().days(); 
     1533var _1f2=100/_1ef.length+"%"; 
     1534var _1f3=this.calendar.element.id.appendSuffix(this.ids.column); 
     1535var _1f4=this.calendar.element.id.appendSuffix(this.ids.headerText); 
    15351536this.headers=[]; 
    1536 var _1f4=this.calendar.options.noEvent; 
    1537 var _1f5=(this.calendar.options.weekSubHeaderFormat)?new Template(this.calendar.options.weekSubHeaderFormat):null; 
    1538 this.week.each(function(w,_1f7){ 
     1537var _1f5=this.calendar.options.noEvent; 
     1538var _1f6=(this.calendar.options.weekSubHeaderFormat)?new Template(this.calendar.options.weekSubHeaderFormat):null; 
     1539this.week.each(function(w,_1f8){ 
    15391540var text=null; 
    1540 if(_1f5){ 
    1541 text=_1f5.evaluate({month:w.getMonth().succ(),day:w.getDate(),wday:this.calendar.options.dayOfWeek[w.getDay()]}); 
     1541if(_1f6){ 
     1542text=_1f6.evaluate({month:w.getMonth().succ(),day:w.getDate(),wday:this.calendar.options.dayOfWeek[w.getDay()]}); 
    15421543}else{ 
    15431544text=w.toDateString().split(" "); 
     
    15451546text=text.join(" "); 
    15461547} 
    1547 var _1f9=(w.days()==_1f0)?this.calendar.classNames.highlightDay:""; 
    1548 var _1fa=_1f3.appendSuffix(_1f7); 
     1548var _1fa=(w.days()==_1f1)?this.calendar.classNames.highlightDay:""; 
     1549var _1fb=_1f4.appendSuffix(_1f8); 
    15491550var node="<div class='"+this.calendar.classNames.headerColumn+"'>"; 
    1550 if(_1f4){ 
    1551 node+="<span='#' id='"+_1fa+"' class='"+_1f9+"' style='cursor: default;'>"+text+"</a>"; 
    1552 }else{ 
    1553 node+="<a href='#' id='"+_1fa+"' class='"+_1f9+"'>"+text+"</a>"; 
     1551if(_1f5){ 
     1552node+="<span='#' id='"+_1fb+"' class='"+_1fa+"' style='cursor: default;'>"+text+"</a>"; 
     1553}else{ 
     1554node+="<a href='#' id='"+_1fb+"' class='"+_1fa+"'>"+text+"</a>"; 
    15541555} 
    15551556node+="</div>"; 
    1556 this.headers.push({id:_1fa,wday:w}); 
    1557 ths+="<th id='"+_1f2.appendSuffix(_1f7)+"' width='"+_1f1+"'>"+node+"</th>"; 
     1557this.headers.push({id:_1fb,wday:w}); 
     1558ths+="<th id='"+_1f3.appendSuffix(_1f8)+"' width='"+_1f2+"'>"+node+"</th>"; 
    15581559}.bind(this)); 
    15591560return "<tr>"+"<td>"+"<table class='"+this.calendar.classNames.weekMainTable+"'>"+"<tr>"+ths+"</tr>"+"</table>"+"</td>"+"</tr>"; 
    15601561},buildCalendarMain:function(){ 
    1561 var _1fc=this.calendar.options.displayIndexes; 
     1562var _1fd=this.calendar.options.displayIndexes; 
    15621563var tds=""; 
    1563 var _1fe=100/_1fc.length+"%"; 
     1564var _1ff=100/_1fd.length+"%"; 
    15641565this.dateMap={}; 
    1565 this.week.each(function(w,_200){ 
    1566 var _201=this.calendar.options.schedules[w.toDateString()]; 
    1567 var _202=""; 
     1566this.week.each(function(w,_201){ 
     1567var _202=this.calendar.options.schedules[w.toDateString()]; 
     1568var _203=""; 
    15681569var i=0,j=0; 
    15691570while(i<24){ 
    15701571if(this.includeDisplayTime(i)){ 
    1571 var _205=""; 
    1572 if(_202.length==0){ 
    1573 _205=this.calendar.classNames.columnTopDate; 
     1572var _206=""; 
     1573if(_203.length==0){ 
     1574_206=this.calendar.classNames.columnTopDate; 
    15741575}else{ 
    15751576if(i%1==0){ 
    1576 _205=this.calendar.classNames.columnDate; 
    1577 }else{ 
    1578 _205=this.calendar.classNames.columnDateOdd; 
    1579 } 
    1580 } 
    1581 var id=this.getDateId(w,i,_200); 
     1577_206=this.calendar.classNames.columnDate; 
     1578}else{ 
     1579_206=this.calendar.classNames.columnDateOdd; 
     1580} 
     1581} 
     1582var id=this.getDateId(w,i,_201); 
    15821583var hour=i/1; 
    15831584var min=i%1*60; 
    15841585this.dateMap[id]=new Date(w.getFullYear(),w.getMonth(),w.getDate(),hour,min,0); 
    1585 _202+="<div id='"+id+"' class='"+_205+"'></div>"; 
     1586_203+="<div id='"+id+"' class='"+_206+"'></div>"; 
    15861587} 
    15871588i+=0.5; 
    15881589} 
    1589 tds+="<td width='"+_1fe+"'>"+_202+"</td>"; 
     1590tds+="<td width='"+_1ff+"'>"+_203+"</td>"; 
    15901591}.bind(this)); 
    15911592return "<tr>"+"<td>"+"<div id='"+this.getScheduleContainerId()+"' class='"+this.calendar.classNames.scheduleContainer+"' style='position: relative;'>"+"<table id='"+this.getCalendarTableId()+"' class='"+this.calendar.classNames.weekMainTable+"' style='position: relative;'>"+"<tr>"+tds+"</tr>"+"</table>"+"</div>"+"</td>"+"</tr>"; 
     
    15951596var rule=CssUtil.getCssRuleBySelectorText("."+Calendar.className.columnDate); 
    15961597this.column.height=parseInt(rule.style["height"],10)+1; 
    1597 },buildSchedule:function(_20b){ 
    1598 var id="scheduleItem_"+_20b.id; 
    1599 var _20d=(_20b.edit==undefined||_20b.edit); 
     1598},buildSchedule:function(_20c){ 
     1599var id="scheduleItem_"+_20c.id; 
     1600var _20e=(_20c.edit==undefined||_20c.edit); 
    16001601var item=Builder.node("DIV",{id:id}); 
    16011602this.calendar.css.addClassNames(item,"scheduleItemLarge"); 
    1602 var _20f=this.calendar.options.noEvent; 
    1603 var _210={}; 
    1604 if(_20b.background_color){ 
    1605 _210.backgroundColor=_20b.background_color; 
    1606 
    1607 if(_20b.frame_color){ 
    1608 _210.border="2px solid "+_20b.frame_color; 
    1609 
    1610 if(_20f){ 
    1611 _210.cursor="default"; 
    1612 
    1613 Element.setStyle(item,_210); 
    1614 if(_20d){ 
    1615 var _211=Builder.node("DIV",{id:"scheduleDeleteImg_"+_20b.id,className:this.calendar.css.joinClassNames("deleteImg")}); 
    1616 Element.hide(_211); 
    1617 item.appendChild(_211); 
    1618 if(!_20f){ 
    1619 Event.observe(_211,"click",this.clickDeleteImage.bind(this,_20b)); 
    1620 Event.observe(item,"mouseover",this.showDeleteImage.bind(this,_211)); 
    1621 Event.observe(item,"mouseout",this.hideDeleteImage.bind(this,_211)); 
    1622 
    1623 
    1624 if(!_20f&&this.calendar.options.dblclickSchedule){ 
    1625 Event.observe(item,"dblclick",this.calendar.options.dblclickSchedule.bind(this,_20b)); 
    1626 
    1627 var _212=null; 
    1628 if(_20d){ 
    1629 _212=Builder.node("DIV",{className:this.calendar.css.joinClassNames("scheduleHandler")}); 
    1630 if(_20f){ 
     1603var _210=this.calendar.options.noEvent; 
     1604var _211={}; 
     1605if(_20c.background_color){ 
     1606_211.backgroundColor=_20c.background_color; 
     1607
     1608if(_20c.frame_color){ 
     1609_211.border="2px solid "+_20c.frame_color; 
     1610
     1611if(_210){ 
     1612_211.cursor="default"; 
     1613
     1614Element.setStyle(item,_211); 
     1615if(_20e){ 
     1616var _212=Builder.node("DIV",{id:"scheduleDeleteImg_"+_20c.id,className:this.calendar.css.joinClassNames("deleteImg")}); 
    16311617Element.hide(_212); 
    1632 } 
    16331618item.appendChild(_212); 
     1619if(!_210){ 
     1620Event.observe(_212,"click",this.clickDeleteImage.bind(this,_20c)); 
     1621Event.observe(item,"mouseover",this.showDeleteImage.bind(this,_212)); 
     1622Event.observe(item,"mouseout",this.hideDeleteImage.bind(this,_212)); 
     1623} 
     1624} 
     1625if(!_210&&this.calendar.options.dblclickSchedule){ 
     1626Event.observe(item,"dblclick",this.calendar.options.dblclickSchedule.bind(this,_20c)); 
     1627} 
     1628var _213=null; 
     1629if(_20e){ 
     1630_213=Builder.node("DIV",{className:this.calendar.css.joinClassNames("scheduleHandler")}); 
     1631if(_210){ 
     1632Element.hide(_213); 
     1633} 
     1634item.appendChild(_213); 
    16341635} 
    16351636var icon=null; 
    1636 if(_20b.icon){ 
    1637 icon=Builder.node("IMG",{src:_20b.icon,alt:"icon",style:"float: left;",width:16,height:16}); 
     1637if(_20c.icon){ 
     1638icon=Builder.node("IMG",{src:_20c.icon,alt:"icon",style:"float: left;",width:16,height:16}); 
    16381639item.appendChild(icon); 
    16391640} 
    1640 if(!_20b.publicity){ 
     1641if(!_20c.publicity){ 
    16411642if(Calendar.privateImgPath){ 
    16421643icon=Builder.node("IMG",{src:Calendar.privateImgPath,alt:"private",style:"float: left;",width:16,height:16}); 
    16431644item.appendChild(icon); 
    16441645}else{ 
    1645 icon=Builder.node("DIV",{id:"private_img_"+_20b.id}); 
     1646icon=Builder.node("DIV",{id:"private_img_"+_20c.id}); 
    16461647this.calendar.css.addClassNames(icon,"privateImg"); 
    16471648item.appendChild(icon); 
    16481649} 
    16491650} 
    1650 var text=this.getTimeText(_20b.start,_20b.finish); 
    1651 var _215=Builder.node("DIV",{id:id+"_text"},[text]); 
    1652 this.calendar.css.addClassNames(_215,"scheduleTimeArea"); 
    1653 item.appendChild(_215); 
    1654 var _216=_20b.description.unescapeHTML(); 
    1655 item.appendChild(Builder.node("DIV",{id:id+"_description"},[_216])); 
    1656 item.title=text.replace(/ /g,"")+" "+_216
    1657 item.schedule=_20b
    1658 return [item,_212]; 
    1659 },adjustScheduleStyle:function(item,_218,_219){ 
    1660 var _21a=item.schedule; 
    1661 var time=this.convertHours(_21a); 
    1662 var _21c=time[0]; 
    1663 var _21d=time[1]; 
     1651var text=this.getTimeText(_20c.start,_20c.finish); 
     1652var _216=Builder.node("DIV",{id:id+"_text"},[text]); 
     1653this.calendar.css.addClassNames(_216,"scheduleTimeArea"); 
     1654item.appendChild(_216); 
     1655var _217=_20c.description.unescapeHTML(); 
     1656item.appendChild(Builder.node("DIV",{id:id+"_description"},[_217])); 
     1657item.title=text.replace(/ /g,"")+" "+_217
     1658item.schedule=_20c
     1659return [item,_213]; 
     1660},adjustScheduleStyle:function(item,_219,_21a){ 
     1661var _21b=item.schedule; 
     1662var time=this.convertHours(_21b); 
     1663var _21d=time[0]; 
     1664var _21e=time[1]; 
    16641665var same=[]; 
    16651666var self=this; 
    1666 _219.each(function(h){ 
    1667 var _221=self.convertHours(h.schedule); 
    1668 var _222=_221[0]; 
    1669 var _223=_221[1]; 
    1670 if(((_222<=_21c)&&(_223>_21c))||((_222<_21d)&&(_223>=_21d))||((_21c<=_222)&&(_21d>_222))||((_21c<_223)&&(_21d>=_223))){ 
     1667_21a.each(function(h){ 
     1668var _222=self.convertHours(h.schedule); 
     1669var _223=_222[0]; 
     1670var _224=_222[1]; 
     1671if(((_223<=_21d)&&(_224>_21d))||((_223<_21e)&&(_224>=_21e))||((_21d<=_223)&&(_21e>_223))||((_21d<_224)&&(_21e>=_224))){ 
    16711672same.push(h); 
    16721673} 
    16731674}); 
    1674 var _224=_218*this.getAdjustSize(); 
     1675var _225=_219*this.getAdjustSize(); 
    16751676if(UserAgent.isIE()||this.calendar.options.noEvent){ 
    1676 _224+=1; 
    1677 } 
    1678 var left=this.column.width*_218+_224
     1677_225+=1; 
     1678} 
     1679var left=this.column.width*_219+_225
    16791680if(same.length==0){ 
    16801681Element.setStyle(item,{left:left+"px"}); 
    16811682}else{ 
    16821683same.push(item); 
    1683 var _226=parseInt(Element.getStyle(item,"width"),10)/(same.length)-(UserAgent.isIE()?1:2)+1; 
     1684var _227=parseInt(Element.getStyle(item,"width"),10)/(same.length)-(UserAgent.isIE()?1:2)+1; 
    16841685same.each(function(s,i){