Type.registerNamespace("Telerik.Web.UI");
Type.registerNamespace("Telerik.Web.UI.WindowManager");
$telerik.toWindowManager=function(a){return a;
};
$telerik.findWindowManager=$find;
function GetRadWindowManager(){return Telerik.Web.UI.WindowManager.Manager;
}window.radalert=function(f,e,c,d,a,b){var g=GetRadWindowManager();
return g.radalert(f,e,c,d,a,b);
};
window.radconfirm=function(g,a,f,d,b,e,c){var h=GetRadWindowManager();
return h.radconfirm(g,a,f,d,b,e,c);
};
window.radprompt=function(h,a,g,d,b,f,c){var e=GetRadWindowManager();
return e.radprompt(h,a,g,d,b,f,c);
};
window.radopen=function(f,c,g,a,b,e){var d=GetRadWindowManager();
return d.open(f,c,null,g,a,b,e);
};
window.radopenWithContainer=function(b,d){var c=GetRadWindowManager();
var a=$get(b);
if(!a){c.radalert("Content element with such ClientID not found!
Make sure you have provided a correct ClientID!");
return;
}return c.open(null,d,a);
};
(function(a){var b=Telerik.Web.UI;
var c=b.WindowManager;
var d=".telerikDialogKeyboardNavigation";
c.DialogKeyboardNavigation=function(e){var f=this;
f._dialog=e;
f._shortCuts=[];
};
c.DialogKeyboardNavigation.prototype={addShortCut:function(f){var h=this;
var g=a.extend({key:"",element:null,eventName:"",action:null,preventDefault:true,stopPropagation:true},f||{});
var e=g.action;
h._shortCuts.push(g);
a(g.element).on(g.eventName+d,function(i){if(i.keyCode===g.key){if(g.preventDefault){i.preventDefault();
}if(g.stopPropagation){i.stopPropagation();
}if(a.isFunction(e)){e();
}}});
},dispose:function(){var f=this._shortCuts;
var g=f?f.length:0;
for(var e=0;
e1){if("true"==i[0]&&!p.isVisible()){p.show();
}window.setTimeout(function(){if(parseInt(i[1],10)>0){p.set_width(i[1]);
}if(parseInt(i[2],10)>0){p.set_height(i[2]);
}if("true"==i[0]){p.moveTo(parseInt(i[3],10),parseInt(i[4],10));
}if("true"==i[5]){p.minimize();
}},1);
}}var m=this.get_windows();
for(j=0;
j1){j=i[0];
k=i[1].substr(i[1].indexOf("#")+1);
}else{k=m;
}}var o=new Date();
o.setFullYear(o.getFullYear()+10);
document.cookie="RadWindowCookie="+(j+l+"-"+n+"#"+k)+";path=/;expires="+o.toUTCString()+";";
},_getRadWindowCookie:function(l){var i=this._getOnlyCookie();
if(!i){return;
}var m=null;
l="["+l+"]";
var k=i.indexOf(l);
if(k>=0){var j=k+l.length+1;
m=i.substring(j,i.indexOf("#",j));
}return m;
},cascade:function(){var m=0;
var l=0;
var k=this._getWindowsSortedByZindex();
for(var j=0;
j6){break;
}}p=j;
m=Math.ceil(n/p);
}var q=$telerik.getClientBounds();
var u=Math.floor(q.width/m);
var t=Math.floor(q.height/p);
var k=document.documentElement.scrollLeft||document.body.scrollLeft;
var w=document.documentElement.scrollTop||document.body.scrollTop;
var v=0;
for(j=0;
jm){w+=t;
k=document.documentElement.scrollLeft||document.body.scrollLeft;
}r.restore();
r.moveTo(k,w);
r.setSize(u,t);
k+=u;
}}},closeActiveWindow:function(){this._executeActiveWindow("close");
},minimizeActiveWindow:function(){this._executeActiveWindow("minimize");
},restoreActiveWindow:function(){this._executeActiveWindow("restore");
},closeAll:function(){this._executeAll("close");
},showAll:function(){this._executeAll("show");
},minimizeAll:function(){this._executeAll("minimize");
},maximizeAll:function(){this._executeAll("maximize");
},restoreAll:function(){this._executeAll("restore");
},_getWindowsSortedByZindex:function(){var i=this._windows.concat([]);
var j=function(k,l){var m=k.get_zindex();
var n=l.get_zindex();
if(m==n){return 0;
}return(m