 /*
  * Infragistics WebCalendar CSOM Script: ig_calendar.js
  * Version 7.1.20071.40
  * Copyright(c) 2001-2006 Infragistics, Inc. All Rights Reserved.
  */

//js-version 6.10
//vs
if(typeof igcal_all!="object")
	var igcal_all=new Object();
function igcal_getCalendarById(id,e)
{
	var o,i1=-2;
	if(e!=null)
	{
		while(true)
		{
			if(e==null)return null;
			try{if(e.getAttribute!=null)id=e.getAttribute("calID");}catch(ex){}
			if(!ig_csom.isEmpty(id))break;
			if(++i1>1)return null;
			e=e.parentNode;
		}
		var ids=id.split(",");
		if(ig_csom.isEmpty(ids))return null;
		id=ids[0];
		i1=(ids.length>1)?parseInt(ids[1]):-1;
	}
	if(!id)return null;
	if((o=igcal_all[id])==null)for(var i in igcal_all)if((o=igcal_all[i])!=null)
	{if(o.ID==id||o.ID_==id||o.uniqueId==id)break;o=null;}
	if(o!=null&&i1>-2)o.elemID=i1;
	return o;
}
function igcal_init(id,dates,prop,str)
{
	var o=igcal_all[id],elem=document.getElementById("igcal"+id);
	if(o)
	{
		var e0=o.element;
		if(elem!=e0)
		{
			while(e0&&!e0._moved)e0=e0.parentNode;
			if(e0)e0.parentNode.removeChild(e0);
		}
	}
	var evs=document.getElementById(id);
	if(o&&evs)
	{
		o.Event=o.ownerDC=null;
		ig_dispose(o);
	}
	if(!prop||ig_csom._skipNew||!elem||ig_csom.isEmpty(prop))return;
	o=new igcal_new(elem,id,dates,prop,str);
	o.elemViewState=evs;
	igcal_all[id]=o;
	o.update();
	id=o.Events.initializeCalendar;
	if(!ig_csom.isEmpty(id))o.fireEvt(o,id,null,false);
}
function igcal_new(elem,id,dates,prop,str)
{
	this.valI=function(o,i){o=(o==null||o.length<=i)?null:o[i];return (o==null)?"":o;}
	this.intI=function(o,i){return ig_csom.isEmpty(o=this.valI(o,i))?-1:parseInt(o);}
	this.elemID=-10;
	this.ID=id;
	if(id.indexOf("x_")==0)this.ID_=id.substring(1);
	this.element=elem;
	elem.setAttribute("calID",id);
	this.viewState=new ig_xmlNode();
	var sep=",";
	var i,prop0=dates.split(sep);
	this.nd=function(y,m,d)
	{
		d=new Date(y,--m,d);
		if(y<100&&d.setFullYear!=null)d.setFullYear(y);
		return d;
	}
	this.df=function(d,i)
	{
		if(i==0)return d.getFullYear();
		if(i==1)return d.getMonth()+1;
		return (i==2)?d.getDate():d.getDay();
	}
	this.Days=new Array(42);
	var o=new Date();
	this.today=new Array(4);
	this.today[0]=this.df(o,0);
	this.today[1]=this.df(o,1);
	this.today[2]=this.df(o,2);
	this.today[3]=-1;
	this.selDate=new Array(4);
	this.selDate[0]=this.intI(prop0,0);
	this.selDate[1]=this.intI(prop0,1);
	this.selDate[2]=this.intI(prop0,2);
	this.selDate[3]=-1;
	var year=this.intI(prop0,3),month=this.intI(prop0,4);
	this.MinDate=this.nd(this.intI(prop0,5),this.intI(prop0,6),this.intI(prop0,7));
	this.MaxDate=this.nd(this.intI(prop0,8),this.intI(prop0,9),this.intI(prop0,10));
	this.yearFix=(prop0.length>11)?this.intI(prop0,11):0;
	this.setText=function(e,t)
	{
		var ii=(e.childNodes==null)?0:e.childNodes.length;
		if(t!=" ")for(var i=-1;i<ii;i++)
		{
			var ei=(i<0)?e:e.childNodes[i];
			if(ei.nodeName=="#text"){if(t!=null){ei.nodeValue=t;t=null;}else ei.nodeValue="";}
		}
		if(t==null)return;
		if(e.text!=null){e.text=t;return;}
		if(t==" ")t="&nbsp;";else if(e.innerText!=null){e.innerText=t;return;}
		if(e.innerHTML!=null)e.innerHTML=t;
	}
	this.getText=function(e)
	{
		var ii=(e.childNodes==null)?0:e.childNodes.length,v=null;
		for(var i=-1;i<ii;i++)
		{
			var ei=(i<0)?e:e.childNodes[i];
			if(ei.nodeName=="#text")v=(v==null)?ei.nodeValue:v+" "+ei.nodeValue1;
		}
		if(v!=null)return v;
		if((v=e.text)!=null)return v;
		if((v=e.innerText)!=null)return v;
		if((v=e.innerHTML)!=null)return v;
		return "";
	}
	this.doPost=function(type)
	{
		if(!this.post)return false;
		this.post=false;
		var d=this._post,d0=(new Date()).getTime();
		if(d&&d+300>d0)return false;
		this._post=d0;
		if(type>0)this.update(type);
		try{__doPostBack(this.uniqueId,"");return true;}catch(ex){}
	}
	this.buf=new Object();
	this.fireEvt=function(o,evtName,e,del,sel)
	{
		var evt=this.Event;
		if(evt==null)evt=this.Event=new ig_EventObject();
		evt.reset();
		evt.needPostBack=this.post;
		if(e==null)o=evt=null;
		else if(sel==null)evt.event=e;
		else
		{
			this.buf.year=o.year;
			this.buf.month=o.month;
			this.buf.day=o.day;
			this.buf.index=o.index;
			this.buf.dow=(this.dow+(o.index%7))%7;
			this.buf.element=o.element;
			this.buf.text=o.hide?" ":(""+o.day);
			this.buf.css=e;
			o=this.buf;
			o.selected=sel;
		}
		ig_fireEvent(this,evtName,o,evt);
		if(evt==null)return false;
		this.post=evt.needPostBack&&!evt.cancelPostBack;
		return evt.cancel;
	}
	this.isSelected=function(year,month,day,i)
	{
		if(this.selDate[0]==year&&this.selDate[1]==month&&this.selDate[2]==day)
		{if(i>=0)this.selDate[3]=i;return true;}
		return false;
	}
	this.isSel=function(i){return this.selDate[3]==i;}
	
	this.select=function(year,month,day,date,toggle,i,e,add)
	{
		if(toggle==null){this.selDate[0]=year;this.selDate[1]=month;this.selDate[2]=day;this.selDate[3]=-1;return;}
		var id=this.Events.valueChanging;
		var del=(!toggle&&date==null);
		if(e&&!ig_csom.isEmpty(id))
		{
			if(this.fireEvt(del?this.nd(year,month,day):date,id,e,del))return;
			if(this.doPost(0))return;
		}
		
		id=this.Events.renderDay;
		var o,text=null,sel=this.selDate[3];
		if(sel>=0)
		{
			o=this.Days[sel];
			sel=o.css;
			if(id.length>0)
			{
				if(this.fireEvt(o,id,sel,false,false))o=null;
				else{text=this.buf.text;sel=this.buf.css;}
			}
			if(o!=null){o.element.className=sel;if(text!=null)this.setText(o.element,text);}
		}
		if(toggle){month=year=day=-1;}
		this.selDate[0]=year;
		this.selDate[1]=month;
		this.selDate[2]=day;
		this.selDate[3]=-1;
		if(!toggle)
		{
			if(i<-1)
			{
				if(year!=this.Days[15].year||month!=this.Days[15].month)
				{if(i<-2)this.repaint(year,month,false,e);}
				else for(i=41;i>=0;i--)
					if(year==this.Days[i].year&&month==this.Days[i].month&&day==this.Days[i].day)
						break;
			}
			if(i>-2)if((this.selDate[3]=i)>=0)
			{
				o=this.Days[i];
				sel=o.css+' '+this.css[4];
				text=null;
				if(id.length>0)
				{
					if(this.fireEvt(o,id,sel,false,true))o=null;
					else{text=this.buf.text;sel=this.buf.css;}
				}
				if(o!=null){o.element.className=sel;if(text!=null)this.setText(o.element,text);}
			}
		}
		this.update();
		if(e&&this.onValueChanged)
		{
			this._v=o=del?this.nd(year,month,day):date;
			try{window.setTimeout("try{var c0=igcal_all['"+this.ID+"'];c0.onValueChanged(c0,c0._v);}catch(ex){}",1);}catch(ex){o=1;}
			if(o==1)this.onValueChanged(this,this._v);
		}
		this.post=this.postSel;
		if(e&&!ig_csom.isEmpty(id=this.Events.valueChanged))
			this.fireEvt(del?this.nd(year,month,day):date,id,e,del);
		this.doPost(1);
	}
	prop0=prop.split(sep);
	this.uniqueId=prop0[0];
	this.enabled=!ig_csom.isEmpty(prop0[1]);
	this.allowNull=!ig_csom.isEmpty(prop0[2]);
	this.readOnly=!ig_csom.isEmpty(prop0[3]);
	this.titleFormat=ig_csom.replace(prop0[4],";",",");
	this.dow=this.intI(prop0,5);
	this.nextFormat=this.intI(prop0,6);
	i=this.intI(prop0,7);
	this.fixVis=(i&1)!=0;
	this._hide=(i&2)!=0;
	this.postSel=!ig_csom.isEmpty(prop0[8]);
	this.postVis=!ig_csom.isEmpty(prop0[9]);	
	this.DayNameFormat=this.intI(prop0,10);
	this.VisibleDayNames=this.intI(prop0,11);
	this.css=new Array(6);
	for(i=12;i<18;i++)this.css[i-12]=this.valI(prop0,i);
	this.tabIndex=this.intI(prop0,18);
	o=ig_csom.isEmpty(str)?null:str.split(sep);
	i=o?o.length:0;
	while(i-->0)
		o[i]=ig_csom.replace(ig_csom.replace(o[i],'&coma;',','),'&quot;','\"');
	this.Events={initializeCalendar:this.valI(o,12),dateClicked:this.valI(o,13),
		monthChanged:this.valI(o,14),monthChanging:this.valI(o,15),
		valueChanged:this.valI(o,16),valueChanging:this.valI(o,17),renderDay:this.valI(o,18)};
	var am=new Array(12),m=new Array(12);
	for(i=0;i<12;i++)
	{
		m[i]=o[i];
		if(this.nextFormat>0)
		{
			if(this.nextFormat!=1)am[i]=o[i];
			else if(ig_csom.isEmpty(am[i]=o[19+i]))
				am[i]=o[i].substring(0,3);
		}
	}
	this.info={MonthNames:m,AbbreviatedMonthNames:am};
	this.addLsnr=function(e,s)
	{
		if(!e||e._old)return;
		e._old=true;
		ig_csom.addEventListener(e,"select",ig_cancelEvent);
		ig_csom.addEventListener(e,"selectstart",ig_cancelEvent);
		if(s)
		{
			if(this.tabIndex>=0)ig_csom.addEventListener(e,"keydown",igcal_event);
			return;
		}
		ig_csom.addEventListener(e,"mousedown",ig_cancelEvent);
		ig_csom.addEventListener(e,"click",igcal_event);
	}
	this.addLsnr(elem,true);
	
	this.elems=new Array(8);
	for(i=0;i<8;i++)
	{
		if((elem=document.getElementById(id+"_"+(500+i*2)))!=null)
		{
			this.elems[i]=elem;
			elem.setAttribute("calID",id+","+(500+i*2));
			if(this.tabIndex>=0&&i<5)elem.tabIndex=this.tabIndex;
			if(i>4)continue;
			if(i==2||i==3){if(!elem._old)ig_csom.addEventListener(elem,"change",igcal_event);elem._old=true;}
			else this.addLsnr(elem,false);
		}
	}
	this.setEnabled=function(v)
	{
		this.element.disabled=!(this.enabled=v);
		var e=this.elems[2];if(e)e.disabled=!v;
		e=this.elems[3];if(e)e.disabled=!v;
		if(!this.ownerDC)this.update("Enabled",v,this);
	}
	this.getCellSpacing=function(){return this.elems[6].cellSpacing;}
	this.setCellSpacing=function(v){this.update("CellSpacing",this.elems[6].cellSpacing=v);}
	this.getCellPadding=function(){return this.elems[6].cellPadding;}
	this.setCellPadding=function(v){this.update("CellPadding",this.elems[6].cellPadding=v);}
	this.getGridLineColor=function(){return this.elems[6].borderColor;}
	this.setGridLineColor=function(v){this.update("GridLineColor",this.elems[6].borderColor=v);}
	this.getShowGridLines=function()
	{
		var s=this.elems[6].rules;
		if(s=="cols")return 1;if(s=="rows")return 2;if(s=="all")return 3;return 0;
	}
	this.setShowGridLines=function(v)
	{
		var s="none";
		if(v==1)s="cols";else if(v==2)s="rows";else if(v==3)s="all";else v=0;
		this.elems[6].border=(v==0)?0:1;
		this.elems[6].rules=s;
		this.update("ShowGridLines",v);
	}
	this.ShowNextPrevMonth=this.elems[0]!=null;
	this.ShowTitle=this.elems[5]!=null;
	this.minMax=function(y,m,d)
	{
		m=this.nd(y,m,d);
		d=m.getTime();
		if(d>this.MaxDate.getTime())return this.MaxDate;
		if(d<this.MinDate.getTime())return this.MinDate;
		return null;
	}
	this.repaint=function(year,month,check,e)
	{
		var id=(year==null);
		if(id||year<1)year=this.Days[15].year;
		if(month==null)month=this.Days[15].month;
		if(check==null)check=false;
		if(month<1){month=12;year--;}
		if(month>12){month-=12;year++;}
		var yy,i,o,d=this.minMax(year,month,1);
		if(d!=null){year=this.df(d,0);month=this.df(d,1);}
		if(e!=null&&!ig_csom.isEmpty(o=this.Events.monthChanging))
		{
			if(this.fireEvt((d==null)?this.nd(year,month,1):d,o,e,true))
			{
				if((o=this.elems[2])!=null)o.selectedIndex=this.Days[15].month-1;
				if((o=this.elems[3])!=null)o.selectedIndex=this.Days[15].year-this.year0;
				return;
			}
			if(this.doPost(0))return;
		}
		if((o=this.elems[2])!=null)o.selectedIndex=month-1;
		if((o=this.elems[3])!=null)if(this.year0==null)if((d=o.options)!=null)
			if((d=d[0])!=null)try{this.year0=parseInt(this.getText(d))-this.yearFix;}catch(ex){}
		if(this.year0!=null)
		{
			i=o.options.length;
			var y=year-(i>>1);
			d=this.df(this.MinDate,0);
			if(y<d)y=d;else if(y+i>(d=this.df(this.MaxDate,0)))y=d-i+1;
			if(this.year0!=y)
			{
				while(i-->0)
				{
					yy=y+i+this.yearFix;d=(yy>999)?"":((yy>99)?"0":"00");
					this.setText(o.options[i],d+yy);
				}
				o.selectedIndex=-1;
			}
			o.selectedIndex=year-(this.year0=y);
		}
		if((o=this.Days[15])!=null)
		{
			if(o.year==year&&o.month==month){if(check)return;}
			else check=true;
		}
		else check=false;
		var numDays=(month==2)?28:30;
		d=this.nd(year,month,numDays+1);
		if(this.df(d,1)==month)numDays++;
		d=this.nd(year,month,1);
		i=this.df(d,3)-this.dow;
		var day1=(i<0)?i+7:i;
		if(this.elemID>-10)
		{
			if(this.nextFormat>0)
			{
				o=this.info.AbbreviatedMonthNames;
				this.setText(this.elems[1],o[(month+12)%12]);
				this.setText(this.elems[0],o[(month+10)%12]);
			}
			if(this.elems[5]!=null&&(id||this.Days[15].month!=month||this.Days[15].year!=year))
			{
				d=((yy=year+this.yearFix)<1000)?((yy<100)?"00":"0"):"";
				o=this.titleFormat.replace("#",d+yy).replace("%%",this.info.MonthNames[month-1]).replace("%",""+month);
				this.setText(this.elems[5],o);
			}
		}
		id=this.Events.renderDay;
		d=this.nd(year,month,0);
		var day0=this.df(d,2)-day1+1;
		this.today[3]=this.selDate[3]=-1;
		var sun=(7-this.dow)%7;
		for(i=0;i<42;i++)
		{
			if(this.elemID==-10)
			{
				var elem=null;
				if((elem=document.getElementById(this.ID+"_d"+i))==null)continue;
				elem.setAttribute("calID",this.ID+","+i);
				this.addLsnr(elem,false);
				o=this.Days[i]=new Object();
				o.element=elem;o.calendar=this;o.index=i;
			}
			else o=this.Days[i];
			o.year=year;o.month=month;
			o.css=this.css[0];o.hide=this._hide;
			if(i<day1)
			{
				o.day=day0+i;
				if(--o.month<1){o.month=12;o.year--;}
				o.css+=' '+this.css[2];
			}
			else if(i<day1+numDays){o.day=i-day1+1;o.hide=false;}
			else
			{
				o.day=i+1-(day1+numDays);
				if(++o.month>12){o.month=1;o.year++;}
				o.css+=' '+this.css[2];
			}
			if(!o.hide)if(i%7==sun||i%7==(sun+6)%7)o.css+=' '+this.css[1];
			if(!o.hide)if(o.day==this.today[2]&&o.month==this.today[1]&&o.year==this.today[0])
			{o.css+=' '+this.css[3];this.today[3]=i;}
			var text=o.hide?" ":o.day,sel=!o.hide&&this.isSelected(o.year,o.month,o.day,i);
			d=o.css;
			if(sel)d+=' '+this.css[4];
			if(id.length>0)
			{
				if(this.fireEvt(o,id,d,false,sel))continue;
				o=this.buf;d=this.buf.css;text=this.buf.text;
			}
			else if(this.elemID==-10)continue;
			o.element.className=d;
			this.setText(o.element,text);
		}
		if(this.elemID!=-10)this.update();
		else if(this.tabIndex>=0)
		{
			if((i=this.selDate[3])<0)if((i=this.today[3])<0)i=15;
			this._tab=this.Days[i].element;this._tab.tabIndex=this.tabIndex;
		}
		if(!check||e==null)return;
		this.post=this.postVis;
		if(!ig_csom.isEmpty(o=this.Events.monthChanged))this.fireEvt(this.nd(year,month,1),o,e,true);
		this.doPost(2);
	}
	this.repaint(year,month);
	this.click=function(e)
	{		
		if(this.element.disabled)return;
		var o=this.Days[15];
		var y=o.year,m=o.month;
		var id=this.elemID;
		if(id==504||id==506)
		{
			if(id==504)m=this.elems[2].selectedIndex+1;
			else
			{
				if((y=this.year0)==null)return;
				y+=this.elems[3].selectedIndex;
			}
			this.repaint(y,m,true,e);
			return;
		}
		
		if(id<0)return;
		
		if(id>=500 && id <= 502)this.repaint(y,m+id-501,true,e);
		if(this.readOnly)return;
		
		var d,i=-3,toggle=e.ctrlKey;
		
		if(id==508){y=this.today[0];m=this.today[1];d=this.today[2];toggle=false;}
		else
		{
			if(id>=42)return;
			
			o=this.Days[id];
			id=this.Events.dateClicked;
			y=o.year;m=o.month;d=o.day;
			if(!ig_csom.isEmpty(id))this.fireEvt(this.nd(y,m,d),id,e,true);
			if(this.doPost(0))return;
			if(this._hide&&this.Days[15].month!=m)return;
			if(this.isSel(o.index)){if(!toggle && this.ID.indexOf("_DrpPnl_Calendar1")<2)return;}
			else toggle=false;
			if(!this.fixVis||this.Days[15].month==m)i=o.index;
		}
		if(this.minMax(y,m,d)!=null)return;
		this.select(y,m,d,null,this.allowNull&&toggle,i,e,false);
	}
	this.elemID=-1;
	this.getVisibleMonth=function(){return this.nd(this.Days[15].year,this.Days[15].month,1);}
	this.setVisibleMonth=function(d){if(d!=null)this.repaint(this.df(d,0),this.df(d,1),true);}
	this.getSelectedDate=function(){return (this.selDate[2]<0)?null:this.nd(this.selDate[0],this.selDate[1],this.selDate[2]);}
	this.setSelectedDate=function(date,e)
	{
		var y=-1,m=-1,d=-1;
		if(date!=null){y=this.df(date,0);m=this.df(date,1);d=this.df(date,2);}
		else if(!this.allowNull){y=this.today[0];m=this.today[1];d=this.today[2];}
		if(this.isSelected(y,m,d,-1))return;
		if(d>0)date=this.minMax(y,m,d);
		if(date!=null)
		{
			if(date!=null){y=this.df(date,0);m=this.df(date,1);d=this.df(date,2);}
			if(this.isSelected(y,m,d,-1))return;
		}
		this.select(y,m,d,date,d<1,-3,e,false);
	}
	this.getFirstDayOfWeek=function(){return this.dow;}
	this.setFirstDayOfWeek=function(v)
	{
		if(v==null)return;
		v=(v+7)%7;
		if(v==this.dow||v<0)return;
		var i=-1,x=(v+7-this.dow)%7,old=new Array(7);
		while(++i<7)old[i]=this.getText(this.elems[7].cells[i]);
		while(--i>=0)this.setText(this.elems[7].cells[i],old[(i+x)%7]);
		this.dow=v;
		this.repaint();
		this.update("FirstDayOfWeek",v);
	}
	this.update=function(p,v,p0)
	{
		if(this.elemViewState==null)return "";
		var n=this.viewState.addNode("x",true);
		if(p==null||p.length==null)
		{
			v=this.Days[15].year+"x"+this.Days[15].month+"x"+this.selDate[0]+"x"+this.selDate[1]+"x"+this.selDate[2];
			if(p!=null)v+="x"+p;
			p="PostData";
		}
		else if(p0!=this){n=n.addNode("LAYOUT",true);if(p0!=null)n=n.addNode(p0);}
		n.setPropertyValue(p,v);
		return this.elemViewState.value=this.viewState.getText();
	}
	this.getDateInfo=function(){return this.info;}
	this._key=function(e)
	{
		var id=this.elemID,k=e.keyCode;
		var i=(k==27)?this.ownerDC:null;
		if(i){try{i.setDropDownVisible(false);i.setFocusTop();}catch(i){}return;}
		i=id;
		if(i>499&&i<509&&k==32)this.click(e);
		if(i<0||i>41)return;
		var dd=this.Days[i];
		var y=dd.year,m=dd.month,d=dd.day;
		if(k==32||k==13)
		{
			this.setSelectedDate(new Date(y,m-1,d),e);
			if((d=this.selDate[3])<0)return;
			this._focus(this.Days[d].element);
		}
		if(k==40)i+=7;if(k==38)i-=7;if(k==39)i++;if(k==37)i--;
		if(i==id)return;
		if(i>41){dd=this.Days[41];y=dd.year;m=dd.month;d=dd.day+i-41;}
		else if(i>=0){dd=this.Days[i];y=dd.year;m=dd.month;d=dd.day;}
		else
		{
			if((m=this.Days[15].month-1)<1){y--;m=12;}
			d=this.Days[0].day+i;
			if(d<1){if(this.df(this.nd(y,m,(dd=(m==2)?28:30)+1),1)==m)dd++;d+=dd;}
		}
		if(this.minMax(y,m,d))return;
		if(i<0||i>41||this.Days[i].hide)
		{
			this.repaint(y,m,true,e);
			for(i=0;i<42;i++)if(this.Days[i].day==d&&this.Days[i].month==m)break;
		}
		if(i>=0&&i<42)this._focus(this.Days[i].element);
	}
	this._focus=function(e)
	{
		if(!this._tab)return;
		this._tab.tabIndex=-1;
		if(!e)
		{
			if((e=this.selDate[3])<0)e=this.today[3];
			if(e<0)e=this._tab;else e=this.Days[e].element;
		}
		this._tab=e;e.tabIndex=this.tabIndex;
		try{e.focus();}catch(ex){}
	}
	if(!ig_csom._cal_load){ig_csom.addEventListener(window,"load",igcal_event);ig_csom.addEventListener(window,"unload",igcal_event);ig_csom._cal_load=true;}
	this._load=function()
	{
		var x=0,v=unescape(this.elemViewState.value);
		var i=v.indexOf("PostData=\"");if(i<0)return;
		v=v.substring(i+10);if((i=v.indexOf("\""))<4)return;
		v=v.substring(0,i).split("x");if(v.length<5)return;
		for(i=0;i<5;i++){v[i]=this.intI(v,i);if(i>1&&v[i]!=this.selDate[i-2])x++;}
		if(x<1&&this.Days[15].year==v[0]&&this.Days[15].month==v[1])return;
		this.select(v[2],v[3],v[4]);this.repaint(v[0],v[1]);
	}
}
function igcal_event(e)
{
	if(e==null)if((e=window.event)==null)return;
	var o=e.target,k=igcal_all;
	if(e.type=="load"){for(o in k)if((o=k[o])!=null)o._load();return;}
	if(e.type=="unload"){for(o in k)igcal_init(o);return;}
	if(!o)if((o=e.srcElement)==null)o=this;
	k=e.type=="keydown";
	if(!k&&e.type!="change")if(e.button>1||e.shiftKey||e.altKey)return;
	if((o=igcal_getCalendarById(null,o))!=null)if(k)o._key(e);else o.click(e);
}
