var base_img = 'extras/window/';

if ("undefined"==typeof(RadWindowNamespace)){
	RadWindowNamespace=new Object(); 
}
Object.Extend= function (object,I4){
	for (var o5 in I4){
		//alert(I4[o5]);
		object[o5]=I4[o5]; 
	}
}; 

if(typeof(window.RadControlsNamespace)=="undefined"){
	window.RadControlsNamespace=new Object();
};

RadControlsNamespace.AppendStyleSheet= function (O5,l5,i5){
	if (!i5){return; }
	//alert(i5);
	if (!O5){
		document.write("<"+"link"+" rel\x3d'stylesheet\047\040type=\047text/css\047\040h\162ef=\047"+i5+"\047 />"); 
	}else { 
		var I5=document.createElement("LINK"); 
		I5.rel="stylesheet"; 
		I5.type="text/css"; 
		I5.href=i5; 
		document.getElementById(l5+"StyleSheetHolder").appendChild(I5); 
	}
};
RadWindowNamespace.o6= function (O6){
	return O6.replace(/^\s{1,}/ig,"").replace(/\s{1,}$/ig,""); 
};
RadWindowNamespace.l6= function (text){
	for (var i=1; i<arguments.length; i++){
		text=text.replace(new RegExp("\x5c{"+(i-1)+"\x5c}","ig"),arguments[i]); 
	}
	return text;
}; 
RadWindowNamespace.i6= function (I6,o7){
	var O7=new Array("\045","<",">","!","\042","#","$","&","\047","(",")",",",":","\x3b","=","?","\x5b","\x5c","]","\x5e","\x60","\x7b","|","\x7d","~","+"); 
	var l7=I6; 
	if (o7){
		for (var i=0; i<O7.length; i++){
			l7=l7.replace(new RegExp("\x5cx"+O7[i].charCodeAt(0).toString(16),"ig"),"%"+O7[i].charCodeAt(0).toString(16)); 
		}
	}else {
		for (var i=O7.length-1; i>=0; i--){
			l7=l7.replace(new RegExp("%"+O7[i].charCodeAt(0).toString(16),"ig"),O7[i]); 
		}
	}
	return l7; 
}; 

RadWindowNamespace.i7= {}; 
RadWindowNamespace.i4= function (I7,o8){
	if (I7){
		o8.TopOffset=parseInt(o8.style.top)-RadWindowNamespace.O8(document); 
		o8.l8=parseInt(o8.style.left)-RadWindowNamespace.i8(document); 
		var I8=window.setInterval( function (){RadWindowNamespace.o9(o8); } ,100); 
		RadWindowNamespace.i7[I8]=o8; 
	}else {
		var O9=null; 
		var l9=RadWindowNamespace.i7; 
		for (var name in l9){
			if (l9[name]==o8){
				O9=name; 
				break; 
			}
		}
		if (null!=O9){
			window.clearInterval(O9); 
			RadWindowNamespace.i7[O9]=null; 
		}
		o8.TopOffset=null; 
		o8.l8=null; 
	}
};

RadWindowNamespace.o9= function (o8){
	var left=(o8.l8!=null)?o8.l8+RadWindowNamespace.i8(document):parseInt(o8.style.left); 
	var top=(o8.TopOffset!=null)?o8.TopOffset+RadWindowNamespace.O8(document):parseInt(o8.style.top); 
	if (o8.MoveTo)o8.MoveTo(left,top); 
}; 
RadWindowNamespace.l4= function (i9){
	var Q=GetRadWindowManager(); 
	var I9=Q.oa(); 
	if (i9.o2 && i9.o2.style){
		i9.o2.style.zIndex=I9; 
	}
	i9.style.zIndex=I9; 
}; 
RadWindowNamespace.Oa= function (la,overflow){
	if (la){
		document.body.style.overflow=overflow?overflow: ""; 
		document.documentElement.style.overflow=overflow?overflow: ""; 
	}else {
		document.body.style.overflow="hidden"; 
		document.documentElement.style.overflow="hidden"; 
	}
}; 
RadWindowNamespace.ia= function (S){
	if (!S)S=window; 
	var Ia=S.document; 
	var ob= {} ; 
	if (document.all){
		if (document.documentElement && document.documentElement.clientHeight){
			ob.width=Ia.documentElement.clientWidth; 
			ob.height=Ia.documentElement.clientHeight; 
		} else {
			ob.width=Ia.body.clientWidth; 
			ob.height=Ia.body.clientHeight; 
		}
	}else {
		ob.width=window.innerWidth?parseInt(S.innerWidth):parseInt(Ia.body.clientWidth); 
		ob.height=window.innerHeight?parseInt(S.innerHeight):parseInt(Ia.body.clientHeight); 
	}
	return ob; 
};

RadWindowNamespace.t= function (S){
	if (!S)	S=window; 
	Ia=S.document; 
	var ob= {} ; 
	if (Ia.all && "CSS1Compat"==Ia.compatMode && !S.opera){
		ob.width=Ia.documentElement.clientWidth; 
		ob.height=Ia.documentElement.clientHeight; 
	}else {
		ob.width=window.innerWidth?parseInt(S.innerWidth):parseInt(Ia.body.clientWidth); 
		ob.height=window.innerHeight?parseInt(S.innerHeight):parseInt(Ia.body.clientHeight); 
	}
	ob.top=RadWindowNamespace.O8(Ia); 
	ob.left=RadWindowNamespace.i8(Ia); 
	return ob; 
}; 

RadWindowNamespace.O8= function (Ob){
	if (Ob.documentElement && Ob.documentElement.scrollTop){
		return Ob.documentElement.scrollTop; 
	}else {
		return Ob.body.scrollTop; 
	}
} ; 
RadWindowNamespace.i8= function (Ob){
	if (Ob.documentElement && Ob.documentElement.scrollLeft){
		return Ob.documentElement.scrollLeft; 
	}else {
		return Ob.body.scrollLeft; 
	}
}; 

RadWindowNamespace.lb= {
	ib:function (Ib){
		var computedStyle=this.oc(Ib); 
		return Ib.offsetWidth+this.Oc(computedStyle); 
	} ,
	lc:function (Ib){
		var computedStyle=this.oc(Ib); 
		return Ib.offsetHeight+this.ic(computedStyle); 
	} ,
	Ic:function (Ib){
		var computedStyle=this.oc(Ib); 
		return Ib.offsetWidth-this.od(computedStyle); 
	} ,
	Od:function (Ib){
		var computedStyle=this.oc(Ib); 
		return Ib.offsetHeight-this.ld(computedStyle); 
	} ,
	oe:function (Ib,width){
		var computedStyle=this.oc(Ib); 
		if (computedStyle)width-=this.Oc(computedStyle); 
		if (this.Oe()){
			if (computedStyle)width-=this.od(computedStyle); 
		}
		if (width<0){
			Ib.style.width="auto"; 
		}else {
			Ib.style.width=width+"p\x78"; 
		}
	} ,
	le:function (Ib,height){
		var Ie=height; 
		var computedStyle=this.oc(Ib); 
		height-=this.ic(computedStyle); 
		var of=0; 
		if (this.Oe()){
			of=this.ld(computedStyle); 
			height-=of; 
		}
		Ib.style.height=height+"px"; 
		var Of=this.lc(Ib); 
		if (Of!=0 && Of!=Ie){
			var If=(Of-Ie); 
			var og=(Ie-If); 
			if (og>0){
				Ib.style.height=(og-of)+"px"; 
			}
		}
	} ,
	Og:function (value){
		var lg=parseInt(value); 
		return isNaN(lg)?0:lg; 
	} ,
	Ig:function (style){
		if (!style)return 0; 
		var value=0; 
		for (var i=1; i<arguments.length; i++){
			value+=this.Og(style[arguments[i]]); 
		}
		return value; 
	} ,
	od:function (style){
		return this.Ig(style,"borderLeftWidth","paddingLeft","paddingRight","borderRightWidth"); 
	} ,
	ld:function (style){
		return this.Ig(style,"borderTopWidth","paddingTop","paddingBottom","borderBottomWidth"); 
	} ,
	Oc:function (style){
		return this.Ig(style,"marginLeft","marginRight"); 
	} ,
	ic:function (style){
		return this.Ig(style,"marginTop","marginBottom"); 
	} ,
	oc:function (Ib){
		if (Ib.currentStyle){
			return Ib.currentStyle; 
		}else if (document.defaultView && document.defaultView.getComputedStyle){
			return document.defaultView.getComputedStyle(Ib,null); 
		}else {return null; }
	} ,
	Oe:function (){
		return true; 
	}
} ; 
RadWindowNamespace.oh= function (Ib){
	if (!Ib)Ib=this ; 
	var left=0; 
	var top=0; 
	var width=RadWindowNamespace.lb.ib(Ib); 
	var height=RadWindowNamespace.lb.lc(Ib); 
	while (Ib.offsetParent){
		left+=Ib.offsetLeft; 
		top+=Ib.offsetTop; 
		Ib=Ib.offsetParent; 
	}
	if (Ib.x)left=Ib.x; 
	if (Ib.y)top=Ib.y; 
	var T= {} ; 
	T.left=RadWindowNamespace.Oh(left,0); 
	T.top=RadWindowNamespace.Oh(top,0); 
	T.width=RadWindowNamespace.Oh(width,0); 
	T.height=RadWindowNamespace.Oh(height,0); 
	return T; 
}; 
RadWindowNamespace.lh= function (ih){
	ih=ih.toLowerCase(); 
	if ("ie"==ih)ih="msie"; 
	else if ("mozilla"==ih || "firefox"==ih)ih="compatible"; 
	var Ih=navigator.userAgent.toLowerCase(); 
	oi=Ih.indexOf(ih)+1; 
	if (oi)return true; 
	else return false; 
}; 
RadWindowNamespace.Oi= function (Ob){
	return (null!=document.readyState && "complete"!=document.readyState)? false : true; 
};
RadWindowNamespace.Oh= function (ii,defaultValue){
	if (!defaultValue)defaultValue=0; 
	var Ii=parseInt(ii); 
	return (isNaN(Ii)?defaultValue:Ii); 
}; 
RadWindowNamespace.oj= function (e){
	if (null==e)return null; 
	return (e.srcElement?e.srcElement:e.target); 
}; 

RadWindowNamespace.RadUtil_CancelEvent= function (Oj){
	if (!Oj)return; 
	Oj.returnValue= false; 
	Oj.cancelBubble= true; 
	if (Oj.stopPropagation){
		Oj.stopPropagation(); 
	}
	if (Oj.preventDefault){
		Oj.preventDefault(); 
	}
	return false; 
}; 
RadWindowNamespace.lj= function (Ib,ij,Ij){
	ij=RadWindowNamespace.ok(ij); 
	if (Ib.addEventListener){
		Ib.addEventListener(ij,Ij, false); 
	}
	else if (Ib.attachEvent){Ib.attachEvent(ij,Ij); }
}; 
RadWindowNamespace.Ok= function (Ib,ij,Ij){
	ij=RadWindowNamespace.ok(ij); 
	if (Ib.addEventListener){Ib.removeEventListener(ij,Ij, false); }
	else if (Ib.detachEvent){Ib.detachEvent(ij,Ij); }
}; 
RadWindowNamespace.lk= function (text,value){
	if (typeof(value)!="st\162ing")return false; 
	return (0==text.indexOf(value)); 
}; 
RadWindowNamespace.ok= function (ij){
	ij=ij.toLowerCase(); 
	if (document.addEventListener){
		if (RadWindowNamespace.lk(ij,"on"))return ij.substr(2); 
		else return ij; 
	}else if (document.attachEvent && !RadWindowNamespace.lk(ij,"on")){
		return "on"+ij; 
	}else {return ij; }
};
RadWindowNamespace.O1s=null; 
RadWindowNamespace.C= function (I1i,c,B,o0,l1s){
	if (!I1i || I1i.O0)return; 
	Object.Extend(I1i,RadWindowNamespace.i1s); 
	I1i.I1s=(l1s)? true : false; 
	if (o0!= false){
		Object.Extend(I1i,RadWindowNamespace.l1g); 
		I1i.l1o(); 
	};
	I1i.onmouseout= function (e){
		if (""!=this.style.cursor){ 
			this.style.cursor=""; 
		}
	}; 
	I1i.onmousedown= function (e){
		if (!e)e=window.event; 
		if (this.o1t)this.o1t(); 
		if (!this.DragMode){
			if (this.O1t && this.O1m){ 
				this.DragMode=2; 
				this.l1t(e); 
			} else if (this.I1s && this.i1t(e)){ 
				this.DragMode=1; 
			}
		}
		return RadWindowNamespace.RadUtil_CancelEvent(e); 
	}; 
	I1i.onmouseup= function (e){ 
		this.DragMode=""; 
		RadWindowNamespace.I1t(); 
		if (this.o15){ 
			this.o15(e); 
		}
	}; 
	I1i.onmousemove= function (e){
		if (!e)e=window.event; 
		if (this.DragMode){ 
			this.l1t(e); 
			return; 
		}
		if (this.o1u())return; 
		if (!this.O1u() && null!=this.o1k){ 
			this.O1m=this.o1k(e); 
			this.style.cursor=this.O1m; 
		}
	}; 
	if (B!= false && document.all && !window.opera){
		RadWindowNamespace.l1u(I1i); 
	}
};

RadWindowNamespace.i1s= {
	OnDragStart: null,
	l0:null,
	o15:null,
	i1u:null,
	I1u:null,
	o1v:null,
	I1s:true,
	O1t:true,
	O1v:true,
	DragMode:null,
	l1t:function (Oj){
		if (this.l1v)return; 
		this.i1l=Oj.clientX; 
		this.o1m=Oj.clientY; 
		RadWindowNamespace.lj(document,"onmouseup",RadWindowNamespace.i1v); 
		RadWindowNamespace.lj(document,"onmousemove",RadWindowNamespace.I1v); 
		RadWindowNamespace.O1s=this ; 
		if (this.O1v){ 
			this.i1n=RadWindowNamespace.o1w(); 
			this.i1n.Show(this.i0()); 
		}if (this.OnDragStart){ 
			this.OnDragStart(Oj); 
		} 
		this.O1w=this.style.zIndex; 
		this.style.zIndex=50000; 
		RadWindowNamespace.l1w(this ); 
		this.i1n.style.zIndex=this.style.zIndex+1; 
		this.l1v= true; 
	},
	i1w:function (Oj){
		if (this.i1n){
			var O1k=this.i1n.i0(); 
			if (1==this.DragMode){ 
				this.MoveTo(O1k.left,O1k.top); 
			}else if (2==this.DragMode){ 
				this.SetSize(O1k.width,O1k.height); 
				this.MoveTo(O1k.left,O1k.top); 
			}
		} 
		this.I1w(Oj); 
		if (this.l0){ 
			this.l0(Oj); 
		}
	},
	I1w:function (Oj){
		RadWindowNamespace.O1s=null; 
		this.l1v= false; 
		RadWindowNamespace.I1t(); 
		var Ia=document; 
		RadWindowNamespace.Ok(Ia,"onmouseup",RadWindowNamespace.i1v); 
		RadWindowNamespace.Ok(Ia,"onmousemove",RadWindowNamespace.I1v); 
		if (this.i1n){ 
			this.i1n.Hide(); 
			this.i1n=null; 
		} 
		this.DragMode=""; 
		this.style.zIndex=this.O1w; 
		this.Show(); 
	},
	o1x:function (e){
		if (1==this.DragMode){ 
			this.O0(e); 
		}
		else if (2==this.DragMode){ 
			this.w(e); 
		} 
		this.i1l=e.clientX; 
		this.o1m=e.clientY; 
	},
	i1t:function (Oj){
		var O1x=RadWindowNamespace.oj(Oj); 
		try {
			while (O1x && null!=O1x.getAttribute){
				if (null!=O1x.getAttribute("grip"))
					return O1x; 
				else O1x=O1x.parentNode; 
			}
		}catch (e){}
		return null; 
	},
	O0:function (Oj){
		var l1l=Oj.clientX-this.i1l; 
		var I1l=Oj.clientY-this.o1m; 
		this.i1n.I1n(l1l,I1l); 
	},
	I1n:function (l1l,I1l){
		if (!this.Left){ 
			this.Left=parseInt(this.style.left); 
		}
		if (!this.Top){ 
			this.Top=parseInt(this.style.top); 
		} 
		this.MoveTo(this.Left+l1l,this.Top+I1l); 
	},
	MoveTo:function (x,y){
		if (isNaN(x) || isNaN(y))return; 
		this.Left=x; 
		this.Top=y; 
		this.style.position="absolute"; 
		this.style.left=this.Left+"px"; 
		this.style.top=this.Top+"px"; 
		if (this.l1x){ 
			this.i1x(); 
			this.l1x= false; 
		}
		if (this.o2){ 
			this.o2.style.top=this.style.top; 
			this.o2.style.left=this.style.left; 
		}
	},
	SetSize:function (width,height,fireEvent){
		width=parseInt(width); 
		if (!isNaN(width) && width>=0){
			RadWindowNamespace.lb.oe(this,width); 
			if (this.o2){
				RadWindowNamespace.lb.oe(this.o2,width); 
			}
		}
		height=parseInt(height); 
		if (!isNaN(height) && height>=0){
			RadWindowNamespace.lb.le(this,height); 
			if (this.o2){ 
				this.o2.style.height=height+"px"; 
			}
		}
		if (( false !=fireEvent) && this.i1u && "function"==typeof(this.i1u))this.i1u(); 
	},
	i0:function (){
		if (this ==RadWindowNamespace.O1s && this.i1n && this.i1n.IsVisible()){
			return RadWindowNamespace.oh(this.i1n); 
		}
		else {
			return RadWindowNamespace.oh(this ); 
		}
	},
	SetPosition:function (ob){
		if (ob){ 
			this.MoveTo(ob.left,ob.top); 
			this.SetSize(ob.width,ob.height); 
		}
	},
	o1t:function (){
		var I1x=0; 
		var zIndex=0; 
		var o1y=this.parentNode.childNodes; 
		var node; 
		for (var i=0; i<o1y.length; i++){
			node=o1y[i]; 
			if (1!=node.nodeType) continue; 
			zIndex=parseInt(node.style.zIndex); 
			if (zIndex>I1x){I1x=zIndex; }
		} 
		this.style.zIndex=I1x+1; 
	},
	Show:function (ob){ 
		this.style.display=this.O1y?this.O1y: ""; 
		if (null!=ob){ this.SetPosition(ob); } 
		this.o1t(); 
		if (this.ShowOverlay){ 
			this.ShowOverlay(); 
		}
		if (this.I1u){ 
			this.I1u(); 
		}
	},
	Hide:function (){
		if (!this.IsVisible())return; 
		this.O1y=this.style.display; 
		this.style.display="none"; 
		if (this.l1y){ this.l1y(); }
		if (this.o1v){ this.o1v(); }
	},
	IsVisible:function (){
		return (this.style.display!="none"); 
	},
	O1u:function (){
		return (2==this.DragMode); 
	},
	o1u:function (){
		return (1==this.DragMode); 
	},
	i10:function (){ 
		this.o1k=null; 
		this.w=null; 
		this.l1m=null; 
		this.l1o=null; 
		this.o1o=null; 
		this.onmousemove=null; 
		this.onmouseup=null; 
		this.onmouseout=null; 
		this.onmousedown=null; 
		this.l1t=null; 
		this.i1w=null; 
		this.I1w=null; 
		this.o1x=null;
		this.i1t=null; 
		this.O0=null; 
		this.I1n=null; 
		this.MoveTo=null; 
		this.o1t=null; 
		this.i0=null; 
		this.SetPosition=null; 
		this.i1x=null; 
		this.ShowOverlay=null; 
		this.l1y=null; 
		this.i1y=null; 
		this.Show=null; 
		this.Hide=null; 
		this.IsVisible=null; 
		this.O1u=null; 
		this.o1u=null; 
		this.i1n=null; 
		this.OnDragStart=null; 
		this.l0=null; 
		this.o15=null; 
		this.i1u=null; 
		this.I1u=null; 
		this.o1v=null; 
		this.DragMode=null; 
		this.I1y=null; 
		this.o2=null; 
		this.i1v=null; 
		this.I1v=null; 
	}
};
RadWindowNamespace.i1v= function (e){
	if (!RadWindowNamespace.O1s)return; 
	if (!e)e=window.event; 
	var o1z=RadWindowNamespace.O1s; 
	o1z.i1w(e); 
	o1z.DragMode=""; 
}; 
RadWindowNamespace.O1z=0; 
RadWindowNamespace.I1v= function (e){
	var l1z=RadWindowNamespace.O1s; 
	if (!l1z)return; 
	if (RadWindowNamespace.O1z++%2){
		l1z.o1x(e); 
	}
	RadWindowNamespace.RadUtil_CancelEvent(e); 
};
RadWindowNamespace.I1y=null; 
RadWindowNamespace.o1w= function (){
	if (this.I1y){return this.I1y; }
	var i1z=document.createElement("DI\x56"); 
	document.body.appendChild(i1z); 
	i1z.style.position="absolute"; 
	i1z.style.top=10; 
	i1z.style.left=10; 
	i1z.style.width=100; 
	i1z.style.height=100; 
	i1z.style.display="none"; 
	i1z.className="RadWDragHelper"; 
	RadWindowNamespace.C(i1z, false , false , true); 
	this.I1y=i1z; 
	return i1z; 
}; 
RadWindowNamespace.l1u= function (I1i){
	I1i.i1x= function (){
		var frm=document.createElement("IFRAME"); 
		frm=frm.cloneNode(true); 
		frm.src="javascript:\047';"; 
		frm.frameBorder=0; 
		frm.scrolling="no"; 
		frm.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=0)"; 
		var o1a=frm.style; 
		o1a.overflow="hidden"; 
		this.o2=frm; 

	}; 

	I1i.ShowOverlay= function (){ 
		this.parentNode.insertBefore(this.o2,this ); 
		var o1a=this.o2.style; 
		o1a.display="inline"; 
		o1a.position="absolute"; 
		var ob=this.i0(); 
		o1a.width=ob.width+"px"; 
		o1a.height=ob.height+"px"; 
		o1a.left=ob.left+"px"; 
		o1a.top=ob.top+"px"; 
	}; 

	I1i.l1y= function (){ 
		this.o2.style.display="none"; 
	}; 

	if ("complete"==document.readyState){
		I1i.i1x(); 
	}else {I1i.l1x= true; }
}; 

RadWindowNamespace.I1z= function (){
	if (!this.o20){
		var img=document.createElement("IMG"); 
		if (document.all){
			var O20=new Function("return false"); 
			img.setAttribute("unselectable","on"); 
			img.setAttribute("galleryimg","no"); 
			img.onselectstart=O20; 
			img.ondragstart=O20; 
			img.onmouseover=O20; 
			img.onmousemove=O20; 
		}
		img.onmouseup=RadWindowNamespace.I1t; 
		var o1a=img.style; 
		o1a.display="none"; 
		o1a.position="absolute"; 
		o1a.left=o1a.top="0px"; 
		if (null!=document.readyState && "complete"!=document.readyState){
			RadWindowNamespace.lj(window,"load", function (){document.body.appendChild(img); }); 
		}else {document.body.appendChild(img); } 
		this.o20=img; 
	}
	return this.o20; 
};
RadWindowNamespace.l1w= function (l20){
	var i20=RadWindowNamespace.I1z(); 
	if (i20){
		var I20=RadWindowNamespace.ia(); 
		var o1a=i20.style; 
		o1a.display=""; 
		o1a.width=parseInt(I20.width)+"px"; 
		o1a.height=parseInt(I20.height)+"px"; 
		o1a.top=RadWindowNamespace.O8(i20.ownerDocument); 
		o1a.left=RadWindowNamespace.i8(i20.ownerDocument); 
		if (l20 && l20.style.zIndex){
			var zIndex=l20.style.zIndex; 
			o1a.zIndex=zIndex; 
			l20.style.zIndex=zIndex++; 
		}
	}
}; 
RadWindowNamespace.I1t= function (e){
	var i20=RadWindowNamespace.I1z(); 
	if (i20){ i20.style.display="none"; }
	RadWindowNamespace.i1v(e); 
};

RadWindowMinimizeMode= {I2: 1,g: 2,ik: 1 } ;
RadWindowBehavior= {Ik: 0,w: 1,Minimize: 2,Close: 4,ll: 8,Maximize: 16,O0: 32,Reload: 64,ik: (1+2+4+8+16+32+64)} ; 

function RadWindowInitialize(id,name,il,Il,om,Om,Im,On,In,oo,Oo,Io,op,Op,lp,ip,Ip,oq,Oq,lq,iq,Iq,or,Or,lr,ir,Ir,os,Os){
	var Q=GetRadWindowManager();
	
	if (Il){Q.ls(Oo,Io); return; }
	var S=Q.is(id); 
	S.Is=[]; 
	S.Name=name; 
	S.ot=il; 
	if (Om)S["OnClientShow"]=Om; 
	if (Im)S["onClientClose"]=Im; 
	if (On)S["onClient\x50ageLoad"]=On; 
	if (Os)S.Ot=Os; 
	if (In)S.lt=In; 
	if (oo)S.it=oo; 
	if (om)S.Url=om; 
	if (Oo)S.Width=Oo; 
	if (Io)S.Height=Io; 
	if (op)S.It("Left",op, false); 
	if (Op)S.It("Top",Op, false); 
	if (lp)S.O1=lp; 
	if (ip)S.o3=ip; 
	if (Ip!=RadWindowBehavior.Ik)S.ou=Ip; 
	if (oq!=RadWindowBehavior.ik)S.Ou=oq; 
	if (Oq!=RadWindowMinimizeMode.ik)S.l2=Oq; 
	if (Or!=RadWindowClass.prototype.lu)S.lu=Or; 
	if (lr!=RadWindowClass.prototype.iu)S.iu=lr; 
	if (S.iu){
			var Iu= function (){
				var ov=document.getElementById(S.iu); 
				if (ov){
					var Ov=ov.onclick; 
					ov.onclick= function (e){
						if(Ov) Ov(); 
						S.Show(); 
						if (e)RadWindowNamespace.RadUtil_CancelEvent(e); 
						return false; 
					} ; 
				}
				else alert(S.Id+" (OpenerElementId)- Could not find element on page with id "+S.iu); 
			}; 
			var ov=document.getElementById(S.iu); 
			if (!ov){RadWindowNamespace.lj(window,"load",Iu); }
			else Iu(); 
	}
	if (iq!=null)S.lv=iq; 
	if (Iq!=null)S.iv=Iq; 
	if (or!=null)S.Iv=or; 
	if (ir!=null)S.ow=ir; 
	if (Ir!=null)S.Ow=Ir; 
	if (os!=null)S.lw=os; 
	if (lq!=null)S.iw=lq; 
	S.SetModal(S.iw); 
	S.SetTitle(S.O1); 
	if (S.Iv){S.Show(); }
	return S; 
}

function RadWindowClass(id){ 
	this.IsIE=RadWindowNamespace.lh("ie"); 
	this.Id=id; 
	this.ot=id; 
	this.Name=""; 
	this.BrowserWindow=window; 
}

RadWindowClass.prototype.Ot=null; 
RadWindowClass.prototype.BrowserWindow=null; 
RadWindowClass.prototype.Url=null; 
RadWindowClass.prototype.Width=300; 
RadWindowClass.prototype.Height=300; 
RadWindowClass.prototype.Left=null; 
RadWindowClass.prototype.Top=null; 
RadWindowClass.prototype.O1=""; 
RadWindowClass.prototype.o3=""; 
RadWindowClass.prototype.lu=""; 
RadWindowClass.prototype.iu=""; 
RadWindowClass.prototype.lt=""; 
RadWindowClass.prototype.it=""; 
RadWindowClass.prototype.Iw="en_US"; 
RadWindowClass.prototype.ox= {} ; 
RadWindowClass.prototype.Ox=null; 
RadWindowClass.prototype.Ou=RadWindowBehavior.ik; 
RadWindowClass.prototype.ou=RadWindowBehavior.Ik; 
RadWindowClass.prototype.l2=RadWindowMinimizeMode.ik; 
RadWindowClass.prototype.lx= false; 
RadWindowClass.prototype.ix= false; 
RadWindowClass.prototype.Ix= false; 
RadWindowClass.prototype.R= false; 
RadWindowClass.prototype.iw= false; 
RadWindowClass.prototype.oy= false; 
RadWindowClass.prototype.Oy= false; 
RadWindowClass.prototype.lv= true; 
RadWindowClass.prototype.iv= true; 
RadWindowClass.prototype.Iv= false; 
RadWindowClass.prototype.ly= false; 
RadWindowClass.prototype.ow= false; 
RadWindowClass.prototype.Ow= false; 
RadWindowClass.prototype.iy=null; 
RadWindowClass.prototype.H=null; 
RadWindowClass.prototype.Iy=null; 
RadWindowClass.prototype.oz=null; 
RadWindowClass.prototype.Oz=null; 
RadWindowClass.prototype.i2=null; 
RadWindowClass.prototype.U=null; 
RadWindowClass.prototype.Is=null; 
RadWindowClass.prototype.lw= false; 
RadWindowClass.prototype.lz= function (ij){
	var iz=this[ij]; 
	if (!iz)return; 
	if (typeof(iz)=="string")iz=eval(iz); 
	if (typeof(iz)!="function")return; 
	try {return iz(this ); }
	catch (e){alert("Exception while executing client event "+ij+" Error:"+e.message); 
	} ; 
	return true; 
}; 
RadWindowClass.prototype.Iz= function (){
	try {
		var frm=this.oz; 
		var o10= function (){
			var O10=frm.clientHeight; 
			var l10=frm.contentWindow.document.body.scrollHeight; 
			if (l10>O10){
				frm.style.height=parseInt(l10)+"px"; 
			}
			if (!document.all){
				frm.style.marginTop="-3px"; 
				frm.style.marginBottom="-3p\x78"; 
			}
		}; 
		o10(); 
	}catch (e){}; 
}; 
RadWindowClass.prototype.Dispose= function(){
	try{
		var ov=document.getElementById(this.iu); 
		if (ov)ov.onclick=null; 
		if (this.iy){
			if (this.iy.i10)this.iy.i10(); 
			this.iy=null; 
		}
		if (this.Iy)this.Iy.ondblclick=null; 
		this.Iy=null; 
		this.H=null; 
		this.I10=null; 
		if (this.o11 && this.O11){
			RadWindowNamespace.Ok(this.O11,"click",this.o11); 
			this.o11=null; this.O11=null; 
		}
		if (this.l11){
			RadWindowNamespace.Ok(this.oz,"load",this.l11); 
			this.l11=null; 
		}
		if (this.oz){ 
			this.oz.src="about:blank"; 
			this.oz=null; 
		}
		window[this.ot]=null; 
		this.Oz=null; 
		if (this.i2 && this.i2.Dispose)this.i2.Dispose(); 
		this.i2=null; 
		if (this.i11 && this.i11.Dispose) this.i11.Dispose(); 
		this.i11=null; 
		this.Is=null; 
		this.o1=null; 
		var I11=document.getElementById("WindowHolder_"+this.Id); 
		if (I11){I11.innerHTML=""; }
	}
	catch (e){}
}; 
RadWindowClass.prototype.AttachClientEvent= function (ij,eventHandler){
	if(!eventHandler)return; 
	else{
		if (null==this.Is[ij]){ 
			this.Is[ij]=[]; 
		}
		var o12=this.Is[ij]; 
		if (typeof(eventHandler)=="string"){
			eventHandler=eval(eventHandler); 
		}
		o12[o12.length]=eventHandler; 
	}
}; 

RadWindowClass.prototype.O12= function(ij){
	var l12=this.Is[ij]; 
	if (null!=l12){
		var i12=l12.length; 
		for (var i=0; i<i12; i++){
			try {
				l12[i](this ); 
			}
			catch (e){} ; 
		}
	}
	return true; 
}; 

RadWindowClass.prototype.SetModal= function (I12){ 
	this.iw=I12; 
	if (this.iw && !this.i11){ 
		this.i11=new RadWindowNamespace.RadWindowModal(this ); 
	}else if (!this.iw && this.i11){ 
		this.i11.Dispose(); 
		this.i11=null; 
	}
} ; 
RadWindowClass.prototype.MoveTo= function (x,y){
	var A=this ; 
	var o13= function (){
		x=parseInt(x); 
		y=parseInt(y); 
		A.iy.MoveTo(x,y); 
		if (!A.o1){
			A.o1= {} ; 
		}
		A.o1=A.iy.i0(); 
	};
	if (A.O13){
		window.setTimeout(o13,0); 
		A.O13=null; 
	}else o13(); 
}; 

RadWindowClass.prototype.SetWidth= function (width){
	var T=this.iy.i0(); 
	this.SetSize(width,T.height); 
}; 
RadWindowClass.prototype.SetHeight= function (height){
	var T=this.iy.i0(); 
	this.SetSize(T.width,height); 
}; 
RadWindowClass.prototype.GetWidth= function (){
	var T=this.iy.i0(); 
	if (T.width==0 && this.o1){
		return this.o1.width; 
	}
	return T.width; 
}; 
RadWindowClass.prototype.GetHeight= function (){
	var T=this.iy.i0(); 
	if (T.height==0 && this.o1){
		return this.o1.height; 
	}
	return T.height; 
}; 
RadWindowClass.prototype.GetLeftPosition= function (){
	var T=this.iy.i0(); 
	if (this.l13() || (T.left==0 && this.o1)){
		return this.o1.left; 
	}
	return T.left; 
}; 
RadWindowClass.prototype.GetTopPosition= function (){
	var T=this.iy.i0(); 
	if (this.l13() || (T.top==0 && this.o1)){
		return this.o1.top; 
	}
	return T.top; 
}; 
RadWindowClass.prototype.SetTitle= function (lp){
	if (!lp)return; 
	if (this.H)this.H.innerHTML=lp; 
	this.O1=lp; 
}; 
RadWindowClass.prototype.GetWindowManager= function (){
	return GetRadWindowManager(); 
}; 
RadWindowClass.prototype.i3= function (){
	if (this.IsVisible())return this.iy.i0(); 
	else return this.o1; 
}; 
RadWindowClass.prototype.Center= function (){
	var l=this.iy; 
	var T=RadWindowNamespace.oh(l); 
	var i13=RadWindowNamespace.t(); 
	var Oo=T.width; 
	var Io=T.height; 
	var x=i13.left+((i13.width-parseInt(Oo))/2); 
	var y=i13.top+((i13.height-parseInt(Io))/2); 
	if (!isNaN(x))l.style.left=(x)+"px"; 
	if (!isNaN(y))l.style.top=(y)+"px"; 
}; 
RadWindowClass.prototype.SetVisible= function (I13){
	if (I13){
		if (!this.iy.Show){ 
			this.iy.style.display=""; 
			return; 
		}
		var T=this.o1; 
		if (T){ 
			this.iy.MoveTo(T.left,T.top); 
		} 
		this.iy.Show(); 
		if (T){ 
			this.iy.SetSize(T.width,T.height); 
		} 
		this.R= false; 
	}else {
		if (!this.IsVisible())return; 
		if (this.iy.Hide)this.iy.Hide(); 
		else this.iy.style.display="none"; 
	}
}; 
RadWindowClass.prototype.SetSize= function (width,height){
	var A=this ; 
	var o13= function (){
		var Oo=parseInt(width); 
		var Io=parseInt(height); 
		A.Width=Oo; 
		A.Height=Io; 
		if (A.iy && A.iy.SetSize){
			A.iy.SetSize(Oo,Io); 
		}else {
			A.iy.style.height=Oo+"\160\x78"; 
			A.iy.style.width=Io+"px"; 
		}
		if (A.o1){
			A.o1.width=Oo; 
			A.o1.height=Io; 
		}
	};
	if (A.o14){
		window.setTimeout(o13,0); 
		A.o14=null; 
	}else o13(); 
}; 
RadWindowClass.prototype.I= function (){
	if (!this.iy){
		var Q=GetRadWindowManager(); 
		var O14=this.l14(); 
		var I11=document.createElement("\123\x50AN"); 
		I11.setAttribute("id","WindowHolder_"+this.Id); 
		document.body.appendChild(I11); 
		I11.innerHTML=O14; 
		this.iy=document.getElementById("RadWindowWrapperEle\155ent"+this.Id); 
		this.H=document.getElementById("RadWindowTitle"+this.Id); 
		this.Iy=document.getElementById("RadWindowHeaderRow"+this.Id); 
		this.I10=document.getElementById("RadWStatus"+this.Id); 
		this.oz=document.getElementById("RadWindowContentFrame"+this.Id); 
		this.Oz=document.getElementById("RadWindowLoadingWra\160per"+this.Id); 
		RadWindowNamespace.C(this.iy,c= true ,this.i14,this.W(RadWindowBehavior.w),this.W(RadWindowBehavior.O0)); 
		var I14=this ; 
		this.iy.o15= function (){
			I14.SetActive( true); 
		} ; 
		this.iy.l0= function (){
			I14.o1=I14.iy.i0(); 
			I14.SetActive( true); 
		} ; 
		if (this.W(RadWindowBehavior.Maximize) && this.Iy){ 
			this.Iy.ondblclick= function (){
				I14.ToggleMaximize(); 
			};
		} 
		this.V(); 
	} 
	this.ly= true; 
} ; 

RadWindowClass.prototype.Show= function (){
	var S=this ; 
	var O15= function (){
		var l15= false; 
		if (!S.ly){
			S.I(); 
			if (RadWindowBehavior.Minimize&S.ou){
				S.Minimize(); l15= true; 
			}else if (RadWindowBehavior.Maximize&S.ou){
				S.Maximize(); 
				l15= true; 
			}
		}
		if (S.Url && (!S.oy || S.Ow)){
			S.SetUrl(S.Url); 
		}
		if (l15)return; 
		S.o14= true; 
		S.O13= true; 
		window.setTimeout( function (){
									if (!S.o1){
										 var o8=S.iy; 
										 S.SetSize(S.Width,S.Height); 
										 if (!S.IsVisible()){
											 o8.MoveTo(-3000,-3000); 
											 o8.Show(); 
										 }
										 var T=S.I3(); 
										 x=T.left; 
										 y=T.top; 
										 S.SetVisible( true); 
										 if (S.o14 && S.IsIE && "CSS1Compat"==document.compatMode){
											 o8.SetSize(S.Width,S.Height); 
										 } ; 
										 if (S.O13)S.MoveTo(x,y); 
									}else {
										S.SetVisible( true); 
									}
									if (RadWindowBehavior.ll&S.ou){
										S.Ix= false; 
										S.TogglePin(); 
									}
									if (S.G(RadWindowMinimizeMode.g) && !S.i2){
										S.i2=new RadWindowNamespace.r(S); 
									}
									if(S.iw) S.SetActive(true); 
									S.R= false; 
									S.ix= false; 
									S.O12("onshow"); 
									S.lz("onClientShow"); 
									S.o14=null; 
									S.O13=null; 
								} ,0); 
	};
	if ((null!=document.readyState && "complete"!=document.readyState)){
		RadWindowNamespace.lj(window,"load",O15); 
	}else O15(); 
} ; 
RadWindowClass.prototype.Hide= function (){ 
	this.SetVisible( false); 
} ; 

RadWindowClass.prototype.I3= function (){
	var S=this ; 
	var x=null,y=null; 
	if (S.lu){
		var i15=document.getElementById(S.lu); 
		if (i15){
			var T=RadWindowNamespace.oh(i15); 
			if (T){
				x=(T.left+(this.Left?parseInt(this.Left): 0)); 
				y=(T.top+(this.Top?parseInt(this.Top): 0)); 
			}
		}
	}
	if (null==x || null==y){
		var i13=RadWindowNamespace.t(); 
		x=RadWindowNamespace.i8(document)+(S.Left?parseInt(S.Left): (i13.width-parseInt(S.GetWidth()))/2); 
		y=RadWindowNamespace.O8(document)+(S.Top?parseInt(S.Top): (i13.height-parseInt(S.GetHeight()))/2); 
		var I15=parseInt(S.GetHeight())-i13.height; 
		if (I15>0)y+=I15/2; 
	}return {
		left:x,top:y 
	} ; 
}; 

RadWindowClass.prototype.CallBack= function (o16,O16){
	if ( true !=O16)this.Close(); 
	var o13=this.Ot; 
	if (o13){
		if ("string"==typeof(o13))o13=eval(o13); 
		if ("function"==typeof(o13))o13(this,o16); 
	}
} ; 
RadWindowClass.prototype.V= function (){
	var l16=this ; 
	if (!l16.Argument)l16.Argument= {} ; 
	var i16=this.oz; 
	try {
		if (this.U){
			var A=this.U; 
			A.radWindow=l16; 
		}else {
			i16.radWindow=l16; 
			if (i16.contentWindow!=null){
				i16.contentWindow.radWindow=l16; 
			}
		}
	}catch (e){}
} ; 
RadWindowClass.prototype.GetContentFrame= function (){
	return this.oz; 
} ; 
RadWindowClass.prototype.SetContent= function (I6){ 

	this.V(); 
	var frm=this.oz; 
	if (I6){
		var I16="function GetRadWindow(){"+"var oWindow \x3d null\x3b"+"if \x28window.radWindow\x29 oWindow = window.radWindow;"+"else if \x28window.frameElement.radWindow) oWindow \x3d window.frameElement.radWindow;"+"return oWindow; \x7d"; 
		if (window.opera){
			frm.src=this.Ox+"../../Opera.html"; 
			var A=this ; 
			frm.attachEvent("onload", function (){
												frm.contentWindow.document.body.innerHTML=I6; 
												o17=new RegExp("\x3c(SCRIPT)\x28\x5b^>]\x2a\x29>(\x5b\134s\x5cS]\x2a\077\x29<\x2f\050SCRIPT)\x28\133^\x3e]*)>","ig"); 
												var O17=[]; 
												I6.replace(o17, function (l17,a,b,i17){O17[O17.length]=i17; return l17; } ); 
												var I17=frm.contentWindow.document.body; 
												var o18=I17.getElementsByTagName("SCRIPT"); 
												var O18=o18.length; 
												for (var i=0; i<O18; i++){
													var l18=O17[i]; 
													if (l18.indexOf("GetLocalizedString")>-1){
														var i18=l18.indexOf("GetLocalizedString\x28"); 
														var I18=l18.indexOf(")",i18+19); 
														var o19=l18.substring(i18+20,I18-1); 
														o18[i].parentNode.innerHTML+=A.GetLocalizedString(o19); 
													}
												}
												var Ia=frm.contentWindow.document; 
												var O19=Ia.createElement("SCRIPT"); 
												I17.insertBefore(O19,I17.firstChild); 
												O19.innerHTML=I16; 
												var l19=I17.getElementsByTagName("STYLE"); 
												if (l19 && l19.length>0){
													var i19=new RegExp("<(STYLE)(\x5b\x5e>]*\x29\x3e[\134s\x5cS]*?<\x2f\050ST\x59LE)([\x5e\x3e]*\x29>","ig"); 
													var I19=I6.match(i19); 
													var o1a=l19[0]; 
													if (I19)o1a.innerText=I19; 
												}
											} ); 
		}else {
			var doc=frm.contentWindow.document; 
			doc.write(""); 
			doc.close(); 
			doc.open(); 
			doc.write("<"+"script"+">"+I16+"\x3c"+"/script>"+I6); 
			doc.close(); 
		}
	}
} ; 
RadWindowClass.prototype.GetUrl= function (){
	return this.Url; 
} ; 
RadWindowClass.prototype.SetUrl= function (url){
	var O1a=url; 
	this.Url=O1a; 
	var l1a=O1a; 
	if (this.Ow){
		var O6="rwndrnd\x3d"+Math.random(); 
		if (l1a.indexOf("?")>-1){
			O6="&"+O6; 
		}else {O6="?"+O6; }
		l1a+=O6; 
	} 
	this.oz.src=l1a; 
	if (!this.lw){ 
		this.oz.style.width="0px"; 
		this.oz.style.height="0px"; 
	} 
	this.Oz.style.display=""; 
	var l16=this ; 
	var i1a= function (){
		l16.Oz.style.display="none"; 
		l16.oz.style.width="100%"; 
		l16.oz.style.height="100%"; 
		if (!l16.IsVisible() || l16.IsActive() || l16.IsClosed()){}
		else l16.SetActive( true); 
		try {
			l16.O11=l16.oz.contentWindow.document; 
			l16.o11= function (e){
				if (!l16.IsVisible() || l16.IsActive() || l16.IsClosed())return; 
				l16.SetActive(true); 
			};
			RadWindowNamespace.lj(l16.O11,"click",l16.o11); 
			if (l16.O11.title)l16.SetTitle(l16.O11.title); 
		}
		catch (e){
		}
		l16.lz("onClientPageLoad"); 
		l16.O12("onwindowload"); 
	} ; 
	if (!this.oy){ 
		this.l11=i1a; 
		RadWindowNamespace.lj(this.oz,"load",this.l11); 
		if (window.opera && this.oz.attachEvent)
			this.oz.attachEvent("onload",i1a); 
	} 
	this.oy= true; 
}; 

RadWindowClass.prototype.Reload= function (){ 
	this.Oz.style.display=""; 
	try { 
		this.oz.contentWindow.location.reload(); 
	}
	catch (e){ 
		this.Oz.style.display="none"; 
	}
} ; 
RadWindowClass.prototype.SetActive= function (setActive){
	if ( false !=setActive){
		var I1a=this.Url; 
		try {
			I1a=this.oz.contentWindow.location.href; 
		}
		catch (e){
			I1a=""; 
		}
		if (!this.o1b()){ 
			this.SetStatus(I1a?I1a: ""); 
		} 
		this.O1b( true); 
		RadWindowNamespace.l4(this.iy); 
		var Q=GetRadWindowManager(); 
		var l1b=Q.GetActiveWindow(); 
		if (this ==l1b)return; else Q.i1b(this ); 
	}
} ; 
RadWindowClass.prototype.v= function (setActive){ 
	this.O1b(setActive); 
	if (setActive){
		var o8=this.iy; 
		if (!this.IsIE && (this.l2!=RadWindowMinimizeMode.g)){
			o8.Hide(); o8.Show(); 
		}
	} 
	this.O12(setActive?"onactivate": "ondeactivate"); 
} ; 

RadWindowClass.prototype.SetStatus= function (z){
	if (this.I10){ 
		this.I10.value=z; 
	}
} ; 
RadWindowClass.prototype.o1b= function (){
	if (this.I10)return this.I10.value; 
} ; 
RadWindowClass.prototype.Minimize= function (){
	if (!this.ly || this.R || this.ix)return; 
	this.iy.Hide(); 
	RadWindowNamespace.Oa( true); 
	this.ix= true; 
	this.lx= false; 
	var Q=GetRadWindowManager(); 
	if (this ==Q.GetActiveWindow()){
		Q.ActiveWindow=null; 
	}
	if (!this.i2)this.i2=new RadWindowNamespace.r(this ); 
	this.O12("onminimize"); 
} ; 
RadWindowClass.prototype.ToggleMaximize= function (){
	var I1b=this.Ix; 
	if (I1b)this.TogglePin(); 
	if (this.lx)this.Restore(); 
	else this.Maximize(); 
	if (I1b)this.TogglePin(); 
} ; 
RadWindowClass.prototype.Restore= function (){
	if (!this.ly)return; 
	if (this.o1c){
		RadWindowNamespace.Ok(window,"resize",this.o1c); 
		this.o1c=null; 
	}
	RadWindowNamespace.Oa( true ,this.O1c); 
	this.O1c=null; 
	var ob=this.o1; 
	if (!ob){
		var position=this.I3(); 
		this.o1= {width: this.Width,height: this.Height,top:position.top,left:position.left } ; 
		ob=this.o1; 
	} 
	this.SetVisible(true); 
	var o8=this.iy; 
	o8.SetSize(ob.width,ob.height); 
	o8.MoveTo(ob.left,ob.top); 
	this.l1c("ToggleMaximizeBu\164ton","title",this.GetLocalizedString("Maximize")); 
	this.l1c("ToggleMa\x78imize\x42utton","src",this.i1c("Maximize.gif")); 
	this.lx= false; 
	this.ix= false; 
	this.SetActive(true); 
	this.O12("onrestore"); 
	return this;
}; 
RadWindowClass.prototype.Maximize= function (){
	if (!this.ly)return; 
	this.SetVisible( true); 
	this.O1c=document.body.style.overflow; 
	RadWindowNamespace.Oa( false); 
	var ob=RadWindowNamespace.t(); 
	this.iy.MoveTo(ob.left,ob.top); 
	this.iy.SetSize(ob.width,ob.height, false); 
	this.l1c("ToggleMaximizeButton","title",this.GetLocalizedString("Restore")); 
	this.l1c("ToggleMaximizeButton","src",this.i1c("Restore.gif")); 
	this.lx= true; 
	this.ix= false; 
	this.SetActive( true); 
	if (!this.o1c){
		var o8=this.iy; 
		var m=this ; 
		this.o1c= function (){
			var I1c=RadWindowNamespace.t(); 
			o8.MoveTo(I1c.left,I1c.top); 
			o8.SetSize(I1c.width,I1c.height, false); 
		} ; 
		RadWindowNamespace.lj(window,"resize",this.o1c); 
	} 
	this.O12("onmaximize"); 
} ; 

RadWindowClass.prototype.Close= function (o1d){
	if (!this.ly || this.R)return; 
	RadWindowNamespace.Oa( true); 
	this.SetVisible( false); 
	this.R= true; 
	if (null!=o1d){ 
		this.CallBack(o1d); 
	}
	var Q=GetRadWindowManager(); 
	if (this ==Q.GetActiveWindow()){
		Q.ActiveWindow=null; 
	} 
	this.O12("onclose"); 
	if (Q.O1d && this.G(RadWindowMinimizeMode.g))return; 
	if (this.WindowToSetActive){ 
		this.WindowToSetActive.SetActive( true); 
		this.WindowToSetActive=null; 
	}else {Q.FocusNextWindow(); }
	if ( true ==this.ow){Q.l1d(this ); } 
	this.lz("OnClientClose"); 
	this.Argument=null; 
} ; 
RadWindowClass.prototype.TogglePin= function (){
	if (!this.ly)return; 
	this.Ix=!this.Ix; 
	var i1d=this.Ix?"PinOn": "PinOff"; 
	this.l1c("TogglePinButton",i1d); 
	this.l1c("TogglePinButton","src",this.i1c(i1d+".gif")); 
	RadWindowNamespace.i4(this.Ix,this.iy); 
	this.O12("ontogglepin"); 
} ; 
RadWindowClass.prototype.l1c= function (id,I1d,o1e){
	var l=document.getElementById(id+this.Id); 
	if (l && l.setAttribute){
		l.setAttribute(I1d,o1e,0); 
	}
} ; 

RadWindowClass.prototype.It= function (O1e,l1e,i1e){
	if (null==l1e || ""==l1e){
		if (!i1e)return; 
	}else { 
		this[O1e]=l1e; 
	}
} ; 

RadWindowClass.prototype.i1c= function (I1e){
	return this.Ox+base_img+"Img/"+I1e; 
} ; 
RadWindowClass.prototype.GetLocalizedString= function (o1f){
	var O6=this.ox[o1f]; 
	return O6?O6:o1f; 
} ; 
RadWindowClass.prototype.toString= function (){
	return "object [r.a.d.Window id="+this.Id+"]"; 
} ; 
RadWindowClass.prototype.O1b= function (O1f){ 
	//alert(O1f);
	this.iy.className=O1f?"RadWWrapperA\143ti\166e": "RadWWrapperInactive"; 
} ; 
RadWindowClass.prototype.l1f= function (){return this.lx; } ; 
RadWindowClass.prototype.l13= function (){return this.ix; } ; 
RadWindowClass.prototype.IsModal= function (){return this.iw; } ; 
RadWindowClass.prototype.IsClosed= function (){return this.R; } ; 
RadWindowClass.prototype.IsPinned= function (){return this.Ix; } ; 
RadWindowClass.prototype.IsVisible= function (){return (this.iy.style.display!="none"); } ; 
RadWindowClass.prototype.IsActive= function (){
	try {
		var Q=GetRadWindowManager(); 
		return (Q.GetActiveWindow()==this ); 
	}
	catch (e){}
} ; 
RadWindowClass.prototype.G= function (O2){return O2&this.l2; } ; 
RadWindowClass.prototype.W= function (oq){return oq&this.Ou? true : false; } ; 
RadWindowClass.prototype.l14= function (){
	var id=this.Id; 
	var i1f=this.ot; 
	var name=this.Name; 
	var url=document.all?"javascript:'\047;": ""; 
	var html=""; 
	html+=" <table border=0 id=\047RadWindowWrapperElement"+id+"' class='RadWWrapperActive' style=\047display:none;z-inde\170:"+this.I1f+"\x3bwidth:"+this.Width+"\x3bheight:"+this.Height+";position:absolute;' cellspacing=\0470\047 cellpadding\x3d\0470\047\x3e\012"+"\x09\x09  <tbody style\x3d'"+(document.all?"": "height:100%")+"'\x3e"+"\011\x09\x09<tr class='\122adWTitleRow\047 "+"\011\x09\x09\011style=\047"+(this.iv?"": "display:none")+"\047\x3e\012"+"\011\x09\011\011\x3ctd width\x3d'1\047 style=\047height:3px;\047 class=\047RadWWrapperHeaderLeft\047 nowrap\x3e</td\x3e\012"+"\011\011\x09\011\x3c\164d valign=\047top' unsele\143table='on' grip='true' titleGrip=\047show\047\040width=\047\06100%' style='height:3px;' class=\047RadWWrapperHeaderCenter\047 nowrap='true\047\040\x3e\x0a"+" <div class='RadWHeaderTopResi\172er\047\x3e\046nbsp\x3b</div\076"+"\x09\011\x3ctable borde\162=0 cellspacing='0\047 cellpadding\x3d0\047 width\x3d\047100%' ><tr>"+"<td class='RadWWrappe\162HeaderCenter'>\x0a"+"\x09\x09\011\x09\011<img ondblclic\x6b\x3d\047"+i1f+".Close(\x29\x3breturn RadWindow\x4eamespace.RadUtil_CancelEvent\050event\x29;\047 class='RadWIcon' src\x3d\047"+this.lt+"\047 align=\047absmiddle' border='0\047\x3e"+"\011\x09\x09\011\x3c/td><td id='\122adWindowHeade\162Row"+id+"\047 class='RadWWrapperHeaderCenter' nowra\160 width='100%'\076\x09<span id='\122adWindowTitle"+id+"\047 unselectable\x3d\047on\047 onsele\143tstart=\047return false;\047 class\x3d\047RadWTitleText'>"+this.O1+"\x3c/span>\012"+"\011\x09\x09\011\x3c/td>"; if (!this.iw && this.W(RadWindowBehavior.ll)){html+="\x09\x09<td width=\0471\047 title=\047"+this.GetLocalizedString("\x50inOff")+"\047 class=\047RadWWrapperHeaderCen\164e\162' nowrap>\012"+"\x3cimg onmousedown='\162eturn RadWindow\x4eamespace.RadUtil_CancelEvent\x28event);'\040class\x3d\047RadWButton\047 border\x3d\0470\047\040src\x3d\047"+this.i1c("PinOff.gif")+"' id=\047Toggle\x50inButton"+id+"' onclic\x6b=\047"+i1f+".TogglePin()\x3breturn false\x3b\047 ondblclic\x6b='return RadWindowNames\160ace.RadUtil_CancelEvent\x28event);'/>"+"\x3c/td>\012"; }if (this.W(RadWindowBehavior.Reload)){html+="\011\x09<td width\x3d\0471\047 class='RadWW\162apperHeaderCenter' no\167rap>\012"+"\x09\011\x09\x09\011\x3cimg onmousedown=\047return Rad\127indowNamespace.RadUtil_CancelEvent(event);\047\040 class=\047RadW\x42utton\047 border\x3d\0470' src=\047"+this.i1c("Reload.gif")+"' title=\047"+this.GetLocalizedString("Reload")+"' id=\047ReloadButton"+id+"\047 onclic\x6b\x3d\047"+i1f+".Reload(\x29\x3breturn false\x3b' ond\142lclick='\162eturn RadWindow\x4eamespace.Rad\x55til_CancelEvent(event)\x3b\047\x2f>"+"\011\011\x09</td>\x0a"; }if (this.W(RadWindowBehavior.Minimize)){html+="\x09\011\x3ctd width\x3d\0471\047  class\x3d\047RadWWrapperHeaderCenter' nowrap>\012"+"\011\x09\x09\011\x09\x3cimg onmousedown\x3d'return RadWindowNamespace.\122ad\x55til_CancelEvent(event\x29;\047 class\x3d\047RadWButton' border='0\047 src\x3d\047"+this.i1c("Minimize.gif")+"' title='"+this.GetLocalizedString("Minimize")+"\047 id=\047Minimize\102utton"+id+"\047  onclick\x3d'"+i1f+"\056Minimize\x28\x29;return false;'\057>"+"\011\011\x09</td>\x0a"; }if (this.W(RadWindowBehavior.Maximize)){html+="\x09\011\x3c\164d width\x3d\0471' class='RadWWra\160perHeade\162Center'\040nowrap\x3e\012"+"\011\x09\011\x09\x09<img onmousedown\x3d\047return RadWindow\x4eamespace.RadUtil_CancelEvent\x28event);' class='\122adWButton\047 border='0\047 src='"+this.i1c("Maximize.gif")+"\047 title='"+this.GetLocalizedString("Maximize")+"\047 id=\047ToggleMaximize\x42utton"+id+"\047 onclick=\047"+i1f+".ToggleMaximize\x28\051\x3breturn false;'\x2f>"+"\x09\011\x09\x3c/td\x3e\x0a"; }if (this.W(RadWindowBehavior.Close)){html+="\011\x09\011\x3c\164d width\x3d'1\047 title=\047"+this.GetLocalizedString("Close")+"\047 class='RadWWrapperHeaderCenter'\040nowrap>\x0a"+"\011\011\x09\011\x09<img onmousedown\x3d'return \122ad\127indowNamespace.RadUtil_CancelEvent(event);\047 class\x3d\047RadWButton' border\x3d\047\060' src='"+this.i1c("Close.gif")+"' id=\047CloseButton"+id+"'  onclic\x6b\x3d\047"+i1f+".Close();return false;\047\x2f>\012"+"\x09\x09\011\x09</td\x3e\012"; }html+="\011\x09\011\x3c\057tr\x3e\x3c/table\x3e </td\x3e\012"; html+="\x09\011\x09\x09<td width='1\047 class\x3d'Rad\127WrapperHeaderRight\047 nowrap><\x2ftd>\012"+"\011\x09\011\x3c\057tr\x3e\x0a"; html+="\x09\011\x09\x3ctr height=\047100%' style=\047height:100\045' >\x0a"+"\x09\011\x09\x09<td align\x3d\047left\047 id='\122ad\127indowContentTD"+id+"\047 colspan=\047\x38\047 style\x3d'width:100%;height:100%;\047\x3e\012"+"\011\x09\011\x09\x09<table style='border:0\160x solid red;width:100%\x3bheigh\164:100%\x3b\047 cellspacing='0\047\040cellpadding='0\047>\012"+"\011\011\x09\011\x09\011<tbody style=\047height:\06100%\047\x3e<tr height\x3d\047100%\047 style=\047height:100%\047>"+"\x09\011\x09\x09\011\x09\x09<td \162owspan\x3d\062 width='1\047 class='\122adWWrapperBodyLeft\047 nowrap\x3e&nbsp;</td>\x0a"+"\x09\011\x09\x09\011\x09\011\x3c\164d heigh\164='100%\047 s\164yle=\047heigh\164:100%\047\040width\x3d\047100%'\040class\x3d\047RadWWrapper\x42odyCenter\047 valign='bottom' align='left\047\040onselectstart\x3d\047\162eturn false;'>\x0a"+"\x09\011\x09\x09\011\x09\011\x09\x09<iframe class='\122ad\127ContentFrame' name=\047"+name+"' frameborder\x3d\0470px\047 style=\047border:0px solid green;width:100%\x3bheight:100%;\047 id\x3d\047RadWindowContentFrame"+id+"\047 src=\047"+url+"\047 border\x3d'no\047  >\x3c\x2fiframe>"+"\x09\011\x09\x09\011\x09\011\x3c\x2ftd>"+"\x09\011\x09\x09\011\x09\011<td rowspan=2 \167idth=\0471\047 class=\047RadWWrapper\102odyRight\047\040nowrap>&nbsp\x3b</td>"+"\x09\011\x09\x09\011\x09\x3c/tr\x3e"+"\011\x09\x09\011\x09<tr style=\047height:1p\170;'\076\x3ctd \143lass=\047RadWStatusRow'>"+"\x3cdiv class\x3d\047RadWStatus' style=\047"+(this.lv?"": "display:none")+"'> "+"\011\x09\011\011\x09<span class=\047RadWLoadingWra\160pe\162' style=\047display:none;white-space:nowrap' id\x3d\047RadWindowLoadingWrapper"+id+"\047\x3e"+"\011\x09\011\x09\x09<img align\x3d\047absmiddle'\040sr\143='"+this.i1c("loading.gif")+"\047 borde\162='0\047\x3e "+this.GetLocalizedString("Loading")+"\x3c/span\x3e | "+"\011\x09\x09\011\x09<input s\164yle='width:95%\x3bfont:icon\073border:0p\x78\040solid\040red;bac\x6bground-color:transparent\x3b\047 unselectable\x3d\047on\047 type=\047\164ext' onselect='return false;\047 onbeforeactivate\x3d\047return false;' onmousedown='return false;'  id='RadWStatus"+id+"\047/\x3e"+"\x09\011\x09</div><\x2f\164d>\x3c\x2ftr\x3e"+"\011\x09\011\x09\x09</tbody><\x2f\164able>"+"\011\x09\011\011\x3c/td>\x0a"+"\x09\011\x09</tr>\012"; html+="\011\x09\x09<tr>\012"+"\x09\x09\011\x09\x3ctd colspan='\x38\047 width\x3d\0471\0600%\047 height='1\047\x3e"+"\x09\x09\011\x09\011<table \142order='0\047 width='\06100%\047 height=\0471\047 cellspacing\x3d\0470\047 cellpadding\x3d\0470\047\x3e\012"+"\011\011\x09\011\x09\x09<tr>\x0a"+"\x09\x09\011\x09\011\x09\x09<td width\x3d\0471\047 class='RadWWrapperFooterLeft\047 nowrap>&nbsp;<\x2ftd>\x0a"+"\011\x09\011\x09\x09\011\x09<td width='100%' class\x3d\047RadWWrapperFooterCenter\047 nowrap>\x26nbsp\x3b</td\x3e\011\x09\012"+"\x09\011\x09\011\x09\x09\011\x3ctd width=\0471\047 class='\122adWWrapperFooterRight\047 nowrap>&nbsp\x3b</td\x3e\012"+"\011\x09\x09\011\x09\x09</tr\x3e\012"+"\011\x09\011\011\x09</table>\x0a"+"\x09\x09\011\x09\x3c/td\x3e\x0a"+"\x09\x09\011\x3c\057tr\x3e\012"+"\011\x09\x3c/tbody></table\x3e\012"; return html; 
};

/* 
	"+(this.IsIE?"position:absolute;": "")+"\x3b
*/

RadWindowNamespace.O= function (){} ; 
RadWindowNamespace.o= {
	I:RadWindowNamespace.O,
	Minimize:RadWindowNamespace.O,
	Maximize:RadWindowNamespace.O,
	Restore:RadWindowNamespace.O,
	TogglePin:RadWindowNamespace.O,
	SetModal:RadWindowNamespace.O,
	Cascade:RadWindowNamespace.O,
	Tile:RadWindowNamespace.O,
	SetUrl:function (url){
		var A=this.U; 
		try {
			A.location.href=url; 
		}
		catch (e){}; 
	} ,
	SetPosition:function (left,top){
		if (this.U){ 
			this.U.dialogLeft=left; 
			this.U.dialogTop=top; 
		}
	} ,
	SetSize:function (width,height){
		var A=this.U; 
		if (A){
			if (A.dialogWidth && A.dialogHeight){
				A.dialogWidth=width; 
				A.dialogHeight=height; 
			}else {A.resizeTo(width,height); }
		}
	} ,
	Dispose:function (){ 
		this.Close(); 
		this.U=null; 
	} ,
	Show:function (name,Z){
		var z="width="+this.Width+", height="+this.Height+", scrollbars=yes"+", resizable="+(this.W(RadWindowBehavior.w)?"yes": "no"); 
		this.U=window.open(this.Url,this.Name,z); this.V(); 
	} ,
	Close:function (){ 
		this.U.close(); 
	} ,
	v:function (){
		if ( false !=setActive)this.U.focus(); 
		else this.U.blur(); 
	} ,
	GetWidth:function (){
		var A=this.U; 
		if (A){
			if (A.dialogWidth)return parseInt(A.dialogWidth); 
			else if (window.outerWidth){
				return parseInt(window.outerWidth); 
			}
			else {
				if (A.document.domain==window.document.domain){
					var T=RadWindowNamespace.t(A); 
					if (T)return (T.width); 
				}
			}
		}
		return 100; 
	} ,
	SetWidth:function (width){
		var S=this.U; if (S){
			if (S.dialogWidth){
				S.dialogTop=S.screenTop-31; 
				S.dialogLeft=S.screenLeft-4; 
				S.dialogWidth=width+"p\x78"; 
			}else {S.outerWidth=width; }
		}
	} ,
	GetHeight:function (){
		var A=this.U; 
		if (A){
			if (A.dialogHeight)return parseInt(A.dialogHeight); 
			else if (window.outerHeight){
				return (parseInt(window.outerHeight)); 
			}
			else {
				if (A.document.domain==window.document.domain){
					var T=RadWindowNamespace.t(A); 
					if (T)return (T.height+30); 
				}
			}
		}
		return 30; 
	} ,
	SetHeight:function (height){
		var S=this.U; 
		if (S.dialogWidth){
			S.dialogTop=S.screenTop-30; 
			S.dialogLeft=S.screenLeft-4; 
			S.dialogHeight=height+"px"; 
		}else {S.outerHeight=height; }
	} ,
	IsVisible:function (){
		if (!this.R && this.U && !this.U.closed)return true; 
		return false; 
	}
};

function RadWindowManagerInitialize(id,i2e,I2e,language,o2f,Os,O2f,l2f,l24,Om,Im,On,In,oo,Oo,Io,op,Op,lp,ip,Ip,oq,Oq,lq,iq,Iq,or,Or,lr,ir,i2f,I2f,Ir,os){
	
	
//	alert('manager');
	
	var o2g=null; 
	if (RadWindowNamespace.O2g){
		if (RadWindowNamespace.O2g.Id==id){
			var o1p=RadWindowNamespace.O2g.l2g; 
			for (var i=0; i<o1p.length; i++){
				o1p[i].Dispose(); 
			}
		}
		else {o2g=RadWindowNamespace.O2g.l2g; }
		RadWindowNamespace.O2g.l2g=null; 
		RadWindowNamespace.O2g=null; 
	}
	var Q=GetRadWindowManager(); 
	if (o2g)Q.l2g=o2g; 
		Q.Id=id; 
	Q.i2g(I2e+base_img+"Img/transp.gif"); 
	Q.I2g=i2e; 
	Q.Ox=I2e; 
	Q.O1d=O2f; 
	Q.o2h=o2f; 
	Q.ox=eval("localization_"+(language?language: "en_US")); 
	Q.i14=i2f; 
	Q.I2c=I2f; 
	Q.O2h=(l2f== true); 
	RadWindowNamespace.lj(window,"unload",Q.RadWindowManagerDispose); 
	if (Q.O2h){
		RadWindowNamespace.lj(window,"load",RadWindowNamespace.i1o.i1p); 
	}
	if (Q.I2c){Q.i2b(); }
	if (Q.O24){Q.O24(l24); }
	var S=new RadWindowClass(""); 
	S.Is=[]; 
	S.Ox=I2e; 
	if (Om)S["onClientShow"]=Om; 
	if (Im)S["OnClientClose"]=Im; 
	if (On)S["OnClientPageLoad"]=On; 
	S.Ot=Os; 
	S.lt=In?In:I2e+base_img+"Img/defaultIcon.gif"; 
	S.it=oo?oo:S.lt; 
	S.Width=Oo?Oo: "500px"; 
	S.Height=Io?Io: "200px"; 
	S.It("Left",op, false); 
	S.It("Top",Op, false); 
	S.O1=lp; 
	S.o3=ip; 
	S.ou=Ip; 
	S.Ou=oq; 
	S.l2=Oq; 
	S.lv=iq; 
	S.iv=Iq; 
	S.Iv=or; 
	S.iw=lq; 
	S.ox=Q.ox; 
	S.lu=Or; 
	S.iu=lr; 
	S.ow=ir; 
	S.Ow=Ir; 
	S.i14=Q.i14; 
	S.lw=os; 
	Q.l2h=S; 
}

RadWindowNamespace.O2g=null; 
function GetRadWindowManager(){
	if (null==RadWindowNamespace.O2g){
		RadWindowNamespace.O2g=new o24(); 
	}
	return RadWindowNamespace.O2g; 
}
function o24(){ 
	this.l2g=[]; 
	this.i2h= {} ; 
	this.I2h= false; 
	this.I1f=3000; 
	this.o2i="aes_"; 
	this.ActiveWindow=null; 
	this.O1d= false; 
	this.Ox=null; 
	this.i14= true; 
}

o24.prototype.ls= function (Oo,Io){ 
	this.O2i=Oo?Oo: this.l2h.Width; 
	this.l2i=Io?Io: this.l2h.Height; 
	this.i2c(); 
}; 

o24.prototype.i2c= function (l2c){
	var Q=this ; 
	var P=Q.i2i(Q.l2h); 
	var I11=document.getElementById("RadWSplashHolder"); 
	I11.style.position="absolute"; 
	I11.style.zIndex=""+5000; 
	I11.innerHTML=P; 
	if ( false ==l2c){
		I11.style.display="none"; 
	}else {
		I11.style.display=""; 
		var I17=document.body; 
		I17.insertBefore(I11,I17.firstChild); 
		var Oo=this.O2i; 
		var Io=this.l2i; 
		var I2i= function (){
			var T=RadWindowNamespace.oh(I11); 
			var i13=RadWindowNamespace.t(); 
			var o2j=50-Math.floor((parseInt(Oo)*100/i13.width)/2); 
			var O2j=50-Math.ceil((parseInt(Io)*100/i13.height)/2); 
			I11.style.left=o2j+"%"; 
			I11.style.top=O2j+"%"; 
		}; 
		I2i(); 
		if (!this.l2j){ 
			this.l2j= true; 
			RadWindowNamespace.lj(window,"resize",I2i); 
			RadWindowNamespace.lj(window,"scroll",I2i); 
			RadWindowNamespace.lj(window,"load", function (){
															  window.setTimeout( function (){
																						   I11.innerHTML=""; 
																						   } ,200); 
															  } ); 
		}
	}
	return I11; 
}; 

o24.prototype.RadWindowManagerDispose= function (){
	var Q=GetRadWindowManager(); 
	if (Q.O2h && RadWindowNamespace.i1o){
		RadWindowNamespace.i1o.I1o(); 
	}
	try {
		Q.i2j("Dispose"); 
	}
	catch (e){}
	Q.l2g=null; 
	Q.i2h=null; 
	Q.ActiveWindow=null; 
} ; 
o24.prototype.i2g= function (I2j){
	if (this.I2h)return; 
	if (I2j){
		var i20=RadWindowNamespace.I1z(); 
		if (i20){i20.src=I2j; }
	} 
	this.I2h= true; 
}; 
o24.prototype.Open= function (url,O2e){
	var Q=this ; 
	var A=Q.GetWindowByName(O2e); 
	if (!A){A=Q.is(O2e);}
	A.Show();
	if (url)A.SetUrl(url); return A; 
}; 
o24.prototype.is= function (id){
	var zIndex=this.oa(); 
	if (!id)id="RadWindowClass"+zIndex; 
	var newWnd=new RadWindowClass(id); 
	newWnd.I1f=zIndex; 
	this.l2g[this.l2g.length]=newWnd; 
	var o2k=this.o2i+newWnd.Id; 
	eval("window."+o2k+" = newWnd"); 
	var O2k=this.l2h; 
	if (O2k){
		for (var item in O2k){
			if ("function"!=typeof(O2k[item]))newWnd[item]=O2k[item]; 
		}
	}
	if (this.o2h){
		Object.Extend(newWnd,RadWindowNamespace.o); 
	}
	newWnd.Id=id; 
	newWnd.Name=id; 
	newWnd.ot=o2k; 
	newWnd.Is=[]; 
	return newWnd; 
} ; 
o24.prototype.oa= function (){
	var l2k=this.I1f; 
	var i2k=this.l2g; 
	var i12=i2k.length; 
	for (var i=0; i<i12; i++){
		A=i2k[i]; 
		if (A.iy && A.iy.style.zIndex>l2k){
			l2k=A.iy.style.zIndex; 
		}
	}
	A=null; 
	return (this.I1f= ++l2k); 
} ; 
o24.prototype.O2d= function (I2k,text){
	var A=this.is(I2k); 
	A.Ou=RadWindowBehavior.Close+RadWindowBehavior.O0; 
	A.ou=RadWindowBehavior.Ik; 
	A.l2=RadWindowClass.prototype.l2; 
	A.o3=""; 
	A.lu=""; 
	A.iu=""; 
	A.lv= false; 
	A.ow= true; 
	A.I(); 
	A.SetTitle(A.GetLocalizedString(I2k)); 
	A.SetModal( true); 
	var o2l= {Text:text } ; 
	var P=this.O2l(I2k+"Template",this.l2h,o2l); 
	if (P){A.SetContent(P); }
	return A; 
} ; 
o24.prototype.i2i= function (radWindow){
	return this.O2l("SplashTemplate",radWindow); 
} ; 
o24.prototype.N= function (radWindow){
	return this.O2l("MinimizeTemplate",radWindow); 
} ; 
o24.prototype.O2l= function (l2l,radWindow,o2l){
	var I11=document.getElementById("RadWindowManager"+l2l); 
	var i2l=RadWindowNamespace.i6(I11.value, false); 
	i2l=RadWindowNamespace.l6(RadWindowNamespace.o6(i2l),radWindow.Id,radWindow.ot,this.Ox,radWindow.it,radWindow.O1,"",o2l?o2l.Text: ""); 
	return i2l; 
} ; 
o24.prototype.RegisterChild= function (I2l,o2m){
	if (!I2l || !o2m)return; 
	if (null==this.i2h[I2l.Id]){ 
		this.i2h[I2l.Id]=[]; 
	}
	var o12=this.i2h[I2l.Id]; 
	o12[o12.length]=o2m; 
} ; 

o24.prototype.UnregisterChild= function (I2l,o2m){
	if (!I2l || !o2m)return; 
	var O2m=this.i2h[I2l.Id]; 
	if (null==O2m)return; 
	this.l2m(O2m,o2m); 
};
o24.prototype.i2m= function (I2l,o2m){
	if (!I2l || !o2m)return false; 
	var O2m=this.i2h[I2l.Id]; 
	if (null==O2m)return false; 
	for (var i=0; i<O2m.length; i++){
		if (O2m[i]==o2m)return true; 
	}
	return false; 
};
o24.prototype.i1b= function (radWindow){
	var I2m=this.ActiveWindow; 
	if (I2m && I2m.iw && !I2m.ix){} 
	this.ActiveWindow=radWindow; 
	if (I2m && I2m!=radWindow){
		I2m.v( false); 
	} 
	this.ActiveWindow.v(true); 
	if (this.O1d){
		this.MinimizeInactiveWindows(); 
	}
};
o24.prototype.GetActiveWindow= function (){
	return this.ActiveWindow; 
};
o24.prototype.l1d= function (A){
	if (!A)return; 
	this.l2m(this.l2g,A); 
	if (A.Dispose)A.Dispose(); 
	if (A==this.ActiveWindow)this.ActiveWindow=null; 
};
o24.prototype.GetWindowById= function (id){
	var i2k=this.l2g; 
	for (var i=0; i<i2k.length; i++){
		var A=i2k[i]; 
		if (name==A.Id){
			if (!A.ly)A.I(); return A; 
		}
	}
	return null; 
};
o24.prototype.GetWindowByName= function (name){
	var i2k=this.l2g; 
	for (var i=0; i<i2k.length; i++){
		var A=i2k[i]; 
		if (name==A.Name){
			if (!A.ly)A.I(); return A; 
		}
	}
	return null;
};
o24.prototype.GetWindowObjects= function (){
	return this.l2g; 
};
o24.prototype.Cascade= function (){
	var Op=40; 
	var op=40; 
	var o12=this.o2n();
	for (var i=0; i<o12.length; i++){
		var A=o12[i];
		if (!A.R){
			var O2n=A.Restore();
			A.MoveTo(Op,op);
			RadWindowNamespace.l4(A.iy);
			Op+=25;
			op+=25;
		}
	}
};
o24.prototype.Tile= function (){
	var o12=this.o2n(); 
	var i12=o12.length; 
	var l2n=5; 
	var i2n=0; 
	var I2n=1; 
	if (i12<=l2n){i2n=i12; }
	else {
		var i=2;
		while ((i12*i)<(l2n*(i+1))){
			i++; 
			if (i>6)break; 
		}
		I2n=i;
		i2n=Math.ceil(i12/I2n);
	}
	var i13=RadWindowNamespace.t(); 
	var o2o=Math.floor(i13.width/i2n); 
	var O2o=Math.floor(i13.height/I2n);
	var left=RadWindowNamespace.i8(document);
	var top=RadWindowNamespace.O8(document);
	for (var i=0; i<i12; i++){
		if ((i+1)%(i2n+1)==0){
			top+=O2o;
			left=RadWindowNamespace.i8(document);
		}
		var l2o=o12[i];
		if(!l2o.R){
			l2o.Restore();
			l2o.MoveTo(left,top);
			l2o.SetSize(o2o,O2o);
			left+=o2o;
		}
	}
};
o24.prototype.o2n= function (){
	var o12=this.l2g.concat([]);
	var i2o= function(I2o,o2p){
		if (I2o.I1f==I2o.I1f)return 0; 
		return (I2o.I1f<I2o.I1f?-1: 1);
	};
	return o12.sort(i2o);
};
o24.prototype.l2m= function (o12,O2p){
	for(var i=0; i<o12.length; i++){
		if(o12[i]==O2p){
			o12.splice(i,1);
			return;
		}
	}
};
o24.prototype.Fire= function (l2p){
	if (this[l2p] && "function"==typeof(this[l2p])){
		this[l2p]();
	}
};
o24.prototype.MinimizeInactiveWindows= function (){
	var i2p=this.ActiveWindow;
	if (!i2p)return; 
	var I2p=this.l2g; 
	var O18=I2p.length; 
	var o2q=0; 
	var l2o=null; 
	while (o2q<O18){
		if ((l2o=I2p[o2q++])!=i2p)l2o.Minimize();
		else l2o.Restore(); 
	}
};
o24.prototype.EscapeActiveWindow= function (){
	var A=this.GetActiveWindow(); 
	if (A){
		var o8=A.iy;
		if (o8.o1u() || o8.O1u()){
			o8.I1w(); 
		}
		else {A.Close(); }
	}
};
o24.prototype.FocusNextWindow= function (){
	var A=this.ActiveWindow; 
	var Q=this ; 
	var o12=this.l2g.concat([]); 
	if (!A){
		var O2q=o12[0]; 
		if (O2q && O2q.ly && !O2q.IsClosed() && (!O2q.l13() || Q.O1d)){
			O2q.SetActive(true); 
		}
	}else {
		var l2q=0; 
		var i2q= false; 
		var i=0; 
		for (var i=0; i<o12.length; i++){
			if (A==o12[i]){
				l2q=i;
				i2q= true; 
				break; 
			}
		}
		if (i2q){
			var I2q= function (o2r,O2r){
				for (var l2r=o2r; l2r<O2r; l2r++){
					var O2q=o12[l2r]; 
					if (O2q && O2q.ly && !O2q.IsClosed() && (!O2q.l13() || Q.O1d)){
						O2q.SetActive(true); 
						return true; 
					}
				}
			};
			var i2r=I2q(i+1,o12.length); 
			if (!i2r)I2q(0,l2q); 
		}
	}
};
o24.prototype.I2r= function (l2p){
	if (this.ActiveWindow && "function"==typeof(this.ActiveWindow[l2p])){
		this.ActiveWindow[l2p]();
	}
};
o24.prototype.CloseActiveWindow= function(){this.I2r("Close"); };
o24.prototype.MinimizeActiveWindow= function(){this.I2r("Minimize");}; 
o24.prototype.RestoreActiveWindow= function(){ this.I2r("Restore");};
o24.prototype.ToggleMaximizeActiveWindow= function(){ this.I2r("ToggleMaximize");} ; 
o24.prototype.CloseAll= function(){ this.i2j("Close"); }; 
o24.prototype.ShowAll= function(){ this.i2j("Show"); }; 
o24.prototype.MinimizeAll= function(){ this.i2j("Minimize"); };
o24.prototype.MaximizeAll= function(){ this.i2j("Maximize"); }; 
o24.prototype.RestoreAll= function(){ this.i2j("Restore"); }; 
o24.prototype.i2j= function(o2s){
	if(!this.l2g)return; 
	var o12=this.l2g.concat([]); 
	for (var i=0; i<o12.length; i++){
		o12[i][o2s]();
	}
};
o24.prototype.i2b= function(){
	I2b= function(o16){
		if(this.Close!=RadWindowClass.prototype.Close)this.Close=RadWindowClass.prototype.Close;
		this.Close();
		if(this.o2c){
			this.o2c(o16,this.O2c);
		}
		this.Argument=null;
	};
	var Q=this;
	window.radsplash= function (l2c){
		return Q.i2c(l2c);
	};
	window.radalert= function(text,Oo,Io,lp){
		if(!Q.I2c){
			alert(text);
		}
		else{
			var o2d= function (){
				if (!Oo)Oo=280; 
				if (!Io)Io=200; 
				var A=Q.O2d("Alert",text); 
				A.WindowToSetActive=Q.GetActiveWindow(); 
				if (typeof(lp)!="undefined"){
					A.SetTitle(lp);
				}
				A.SetSize(Oo,Io); 
				A["onClientShow"]= function (){
					A.Iz(); 
					A.Center(); 
				};
				window.setTimeout( function (){A.Show(); } ,0);
				return A; 
			};
			if(!RadWindowNamespace.Oi()){
				RadWindowNamespace.lj(window,"load",o2d); 
				return null; 
			}else {
				return o2d(); 
			}
		}
	};
	window.radprompt= function (text,l2d,Oo,Io,i2d,lp){
		if (!Q.I2c){
			return prompt(text); 
		}
		else {
			var I2d= function (){
				if (!Oo)Oo=280; 
				if (!Io)Io=210; 
				var A=Q.O2d("Prompt",text); 
				A.o2c=l2d; 
				A.O2c=i2d; 
				A.WindowToSetActive=Q.GetActiveWindow(); 
				if (typeof(lp)!="undefined"){
					A.SetTitle(lp);
				}
				A.SetSize(Oo,Io); 
				A["OnClientShow"]= function (){
					A.Iz(); A.Center(); 
				};
				window.setTimeout( function (){A.Show(); } ,0); 
				A.Close= function (o16){
					if (null==o16)o16=""; 
					A.Close=RadWindowClass.prototype.Close; 
					A.ModalDialogCallBack(o16); 
				};
				A.ModalDialogCallBack=I2b; 
				return A; 
			};
			if(!RadWindowNamespace.Oi()){
				RadWindowNamespace.lj(window,"load",I2d); 
				return null; 
			}
			else {return I2d(); }
		}
	};
	window.radconfirm= function (text,l2d,Oo,Io,i2d,lp){
		if (!Q.I2c){
			return confirm(text); 
		}
		else {
			var o2e= function (){
				if (!Oo)Oo=280; 
				if (!Io)Io=210; 
				var A=Q.O2d("Confirm",text); 
				A.o2c=l2d; 
				A.O2c=i2d; 
				A.WindowToSetActive=Q.GetActiveWindow(); 
				if (typeof(lp)!="undefined"){ A.SetTitle(lp); }
				A.SetSize(Oo,Io); 
				A["onClientShow"]= function (){
					A.Iz(); 
					A.Center(); 
				};
				window.setTimeout( function (){A.Show(); } ,0); 
				A.Close= function (o16){
					if (null==o16)o16= false; 
					A.Close=RadWindowClass.prototype.Close; 
					A.ModalDialogCallBack(o16); 
				};
				A.ModalDialogCallBack=I2b; 
				return A; 
			};
			if (!RadWindowNamespace.Oi()){
				RadWindowNamespace.lj(window,"load",o2e); 
				return null; 
			}
			else {return o2e(); }
		}
	};
	window.radopen= function(url,O2e){
		var l2e= function(){
			var A=Q.Open(url,O2e);
			return A;
		};
		if(!RadWindowNamespace.Oi()){
			RadWindowNamespace.lj(window,"load",l2e);
			return null;
		}
		else {return l2e(); }
	};
};

o24.prototype.O24= function(l24){
	try{
		this.i24= {};
		Object.Extend(this.i24,RadWindowNamespace.I24);
		for (var i=0; i<l24.length; i++){
			this.AddShortcut(l24[i][0],l24[i][1]);
		}
		var Q=this;
		RadWindowNamespace.lj(document,"keydown", function(Oj){Q.OnKeyDown(Oj); } ); 
	}catch(e){
	}
}; 
o24.prototype.OnKeyDown= function (Oj){
	var srcElement=RadWindowNamespace.oj(Oj); 
	if (this.i24 && srcElement){
		var o25=this.i24.HitTest(Oj.keyCode,
								 Oj.ctrlKey,
								 (null!=Oj.ctrlLeft?Oj.ctrlLeft:Oj.ctrlKey),
								 Oj.shiftKey,
								 (null!=Oj.shiftLeft?Oj.shiftLeft:Oj.shiftKey),
								 Oj.altKey,
								 (null!=Oj.altLeft?Oj.altLeft:Oj.altKey));
		if(null!=o25){
			this.Fire(o25.Name);
			RadWindowNamespace.RadUtil_CancelEvent(Oj);
		}
	}
};
o24.prototype.AddShortcut= function(O25,l25){
	if(this.i24){
		this.i24.AddShortcut(O25,l25);
	}
};
o24.prototype.o23= function(O25){
	if(this.i24){
		this.i24.o23(O25);
	}
};
o24.prototype.i25= function(O25,l25){
	if(this.i24){
		this.i24.i25(O25,l25);
	}
};
RadWindowNamespace.I24= {
	I25: [],
	Dispose:function (){
		this.I25=null;
	},
	AddShortcut:function(O25,l25){
		var o26=new RadWindowNamespace.O26(O25,l25);
		o26.l26=this.i26(o26);
		this.I25[o26.l26]=o26;
	},
	o23:function(O25){
		var I26=this.o27(O25);
		if(I26){
			this.I25[I26.l26]=null;
		}
	},
	i25:function(O25,l25){
		this.o23(O25);
		this.AddShortcut(O25,l25);
	},
	HitTest:function(keyCode,ctrlKey,O27,shiftKey,l27,altKey,i27){
		var I27=this.o28(keyCode,ctrlKey,O27,shiftKey,l27,altKey,i27);
		return this.I25[I27];
	},
	o28:function(keyCode,ctrlKey,O27,shiftKey,l27,altKey,i27){
		var value=keyCode&65535; 
		var O28=0; 
		O28 |= (ctrlKey?RadWindowNamespace.l28: 0); 
		O28 |= (shiftKey?RadWindowNamespace.i28: 0); 
		O28 |= (altKey?RadWindowNamespace.I28: 0); 
		value |= (O28<<16); 
		return value; 
	},
	i26:function(o29){
		return this.o28(o29.O29,o29.l29,o29.i29,o29.I29,o29.o2a,o29.O2a,o29.l2a);
	},
	o27:function(O25){
		var I26; 
		for (var i2a in this.I25){
			I26=this.I25[i2a]; 
			if (null!=I26 && I26.Name==O25){ return I26; }
		}
		return null;
	}
};
RadWindowNamespace.l28=(1<<0);
RadWindowNamespace.l28=(1<<1);
RadWindowNamespace.i28=(1<<2);
RadWindowNamespace.I28=(1<<3);
RadWindowNamespace.I28=(1<<4);
RadWindowNamespace.I2a=(1<<5);
RadWindowNamespace.O26= function (O25,l25){
	this.l29= false;
	this.I29= false;
	this.O2a= false;
	this.O29=0;
	this.Name=O25;
	this.o2b(l25);
};
RadWindowNamespace.O26.prototype.o2b= function(l25){
	if("string"==typeof(l25)){
		this.l29= false;
		this.i29= false;
		this.I29= false;
		this.o2a= false;
		this.O2a= false;
		this.l2a= false;
		this.O29=0;
		l25=l25.replace(/\s*/gi,"");
		l25=l25.replace(/\x2b\x2b/gi,"\x2bPLUS");
		var O2b=l25.split("\x2b");
		var l2b="";
		for (var i=0; i<O2b.length; i++){
			l2b=O2b[i].toUpperCase();
			switch (l2b){
				case "LCTRL": this.i29= true; 
					case "CTRL": this.l29= true; break; 
				case "LSHIFT": this.o2a= true; 
					case "\123HIFT": this.I29= true; break; 
				case "\114ALT": this.l2a= true; 
					case "ALT": this.O2a= true; break; 
				case "F1": this.O29=112; break; 
				case "F2": this.O29=113; break; 
				case "F3": this.O29=114; break; 
				case "F4": this.O29=115; break; 
				case "F5": this.O29=116; break; 
				case "F6": this.O29=117; break; 
				case "F7": this.O29=118; break; 
				case "F8": this.O29=119; break; 
				case "F9": this.O29=120; break; 
				case "F10": this.O29=121; break; 
				case "F11": this.O29=122; break; 
				case "F12": this.O29=123; break; 
				case "ENTER": this.O29=13; break; 
				case "HOME": this.O29=36; break; 
				case "E\x4eD": this.O29=35; break; 
				case "LEFT": this.O29=37; break; 
				case "RIGHT": this.O29=39; break; 
				case "\x55P": this.O29=38; break; 
				case "DoWN": this.O29=40; break; 
				case "PAGEUP": this.O29=33; break; 
				case "PAGEDOWN": this.O29=34; break; 
				case "SPACE": this.O29=32; break; 
				case "TAB": this.O29=9; break; 
				case "BAC\x4b": this.O29=8; break; 
				case "CoNTEXT": this.O29=93; break; 
				case "ESCAPE":case "ESC": this.O29=27; break; 
				case "DELETE":case "DEL": this.O29=46; break; 
				case "I\x4eSERT":case "INS": this.O29=45; break; 
				case "PLUS": this.O29="+" .charCodeAt(0); break; 
				default: this.O29=l2b.charCodeAt(0); break; 
			}
		}
	}else{
		throw{description: "Invalid shortcut string" };
	}
};

RadWindowNamespace.r= function(S){
	this.Window=S;
	this.Id=S.Id;
	var Q=GetRadWindowManager();
	var P=Q.N(S);
	var n=document.createElement("div"); 
	n.innerHTML=P; 
	document.body.appendChild(n);
	this.M=(n.childNodes.length==1)?n.firstChild:n; 
	var m=this ; 
	var L= function (){m.SetVisible(false);};
	var l=this.M; 
	if(l){
		l.setAttribute("id","RadWMinimized"+this.Id); 
		l.className="RadWMinimizedActive"; 
		l.onmouseover= function (){
			this.K=this.className;
			this.className="RadWMinimizedOver";
		};
		l.onmouseout= function(){
			this.className=this.K;
		};
	}

	var k=m.J("RadWMinimizedTitle");
	if (k){m.H=k; }
	var h=m.J("RadWMinimizedClose"); 
	if (h){
		if (!S.W(RadWindowBehavior.Close)){ h.style.display="none"; }
		else {h.onclick= function (e){S.Close();};}
	}
	if (S.G(RadWindowMinimizeMode.g)){
		var F=m.J("RadWMinimizedRestore"); 
		if (F)F.style.display="none"; 
		this.M.onclick= function (){
			if (S.IsClosed())return; 
			if (!S.IsVisible()){
				S.Show(); 
			}
			S.SetActive(true);
			l.K=l.className="RadWMinimizedActive";
		};
		S.AttachClientEvent("onshow",this.f);
	}else {
		var F=m.J("RadWMinimizedRestore");
		if (F)F.onclick= function (){m.D(); };
		this.M.ondblclick= function (){ m.D(); };
		if(this.M.tagName=="TABLE" && this.M.rows.length>0){
			var d=this.M.rows[0].cells[1]; 
			if(d){
				d.setAttribute("grip","true"); 
				d.setAttribute("titleGrip","show"); 
			}
		}
		RadWindowNamespace.C(this.M,c= true ,B= true ,o0= false ,S.W(RadWindowBehavior.O0)); 
		l.l0= function (){
			var T=this.i0(); 
			var I0=S.o1; 
			if (I0){
				I0.top=T.top; 
				I0.left=T.left; 
			}
		};
		S.AttachClientEvent("onmaximize",L); 
		S.AttachClientEvent("onrestore",L); 
	}
	S.AttachClientEvent("onclose",L); 
	S.AttachClientEvent("onminimize",this.f);
	S.AttachClientEvent("onactivate", function (){m.v( true); } ); 
	S.AttachClientEvent("ondeactivate", function (){m.v( false); } ); 
	S.AttachClientEvent("onwindowload", 
		function (){
			if (m.H)m.H.innerHTML=S.O1; 
			var l=m.M;
			if ("none"!=l.style.display){
				if (!m.l1 && !S.IsVisible()){
					m.i1=0; m.l1=window.setInterval(
						function (){
							m.M.className=((m.i1++)%2==0)?"RadWMinimizedActive": "RadWMinimizedPageLoaded"; 
							if (11==m.i1){window.clearInterval(m.l1); m.l1=null; m.i1=0; }
						},
					500); 
				}
			}
		}
	);
};
RadWindowNamespace.r.prototype= {
	J:function (name){
		return document.getElementById(name+this.Id); 
	},
	Dispose:function(I1){
		this.Window=null;
		var l=this.M;
		l.ondblclick=null;
		l.onclick=null;
		l.o2=null;
		l.l0=null;
		if(l.parentNode && l.parentNode.removeChild){
			l.parentNode.removeChild(l); 
			l.removeAttribute("id");
		}
		this.M=null;
	},
	f:function(S){
		var O2=S.l2;
		var m=S.i2;
		if (m.H)m.H.innerHTML=S.O1; 
		if (!(RadWindowMinimizeMode.I2==O2)){
			if (S.o3){
				var O3=document.getElementById(S.o3); 
				if (O3){
					var l3=m.M; 
					if (l3.parentNode!=O3){
						l3.parentNode.removeChild(l3);
						O3.appendChild(l3);
						l3.style.position="";
					}
					l3.style.display="inline";
				}
				return;
			}
		}
		var T=S.i3(); 
		var x=null,y=null; 
		if(!T){
			var T=m.Window.I3(); 
			x=T.left; 
			y=T.top; 
		}else {
			x=T.left; 
			y=T.top; 
		}
		if (m.M.MoveTo){
			m.M.MoveTo(x,y); 
		}
		m.SetVisible(true); 
		m.o4(); 
	},
	D:function(){
		var S=this.Window; 
		var O4=this.M; 
		var T=O4.i0(); 
		var I0=S.o1; 
		if (I0){
			I0.top=T.top; 
			I0.left=T.left; 
			S.Restore();
		}else {
			if (!S.IsVisible())S.Show(); 
			S.SetSize(S.Width,S.Height); 
			S.MoveTo(T.left,T.top); 
			S.SetActive(true);
		}
		O4.Hide();
	},
	v:function(setActive){
		var l=this.M; 
		if ("none"==l.style.display)return; 
		if (setActive){
			if (this.Window.G(RadWindowMinimizeMode.g)){
				if (!this.Window.IsVisible())this.Window.Show(); 
			}
			else {RadWindowNamespace.l4(l); }
		}
		l.className=setActive?"RadWMinimizedActive": "RadWMinimizedInactive"; 
	},
	o4:function (){
		RadWindowNamespace.i4(this.Window.IsPinned(),this.M); 
	},
	SetVisible:function(I1){
		var l=this.M;
		if (I1){
			if (l.Show)l.Show();
			else l.style.display="";
			var T=l.i0();
			l.SetSize(T.width,T.height, false);
		}
		else{
			if (l.Hide)l.Hide(); 
			else l.style.display="none"; 
		}
	}
};
RadWindowNamespace.RadWindowModal= function (S){
	this.Window=S;
	var m=this;
	this.o21();
	function O21(){
		var l21=m.o21();
		var scrollLeft=(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft);
		var scrollTop=(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop);
		var clientWidth;
		if(window.innerWidth){
			clientWidth=Math.min(window.innerWidth,document.documentElement.clientWidth);
		}
		else{
			clientWidth=Math.max(document.body.clientWidth,document.documentElement.clientWidth);
		}
		var clientHeight; 
		if (window.innerHeight){
			clientHeight=Math.max(window.innerHeight,document.documentElement.clientHeight);
		}
		else {
			if(document.documentElement.clientHeight>0) clientHeight=document.documentElement.clientHeight; 
			else clientHeight=document.body.clientHeight; 
		}
		l21.style.left=scrollLeft+"px"; 
		l21.style.top=scrollTop+"p\x78"; 
		l21.style.width=clientWidth+"px"; 
		l21.style.height=clientHeight+"px"; 
		S.Center();
	};
	this.i21=O21; 
	this.I21=O21; 
	var o22= function (){ m.v(true); };
	S.AttachClientEvent("onactivate",o22);
	S.AttachClientEvent("onrestore",o22);
	var o13= function (){m.v(false);};
	S.AttachClientEvent("onclose",o13);
	S.AttachClientEvent("onminimize",o13);
	S.O1b= function (O1f){S.iy.className=O1f?"RadWWrapperModal": "RadWWrapperInactive"; };
	this.O22=[];
};
RadWindowNamespace.RadWindowModal.prototype.Dispose= function (){
	this.Window=null;
	this.l22.className="";
	this.l22=null;
	this.O22=null;
	RadWindowNamespace.Ok(window,"resize",this.i21);
	RadWindowNamespace.Ok(window,"scroll",this.I21);
};
RadWindowNamespace.RadWindowModal.prototype.o21= function(){
	if(!this.l22){
		var img=document.createElement("IMG");
		img.src=this.Window.Ox+base_img+"Img/transp.gif";
		function i22(e){
			RadWindowNamespace.RadUtil_CancelEvent(e);
			return false;
		};
		img.setAttribute("unselectable","on");
		img.setAttribute("galleryimg","no");
		img.onselectstart=i22;
		img.ondragstart=i22;
		img.onmouseover=i22;
		img.onmousemove=i22;
		img.onmouseup=i22;
		img.style.position="absolute";
		img.className="RadWModalImage";
		this.l22=img; 
	}
	return this.l22;
};
RadWindowNamespace.RadWindowModal.prototype.v= function(O1f){
	var Q=this.Window.GetWindowManager();
	if(O1f && !this.Window.ix && !this.Window.R){
		this.l1w();
		this.I22();
		if(Q && Q.AddShortcut){
			Q.DisableTabKey= function (){};
			Q.AddShortcut("DisableTabKey","TAB");
		}
	}
	else{
		if(Q && Q.AddShortcut){
			Q.DisableTabKey=null;
			Q.o23("DisableTabKey");
		}
		this.I1t(); 
		this.O23(); 
		var o8=this.Window.iy; 
	}
}; 
RadWindowNamespace.RadWindowModal.prototype.I22= function (){
	if (this.Window.IsIE){ 
		this.O22=[]; 
		var l23=document.getElementsByTagName("SELECT"); 
		for (var i=0; i<l23.length; i++){ 
			this.O22[i]= {
				i23:l23[i],isDisabled:l23[i].disabled 
			};
			l23[i].setAttribute("disabled","true");
		}
	}
};
RadWindowNamespace.RadWindowModal.prototype.O23= function (){
	if (this.Window.IsIE){
		for (var i=0; i<this.O22.length; i++){
			var I23=this.O22[i]; I23.i23.setAttribute("disabled",I23.isDisabled); 
		}
	}
};
RadWindowNamespace.RadWindowModal.prototype.l1w= function (){
	RadWindowNamespace.lj(window,"resize",this.i21); 
	RadWindowNamespace.lj(window,"scroll",this.I21); 
	var l20=this.Window.iy; 
	var i20=this.o21(); 
	if (l20 && l20.style.zIndex){
		if (null!=document.readyState && "complete"!=document.readyState){
			return;
		}
		else {
			if (i20.parentNode!=document.body) document.body.appendChild(i20);
			var zIndex=parseInt(l20.style.zIndex)+5; 
			i20.style.zIndex=zIndex+(document.all?0: -2); 
			i20.style.display=""; 
			var A=this.Window; 
			window.setTimeout( 
				function(){
					i20.style.zIndex=zIndex+(document.all?0: -2);
					i20.style.display="";
					l20.style.zIndex=zIndex;
					A.iy.Show();
				},400
			);
		}
	}
	this.i21();
};
RadWindowNamespace.RadWindowModal.prototype.I1t= function (){
	if (this.l22)this.l22.style.display="none"; 
	RadWindowNamespace.Ok(window,"resize",this.i21); 
	RadWindowNamespace.Ok(window,"scroll",this.I21); 
};
RadWindowNamespace.i1o= {
	I1o:function (){
		var Q=GetRadWindowManager(); 
		var o1p=Q.GetWindowObjects(); 
		for (var i=0; i<o1p.length; i++){
			var A=o1p[i]; 
			var O1p=(A.IsVisible() || A.l13())+"-"+A.GetWidth()+"-"+A.GetHeight()+"-"+A.GetLeftPosition()+"-"+A.GetTopPosition()+"-"+A.l13();
			this.l1p(A.Id,O1p); 
		}
	},
	i1p:function (){
		function I1p(A){
			var array=z.split("-"); 
			if (array.length>1){
				"true"==array[0]?A.Show():A.Hide(); 
				window.setTimeout( 
					function(){
						if(parseInt(array[1])>0)A.SetWidth(array[1]); 
						if (parseInt(array[2])>0)A.SetHeight(array[2]); 
						A.MoveTo(array[3],array[4]); 
						if ("true"==array[5]){A.Minimize();}
					},1
				);
			}
		};
		var m=RadWindowNamespace.i1o; 
		var Q=GetRadWindowManager(); 
		var o1p=Q.GetWindowObjects(); 
		for (var i=0; i<o1p.length; i++){
			var A=o1p[i];
			var z=m.o1q(A.Id);
			if (z){I1p(A);}
		}
	},
	O1q:function(){
		var l1q="RadWindowCookie"; 
		var i1q=document.cookie.split("\x3b "); 
		for (var i=0; i<i1q.length; i++){
			var I1q=i1q[i].split("="); 
			if (l1q==I1q[0])return I1q[1];
		}
		return null;
	},
	l1p:function(l1q,o1r){
		l1q="["+l1q+"\x5d";
		var O1r=this.O1q();
		var l1r="";
		var i1r="";
		if(O1r){
			var array=O1r.split(l1q);
			if (array && array.length>1){
				l1r=array[0]; 
				i1r=array[1].substr(array[1].indexOf("#")+1);
			}
			else i1r=O1r;
		}
		var I1r=new Date();
		I1r.setFullYear(I1r.getFullYear()+10);
		document.cookie="RadWindowCookie"+"="+(l1r+l1q+"-"+o1r+"\x23"+i1r)+";path=\x2f\x3bexpires="+I1r.toUTCString()+"\x3b";
	},
	o1q:function(l1q){
		var o1s=this.O1q(); 
		if (!o1s)return; 
		var o1r=null; 
		l1q="\x5b"+l1q+"]"; 
		var index=o1s.indexOf(l1q); 
		if (index>=0){
			var I18=index+l1q.length+1;
			o1r=o1s.substring(I18,o1s.indexOf("#",I18));
		}
		return o1r;
	}
};
RadWindowNamespace.o1g=5;
RadWindowNamespace.O1g=5;
RadWindowNamespace.l1g= {
	i1g: true ,
	I1g:function (){
		if (this.o1h)return; 
		else this.o1h= true; 
		this.O1h=["nw-resize","n-resize","ne-resize","w-resize","e-resize","sw-resize","s-resize","se-resize"]; 
		var m=this ;
		var l1h= function(l,i1h,I1h){
			l.onmousemove= function(e){
				m.o1i=i1h;
				this.style.cursor=i1h;
			};
		};
		var O1i=[];
		O1i[0]=this.rows[0].cells[0];
		O1i[1]=this.rows[0].cells[1].getElementsByTagName("DIV")[0]; 
		O1i[2]=this.rows[0].cells[this.rows[0].cells.length-1];
		var l1i=this.rows[1].getElementsByTagName("TABLE")[0].rows[0];
		O1i[3]=l1i.cells[0]; O1i[4]=l1i.cells[2];
		var i1i=this.rows[this.rows.length-1].getElementsByTagName("TABLE")[0].rows[0];
		O1i[5]=i1i.cells[0];
		O1i[6]=i1i.cells[1];
		O1i[7]=i1i.cells[2];
		for (var i=0; i<O1i.length; i++){
			I1i=O1i[i];
			if(I1i){
				l1h(I1i,this.O1h[i],i+1);
			}
		};
		this.o1j=O1i;
	},
	O1j:function(Oj,l1j,i1j){
		if(!this.i1g)return ""; 
		var I1j=Oj.srcElement?Oj.srcElement:Oj.target;
		this.I1g();
		var i1h=this.o1i;
		this.o1i="";
		if (!i1h)i1h="";
		return i1h;
	},
	o1k:function(Oj,l1j,i1j){
		if(this.tagName=="TABLE"){
			return this.O1j(Oj,l1j,i1j);
		}
		if(!this.i1g)return ""; 
		var I1j=Oj.srcElement?Oj.srcElement:Oj.target; 
		if (I1j!=this )return ""; 
		var O1k=this.i0(); 
		var l1k=""; 
		if (null==l1j)l1j=RadWindowNamespace.o1g; 
		if (null==i1j)i1j=RadWindowNamespace.O1g; 
		var offsetX,offsetY; 
		if (null!=Oj.offsetY){
			offsetX=Oj.offsetX; 
			offsetY=Oj.offsetY; 
		}
		else if (null!=Oj.layerY){
			offsetX=Oj.layerX; 
			offsetY=Oj.layerY; 
		}
		if (offsetY<=i1j && this.i1k){
			l1k+="n"; 
		}
		else if ((O1k.height-offsetY)<=i1j && this.I1k){l1k+="s"; }
		if (offsetX<=l1j && this.o1l){l1k+="w"; }
		else if ((O1k.width-offsetX)<=l1j && this.O1l){l1k+="e"; }
		return (""!=l1k?(l1k+"-resize"): ""); 
	},
	w:function (Oj){
		var l1l=Oj.clientX-this.i1l;
		var I1l=Oj.clientY-this.o1m;
		this.style.cursor=this.O1m;
		switch (this.O1m){
			case "n-resize": this.l1m(0,I1l,null,null); break; 
			case "s-resize": this.l1m(0,0,0,I1l); break; 
			case "w-resize": this.l1m(l1l,0,null,null); break; 
			case "e-resize": this.l1m(0,0,l1l,0); break; 
			case "ne-resize": this.l1m(0,I1l,l1l,null); break; 
			case "nw-resize": this.l1m(l1l,I1l,null,null); break; 
			case "se-resize": this.l1m(0,0,l1l,I1l); break; 
			case "sw-resize": this.l1m(l1l,0,null,I1l); break; 
			default:break; 
		}
	},
	l1m:function(offsetLeft,offsetTop,offsetWidth,offsetHeight){
		var O1k=this.i0(); 
		var top=O1k.top+offsetTop; 
		var left=O1k.left+offsetLeft; 
		if (top<0){offsetTop=-O1k.top; }
		if (left<0){offsetLeft=-O1k.left; }
		top=O1k.top+offsetTop; 
		left=O1k.left+offsetLeft; 
		if (null==offsetWidth)offsetWidth=-offsetLeft;
		if (null==offsetHeight)offsetHeight=-offsetTop;
		var width=O1k.width+offsetWidth;
		var height=O1k.height+offsetHeight;
		width=Math.max(this.i1m,width);
		width=Math.min(this.I1m,width);
		height=Math.max(this.o1n,height);
		height=Math.min(this.O1n,height);
		var l1n=(this.i1n?this.i1n: this );
		if (O1k.width!=width){l1n.I1n(offsetLeft,0); l1n.SetSize(width,null); }
		if (O1k.height!=height){l1n.I1n(0,offsetTop); l1n.SetSize(null,height); }
	},
	o1o:function (O1o){
		this.i1k=(-1!=O1o.indexOf("n"));
		this.I1k=(-1!=O1o.indexOf("s"));
		this.O1l=(-1!=O1o.indexOf("e"));
		this.o1l=(-1!=O1o.indexOf("w"));
	},
	l1o:function (){
		var O1o=this.getAttribute("resize"); 
		if ("string"==typeof(O1o)){O1o=O1o.toLowerCase(); }
		else {O1o="nsew"; } 
		this.o1o(O1o); 
		this.i1m=RadWindowNamespace.Oh(this.getAttribute("minWidth")); 
		this.I1m=RadWindowNamespace.Oh(this.getAttribute("maxWidth"),100000); 
		this.o1n=RadWindowNamespace.Oh(this.getAttribute("minHeight")); 
		this.O1n=RadWindowNamespace.Oh(this.getAttribute("maxHeight"),100000); 
	}
};
