/* START Telerik.Web.UI.Common.Core.js */
try{document.execCommand("BackgroundImageCache",false,true)
}catch(err){}Type.registerNamespace("Telerik.Web.UI");
window.$telerik=window.TelerikCommonScripts=Telerik.Web.CommonScripts={cloneJsObject:function(c,b){if(!b){b={}
}for(var d in c){var a=c[d];
b[d]=(a instanceof Array)?Array.clone(a):a
}return b
},isCloned:function(){return this._isCloned
},cloneControl:function(b,c,d){if(!b){return null
}if(!c){c=Object.getType(b)
}var a=b.__clonedProperties__;
if(null==a){a=b.__clonedProperties__=$telerik._getPropertiesParameter(b,c)
}if(!d){d=b.get_element().cloneNode(true);
d.removeAttribute("control");
d.removeAttribute("id")
}var f=$create(c,a,null,null,d);
var e=$telerik.cloneJsObject(b.get_events());
f._events=e;
f._events._list=$telerik.cloneJsObject(f._events._list);
f._isCloned=true;
f.isCloned=$telerik.isCloned;
return f
},_getPropertiesParameter:function(d,h){var e={};
var f=h.prototype;
for(var a in f){var c=d[a];
if(typeof(c)=="function"&&a.indexOf("get_")==0){var b=a.substring(4);
if(null==d["set_"+b]){continue
}var g=c.call(d);
if(null==g){continue
}e[b]=g
}}delete e.clientStateFieldID;
delete e.id;
return e
},_rgbToHex:function(c){if(c.toLowerCase().indexOf("rgb")!=-1){var b="#";
var a=function(e){var d=parseInt(e,10).toString(16);
b=b+(d.length==1?"0"+d:d);
return e
};
c=c.replace(/(\d+)/gi,a);
a=null;
return b
}else{return c
}},getOuterSize:function(c){var a=$telerik.getBounds(c);
var b=$telerik.getMarginBox(c);
return{width:a.width+b.left+b.right,height:a.height+b.top+b.bottom}
},getOuterBounds:function(c){var a=$telerik.getBounds(c);
var b=$telerik.getMarginBox(c);
return{x:a.x-b.left,y:a.y-b.top,width:a.width+b.left+b.right,height:a.height+b.top+b.bottom}
},getInvisibleParent:function(a){while(a&&a!=document){if("none"==$telerik.getCurrentStyle(a,"display","")){return a
}a=a.parentNode
}return null
},addParentVisibilityChangeHandler:function(b,a){if(b){if($telerik.isIE){$addHandler(b,"propertychange",a)
}else{b.addEventListener("DOMAttrModified",a,false)
}}},removeParentVisibilityChangeHandler:function(b,a){if(b&&a){if($telerik.isIE){$removeHandler(b,"propertychange",a)
}else{b.removeEventListener("DOMAttrModified",a,false)
}}},scrollIntoView:function(e){if(!e||!e.parentNode){return
}var f=null;
var c=0;
var d=e.parentNode;
while(d!=null){if(d.tagName=="BODY"){var a=d.ownerDocument;
if(!$telerik.isIE&&a.defaultView&&a.defaultView.frameElement){c=a.defaultView.frameElement.offsetHeight
}f=d;
break
}var b=$telerik.getCurrentStyle(d,"overflowY");
if(b=="scroll"||b=="auto"){f=d;
break
}d=d.parentNode
}if(!f){return
}if(!c){c=f.offsetHeight
}if(c<e.offsetTop+e.offsetHeight){f.scrollTop=(e.offsetTop+e.offsetHeight)-c
}else{if(e.offsetTop<f.scrollTop){f.scrollTop=e.offsetTop
}}},isRightToLeft:function(a){while(a&&a.nodeType!==9){if(a.dir=="rtl"||$telerik.getCurrentStyle(a,"direction")=="rtl"){return true
}a=a.parentNode
}return false
},getCorrectScrollLeft:function(a){if($telerik.isRightToLeft(a)){return -(a.scrollWidth-a.offsetWidth-Math.abs(a.scrollLeft))
}else{return a.scrollLeft
}},getPreviousHtmlNode:function(a){if(!a||!a.previousSibling){return null
}while(a.previousSibling){if(a.previousSibling.nodeType==1){return a.previousSibling
}a=a.previousSibling
}},getNextHtmlNode:function(a){if(!a||!a.nextSibling){return null
}while(a.nextSibling){if(a.nextSibling.nodeType==1){return a.nextSibling
}a=a.nextSibling
}},getTextContent:function(a){if(!a){return null
}if(a.innerText!=null){return a.innerText
}if(a.textContent!=null){var b=a.textContent;
b=b.replace(/<!--(.|\s)*?-->/gi,"");
return b
}return null
},_borderStyleNames:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],_borderWidthNames:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],_paddingWidthNames:["paddingTop","paddingRight","paddingBottom","paddingLeft"],_marginWidthNames:["marginTop","marginRight","marginBottom","marginLeft"],radControls:[],registerControl:function(a){if(!Array.contains(this.radControls,a)){Array.add(this.radControls,a)
}},unregisterControl:function(a){Array.remove(this.radControls,a)
},repaintChildren:function(b){var e=b.get_element();
for(var c=0,d=this.radControls.length;
c<d;
c++){var a=this.radControls[c];
if(a.repaint&&this.isDescendant(e,a.get_element())){a.repaint()
}}},_borderThickness:function(){$telerik._borderThicknesses={};
var a=document.createElement("div");
var c=document.createElement("div");
a.style.visibility="hidden";
a.style.position="absolute";
a.style.fontSize="1px";
c.style.height="0px";
c.style.overflow="hidden";
document.body.appendChild(a).appendChild(c);
var b=a.offsetHeight;
c.style.borderTop="solid black";
c.style.borderTopWidth="thin";
$telerik._borderThicknesses.thin=a.offsetHeight-b;
c.style.borderTopWidth="medium";
$telerik._borderThicknesses.medium=a.offsetHeight-b;
c.style.borderTopWidth="thick";
$telerik._borderThicknesses.thick=a.offsetHeight-b;
if(typeof(a.removeChild)!=="undefined"){a.removeChild(c)
}document.body.removeChild(a);
if(!$telerik.isSafari){c.outerHTML=null
}if(!$telerik.isSafari){a.outerHTML=null
}a=null;
c=null
},getCurrentStyle:function(c,a,e){var d=null;
if(c){if(c.currentStyle){d=c.currentStyle[a]
}else{if(document.defaultView&&document.defaultView.getComputedStyle){var b=document.defaultView.getComputedStyle(c,null);
if(b){d=b[a]
}}}if(!d&&c.style.getPropertyValue){d=c.style.getPropertyValue(a)
}else{if(!d&&c.style.getAttribute){d=c.style.getAttribute(a)
}}}if((!d||d==""||typeof(d)==="undefined")){if(typeof(e)!="undefined"){d=e
}else{d=null
}}return d
},getInheritedBackgroundColor:function(b){if(!b){return"#FFFFFF"
}var a=$telerik.getCurrentStyle(b,"backgroundColor");
try{while(!a||a==""||a=="transparent"||a=="rgba(0, 0, 0, 0)"){b=b.parentNode;
if(!b){a="#FFFFFF"
}else{a=$telerik.getCurrentStyle(b,"backgroundColor")
}}}catch(c){a="#FFFFFF"
}return a
},getLocation:function(q){if(q===document.documentElement){return new Sys.UI.Point(0,0)
}if(Sys.Browser.agent==Sys.Browser.InternetExplorer){if(q.window===q||q.nodeType===9||!q.getClientRects||!q.getBoundingClientRect){return new Sys.UI.Point(0,0)
}var n=q.getClientRects();
if(!n||!n.length){return new Sys.UI.Point(0,0)
}var g=n[0];
var s=0;
var A=0;
var b=false;
try{b=q.ownerDocument.parentWindow.frameElement
}catch(d){b=true
}if(b){var h=q.getBoundingClientRect();
if(!h){return new Sys.UI.Point(0,0)
}var l=g.left;
var x=g.top;
for(var m=1;
m<n.length;
m++){var f=n[m];
if(f.left<l){l=f.left
}if(f.top<x){x=f.top
}}s=l-h.left;
A=x-h.top
}var o=q.document.documentElement;
var w=0;
if(Sys.Browser.version<8){if(b){if(b.getAttribute){var a=b.getAttribute("frameborder");
w=2*((a!=null&&a!="")?a:1)
}}else{w=2
}}var y=new Sys.UI.Point(g.left-w-s+$telerik.getCorrectScrollLeft(o),g.top-w-A+o.scrollTop);
if($telerik.quirksMode){y.x+=$telerik.getCorrectScrollLeft(document.body);
y.y+=document.body.scrollTop
}return y
}var y=Sys.UI.DomElement.getLocation(q);
if($telerik.isOpera){var B=q.offsetParent;
while(B){var p=B.tagName.toUpperCase();
if(p=="BODY"||p=="HTML"){break
}if(p=="TABLE"&&B.parentNode&&B.parentNode.style.display=="inline-block"){var k=B.offsetLeft;
var e=B.style.display;
B.style.display="inline-block";
if(B.offsetLeft>k){y.x+=B.offsetLeft-k
}B.style.display=e
}y.x-=$telerik.getCorrectScrollLeft(B);
y.y-=B.scrollTop;
B=B.offsetParent
}}if(!$telerik.isOpera){var t=q.offsetParent;
while(t){if($telerik.getCurrentStyle(t,"position")=="fixed"){y.y+=Math.max(document.documentElement.scrollTop,document.body.scrollTop);
y.x+=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);
break
}t=t.offsetParent
}}if($telerik.isSafari){var B=q.parentNode;
var u=null;
var z=null;
if($telerik.isSafari3||$telerik.isSafari2){while(B&&B.tagName.toUpperCase()!="BODY"&&B.tagName.toUpperCase()!="HTML"){if(B.tagName.toUpperCase()=="TD"){u=B
}else{if(B.tagName.toUpperCase()=="TABLE"){z=B
}else{var v=$telerik.getCurrentStyle(B,"position");
if(v=="absolute"||v=="relative"){var j=$telerik.getCurrentStyle(B,"borderTopWidth",0);
var c=$telerik.getCurrentStyle(B,"borderLeftWidth",0);
y.x+=parseInt(j);
y.y+=parseInt(c)
}}}var v=$telerik.getCurrentStyle(B,"position");
if(v=="absolute"||v=="relative"){y.x-=B.scrollLeft;
y.y-=B.scrollTop
}if(u&&z){y.x+=parseInt($telerik.getCurrentStyle(z,"borderTopWidth"));
y.y+=parseInt($telerik.getCurrentStyle(z,"borderLeftWidth"));
if($telerik.getCurrentStyle(z,"borderCollapse")!="collapse"){y.x+=parseInt($telerik.getCurrentStyle(u,"borderTopWidth"));
y.y+=parseInt($telerik.getCurrentStyle(u,"borderLeftWidth"))
}u=null;
z=null
}else{if(z){if($telerik.getCurrentStyle(z,"borderCollapse")!="collapse"){y.x+=parseInt($telerik.getCurrentStyle(z,"borderTopWidth"));
y.y+=parseInt($telerik.getCurrentStyle(z,"borderLeftWidth"))
}z=null
}}B=B.parentNode
}}}if($telerik.isIE&&$telerik.quirksMode){y.x+=$telerik.getCorrectScrollLeft(document.body);
y.y+=document.body.scrollTop
}return y
},setLocation:function(a,b){Sys.UI.DomElement.setLocation(a,b.x,b.y)
},findControl:function(b,e){var a=b.getElementsByTagName("*");
for(var d=0,f=a.length;
d<f;
d++){var c=a[d].id;
if(c&&c.endsWith(e)){return $find(c)
}}return null
},findElement:function(b,e){var a=b.getElementsByTagName("*");
for(var d=0,f=a.length;
d<f;
d++){var c=a[d].id;
if(c&&c.endsWith(e)){return $get(c)
}}return null
},getContentSize:function(c){if(!c){throw Error.argumentNull("element")
}var a=$telerik.getSize(c);
var b=$telerik.getBorderBox(c);
var d=$telerik.getPaddingBox(c);
return{width:a.width-b.horizontal-d.horizontal,height:a.height-b.vertical-d.vertical}
},getSize:function(a){if(!a){throw Error.argumentNull("element")
}return{width:a.offsetWidth,height:a.offsetHeight}
},setContentSize:function(c,a){if(!c){throw Error.argumentNull("element")
}if(!a){throw Error.argumentNull("size")
}if($telerik.getCurrentStyle(c,"MozBoxSizing")=="border-box"||$telerik.getCurrentStyle(c,"BoxSizing")=="border-box"){var b=$telerik.getBorderBox(c);
var d=$telerik.getPaddingBox(c);
a={width:a.width+b.horizontal+d.horizontal,height:a.height+b.vertical+d.vertical}
}c.style.width=a.width.toString()+"px";
c.style.height=a.height.toString()+"px"
},setSize:function(d,a){if(!d){throw Error.argumentNull("element")
}if(!a){throw Error.argumentNull("size")
}var c=$telerik.getBorderBox(d);
var e=$telerik.getPaddingBox(d);
var b={width:a.width-c.horizontal-e.horizontal,height:a.height-c.vertical-e.vertical};
$telerik.setContentSize(d,b)
},getBounds:function(a){var b=$telerik.getLocation(a);
return new Sys.UI.Bounds(b.x,b.y,a.offsetWidth||0,a.offsetHeight||0)
},setBounds:function(b,a){if(!b){throw Error.argumentNull("element")
}if(!a){throw Error.argumentNull("bounds")
}$telerik.setSize(b,a);
$telerik.setLocation(b,a)
},getClientBounds:function(){var b;
var a;
switch(Sys.Browser.agent){case Sys.Browser.InternetExplorer:b=document.documentElement.clientWidth;
a=document.documentElement.clientHeight;
if(b==0&&a==0){b=document.body.clientWidth;
a=document.body.clientHeight
}break;
case Sys.Browser.Safari:b=window.innerWidth;
a=window.innerHeight;
break;
case Sys.Browser.Opera:b=Math.min(window.innerWidth,document.body.clientWidth);
a=Math.min(window.innerHeight,document.body.clientHeight);
break;
default:b=Math.min(window.innerWidth,document.documentElement.clientWidth);
a=Math.min(window.innerHeight,document.documentElement.clientHeight);
break
}return new Sys.UI.Bounds(0,0,b,a)
},getMarginBox:function(b){if(!b){throw Error.argumentNull("element")
}var a={top:$telerik.getMargin(b,Telerik.Web.BoxSide.Top),right:$telerik.getMargin(b,Telerik.Web.BoxSide.Right),bottom:$telerik.getMargin(b,Telerik.Web.BoxSide.Bottom),left:$telerik.getMargin(b,Telerik.Web.BoxSide.Left)};
a.horizontal=a.left+a.right;
a.vertical=a.top+a.bottom;
return a
},getPaddingBox:function(b){if(!b){throw Error.argumentNull("element")
}var a={top:$telerik.getPadding(b,Telerik.Web.BoxSide.Top),right:$telerik.getPadding(b,Telerik.Web.BoxSide.Right),bottom:$telerik.getPadding(b,Telerik.Web.BoxSide.Bottom),left:$telerik.getPadding(b,Telerik.Web.BoxSide.Left)};
a.horizontal=a.left+a.right;
a.vertical=a.top+a.bottom;
return a
},getBorderBox:function(b){if(!b){throw Error.argumentNull("element")
}var a={top:$telerik.getBorderWidth(b,Telerik.Web.BoxSide.Top),right:$telerik.getBorderWidth(b,Telerik.Web.BoxSide.Right),bottom:$telerik.getBorderWidth(b,Telerik.Web.BoxSide.Bottom),left:$telerik.getBorderWidth(b,Telerik.Web.BoxSide.Left)};
a.horizontal=a.left+a.right;
a.vertical=a.top+a.bottom;
return a
},isBorderVisible:function(c,d){if(!c){throw Error.argumentNull("element")
}if(d<Telerik.Web.BoxSide.Top||d>Telerik.Web.BoxSide.Left){throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,d,"Telerik.Web.BoxSide"))
}var b=$telerik._borderStyleNames[d];
var a=$telerik.getCurrentStyle(c,b);
return a!="none"
},getMargin:function(c,d){if(!c){throw Error.argumentNull("element")
}if(d<Telerik.Web.BoxSide.Top||d>Telerik.Web.BoxSide.Left){throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,d,"Telerik.Web.BoxSide"))
}var b=$telerik._marginWidthNames[d];
var a=$telerik.getCurrentStyle(c,b);
try{return $telerik.parsePadding(a)
}catch(e){return 0
}},getBorderWidth:function(c,d){if(!c){throw Error.argumentNull("element")
}if(d<Telerik.Web.BoxSide.Top||d>Telerik.Web.BoxSide.Left){throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,d,"Telerik.Web.BoxSide"))
}if(!$telerik.isBorderVisible(c,d)){return 0
}var b=$telerik._borderWidthNames[d];
var a=$telerik.getCurrentStyle(c,b);
return $telerik.parseBorderWidth(a)
},getPadding:function(c,d){if(!c){throw Error.argumentNull("element")
}if(d<Telerik.Web.BoxSide.Top||d>Telerik.Web.BoxSide.Left){throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,d,"Telerik.Web.BoxSide"))
}var b=$telerik._paddingWidthNames[d];
var a=$telerik.getCurrentStyle(c,b);
return $telerik.parsePadding(a)
},parseBorderWidth:function(b){if(b){switch(b){case"thin":case"medium":case"thick":return $telerik._borderThicknesses[b];
case"inherit":return 0
}var a=$telerik.parseUnit(b);
return a.size
}return 0
},parsePadding:function(a){if(a){if(a=="auto"||a=="inherit"){return 0
}var b=$telerik.parseUnit(a);
return b.size
}return 0
},parseUnit:function(b){if(!b){throw Error.argumentNull("value")
}b=b.trim().toLowerCase();
var g=b.length;
var e=-1;
for(var d=0;
d<g;
d++){var f=b.substr(d,1);
if((f<"0"||f>"9")&&f!="-"&&f!="."&&f!=","){break
}e=d
}if(e==-1){throw Error.create("No digits")
}var c;
var a;
if(e<(g-1)){c=b.substring(e+1).trim()
}else{c="px"
}a=parseFloat(b.substr(0,e+1));
if(c=="px"){a=Math.floor(a)
}return{size:a,type:c}
},containsPoint:function(a,c,b){return c>=a.x&&c<=(a.x+a.width)&&b>=a.y&&b<=(a.y+a.height)
},isDescendant:function(c,b){for(var a=b.parentNode;
a!=null;
a=a.parentNode){if(a==c){return true
}}return false
},isDescendantOrSelf:function(b,a){if(b===a){return true
}return $telerik.isDescendant(b,a)
},setOuterHeight:function(c,a){if(a<=0||a==""){c.style.height=""
}else{c.style.height=a+"px";
var d=c.offsetHeight-a;
var b=a-d;
if(b>0){c.style.height=b+"px"
}else{c.style.height=""
}}},setOpacity:function(c,a){if(!c){throw Error.argumentNull("element")
}try{if(c.filters){var e=c.filters;
var b=true;
if(e.length!==0){var d=e["DXImageTransform.Microsoft.Alpha"];
if(d){b=false;
d.opacity=a*100
}}if(b){c.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+(a*100)+")"
}}else{c.style.opacity=a
}}catch(f){}},getOpacity:function(c){if(!c){throw Error.argumentNull("element")
}var a=false;
var b;
try{if(c.filters){var e=c.filters;
if(e.length!==0){var d=e["DXImageTransform.Microsoft.Alpha"];
if(d){b=d.opacity/100;
a=true
}}}else{b=$telerik.getCurrentStyle(c,"opacity",1);
a=true
}}catch(f){}if(a===false){return 1
}return parseFloat(b)
},addCssClasses:function(b,c){for(var a=0;
a<c.length;
a++){Sys.UI.DomElement.addCssClass(b,c[a])
}},removeCssClasses:function(b,c){for(var a=0;
a<c.length;
a++){Sys.UI.DomElement.removeCssClass(b,c[a])
}},setOuterWidth:function(c,b){if(b<=0||b==""){c.style.width=""
}else{c.style.width=b+"px";
var d=c.offsetWidth-b;
var a=b-d;
if(a>0){c.style.width=a+"px"
}else{c.style.width=""
}}},getScrollOffset:function(d,e){var c=0;
var a=0;
var b=d;
while(b!=null&&b.scrollLeft!=null){c+=$telerik.getCorrectScrollLeft(b);
a+=b.scrollTop;
if(!e||(b==document.body&&(b.scrollLeft!=0||b.scrollTop!=0))){break
}b=b.parentNode
}return{x:c,y:a}
},getElementByClassName:function(f,d,g){var a=null;
if(g){a=f.getElementsByTagName(g)
}else{a=f.getElementsByTagName("*")
}for(var b=0,e=a.length;
b<e;
b++){var c=a[b];
if(Sys.UI.DomElement.containsCssClass(c,d)){return c
}}return null
},addExternalHandler:function(b,c,a){if(b.addEventListener){b.addEventListener(c,a,false)
}else{if(b.attachEvent){b.attachEvent("on"+c,a)
}}},removeExternalHandler:function(b,c,a){if(b.addEventListener){b.removeEventListener(c,a,false)
}else{if(b.detachEvent){b.detachEvent("on"+c,a)
}}},cancelRawEvent:function(a){if(!a){return false
}if(a.preventDefault){a.preventDefault()
}if(a.stopPropagation){a.stopPropagation()
}a.cancelBubble=true;
a.returnValue=false;
return false
},getOuterHtml:function(c){if(c.outerHTML){return c.outerHTML
}else{var b=c.cloneNode(true);
var a=c.ownerDocument.createElement("DIV");
a.appendChild(b);
return a.innerHTML
}},setVisible:function(b,a){if(!b){return
}if(a!=$telerik.getVisible(b)){if(a){if(b.style.removeAttribute){b.style.removeAttribute("display")
}else{b.style.removeProperty("display")
}}else{b.style.display="none"
}b.style.visibility=a?"visible":"hidden"
}},getVisible:function(a){if(!a){return false
}return(("none"!=$telerik.getCurrentStyle(a,"display"))&&("hidden"!=$telerik.getCurrentStyle(a,"visibility")))
},getViewPortSize:function(){var b=0;
var a=0;
var c=document.body;
if(!$telerik.quirksMode&&!$telerik.isSafari){c=document.documentElement
}if(window.innerWidth){b=window.innerWidth;
a=window.innerHeight
}else{b=c.clientWidth;
a=c.clientHeight
}b+=c.scrollLeft;
a+=c.scrollTop;
return{width:b-6,height:a-6}
},elementOverflowsTop:function(a){return $telerik.getLocation(a).y<0
},elementOverflowsLeft:function(a){return $telerik.getLocation(a).x<0
},elementOverflowsBottom:function(b,c){var a=$telerik.getLocation(c).y+c.offsetHeight;
return a>b.height
},elementOverflowsRight:function(a,b){var c=$telerik.getLocation(b).x+b.offsetWidth;
return c>a.width
},getDocumentRelativeCursorPosition:function(f){var b=document.documentElement;
var a=document.body;
var d=f.clientX+($telerik.getCorrectScrollLeft(b)+$telerik.getCorrectScrollLeft(a));
var c=f.clientY+(b.scrollTop+a.scrollTop);
return{left:d,top:c}
},evalScriptCode:function(a){var b=$telerik.isSafari;
if(b){a=a.replace(/^\s*<!--((.|\n)*)-->\s*$/mi,"$1")
}var c=document.createElement("script");
c.setAttribute("type","text/javascript");
if(b){c.appendChild(document.createTextNode(a))
}else{c.text=a
}var d=document.getElementsByTagName("head")[0];
d.appendChild(c);
if(b){c.innerHTML=""
}else{c.parentNode.removeChild(c)
}},isScriptRegistered:function(h){if(!h){return 0
}var b=document.getElementsByTagName("script");
var j=0;
var c=h.indexOf("?d=");
var d=h.indexOf("&");
var e=c>0&&d>c?h.substring(c,d):h;
for(var a=0,g=b.length;
a<g;
a++){var f=b[a];
if(f.src){if(f.getAttribute("src",2).indexOf(e)!=-1){j++
}}}return j
},evalScripts:function(e){$telerik.registerSkins(e);
var g=e.getElementsByTagName("script");
for(var b=0,a=g.length;
b<a;
b++){var f=g[b];
if(f.src){var c=f.getAttribute("src",2);
if($telerik.isScriptRegistered(c)<2){var d=document.createElement("script");
d.setAttribute("type","text/javascript");
d.setAttribute("src",c);
document.getElementsByTagName("head")[0].appendChild(d)
}}else{$telerik.evalScriptCode(f.innerHTML)
}}},registerSkins:function(e){if(!e){e=document.body
}var g=e.getElementsByTagName("link");
if(g&&g.length>0){var d=document.getElementsByTagName("head")[0];
if(d){for(var c=0;
c<g.length;
c++){var b=g[c];
if(b.className=="Telerik_stylesheet"){var a=d.getElementsByTagName("link");
if(a&&a.length>0){var f=a.length-1;
while(f>=0&&a[f--].href!=b.href){}if(f>=0){continue
}}b.rel="stylesheet";
d.appendChild(b)
}}}}},getFirstChildByTagName:function(b,c,a){if(!b||!b.childNodes){return null
}var d=b.childNodes[a]||b.firstChild;
while(d){if(d.nodeType==1&&d.tagName.toLowerCase()==c){return d
}d=d.nextSibling
}return null
},getChildByClassName:function(b,a,c){var d=b.childNodes[c]||b.firstChild;
while(d){if(d.nodeType==1&&d.className.indexOf(a)>-1){return d
}d=d.nextSibling
}return null
},getChildrenByTagName:function(f,g){var a=new Array();
var d=f.childNodes;
if($telerik.isIE){d=f.children
}for(var b=0,e=d.length;
b<e;
b++){var c=d[b];
if(c.nodeType==1&&c.tagName.toLowerCase()==g){Array.add(a,c)
}}return a
},getChildrenByClassName:function(f,d){var a=new Array();
var g=f.childNodes;
if($telerik.isIE){g=f.children
}for(var b=0,e=g.length;
b<e;
b++){var c=g[b];
if(c.nodeType==1&&c.className.indexOf(d)>-1){Array.add(a,c)
}}return a
},mergeElementAttributes:function(e,d,a){if(!e||!d){return
}if(e.mergeAttributes){d.mergeAttributes(e,a)
}else{for(var b=0;
b<e.attributes.length;
b++){var c=e.attributes[b].nodeValue;
d.setAttribute(e.attributes[b].nodeName,c)
}if(""==d.getAttribute("style")){d.removeAttribute("style")
}}},isMouseOverElement:function(b,c){var a=$telerik.getBounds(b);
var d=$telerik.getDocumentRelativeCursorPosition(c);
return $telerik.containsPoint(a,d.left,d.top)
},isMouseOverElementEx:function(d,f){var a=null;
try{a=$telerik.getOuterBounds(d)
}catch(f){return false
}if(f&&f.target){var g=f.target.tagName;
if(g=="SELECT"||g=="OPTION"){return true
}if(f.clientX<0||f.clientY<0){return true
}}var b=$telerik.getDocumentRelativeCursorPosition(f);
a.x+=2;
a.y+=2;
a.width-=4;
a.height-=4;
var c=$telerik.containsPoint(a,b.left,b.top);
return c
}};
if(typeof(Sys.Browser.WebKit)=="undefined"){Sys.Browser.WebKit={}
}if(typeof(Sys.Browser.Chrome)=="undefined"){Sys.Browser.Chrome={}
}if(navigator.userAgent.indexOf("Chrome")>-1){Sys.Browser.version=parseFloat(navigator.userAgent.match(/WebKit\/(\d+(\.\d+)?)/)[1]);
Sys.Browser.agent=Sys.Browser.Chrome;
Sys.Browser.name="Chrome"
}else{if(navigator.userAgent.indexOf("WebKit/")>-1){Sys.Browser.version=parseFloat(navigator.userAgent.match(/WebKit\/(\d+(\.\d+)?)/)[1]);
if(Sys.Browser.version<500){Sys.Browser.agent=Sys.Browser.Safari;
Sys.Browser.name="Safari"
}else{Sys.Browser.agent=Sys.Browser.WebKit;
Sys.Browser.name="WebKit"
}}}$telerik.isChrome=Sys.Browser.agent==Sys.Browser.Chrome;
$telerik.isSafari4=Sys.Browser.agent==Sys.Browser.WebKit&&Sys.Browser.version>=526;
$telerik.isSafari3=Sys.Browser.agent==Sys.Browser.WebKit&&Sys.Browser.version<526&&Sys.Browser.version>500;
$telerik.isSafari2=Sys.Browser.agent==Sys.Browser.Safari;
$telerik.isSafari=$telerik.isSafari2||$telerik.isSafari3||$telerik.isSafari4||$telerik.isChrome;
$telerik.isIE=Sys.Browser.agent==Sys.Browser.InternetExplorer;
$telerik.isIE6=$telerik.isIE&&Sys.Browser.version<7;
$telerik.isIE7=$telerik.isIE&&(Sys.Browser.version==7||(document.documentMode&&document.documentMode<8));
$telerik.isIE8=$telerik.isIE&&Sys.Browser.version==8&&document.documentMode&&document.documentMode==8;
$telerik.isOpera=Sys.Browser.agent==Sys.Browser.Opera;
$telerik.isFirefox=Sys.Browser.agent==Sys.Browser.Firefox;
$telerik.isFirefox2=$telerik.isFirefox&&Sys.Browser.version<3;
$telerik.isFirefox3=$telerik.isFirefox&&Sys.Browser.version==3;
$telerik.quirksMode=$telerik.isIE&&document.compatMode!="CSS1Compat";
$telerik.standardsMode=!$telerik.quirksMode;
try{$telerik._borderThickness()
}catch(err){}Telerik.Web.UI.Orientation=function(){throw Error.invalidOperation()
};
Telerik.Web.UI.Orientation.prototype={Horizontal:0,Vertical:1};
Telerik.Web.UI.Orientation.registerEnum("Telerik.Web.UI.Orientation",false);
Telerik.Web.UI.RadWebControl=function(a){Telerik.Web.UI.RadWebControl.initializeBase(this,[a]);
this._clientStateFieldID=null
};
Telerik.Web.UI.RadWebControl.prototype={initialize:function(){Telerik.Web.UI.RadWebControl.callBaseMethod(this,"initialize");
$telerik.registerControl(this);
if(!this.get_clientStateFieldID()){return
}var a=$get(this.get_clientStateFieldID());
if(!a){return
}a.setAttribute("autocomplete","off")
},dispose:function(){$telerik.unregisterControl(this);
var a=this.get_element();
Telerik.Web.UI.RadWebControl.callBaseMethod(this,"dispose");
if(a){a.control=null;
var c=true;
if(a._events){for(var b in a._events){if(a._events[b].length>0){c=false;
break
}}if(c){a._events=null
}}}},raiseEvent:function(b,c){var a=this.get_events().getHandler(b);
if(a){if(!c){c=Sys.EventArgs.Empty
}a(this,c)
}},updateClientState:function(){this.set_clientState(this.saveClientState())
},saveClientState:function(){return null
},get_clientStateFieldID:function(){return this._clientStateFieldID
},set_clientStateFieldID:function(a){if(this._clientStateFieldID!=a){this._clientStateFieldID=a;
this.raisePropertyChanged("ClientStateFieldID")
}},get_clientState:function(){if(this._clientStateFieldID){var a=document.getElementById(this._clientStateFieldID);
if(a){return a.value
}}return null
},set_clientState:function(a){if(this._clientStateFieldID){var b=document.getElementById(this._clientStateFieldID);
if(b){b.value=a
}}},_getChildElement:function(a){return $get(this.get_id()+"_"+a)
},_findChildControl:function(a){return $find(this.get_id()+"_"+a)
}};
Telerik.Web.UI.RadWebControl.registerClass("Telerik.Web.UI.RadWebControl",Sys.UI.Control);
Telerik.Web.Timer=function(){Telerik.Web.Timer.initializeBase(this);
this._interval=1000;
this._enabled=false;
this._timer=null;
this._timerCallbackDelegate=Function.createDelegate(this,this._timerCallback)
};
Telerik.Web.Timer.prototype={get_interval:function(){return this._interval
},set_interval:function(a){if(this._interval!==a){this._interval=a;
this.raisePropertyChanged("interval");
if(!this.get_isUpdating()&&(this._timer!==null)){this._stopTimer();
this._startTimer()
}}},get_enabled:function(){return this._enabled
},set_enabled:function(a){if(a!==this.get_enabled()){this._enabled=a;
this.raisePropertyChanged("enabled");
if(!this.get_isUpdating()){if(a){this._startTimer()
}else{this._stopTimer()
}}}},add_tick:function(a){this.get_events().addHandler("tick",a)
},remove_tick:function(a){this.get_events().removeHandler("tick",a)
},dispose:function(){this.set_enabled(false);
this._stopTimer();
Telerik.Web.Timer.callBaseMethod(this,"dispose")
},updated:function(){Telerik.Web.Timer.callBaseMethod(this,"updated");
if(this._enabled){this._stopTimer();
this._startTimer()
}},_timerCallback:function(){var a=this.get_events().getHandler("tick");
if(a){a(this,Sys.EventArgs.Empty)
}},_startTimer:function(){this._timer=window.setInterval(this._timerCallbackDelegate,this._interval)
},_stopTimer:function(){window.clearInterval(this._timer);
this._timer=null
}};
Telerik.Web.Timer.registerClass("Telerik.Web.Timer",Sys.Component);
Telerik.Web.BoxSide=function(){};
Telerik.Web.BoxSide.prototype={Top:0,Right:1,Bottom:2,Left:3};
Telerik.Web.BoxSide.registerEnum("Telerik.Web.BoxSide",false);
if(Sys.CultureInfo.prototype._getAbbrMonthIndex){try{Sys.CultureInfo.prototype._getAbbrMonthIndex("")
}catch(ex){Sys.CultureInfo.prototype._getAbbrMonthIndex=function(a){if(!this._upperAbbrMonths){this._upperAbbrMonths=this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthNames)
}return Array.indexOf(this._upperAbbrMonths,this._toUpper(a))
};
Sys.CultureInfo.CurrentCulture._getAbbrMonthIndex=Sys.CultureInfo.prototype._getAbbrMonthIndex;
Sys.CultureInfo.InvariantCulture._getAbbrMonthIndex=Sys.CultureInfo.prototype._getAbbrMonthIndex
}}Telerik.Web.UI.EditorCommandEventArgs=function(a,b,c){Telerik.Web.UI.EditorCommandEventArgs.initializeBase(this);
this._name=this._commandName=a;
this._tool=b;
this._value=c;
this.value=c;
this._callbackFunction=null
};
Telerik.Web.UI.EditorCommandEventArgs.prototype={get_name:function(){return this._name
},get_commandName:function(){return this._commandName
},get_tool:function(){return this._tool
},get_value:function(){return this._value
},set_value:function(a){this.value=a;
this._value=a
},set_callbackFunction:function(a){this._callbackFunction=a
}};
Telerik.Web.UI.EditorCommandEventArgs.registerClass("Telerik.Web.UI.EditorCommandEventArgs",Sys.CancelEventArgs);
Telerik.Web.IParameterConsumer=function(){};
Telerik.Web.IParameterConsumer.prototype={clientInit:function(a){throw Error.notImplemented()
}};
Telerik.Web.IParameterConsumer.registerInterface("Telerik.Web.IParameterConsumer");
Type.registerNamespace("Telerik.Web.UI.Dialogs");
Telerik.Web.UI.Dialogs.CommonDialogScript=function(){};
Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference=function(){if(window.radWindow){return window.radWindow
}if(window.frameElement&&window.frameElement.radWindow){return window.frameElement.radWindow
}if(!window.__localRadEditorRadWindowReference&&window.opener.__getCurrentRadEditorRadWindowReference){window.__localRadEditorRadWindowReference=window.opener.__getCurrentRadEditorRadWindowReference()
}return window.__localRadEditorRadWindowReference
};
Telerik.Web.UI.Dialogs.CommonDialogScript.registerClass("Telerik.Web.UI.Dialogs.CommonDialogScript",null);
Telerik.Web.UI.WebServiceLoaderEventArgs=function(a){Telerik.Web.UI.WebServiceLoaderEventArgs.initializeBase(this);
this._context=a
};
Telerik.Web.UI.WebServiceLoaderEventArgs.prototype={get_context:function(){return this._context
}};
Telerik.Web.UI.WebServiceLoaderEventArgs.registerClass("Telerik.Web.UI.WebServiceLoaderEventArgs",Sys.EventArgs);
Telerik.Web.UI.WebServiceLoaderSuccessEventArgs=function(b,a){Telerik.Web.UI.WebServiceLoaderSuccessEventArgs.initializeBase(this,[a]);
this._data=b
};
Telerik.Web.UI.WebServiceLoaderSuccessEventArgs.prototype={get_data:function(){return this._data
}};
Telerik.Web.UI.WebServiceLoaderSuccessEventArgs.registerClass("Telerik.Web.UI.WebServiceLoaderSuccessEventArgs",Telerik.Web.UI.WebServiceLoaderEventArgs);
Telerik.Web.UI.WebServiceLoaderErrorEventArgs=function(a,b){Telerik.Web.UI.WebServiceLoaderErrorEventArgs.initializeBase(this,[b]);
this._message=a
};
Telerik.Web.UI.WebServiceLoaderErrorEventArgs.prototype={get_message:function(){return this._message
}};
Telerik.Web.UI.WebServiceLoaderErrorEventArgs.registerClass("Telerik.Web.UI.WebServiceLoaderErrorEventArgs",Telerik.Web.UI.WebServiceLoaderEventArgs);
Telerik.Web.UI.WebServiceLoader=function(a){this._webServiceSettings=a;
this._events=null;
this._onWebServiceSuccessDelegate=Function.createDelegate(this,this._onWebServiceSuccess);
this._onWebServiceErrorDelegate=Function.createDelegate(this,this._onWebServiceError);
this._currentRequest=null
};
Telerik.Web.UI.WebServiceLoader.prototype={get_webServiceSettings:function(){return this._webServiceSettings
},get_events:function(){if(!this._events){this._events=new Sys.EventHandlerList()
}return this._events
},loadData:function(a,b){var c=this.get_webServiceSettings();
this.invokeMethod(this._webServiceSettings.get_method(),a,b)
},invokeMethod:function(b,a,c){var d=this.get_webServiceSettings();
if(d.get_isEmpty()){alert("Please, specify valid web service and method.");
return
}this._raiseEvent("loadingStarted",new Telerik.Web.UI.WebServiceLoaderEventArgs(c));
var e=d.get_path();
var f=d.get_useHttpGet();
this._currentRequest=Sys.Net.WebServiceProxy.invoke(e,b,f,a,this._onWebServiceSuccessDelegate,this._onWebServiceErrorDelegate,c)
},add_loadingStarted:function(a){this.get_events().addHandler("loadingStarted",a)
},add_loadingError:function(a){this.get_events().addHandler("loadingError",a)
},add_loadingSuccess:function(a){this.get_events().addHandler("loadingSuccess",a)
},_serializeDictionaryAsKeyValuePairs:function(a){var b=[];
for(var c in a){b[b.length]={Key:c,Value:a[c]}
}return b
},_onWebServiceSuccess:function(c,b){var a=new Telerik.Web.UI.WebServiceLoaderSuccessEventArgs(c,b);
this._raiseEvent("loadingSuccess",a)
},_onWebServiceError:function(c,b){var a=new Telerik.Web.UI.WebServiceLoaderErrorEventArgs(c.get_message(),b);
this._raiseEvent("loadingError",a)
},_raiseEvent:function(b,c){var a=this.get_events().getHandler(b);
if(a){if(!c){c=Sys.EventArgs.Empty
}a(this,c)
}}};
Telerik.Web.UI.WebServiceLoader.registerClass("Telerik.Web.UI.WebServiceLoader");
Telerik.Web.UI.WebServiceSettings=function(a){this._path=null;
this._method=null;
this._useHttpGet=false;
if(!a){a={}
}if(typeof(a.path)!="undefined"){this._path=a.path
}if(typeof(a.method)!="undefined"){this._method=a.method
}if(typeof(a.useHttpGet)!="undefined"){this._useHttpGet=a.useHttpGet
}};
Telerik.Web.UI.WebServiceSettings.prototype={get_isWcf:function(){return/\.svc$/.test(this._path)
},get_path:function(){return this._path
},set_path:function(a){this._path=a
},get_method:function(){return this._method
},set_method:function(a){this._method=a
},get_useHttpGet:function(){return this._useHttpGet
},set_useHttpGet:function(a){this._useHttpGet=a
},get_isEmpty:function(){var b=this.get_path();
var a=this.get_method();
return(!(b&&a))
}};
Telerik.Web.UI.WebServiceSettings.registerClass("Telerik.Web.UI.WebServiceSettings");
Telerik.Web.UI.AnimationType=function(){};
Telerik.Web.UI.AnimationType.toEasing=function(a){return"ease"+Telerik.Web.UI.AnimationType.toString(a)
};
Telerik.Web.UI.AnimationType.prototype={None:0,Linear:1,InQuad:2,OutQuad:3,InOutQuad:4,InCubic:5,OutCubic:6,InOutCubic:7,InQuart:8,OutQuart:9,InOutQuart:10,InQuint:11,OutQuint:12,InOutQuint:13,InSine:14,OutSine:15,InOutSine:16,InExpo:17,OutExpo:18,InOutExpo:19,InBack:20,OutBack:21,InOutBack:22,InBounce:23,OutBounce:24,InOutBounce:25,InElastic:26,OutElastic:27,InOutElastic:28};
Telerik.Web.UI.AnimationType.registerEnum("Telerik.Web.UI.AnimationType");
Telerik.Web.UI.AnimationSettings=function(a){this._type=Telerik.Web.UI.AnimationType.OutQuart;
this._duration=300;
if(typeof(a.type)!="undefined"){this._type=a.type
}if(typeof(a.duration)!="undefined"){this._duration=a.duration
}};
Telerik.Web.UI.AnimationSettings.prototype={get_type:function(){return this._type
},set_type:function(a){this._type=a
},get_duration:function(){return this._duration
},set_duration:function(a){this._duration=a
}};
Telerik.Web.UI.AnimationSettings.registerClass("Telerik.Web.UI.AnimationSettings");
Telerik.Web.UI.ActionsManager=function(a){Telerik.Web.UI.ActionsManager.initializeBase(this);
this._actions=[];
this._currentActionIndex=-1
};
Telerik.Web.UI.ActionsManager.prototype={get_actions:function(){return this._actions
},shiftPointerLeft:function(){this._currentActionIndex--
},shiftPointerRight:function(){this._currentActionIndex++
},get_currentAction:function(){return this.get_actions()[this._currentActionIndex]
},get_nextAction:function(){return this.get_actions()[this._currentActionIndex+1]
},addAction:function(b){if(b){var a=new Telerik.Web.UI.ActionsManagerEventArgs(b);
this.raiseEvent("executeAction",a);
this._clearActionsToRedo();
Array.add(this._actions,b);
this._currentActionIndex=this._actions.length-1;
return true
}return false
},undo:function(c){if(c==null){c=1
}if(c>this._actions.length){c=this._actions.length
}var d=0;
var b=null;
while(0<c--&&0<=this._currentActionIndex&&this._currentActionIndex<this._actions.length){b=this._actions[this._currentActionIndex--];
if(b){var a=new Telerik.Web.UI.ActionsManagerEventArgs(b);
this.raiseEvent("undoAction",a);
d++
}}},redo:function(d){if(d==null){d=1
}if(d>this._actions.length){d=this._actions.length
}var e=0;
var c=null;
var a=this._currentActionIndex+1;
while(0<d--&&0<=a&&a<this._actions.length){c=this._actions[a];
if(c){var b=new Telerik.Web.UI.ActionsManagerEventArgs(c);
this.raiseEvent("redoAction",b);
this._currentActionIndex=a;
e++
}a++
}},removeActionAt:function(a){this._actions.splice(a,1);
if(this._currentActionIndex>=a){this._currentActionIndex--
}},canUndo:function(){return(-1<this._currentActionIndex)
},canRedo:function(){return(this._currentActionIndex<this._actions.length-1)
},getActionsToUndo:function(){if(this.canUndo()){return(this._actions.slice(0,this._currentActionIndex+1)).reverse()
}return[]
},getActionsToRedo:function(){if(this.canRedo()){return this._actions.slice(this._currentActionIndex+1)
}return[]
},_clearActionsToRedo:function(){if(this.canRedo()){this._actions.splice(this._currentActionIndex+1,this._actions.length-this._currentActionIndex)
}},add_undoAction:function(a){this.get_events().addHandler("undoAction",a)
},remove_undoAction:function(a){this.get_events().removeHandler("undoAction",a)
},add_redoAction:function(a){this.get_events().addHandler("redoAction",a)
},remove_redoAction:function(a){this.get_events().removeHandler("redoAction",a)
},add_executeAction:function(a){this.get_events().addHandler("executeAction",a)
},remove_executeAction:function(a){this.get_events().removeHandler("executeAction",a)
},raiseEvent:function(c,a){var b=this.get_events().getHandler(c);
if(b){b(this,a)
}}};
Telerik.Web.UI.ActionsManager.registerClass("Telerik.Web.UI.ActionsManager",Sys.Component);
Telerik.Web.UI.ActionsManagerEventArgs=function(a){Telerik.Web.UI.ActionsManagerEventArgs.initializeBase(this);
this._action=a
};
Telerik.Web.UI.ActionsManagerEventArgs.prototype={get_action:function(){return this._action
}};
Telerik.Web.UI.ActionsManagerEventArgs.registerClass("Telerik.Web.UI.ActionsManagerEventArgs",Sys.CancelEventArgs);
Telerik.Web.StringBuilder=function(){this._buffer=[]
},Telerik.Web.StringBuilder.prototype={append:function(a){this._buffer[this._buffer.length]=a;
return this
},toString:function(){return this._buffer.join("")
}};
$telerik.evalStr=function(str){return eval(str)
};
/* END Telerik.Web.UI.Common.Core.js */
/* START Telerik.Web.UI.Upload.RadProgressManager.js */
Type.registerNamespace("Telerik.Web.UI");
Type.registerNamespace("Telerik.Web.UI.ProgressManager");
function getRadProgressManager(){return Telerik.Web.UI.ProgressManager.Manager
}function RadUploadSafariPoller(b,d,a,c){this._callbackUrl=b;
this._refreshPeriod=d;
this._waitingForResponse=false;
this._timeFormat=a
}function RadUploadSafariProgressArea(a){this._id=a;
if(typeof(window.progressAreas)=="undefined"){window.progressAreas=[]
}window.progressAreas[window.progressAreas.length]=this
}Telerik.Web.UI.RadProgressManager=function(a){Telerik.Web.UI.RadProgressManager.initializeBase(this,[a]);
this._uniqueRequestIdentifier="RadUrid";
this._formId="";
this._form=null;
this._pageGUID="";
this._suppressMissingHttpModuleError=false;
this._refreshPeriod=500;
this._shouldRegisterForSubmit=true;
this._ajaxCallUrl="";
$telerik.RadUpload_isIFrameProgress=$telerik.isSafari||$telerik.isOpera;
this._disposed=false;
this._timeFormat="%HOURS%:%MINUTES%:%SECONDS%s"
};
Telerik.Web.UI.RadProgressManager.prototype={initialize:function(){Telerik.Web.UI.RadProgressManager.callBaseMethod(this,"initialize");
this._registerAsPageManager();
this._initializeForm();
this._callbackUrl=this._createCallbackUrl(this._ajaxCallUrl);
this._waitingForResponse=false;
if(typeof(Telerik.Web.UI.ProgressAreas)=="undefined"){Telerik.Web.UI.ProgressAreas=[]
}if($telerik.RadUpload_isIFrameProgress){this._safariPollerDelegate=Function.createDelegate(this,this._createSafariPoller);
Sys.Application.add_load(this._safariPollerDelegate)
}},dispose:function(){this._disposed=true;
if(this._form&&this._shouldRegisterForSubmit==true){$removeHandler(this._form,"submit",this._clientSubmitDelegate);
this._clientSubmitDelegate=null
}if($telerik.RadUpload_isIFrameProgress&&this._safariPollerDelegate){Sys.Application.remove_load(this._safariPollerDelegate);
this._safariPollerDelegate=null
}Telerik.Web.UI.RadProgressManager.callBaseMethod(this,"dispose")
},_getSafariPollerDefinition:function(){RadUploadSafariPoller.prototype={_createReadyStateChangeDelegate:this._createReadyStateChangeDelegate,_sendXmlHttpRequest:this._sendXmlHttpRequest,_makeCallback:this._makeCallback,_getTimeStampedCallbackUrl:this._getTimeStampedCallbackUrl,_handleCallback:this._handleCallback,_errorOccured:this._errorOccured,_showNotFoundMessage:this._showNotFoundMessage,_showGenericErrorMessage:this._showGenericErrorMessage,_showInvalidContentMessage:this._showInvalidContentMessage,get_refreshPeriod:this.get_refreshPeriod,_modifyProgressData:this._modifyProgressData,getFormattedTime:this.getFormattedTime,_normalizeTime:this._normalizeTime,_toSeconds:this._toSeconds,_updateProgressAreas:this._updateProgressAreas,_formatTimePart:this._formatTimePart};
return RadUploadSafariPoller
},_getSafariProgressAreaDefinition:function(){RadUploadSafariProgressArea.prototype={get_id:function(){return this._id
},show:Telerik.Web.UI.RadProgressArea.prototype.show,update:Telerik.Web.UI.RadProgressArea.prototype.update,updateHorizontalProgressBar:Telerik.Web.UI.RadProgressArea.prototype.updateHorizontalProgressBar,updateTextIndicator:Telerik.Web.UI.RadProgressArea.prototype.updateTextIndicator};
return RadUploadSafariProgressArea
},_addClassAsString:function(a,d,f){f[f.length]=a.toString();
f[f.length]=";";
f[f.length]=d;
f[f.length]=".prototype = {";
var b=true;
for(var c in a.prototype){var e=a.prototype[c];
if(typeof(e)!="function"){continue
}if(!b){f[f.length]=","
}b=false;
f[f.length]=c;
f[f.length]=":";
f[f.length]=e.toString()
}f[f.length]="};"
},_createSafariPoller:function(){this._createSafariIFrame()
},_addSafariProgressAreas:function(a){for(var b=0;
b<Telerik.Web.UI.ProgressAreas.length;
b++){Telerik.Web.UI.ProgressAreas[b]._addSafariDefinition(a)
}},_setupSafariProgressAreas:function(){for(var a=0;
a<Telerik.Web.UI.ProgressAreas.length;
a++){Telerik.Web.UI.ProgressAreas[a]._setupSafariProgressAreaControls()
}},_createSafariIFrame:function(){this._safariPoller=document.createElement("iframe");
this._safariPoller.id=this._safariPoller.name=this.get_id()+"_safariPoller";
this._safariPoller.src="javascript:''";
this._safariPoller.style.display="none";
document.forms[0].appendChild(this._safariPoller);
var a=this._safariPoller.contentWindow.document;
a.open();
var b=[];
b[b.length]="<script type='text/javascript'>";
this._addClassAsString(this._getSafariPollerDefinition(),"RadUploadSafariPoller",b);
b[b.length]="var pollerInstance = new RadUploadSafariPoller('"+this._callbackUrl+"', "+this.get_refreshPeriod()+", '"+this.get_timeFormat()+"');";
b[b.length]="$telerik = {};";
b[b.length]="$telerik.RadUpload_isIFrameProgress = ";
b[b.length]=$telerik.RadUpload_isIFrameProgress.toString();
b[b.length]=";";
if(Telerik.Web.UI.ProgressAreas.length>0){this._addClassAsString(this._getSafariProgressAreaDefinition(),"RadUploadSafariProgressArea",b);
this._addSafariProgressAreas(b)
}b[b.length]="</script>";
a.write("<html><head>"+b.join("")+"</head><body></body></html>");
a.close();
this._setupSafariProgressAreas()
},_getParentForm:function(){var a=this.get_element();
while(a&&a.tagName&&a.tagName.toLowerCase()!="form"){a=a.parentNode
}if(a&&(!a.tagName||a.tagName.toLowerCase()!="form")){a=null
}return a
},_registerAsPageManager:function(){if(!Telerik.Web.UI.ProgressManager.Manager){Telerik.Web.UI.ProgressManager.Manager=this
}},_initializeForm:function(){var a=null;
this._form=this._getParentForm();
if(!this._form){alert("RadProgressManager requires to be in a form tag to operate properly!");
return
}this._updateFormAction(this._form);
if(this._shouldRegisterForSubmit==true){this._registerForSubmit(this._form)
}},_updateFormAction:function(a){if(typeof(a.action)=="undefined"){a.action=""
}if(a.action.match(/\?/)){a.action=this._removeQueryStringParameter(a.action,this._uniqueRequestIdentifier);
if(a.action.substring(a.action.length-1)!="?"){a.action+="&"
}}else{a.action+="?"
}a.action+=this._uniqueRequestIdentifier+"="+this._pageGUID;
a.enctype=a.encoding="multipart/form-data";
a._initialAction=a.action
},_removeQueryStringParameter:function(c,a){var b=new RegExp("&?"+a+"=[^&]*");
if(c.match(b)){return c.replace(b,"")
}return c
},_registerForSubmit:function(a){this._registerForLinkButtons(a);
this._registerForRegularButtons(a)
},_registerForLinkButtons:function(d){var a=d.submit;
try{var b=this;
d.submit=function(){if(b._clientSubmitHandler()==false){return
}d.submit=a;
d.submit()
}
}catch(c){try{var e=__doPostBack;
__doPostBack=function(f,g){var h=true;
if(typeof(Page_ClientValidate)=="function"){h=Page_ClientValidate()
}if(h){if(b._clientSubmitHandler()==false){return
}e(f,g)
}}
}catch(c){}}},_registerForRegularButtons:function(b){this._clientSubmitDelegate=Function.createDelegate(this,this._clientSubmitHandler);
$addHandler(b,"submit",this._clientSubmitDelegate);
if(Sys&&Sys.WebForms&&Sys.WebForms.PageRequestManager){var a=Sys.WebForms.PageRequestManager.getInstance();
if(a){a.add_beginRequest(this._clientSubmitDelegate)
}}},_clientSubmitHandler:function(b){var a=new Sys.CancelEventArgs();
this.raiseEvent("submitting",a);
if(a.get_cancel()){return $telerik.cancelRawEvent(b)
}if(typeof(Page_IsValid)!="undefined"){if(!Page_IsValid){return
}}this.startProgressPolling()
},startProgressPolling:function(){this._initSelectedFilesCount();
this.raiseEvent("progressStarted");
if($telerik.RadUpload_isIFrameProgress){this._safariPoller.contentWindow.pollerInstance._startTime=new Date();
this._safariPoller.contentWindow.pollerInstance._makeCallback();
this._safariPoller.contentWindow.pollerInstance._selectedFilesCount=this._selectedFilesCount
}else{this._startTime=new Date();
this._makeCallback()
}},_initSelectedFilesCount:function(){this._selectedFilesCount=0;
var b=document.getElementsByTagName("input");
for(var a=0;
a<b.length;
a++){var c=b[a];
if(c.type=="file"&&c.value!=""){this._selectedFilesCount++
}}},_createReadyStateChangeDelegate:function(){if(!$telerik.RadUpload_isIFrameProgress){return Function.createDelegate(this,this._handleCallback)
}var a=this;
return function(){a._handleCallback()
}
},_sendXmlHttpRequest:function(){if(typeof(XMLHttpRequest)!="undefined"){this._xmlHttpRequest=new XMLHttpRequest()
}else{if(typeof(ActiveXObject)!="undefined"){this._xmlHttpRequest=new ActiveXObject("Microsoft.XMLHTTP")
}else{return
}}this._xmlHttpRequest.onreadystatechange=this._createReadyStateChangeDelegate();
if($telerik.RadUpload_isIFrameProgress){this._xmlHttpRequest.open("GET",this._getTimeStampedCallbackUrl(),false)
}else{this._xmlHttpRequest.open("GET",this._getTimeStampedCallbackUrl(),true)
}this._xmlHttpRequest.send("")
},_makeCallback:function(){if(!this._waitingForResponse){this._waitingForResponse=true;
this._sendXmlHttpRequest()
}},_handleCallback:function(){if(this._xmlHttpRequest.readyState!=4){return
}this._waitingForResponse=false;
if(this._errorOccured()){return
}var responseText=this._xmlHttpRequest.responseText;
if(responseText){try{eval(responseText)
}catch(ex){this._showInvalidContentMessage();
return
}if(rawProgressData){if(!this._suppressMissingHttpModuleError&&rawProgressData.ProgressError){this.handleProgressError(rawProgressData.ProgressError);
return
}if(rawProgressData.InProgress){this._modifyProgressData(rawProgressData);
if(!this._updateProgressAreas(rawProgressData)){this.hideProgressAreas();
this._resetCancelClicked();
if(window.stop){window.stop()
}else{try{document.execCommand("Stop")
}catch(ex){window.location.href=window.location.href
}}return
}}}}if(this._disposed||(typeof(rawProgressData)!="undefined"&&rawProgressData.OperationComplete&&rawProgressData.OperationComplete.toLowerCase()=="true")){return
}if($telerik.RadUpload_isIFrameProgress){var self=this;
var makeCallbackDelegate=function(){self._makeCallback()
};
window.setTimeout(makeCallbackDelegate,this.get_refreshPeriod())
}else{if(Function.createDelegate){var makeCallbackDelegate=Function.createDelegate(this,this._makeCallback);
window.setTimeout(makeCallbackDelegate,this.get_refreshPeriod())
}}},_createCallbackUrl:function(b){var a=b.indexOf("?")<0?"?":"&";
return b+a+this._uniqueRequestIdentifier+"="+this._pageGUID
},_getTimeStampedCallbackUrl:function(){return this._callbackUrl+"&RadUploadTimeStamp="+new Date().getTime()+"&"
},_modifyProgressData:function(a){var b=new Date()-this._startTime;
if(typeof(a.TimeElapsed)=="undefined"){a.TimeElapsed=this.getFormattedTime(this._toSeconds(b))
}else{if(parseInt(a.TimeElapsed).toString()==a.TimeElapsed){a.TimeElapsed=this.getFormattedTime(this._toSeconds(a.TimeElapsed))
}}if(typeof(a.SecondaryTotal)=="undefined"){a.SecondaryTotal=this._selectedFilesCount
}if(typeof(a.SecondaryPercent)=="undefined"){a.SecondaryPercent=Math.round(100*a.SecondaryValue/(this._selectedFilesCount!=0?this._selectedFilesCount:1))
}if(typeof(a.TimeEstimated)=="undefined"&&typeof(a.PrimaryPercent)=="number"){if(a.PrimaryPercent==0){a.TimeEstimated=this.getFormattedTime(this._toSeconds(359999000))
}else{a.TimeEstimated=this.getFormattedTime(this._toSeconds(b*(100/a.PrimaryPercent-1)))
}}else{if(parseInt(a.TimeEstimated).toString()==a.TimeEstimated){a.TimeEstimated=this.getFormattedTime(this._toSeconds(a.TimeEstimated))
}}},_updateProgressAreas:function(a){if($telerik.RadUpload_isIFrameProgress){if(typeof(window.progressAreas)!="undefined"){for(var b=0;
b<progressAreas.length;
b++){var c=progressAreas[b];
if(c.cancelClicked){return false
}c.update(a)
}}}else{this.raiseEvent("progressUpdating",{ProgressData:a});
for(var b=0;
b<Telerik.Web.UI.ProgressAreas.length;
b++){var c=Telerik.Web.UI.ProgressAreas[b];
if(c.cancelClicked){return false
}c.update(a)
}}return true
},_resetCancelClicked:function(){for(var a=0;
a<Telerik.Web.UI.ProgressAreas.length;
a++){Telerik.Web.UI.ProgressAreas[a].cancelClicked=false
}this._initializeForm()
},hideProgressAreas:function(){for(var a=0;
a<Telerik.Web.UI.ProgressAreas.length;
a++){Telerik.Web.UI.ProgressAreas[a].hide()
}},_toSeconds:function(a){return Math.round(a/1000)
},_formatBytes:function(c){var a=c/1024;
var b=a/1024;
if(b>0.8){return""+Math.round(b*100)/100+"MB"
}if(a>0.8){return""+Math.round(a*100)/100+"kB"
}return""+c+" bytes"
},getFormattedTime:function(a){var b=this._normalizeTime(a);
return this._timeFormat.replace(/%HOURS%/,b.Hours).replace(/%MINUTES%/,b.Minutes).replace(/%SECONDS%/,b.Seconds)
},_normalizeTime:function(c){var a=this._formatTimePart(c%60);
var e=Math.floor(c/60);
var d=this._formatTimePart(e%60);
var b=this._formatTimePart(Math.floor(e/60));
return{Hours:b,Minutes:d,Seconds:a}
},_formatTimePart:function(a){if(a.toString().length>1){return a.toString()
}return"0"+a.toString()
},_errorOccured:function(){if(!document.all){return false
}if(this._xmlHttpRequest.status==404){this._showNotFoundMessage()
}else{if(this._xmlHttpRequest.status>0&&this._xmlHttpRequest.status!=200){this._showGenericErrorMessage()
}else{return false
}}return true
},_showNotFoundMessage:function(){alert("RadUpload Ajax callback error. Source url was not found: \n\r\n\r"+this._callbackUrl+"\n\r\n\rDid you register the RadUploadProgressHandler in web.config?\r\n\r\nPlease, see the help for more details: RadUpload for ASP.NET Ajax - Configuration - RadUploadProgressHandler.")
},_showGenericErrorMessage:function(){alert("RadUpload Ajax callback error. Source url returned error: "+this._xmlHttpRequest.status+" \n\r\n\r"+this._xmlHttpRequest.statusText+" \n\r\n\r"+this._callbackUrl+"\n\r\n\rDid you register the RadUploadProgressHandler in web.config?\r\n\r\nPlease, see the help for more details: RadUpload for ASP.NET Ajax - Configuration - RadUploadProgressHandler.")
},_showInvalidContentMessage:function(){alert("RadUpload Ajax callback error. Source url returned invalid content: \n\r\n\r"+this._xmlHttpRequest.responseText+"\n\r\n\r"+this._callbackUrl+"\n\r\n\rDid you register the RadUploadProgressHandler in web.config?\r\n\r\nPlease, see the help for more details: RadUpload for ASP.NET Ajax - Configuration - RadUploadProgressHandler.")
},handleProgressError:function(a){alert(a)
},get_formId:function(){return this._formId
},set_formId:function(a){this._formId=a
},get_refreshPeriod:function(){return this._refreshPeriod
},set_refreshPeriod:function(a){if(a&&!isNaN(a)&&a>=500){this._refreshPeriod=a
}},get_pageGUID:function(){return this._pageGUID
},set_pageGUID:function(a){this._pageGUID=a
},get_suppressMissingHttpModuleError:function(){return this._suppressMissingHttpModuleError
},set_suppressMissingHttpModuleError:function(a){this._suppressMissingHttpModuleError=a
},get_shouldRegisterForSubmit:function(){return this._shouldRegisterForSubmit
},set_shouldRegisterForSubmit:function(a){this._shouldRegisterForSubmit=a
},get_ajaxCallUrl:function(){return this._ajaxCallUrl
},set_ajaxCallUrl:function(a){this._ajaxCallUrl=a
},get_timeFormat:function(){return this._timeFormat
},set_timeFormat:function(a){this._timeFormat=a
},add_progressStarted:function(a){this.get_events().addHandler("progressStarted",a)
},remove_progressStarted:function(a){this.get_events().removeHandler("progressStarted",a)
},add_progressUpdating:function(a){this.get_events().addHandler("progressUpdating",a)
},remove_progressUpdating:function(a){this.get_events().removeHandler("progressUpdating",a)
},add_submitting:function(a){this.get_events().addHandler("submitting",a)
},remove_submitting:function(a){this.get_events().removeHandler("submitting",a)
}};
Telerik.Web.UI.RadProgressManager.registerClass("Telerik.Web.UI.RadProgressManager",Telerik.Web.UI.RadWebControl);
/* END Telerik.Web.UI.Upload.RadProgressManager.js */
/* START Telerik.Web.UI.Common.Popup.PopupScripts.js */
Type.registerNamespace("Telerik.Web");
Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.ModalExtender=function(a){this._windowResizeDelegate=null;
this._windowScrollDelegate=null;
this._xCoordinate=-1;
this._yCoordinate=-1;
this._backgroundElement=null;
this._foregroundElement=a;
this._saveTabIndexes=new Array();
this._saveDesableSelect=new Array();
this._tagWithTabIndex=new Array("A","AREA","BUTTON","INPUT","OBJECT","SELECT","TEXTAREA","IFRAME")
};
Telerik.Web.UI.ModalExtender.prototype={dispose:function(){this.hide();
this._backgroundElement=null;
this._foregroundElement=null
},show:function(){this._attachWindowHandlers(true);
var b=this._getModalOverlay();
var a=this._foregroundElement;
a.parentNode.appendChild(b);
var c=$telerik.getCurrentStyle(a,"zIndex");
if(!isNaN(parseInt(c))){b.style.zIndex=c-1
}b.style.display="";
this._disableTab();
this._updatePageLayout();
this._updatePageLayout()
},_storeBrowserPosition:function(){var a=document.body;
var b=document.documentElement;
this._browserTop=a.scrollTop>b.scrollTop?a.scrollTop:b.scrollTop;
this._browserLeft=a.scrollLeft>b.scrollLeft?a.scrollTop:b.scrollLeft
},_restoreBrowserPosition:function(d,b){try{if(null==d){d=this._browserLeft
}if(null==b){b=this._browserTop
}var a=document.body;
var c=document.documentElement;
a.scrollTop=b;
a.scrollLeft=d;
c.scrollTop=b;
c.scrollLeft=d
}catch(e){}},hide:function(){this._restoreTab();
this._attachWindowHandlers(false);
var a=this._backgroundElement;
if(a){a.parentNode.removeChild(a);
this._backgroundElement=null
}},_enableScroll:function(a){if(a){document.body.style.overflow=null!=this._overflow?this._overflow:"";
document.documentElement.style.overflow=null!=this._documentOverflow?this._documentOverflow:"";
document.body.style.marginRight=""
}else{this._overflow=document.body.style.overflow;
document.body.style.overflow="hidden";
this._documentOverflow=document.documentElement.style.overflow;
document.documentElement.style.overflow="hidden";
document.body.style.marginRight="18px"
}},_getModalOverlay:function(){if(!this._backgroundElement){var a=document.createElement("div");
a.style.display="none";
a.style.position="absolute";
if($telerik.isRightToLeft(this._foregroundElement)){a.style.right="0px"
}else{a.style.left="0px"
}a.style.top="0px";
a.style.zIndex=10000;
a.style.backgroundColor="#aaaaaa";
a.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=50)";
a.style.opacity=".5";
a.style.mozOpacity=".5";
a.setAttribute("unselectable","on");
a.className="TelerikModalOverlay";
this._backgroundElement=a
}return this._backgroundElement
},_attachWindowHandlers:function(a){var b=window;
if(true==a){this._windowResizeDelegate=Function.createDelegate(this,this._updatePageLayout);
$addHandler(b,"resize",this._windowResizeDelegate);
this._windowScrollDelegate=Function.createDelegate(this,this._updatePageLayout);
$addHandler(b,"scroll",this._windowScrollDelegate)
}else{if(this._windowResizeDelegate){$removeHandler(b,"resize",this._windowResizeDelegate)
}this._windowResizeDelegate=null;
if(this._windowScrollDelegate){$removeHandler(b,"scroll",this._windowScrollDelegate)
}this._windowScrollDelegate=null
}},_updatePageLayout:function(){var b=(document.documentElement.scrollLeft?$telerik.getCorrectScrollLeft(document.documentElement):$telerik.getCorrectScrollLeft(document.body));
var e=(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop);
var a=$telerik.getClientBounds();
var f=a.width;
var d=a.height;
var c=this._getModalOverlay();
c.style.width=Math.max(Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),f)+"px";
c.style.height=Math.max(Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),d)+"px"
},_disableTab:function(){var d=0;
var a;
var c=new Array();
Array.clear(this._saveTabIndexes);
for(var e=0;
e<this._tagWithTabIndex.length;
e++){a=this._foregroundElement.getElementsByTagName(this._tagWithTabIndex[e]);
for(var f=0;
f<a.length;
f++){c[d]=a[f];
d++
}}d=0;
for(var e=0;
e<this._tagWithTabIndex.length;
e++){a=document.getElementsByTagName(this._tagWithTabIndex[e]);
for(var f=0;
f<a.length;
f++){if(Array.indexOf(c,a[f])==-1){this._saveTabIndexes[d]={tag:a[f],index:a[f].tabIndex};
a[f].tabIndex="-1";
d++
}}}d=0;
if((Sys.Browser.agent===Sys.Browser.InternetExplorer)&&(Sys.Browser.version<7)){var b=new Array();
for(var e=0;
e<this._tagWithTabIndex.length;
e++){a=this._foregroundElement.getElementsByTagName("SELECT");
for(var f=0;
f<a.length;
f++){b[d]=a[f];
d++
}}d=0;
Array.clear(this._saveDesableSelect);
a=document.getElementsByTagName("SELECT");
for(var f=0;
f<a.length;
f++){if(Array.indexOf(b,a[f])==-1){this._saveDesableSelect[d]={tag:a[f],visib:$telerik.getCurrentStyle(a[f],"visibility")};
a[f].style.visibility="hidden";
d++
}}}},_restoreTab:function(){for(var a=0;
a<this._saveTabIndexes.length;
a++){this._saveTabIndexes[a].tag.tabIndex=this._saveTabIndexes[a].index
}if((Sys.Browser.agent===Sys.Browser.InternetExplorer)&&(Sys.Browser.version<7)){for(var b=0;
b<this._saveDesableSelect.length;
b++){this._saveDesableSelect[b].tag.style.visibility=this._saveDesableSelect[b].visib
}}}};
Telerik.Web.UI.ModalExtender.registerClass("Telerik.Web.UI.ModalExtender",null);
Type.registerNamespace("Telerik.Web");
Telerik.Web.PositioningMode=function(){throw Error.invalidOperation()
};
Telerik.Web.PositioningMode.prototype={Absolute:0,Center:1,BottomLeft:2,BottomRight:3,TopLeft:4,TopRight:5};
Telerik.Web.PositioningMode.registerEnum("Telerik.Web.PositioningMode");
Telerik.Web.PopupBehavior=function(a){Telerik.Web.PopupBehavior.initializeBase(this,[a]);
this._x=0;
this._y=0;
this._positioningMode=Telerik.Web.PositioningMode.Absolute;
this._parentElement=null;
this._parentElementID=null;
this._moveHandler=null;
this._firstPopup=true;
this._originalParent=null;
this._overlay=false;
this._keepInScreenBounds=true;
this._manageVisibility=true
};
Telerik.Web.PopupBehavior._ie6pinnedList={};
Telerik.Web.PopupBehavior.prototype={getPageOffset:function(){var a={x:($telerik.getCorrectScrollLeft(document.documentElement)||$telerik.getCorrectScrollLeft(document.body)),y:(document.documentElement.scrollTop||document.body.scrollTop)};
return a
},pin:function(c){var d=this.get_elementToShow();
var b=this.getPageOffset();
if($telerik.isIE6){var e=this.get_id();
if(c){if(Telerik.Web.PopupBehavior._ie6pinnedList[e]){return
}var a=$telerik.getBounds(d);
Telerik.Web.PopupBehavior._ie6pinnedList[e]=window.setInterval(Function.createDelegate(this,function(){var k=this.getPageOffset();
var h=a.x-b.x+k.x;
var i=a.y-b.y+k.y;
var j=this.get_parentElement();
this.set_parentElement(document.documentElement);
this.set_x(h);
this.set_y(i);
this.show();
this.set_parentElement(j)
}),130)
}else{var g=Telerik.Web.PopupBehavior._ie6pinnedList[e];
if(g){window.clearInterval(g)
}delete Telerik.Web.PopupBehavior._ie6pinnedList[e]
}}else{var f=c?"fixed":"absolute";
if(d.style.position==f){return
}var a=$telerik.getBounds(d);
if(c&&(b.x||b.y)){this._x=a.x-b.x;
this._y=a.y-b.y;
$telerik.setLocation(d,{x:this._x,y:this._y})
}d.style.position=f
}},center:function(){var e=this.get_elementToShow();
if(this._manageVisibility){$telerik.setVisible(e,true)
}var d=$telerik.getClientBounds();
var f=$telerik.getBounds(e);
var a=parseInt((d.width-f.width)/2);
var b=parseInt((d.height-f.height)/2);
var c=this.get_parentElement();
this.set_parentElement(document.documentElement);
this.set_x(a);
this.set_y(b);
this.show();
this.set_parentElement(c)
},get_parentElement:function(){if(!this._parentElement&&this._parentElementID){this.set_parentElement($get(this._parentElementID));
Sys.Debug.assert(this._parentElement!=null,String.format('Couldn\'t find parent element "{0}"',this._parentElementID))
}return this._parentElement
},set_parentElement:function(a){this._parentElement=a
},get_parentElementID:function(){if(this._parentElement){return this._parentElement.id
}return this._parentElementID
},set_parentElementID:function(a){this._parentElementID=a;
if(this.get_isInitialized()){this.set_parentElement($get(a))
}},get_positioningMode:function(){return this._positioningMode
},set_positioningMode:function(a){this._positioningMode=a
},get_x:function(){return this._x
},set_x:function(a){if(a!=this._x){this._x=a;
if($telerik.getVisible(this.get_elementToShow())&&this._manageVisibility){this.show()
}}},get_y:function(){return this._y
},set_y:function(a){if(a!=this._y){this._y=a;
if($telerik.getVisible(this.get_elementToShow())&&this._manageVisibility){this.show()
}}},get_overlay:function(){return this._overlay
},set_overlay:function(a){this._overlay=a;
this._attachWindowHandlers(false);
if(this._overlay){this._attachWindowHandlers(true)
}else{if(!((Sys.Browser.agent===Sys.Browser.InternetExplorer)&&(Sys.Browser.version<7))){var b=this.get_elementToShow();
var c=b._hideWindowedElementsIFrame;
if(c){c.style.display="none"
}}}},get_manageVisibility:function(){return this._manageVisibility
},set_manageVisibility:function(a){this._manageVisibility=a
},get_keepInScreenBounds:function(){return this._keepInScreenBounds
},set_keepInScreenBounds:function(a){this._keepInScreenBounds=a
},get_elementToShow:function(){return this._elementToShow?this._elementToShow:this.get_element()
},set_elementToShow:function(a){if(this._elementToShow){this._detachElementToShow()
}this._elementToShow=a
},_detachElementToShow:function(){var a=this.get_elementToShow();
if(this._moveHandler){$telerik.removeExternalHandler(a,"move",this._moveHandler);
this._moveHandler=null
}var c=a._hideWindowedElementsIFrame;
if(c){var b=c.parentNode;
var d=c.nextSibling;
if(b){b.removeChild(c);
if(d){b.insertBefore(document.createElement("SPAN"),d)
}else{b.appendChild(document.createElement("SPAN"))
}}}},hide:function(){var a=this.get_elementToShow();
if(this._manageVisibility){$telerik.setVisible(a,false)
}if(a.originalWidth){a.style.width=a.originalWidth+"px";
a.originalWidth=null
}if(Sys.Browser.agent===Sys.Browser.InternetExplorer||this._overlay){var b=a._hideWindowedElementsIFrame;
if(b){b.style.display="none"
}}},show:function(){var g=this.get_elementToShow();
g.style.position="absolute";
var i=document.documentElement;
if($telerik.isFirefox){var c=$telerik.getCurrentStyle(i,"overflow");
if("hidden"==c){g.style.left=i.scrollLeft+"px";
g.style.top=i.scrollLeft+"px"
}}if(this._manageVisibility){$telerik.setVisible(g,true)
}var j=g.offsetParent||i;
var f;
var h;
if(this._parentElement){h=$telerik.getBounds(this._parentElement);
var b=this._getOffsetParentLocation(g);
f={x:h.x-b.x,y:h.y-b.y}
}else{h=$telerik.getBounds(j);
f={x:0,y:0}
}var a=g.offsetWidth-(g.clientLeft?g.clientLeft*2:0);
var k=g.offsetHeight-(g.clientTop?g.clientTop*2:0);
var d;
switch(this._positioningMode){case Telerik.Web.PositioningMode.Center:d={x:Math.round(h.width/2-a/2),y:Math.round(h.height/2-k/2)};
break;
case Telerik.Web.PositioningMode.BottomLeft:d={x:0,y:h.height};
break;
case Telerik.Web.PositioningMode.BottomRight:d={x:h.width-a,y:h.height};
break;
case Telerik.Web.PositioningMode.TopLeft:d={x:0,y:-g.offsetHeight};
break;
case Telerik.Web.PositioningMode.TopRight:d={x:h.width-a,y:-g.offsetHeight};
break;
default:d={x:0,y:0}
}d.x+=this._x+f.x;
d.y+=this._y+f.y;
$telerik.setLocation(g,d);
if(this._firstPopup){g.style.width=a+"px"
}this._firstPopup=false;
var e=this._fixPositionInBounds();
this._createOverlay(e)
},_getViewportBounds:function(){var b=$telerik.getClientBounds();
var c=document.documentElement;
var a=document.body;
b.scrollLeft=($telerik.getCorrectScrollLeft(c)||$telerik.getCorrectScrollLeft(a));
b.scrollTop=(c.scrollTop||a.scrollTop);
return b
},_getOffsetParentLocation:function(c){var d=c.offsetParent;
if(d&&d.tagName.toUpperCase()!="BODY"&&d.tagName.toUpperCase()!="HTML"){var b=$telerik.getLocation(d);
var a=$telerik.getBorderBox(d);
b.x+=a.top;
b.y+=a.left;
b.x-=$telerik.getCorrectScrollLeft(d);
b.y-=d.scrollTop;
return b
}return{x:0,y:0}
},_fixPositionInBounds:function(){var c=this.get_elementToShow();
var b=$telerik.getBounds(c);
if(!this._keepInScreenBounds){return b
}var h=this._getViewportBounds();
var j=false;
var l=(h.width>b.width);
var k=(h.height>b.height);
var g=h.scrollTop;
var i=h.height+g;
var f=h.scrollLeft;
var e=h.width+f;
if($telerik.isRightToLeft(document.body)){var d=document.documentElement.scrollWidth;
e=d?d:document.body.scrollWidth
}if(b.x<f||!l){b.x=f;
j=true
}if(b.y<g||!k){b.y=g;
j=true
}if(l&&(b.x+b.width>e)){b.x=e-b.width;
j=true
}if(k&&(i<b.y+b.height)){b.y=i-b.height;
j=true
}if(j){var a=this._getOffsetParentLocation(c);
b.y-=a.y;
b.x-=a.x;
$telerik.setLocation(c,b)
}return b
},_createOverlay:function(e){if(!$telerik.isIE6&&!this._overlay){return
}var d=this.get_elementToShow();
var c=d._hideWindowedElementsIFrame;
if(!c){c=document.createElement("iframe");
c.src="javascript:'<html></html>';";
c.style.position="absolute";
c.style.display="none";
c.scrolling="no";
c.frameBorder="0";
c.tabIndex="-1";
c.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";
d.parentNode.insertBefore(c,d);
d._hideWindowedElementsIFrame=c;
this._moveHandler=Function.createDelegate(this,this._onMove);
$telerik.addExternalHandler(d,"move",this._moveHandler)
}$telerik.setBounds(c,e);
if($telerik.isFirefox){var b=this._getViewportBounds();
c.style.top=parseInt(e.y)-b.scrollTop+"px";
c.style.left=parseInt(e.x)-b.scrollLeft+"px";
c.style.position="fixed"
}if($telerik.quirksMode){return
}c.style.display=d.style.display;
var a=$telerik.getCurrentStyle(d,"zIndex");
if(a){c.style.zIndex=a
}},_setCoordinates:function(a,b){var c=false;
if(a!=this._x){this._x=a;
c=true
}if(b!=this._y){this._y=b;
c=true
}if($telerik.getVisible(this.get_elementToShow())&&c&&this._manageVisibility){this.show()
}},initialize:function(){Telerik.Web.PopupBehavior.callBaseMethod(this,"initialize");
this.hide()
},dispose:function(){var a=this.get_elementToShow();
if(a){this._attachWindowHandlers(false);
if($telerik.getVisible(a)&&this._manageVisibility){this.hide()
}if(this._originalParent){a.parentNode.removeChild(a);
this._originalParent.appendChild(a);
this._originalParent=null
}this._detachElementToShow()
}this._parentElement=null;
Telerik.Web.PopupBehavior.callBaseMethod(this,"dispose");
if(a&&a._behaviors&&a._behaviors.length==0){a._behaviors=null
}a=null
},_onMove:function(){var a=this.get_elementToShow();
var c=a._hideWindowedElementsIFrame;
if(c){if(Sys.Browser.agent===Sys.Browser.Firefox){var b=this._getViewportBounds();
c.style.top=parseInt(a.style.top)-b.scrollTop+"px";
c.style.left=parseInt(a.style.left)-b.scrollLeft+"px";
c.style.position="fixed"
}else{c.style.top=a.style.top;
c.style.left=a.style.left
}}},_handleElementResize:function(){var b=this.get_elementToShow();
var c=b._hideWindowedElementsIFrame;
if(c){var a=$telerik.getBounds(b);
$telerik.setBounds(c,a)
}},_attachWindowHandlers:function(a){if(!Sys.Browser.agent===Sys.Browser.Firefox){return
}var b=window;
if(true==a){this._windowResizeDelegate=Function.createDelegate(this,this._onMove);
$telerik.addExternalHandler(b,"resize",this._windowResizeDelegate);
this._windowScrollDelegate=Function.createDelegate(this,this._onMove);
$telerik.addExternalHandler(b,"scroll",this._windowScrollDelegate)
}else{if(this._windowResizeDelegate){$telerik.removeExternalHandler(b,"resize",this._windowResizeDelegate)
}this._windowResizeDelegate=null;
if(this._windowScrollDelegate){$telerik.removeExternalHandler(b,"scroll",this._windowScrollDelegate)
}this._windowScrollDelegate=null
}}};
Telerik.Web.PopupBehavior.registerClass("Telerik.Web.PopupBehavior",Sys.UI.Behavior);
Type.registerNamespace("Telerik.Web");
Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.ResizeExtender=function(c,e,d,g,a,f,b){this._document=a?a:document;
this._documentMouseMoveDelegate=null;
this._documentMouseUpDelegate=null;
this._element=null;
this._tableElement=null;
this._moveCursorType="move";
this._enabled=true;
this._jsOwner=null;
this._hideIframes=true;
this._autoScrollEnabled=true;
this._saveDelegates={};
this.makeResizable(c,e,d,g,f,b)
};
Telerik.Web.UI.ResizeExtender.containsBounds=function(c,e){if(!c||!e){return false
}var d=$telerik.containsPoint(c,e.x,e.y);
if(d){var a=e.x+e.width;
var b=e.y+e.height;
d=$telerik.containsPoint(c,a,b)
}return d
};
Telerik.Web.UI.ResizeExtender.prototype={dispose:function(){this._attachDocumentHandlers(false);
this._configureHandleElements(false);
this._jsOwner=null
},enable:function(a){this._enabled=a
},set_hideIframes:function(a){this._hideIframes=a
},get_hideIframes:function(){return this._hideIframes
},makeResizable:function(d,b,c,f,e,a){if(!b){return
}if(this._element){alert("Element "+b.getAttribute("id")+" cannot be made resizable, as the resizeExtender already has the element "+this._element.getAttribute("id")+" associated with it. You must create a new extender resizer object");
return
}this._jsOwner=d;
this._element=b;
this._tableElement=f;
this._resizeHandles=c;
if(e){this._moveCursorType=e
}if(a!=null){this._autoScrollEnabled=a
}this._startX=0;
this._startY=0;
this._cancelResize=true;
this._configureHandleElements(true)
},_raiseDragEvent:function(c,b,d){if(this._jsOwner&&this._jsOwner["on"+c]){var a=b;
if(!a){a={}
}a.element=this._element;
a.ownerEvent=d;
return this._jsOwner["on"+c](a)
}return true
},_raiseEvent:function(b,a){if(this._jsOwner&&this._jsOwner["on"+b]){if(!a){a=new Sys.EventArgs()
}else{if(b=="Resize"){a=this._resizeDir
}else{if(b=="Resizing"){a=this._getProposedBounds(a)
}}}return this._jsOwner["on"+b](a)
}return true
},_getProposedBounds:function(b){var a=$telerik.getBounds(this._element);
return{x:b.x||a.x,y:b.y||a.y,width:b.width||a.width,height:b.height||a.height}
},_resize:function(f){if(!this._enabled||this._cancelResize){return false
}var b=0;
var g=0;
var c=0;
var a=0;
var d=this._originalBounds;
var j=this._resizeDir.move;
if(j){c=d.x+(f.clientX-this._startX);
a=d.y+(f.clientY-this._startY)
}else{if(this._resizeDir.east){b=d.width+(f.clientX-this._startX)
}else{if(this._resizeDir.west){c=d.x+(f.clientX-this._startX)-this._leftHandleMouseDelta;
b=d.width-(f.clientX-this._startX)
}}if(this._resizeDir.south){g=d.height+(f.clientY-this._startY)
}else{if(this._resizeDir.north){a=d.y+(f.clientY-this._startY);
g=d.height-(f.clientY-this._startY)
}}}if(this._offsetLocation){c-=this._offsetLocation.x;
a-=this._offsetLocation.y
}var h=new Sys.UI.Bounds(c,a,b,g);
var i=j?this._raiseDragEvent("Drag",h,f):this._raiseEvent("Resizing",h);
if(false==i){return true
}if(j||h.x>0){this._element.style.left=h.x+"px"
}if(j||h.y>0){this._element.style.top=h.y+"px"
}if(h.width>0){this._element.style.width=h.width+"px"
}if(h.height>0){this._element.style.height=h.height+"px"
}if(!j){this._updateInnerTableSize()
}return true
},getPositionedParent:function(){var a=this._element.parentNode;
while(a&&a!=document){if("static"!=$telerik.getCurrentStyle(a,"position","static")){return a
}a=a.parentNode
}return null
},_storeStartCoords:function(g){if(!this._enabled){return
}this._cancelResize=false;
this._startX=g.clientX;
this._startY=g.clientY;
var f=$telerik.getBounds(this._element);
if($telerik.isIE){var d=this.getPositionedParent();
if(d){f.x+=d.scrollLeft;
f.y+=d.scrollTop
}}this._originalBounds=f;
var c=g.target?g.target:g.srcElement;
if(c&&c.type==3){c=c.parentNode
}this._resizeType=$telerik.getCurrentStyle(c,"cursor");
this._resizeDir={north:this._resizeType.match(/n.?-/)?1:0,east:this._resizeType.match(/e-/)?1:0,south:this._resizeType.match(/s.?-/)?1:0,west:this._resizeType.match(/w-/)?1:0,move:new RegExp(this._moveCursorType).test(this._resizeType)?1:0};
this._leftHandleMouseDelta=0;
if(this._resizeDir.west){this._leftHandleMouseDelta=Math.abs($telerik.getBounds(c).x-this._startX)
}var a=this._resizeDir.move?this._raiseDragEvent("DragStart",null,g):this._raiseEvent("ResizeStart");
this._cancelResize=(a==false);
var b=$telerik.getCurrentStyle(this._element.parentNode,"position");
var h=("relative"==b)||("absolute"==b);
this._offsetLocation=h?$telerik.getLocation(this._element.parentNode):null;
if(!this._cancelResize){this._clearSelection();
this._setIframesVisible(false);
this._attachDocumentHandlers(false);
this._attachDocumentHandlers(true)
}},_updateInnerTableSize:function(){var b=this._resizeDir;
if(b.south||b.north){var a=this._element.style.height;
var c=this._tableElement;
if(c){c.style.height=a;
this._fixIeHeight(c,a)
}}},_setIframesVisible:function(d){if(!this._hideIframes){return
}var c=this._document.getElementsByTagName("IFRAME");
for(var a=0;
a<c.length;
a++){var b=c[a];
b.style.visibility=d?"":"hidden";
if($telerik.isIE){try{b.contentWindow.document.body.style.visibility=d?"":"hidden"
}catch(e){}}}},_configureHandleElements:function(b){var a=["nw","n","ne","w","e","sw","s","se",this._moveCursorType];
for(var d=0;
d<a.length;
d++){var f=a[d];
var c=this._resizeHandles[f];
if(c){if(c instanceof Array){for(var e=0;
e<c.length;
e++){this._configureHandle("id"+d+"_"+e,b,c[e],f)
}}else{this._configureHandle("id"+d,b,c,f)
}}}if(!b){this._saveDelegates={}
}},_configureHandle:function(a,c,d,e){if(c){var b=Function.createDelegate(this,this._onHandleMouseDown);
$telerik.addExternalHandler(d,"mousedown",b);
this._saveDelegates[a]={delegate:b,element:d};
var f=(e==this._moveCursorType?this._moveCursorType:e+"-resize");
d.style.cursor=f
}else{$telerik.removeExternalHandler(d,"mousedown",this._saveDelegates[a].delegate);
d.style.cursor=""
}},_attachDocumentHandlers:function(a){var b=this._document;
if(true==a){this._documentMouseMoveDelegate=Function.createDelegate(this,this._onDocumentMouseMove);
$telerik.addExternalHandler(b,"mousemove",this._documentMouseMoveDelegate);
this._documentMouseUpDelegate=Function.createDelegate(this,this._onDocumentMouseUp);
$telerik.addExternalHandler(b,"mouseup",this._documentMouseUpDelegate)
}else{if(this._documentMouseMoveDelegate){$telerik.removeExternalHandler(b,"mousemove",this._documentMouseMoveDelegate)
}this._documentMouseMoveDelegate=null;
if(this._documentMouseUpDelegate){$telerik.removeExternalHandler(b,"mouseup",this._documentMouseUpDelegate)
}this._documentMouseUpDelegate=null
}},_onDocumentMouseMove:function(b){var a=this._resize(b);
if(this._autoScrollEnabled){this._autoScroll(b)
}if(a){return $telerik.cancelRawEvent(b)
}},_onDocumentMouseUp:function(b){var a=!this._cancelResize;
this._cancelResize=true;
if(a){this._clearSelection();
this._setIframesVisible(true);
if(this._resizeDir&&this._resizeDir.move){this._raiseDragEvent("DragEnd",null,b)
}else{this._raiseEvent("ResizeEnd")
}this._attachDocumentHandlers(false);
if(this._scroller){this._scroller.set_enabled(false)
}}},_onHandleMouseDown:function(a){this._storeStartCoords(a);
return $telerik.cancelRawEvent(a)
},_clearSelection:function(){if(this._document.selection&&this._document.selection.empty){this._document.selection.empty()
}},_fixIeHeight:function(a,b){if("CSS1Compat"==document.compatMode){var d=(a.offsetHeight-parseInt(b));
if(d>0){var c=(parseInt(a.style.height)-d);
if(c>0){a.style.height=c+"px"
}}}},_initializeAutoScroll:function(){if(this._autoScrollInitialized){return
}this._scrollEdgeConst=40;
this._scrollByConst=10;
this._scroller=null;
this._scrollDeltaX=0;
this._scrollDeltaY=0;
this._scrollerTickHandler=Function.createDelegate(this,this._onScrollerTick);
this._scroller=new Telerik.Web.Timer();
this._scroller.set_interval(10);
this._scroller.add_tick(this._scrollerTickHandler);
this._autoScrollInitialized=true
},_autoScroll:function(a){this._initializeAutoScroll();
var b=$telerik.getClientBounds();
if(b.width>0){this._scrollDeltaX=this._scrollDeltaY=0;
if(a.clientX<b.x+this._scrollEdgeConst){this._scrollDeltaX=-this._scrollByConst
}else{if(a.clientX>b.width-this._scrollEdgeConst){this._scrollDeltaX=this._scrollByConst
}}if(a.clientY<b.y+this._scrollEdgeConst){this._scrollDeltaY=-this._scrollByConst
}else{if(a.clientY>b.height-this._scrollEdgeConst){this._scrollDeltaY=this._scrollByConst
}}var c=this._scroller;
if(this._scrollDeltaX!=0||this._scrollDeltaY!=0){this._originalStartX=this._startX;
this._originalStartY=this._startY;
c.set_enabled(true)
}else{if(c.get_enabled()){this._startX=this._originalStartX;
this._startY=this._originalStartY
}c.set_enabled(false)
}}},_onScrollerTick:function(){var g=document.documentElement.scrollLeft||document.body.scrollLeft;
var e=document.documentElement.scrollTop||document.body.scrollTop;
window.scrollBy(this._scrollDeltaX,this._scrollDeltaY);
var c=document.documentElement.scrollLeft||document.body.scrollLeft;
var i=document.documentElement.scrollTop||document.body.scrollTop;
var a=c-g;
var d=i-e;
var h=this._element;
var b={x:parseInt(h.style.left)+a,y:parseInt(h.style.top)+d};
this._startX-=a;
this._startY-=d;
try{$telerik.setLocation(h,b)
}catch(f){}}};
Telerik.Web.UI.ResizeExtender.registerClass("Telerik.Web.UI.ResizeExtender",null);
/* END Telerik.Web.UI.Common.Popup.PopupScripts.js */
/* START Telerik.Web.UI.Upload.RadProgressArea.js */
Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.ProgressAreaContainerName="Panel";
function getRadProgressArea(a){return $find(a)
}Telerik.Web.UI.RadProgressArea=function(a){Telerik.Web.UI.RadProgressArea.initializeBase(this,[a]);
this._progressManagerFound=false;
this._popupVisible=false;
this._width="";
this._height="";
this._skin="";
this._rtlCalculated=false;
this._isRightToLeft=false;
this._disposed=false;
$telerik.RadUpload_isIFrameProgress=$telerik.isSafari||$telerik.isOpera;
this._bodyElement=($telerik.standardsMode)?document.documentElement:document.body
};
Telerik.Web.UI.RadProgressArea.prototype={initialize:function(){Telerik.Web.UI.RadProgressArea.callBaseMethod(this,"initialize");
if(!this._progressManagerFound){alert("Could not find an instance of RadProgressManager on the page. Are you missing the control declaration?")
}if(this._getIsRightToLeft()){this._applyRightToLeft()
}this._setupControls();
this.cancelClicked=false;
if(this._cancelButtonElement){$addHandlers(this._cancelButtonElement,{click:this.cancelRequest},this)
}if(typeof(Telerik.Web.UI.ProgressAreas)=="undefined"){Telerik.Web.UI.ProgressAreas=[]
}Telerik.Web.UI.ProgressAreas[Telerik.Web.UI.ProgressAreas.length]=this
},dispose:function(){this._disposed=true;
if(this._cancelButtonElement){$clearHandlers(this._cancelButtonElement)
}Telerik.Web.UI.RadProgressArea.callBaseMethod(this,"dispose")
},_addSafariDefinition:function(a){a[a.length]=String.format("{0} = new RadUploadSafariProgressArea('{0}');",this.get_id())
},_setupControls:function(){this._clientId=this.get_id();
this._element=$get(this._clientId);
this._primaryProgressBarElement=this._findElement("PrimaryProgressBarInnerDiv");
this._primaryTotalElement=this._findElement("PrimaryTotal");
this._primaryValueElement=this._findElement("PrimaryValue");
this._primaryPercentElement=this._findElement("PrimaryPercent");
this._secondaryProgressBarElement=this._findElement("SecondaryProgressBarInnerDiv");
this._secondaryTotalElement=this._findElement("SecondaryTotal");
this._secondaryValueElement=this._findElement("SecondaryValue");
this._secondaryPercentElement=this._findElement("SecondaryPercent");
this._currentOperationElement=this._findElement("CurrentOperation");
this._timeElapsedElement=this._findElement("TimeElapsed");
this._timeEstimatedElement=this._findElement("TimeEstimated");
this._speedElement=this._findElement("Speed");
this._cancelButtonElement=this._findElement("CancelButton")
},_setupSafariProgressAreaControls:function(){if($telerik.RadUpload_isIFrameProgress){this._getSafariProgressArea()._primaryProgressBarElement=this._primaryProgressBarElement;
this._getSafariProgressArea()._primaryTotalElement=this._primaryTotalElement;
this._getSafariProgressArea()._primaryValueElement=this._primaryValueElement;
this._getSafariProgressArea()._primaryPercentElement=this._getSafariProgressArea();
this._getSafariProgressArea()._secondaryProgressBarElement=this._secondaryProgressBarElement;
this._getSafariProgressArea()._secondaryTotalElement=this._secondaryTotalElement;
this._getSafariProgressArea()._secondaryValueElement=this._secondaryValueElement;
this._getSafariProgressArea()._secondaryPercentElement=this._secondaryPercentElement;
this._getSafariProgressArea()._currentOperationElement=this._currentOperationElement;
this._getSafariProgressArea()._timeElapsedElement=this._timeElapsedElement;
this._getSafariProgressArea()._timeEstimatedElement=this._timeEstimatedElement;
this._getSafariProgressArea()._speedElement=this._speedElement;
this._getSafariProgressArea()._cancelButtonElement=this._cancelButtonElement;
this._getSafariProgressArea()._width=this._width;
this._getSafariProgressArea()._height=this._height;
if(!this._element){this._element=$get(this._clientId)
}this._getSafariProgressArea()._element=this._element
}},_getSafariProgressArea:function(){if(!this._safariProgressArea){this._safariProgressArea=getRadProgressManager()._safariPoller.contentWindow[this.get_id()]
}return this._safariProgressArea
},_getIsRightToLeft:function(){if(!this._rtlCalculated){var a=this.get_element();
this._isRightToLeft=$telerik.getCurrentStyle(a,"direction","ltr")=="rtl";
return this._isRightToLeft;
this._rtlCalculated=true
}return this._isRightToLeft
},_applyRightToLeft:function(){var a=this.get_element();
if(/RadUploadProgressArea_rtl/.test(a.className)){return
}$telerik.addCssClasses(a,["RadUploadProgressArea_rtl",String.format("RadUploadProgressArea_{0}_rtl",this._skin)])
},_findElement:function(a){var b=this._clientId+"_"+Telerik.Web.UI.ProgressAreaContainerName+"_"+a;
return $get(b)
},cancelRequest:function(){this.cancelClicked=true
},update:function(a){if(this._disposed){return
}if(!$telerik.RadUpload_isIFrameProgress){var b=new Sys.CancelEventArgs();
b._progressData=a;
b.get_progressData=function(){return this._progressData
};
this.raiseEvent("progressUpdating",b);
if(b.get_cancel()){return
}this.show();
b._progressValue=a.PrimaryPercent;
b._progressBarElementName="PrimaryProgressBar";
b._progressBarElement=this._primaryProgressBarElement;
b.get_progressValue=function(){return this._progressValue
};
b.get_progressBarElementName=function(){return this._progressBarElementName
};
b.get_progressBarElement=function(){return this._progressBarElement
};
this.raiseEvent("progressBarUpdating",b);
if(!b.get_cancel()&&!isNaN(a.PrimaryPercent)){this.updateHorizontalProgressBar(this._primaryProgressBarElement,a.PrimaryPercent)
}b._progressValue=a.SecondaryPercent;
b._progressBarElementName="SecondaryProgressBar";
b._progressBarElement=this._secondaryProgressBarElement;
this.raiseEvent("progressBarUpdating",b);
if(!b.get_cancel()&&!isNaN(a.SecondaryPercent)){this.updateHorizontalProgressBar(this._secondaryProgressBarElement,a.SecondaryPercent)
}}else{this.show();
this.updateHorizontalProgressBar(this._primaryProgressBarElement,a.PrimaryPercent);
this.updateHorizontalProgressBar(this._secondaryProgressBarElement,a.SecondaryPercent)
}this.updateTextIndicator(this._primaryTotalElement,a.PrimaryTotal);
this.updateTextIndicator(this._primaryValueElement,a.PrimaryValue);
this.updateTextIndicator(this._primaryPercentElement,a.PrimaryPercent);
this.updateTextIndicator(this._secondaryTotalElement,a.SecondaryTotal);
this.updateTextIndicator(this._secondaryValueElement,a.SecondaryValue);
this.updateTextIndicator(this._secondaryPercentElement,a.SecondaryPercent);
this.updateTextIndicator(this._currentOperationElement,a.CurrentOperationText);
this.updateTextIndicator(this._timeElapsedElement,a.TimeElapsed);
this.updateTextIndicator(this._timeEstimatedElement,a.TimeEstimated);
this.updateTextIndicator(this._speedElement,a.Speed)
},show:function(){if(!this._element){this._element=$get(this._clientId)
}if($telerik.RadUpload_isIFrameProgress){this._element.style.visibility="visible";
this._element.style.width=this._width?this._width:"430px";
this._element.style.height=this._height?this._height:"auto"
}this._element.style.display="";
if(!$telerik.RadUpload_isIFrameProgress&&this._element.style.position=="absolute"){if(!this._popupBehavior){this._popupBehavior=$create(Telerik.Web.PopupBehavior,{id:(new Date()-100)+"PopupBehavior",parentElement:this._bodyElement},null,null,this._element)
}if(this._popupVisible==false){this._popupVisible=true;
var a=$telerik.getBounds(this._element);
var c=this._element.style;
var d=c.left?parseInt(c.left):a.x;
var b=c.top?parseInt(c.top):a.y;
this._popupBehavior.set_x(d);
this._popupBehavior.set_y(b);
this._popupBehavior.show()
}}},hide:function(){this._element.style.display="none";
if(this._popupBehavior){this._popupBehavior.hide(true)
}},updateTextIndicator:function(a,b){if(!a||typeof(b)=="undefined"){return
}if(typeof(a.value)=="string"){a.value=b
}else{if(typeof(a.innerHTML)=="string"){a.innerHTML=b
}}},updateHorizontalProgressBar:function(b,a){if(b&&typeof(a)!="undefined"){b.style.width=a+"%"
}},updateVerticalProgressBar:function(b,a){if(b&&typeof(a)!="undefined"){b.style.height=a+"%"
}},get_progressManagerFound:function(){return this._progressManagerFound
},set_progressManagerFound:function(a){this._progressManagerFound=a
},add_progressUpdating:function(a){this.get_events().addHandler("progressUpdating",a)
},remove_progressUpdating:function(a){this.get_events().removeHandler("progressUpdating",a)
},add_progressBarUpdating:function(a){this.get_events().addHandler("progressBarUpdating",a)
},remove_progressBarUpdating:function(a){this.get_events().removeHandler("progressBarUpdating",a)
}};
Telerik.Web.UI.RadProgressArea.registerClass("Telerik.Web.UI.RadProgressArea",Telerik.Web.UI.RadWebControl);
/* END Telerik.Web.UI.Upload.RadProgressArea.js */
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
(function() {var fn = function() {if(!$get('ctl00_RadScriptManager1_HiddenField')) return; $get('ctl00_RadScriptManager1_HiddenField').value += ';;Telerik.Web.UI, Version=2009.2.701.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4:en-US:ffafc724-e959-4dca-aca2-eeb92fdb8ca6:16e4e7cd:68f76a79:874f8ea2:2a2fc429';Sys.Application.remove_load(fn);};Sys.Application.add_load(fn);})();
