function ULS_SP(){if (ULS_SP.caller){ULS_SP.caller.ULSTeamName = "Windows SharePoint Services 4";ULS_SP.caller.ULSFileName = "SP.UI.Dialog.js";}}

Type.registerNamespace('SP.UI');SP.UI.DialogResult=function(){ULS_SP();};SP.UI.DialogResult.prototype = {invalid:-1,cancel:0,OK:1}
SP.UI.DialogResult.registerEnum('SP.UI.DialogResult',false);SP.UI.$create_DialogOptions=function(){ULS_SP();return {};}
SP.UI.Dialog=function(options){ULS_SP();this.$F=-1;this.$29=options.args;this.$C=options.width;if(this.$C<0){this.$C=null;}if(SP.ScriptUtility.isNullOrUndefined(this.$C)){this.$C=parseInt(SP.Res.defaultDialogWidth);}this.$D=options.height;if(this.$D<0){this.$D=null;}if(SP.ScriptUtility.isNullOrUndefined(this.$D)){this.$D=parseInt(SP.Res.defaultDialogHeight);}this.$8=options.dialogReturnValueCallback;this.$9=options.url;this.$A=options.x;if(this.$A<0){this.$A=null;}this.$B=options.y;if(this.$B<0){this.$B=null;}this.$27=options.html;this.$28=options.title;if(SP.ScriptUtility.isNullOrUndefined(options.allowMaximize)){this.$2A=true;}else{this.$2A=options.allowMaximize;}if(SP.ScriptUtility.isNullOrUndefined(options.showMaximized)){this.$15=false;}else{this.$15=options.showMaximized;}if(SP.ScriptUtility.isNullOrUndefined(options.showClose)){this.$2B=true;}else{this.$2B=options.showClose;}}
SP.UI.Dialog.$41=function($p0){var $0;$0=$p0.document.documentElement.clientWidth;if(SP.ScriptUtility.isNullOrUndefined($0)||$0<=0){$0=$p0.innerWidth;}if(SP.ScriptUtility.isNullOrUndefined($0)||$0<=0){$0=$p0.document.body.clientWidth;}return $0;}
SP.UI.Dialog.$42=function($p0){var $0;$0=$p0.document.documentElement.clientHeight;if(SP.ScriptUtility.isNullOrUndefined($0)||$0<=0){$0=$p0.innerHeight;}if(SP.ScriptUtility.isNullOrUndefined($0)||$0<=0){$0=$p0.document.body.clientHeight;}return $0;}
SP.UI.Dialog.$43=function($p0){var $0=0;if(!SP.ScriptUtility.isNullOrUndefined($p0.documentElement)&&!SP.ScriptUtility.isNullOrUndefined($p0.documentElement.scrollWidth)&&!SP.ScriptUtility.isNullOrUndefined($p0.documentElement.offsetWidth)){$0=Math.max($p0.documentElement.scrollWidth,$p0.documentElement.offsetWidth);}return Math.max($p0.body.scrollWidth,$p0.body.offsetWidth,$0);}
SP.UI.Dialog.$44=function($p0){var $0=0;if(!SP.ScriptUtility.isNullOrUndefined($p0.documentElement)&&!SP.ScriptUtility.isNullOrUndefined($p0.documentElement.scrollHeight)&&!SP.ScriptUtility.isNullOrUndefined($p0.documentElement.offsetHeight)){$0=Math.max($p0.documentElement.scrollHeight,$p0.documentElement.offsetHeight);}return Math.max($p0.body.scrollHeight,$p0.body.offsetHeight,$0);}
SP.UI.Dialog.$45=function($p0){var $0=$p0.pageXOffset;if(!SP.ScriptUtility.isNullOrUndefined($0)){return $0;}if(!SP.ScriptUtility.isNullOrUndefined($p0.document.documentElement)&&!SP.ScriptUtility.isNullOrUndefined($p0.document.documentElement.scrollLeft)){return $p0.document.documentElement.scrollLeft;}return $p0.document.body.scrollLeft;}
SP.UI.Dialog.$46=function($p0){var $0=$p0.pageYOffset;if(!SP.ScriptUtility.isNullOrUndefined($0)){return $0;}if(!SP.ScriptUtility.isNullOrUndefined($p0.document.documentElement)&&!SP.ScriptUtility.isNullOrUndefined($p0.document.documentElement.scrollTop)){return $p0.document.documentElement.scrollTop;}return $p0.document.body.scrollTop;}
SP.UI.Dialog.$47=function($p0){var $0=$p0.parentWindow;if(!$0){$0=$p0.defaultView;}return $0;}
SP.UI.Dialog.$48=function($p0){if($p0.length>2040){$p0=$p0.substr(0,2040);}if($p0.indexOf('?')<0){$p0=$p0+'?IsDlg=1';}else{if(!$p0.endsWith('&')){$p0=$p0+'&';}$p0=$p0+'IsDlg=1';}return $p0;}
SP.UI.Dialog.$4F=function($p0){$p0.setAttribute('href','javascript:;');}
SP.UI.Dialog.get_$5A=function(){ULS_SP();var $0=window.top.g_overlayPopup;if(SP.ScriptUtility.isNullOrUndefined($0)){return null;}return $0;}
SP.UI.Dialog.set_$5A=function($p0){window.top.g_overlayPopup = $p0;return $p0;}
SP.UI.Dialog.$5D=function($p0){var $0=SP.UI.Dialog.get_$5A();if($0){SP.UI.UIUtility.removeNode($0);window.top.setTimeout(Function.createDelegate(null,SP.UI.Dialog.$5E),20);}var $1=SP.UI.ModalDialog.get_childDialog();while($1){$1.$3F();$1=$1.get_$68();}}
SP.UI.Dialog.$5E=function(){ULS_SP();var $0=SP.UI.Dialog.get_$5A();if($0){var $1=SP.UI.Dialog.$43(window.top.document)-1;$0.style.width=$1.toString()+'px';var $2=SP.UI.Dialog.$44(window.top.document)-1;$0.style.height=$2.toString()+'px';window.top.document.body.appendChild(SP.UI.Dialog.get_$5A());}}
SP.UI.Dialog.prototype={$0:null,$1:null,$2:null,$3:null,$4:null,$5:null,$6:null,$7:null,$8:null,$9:null,$A:0,$B:0,$C:0,$D:0,$E:0,$10:0,$11:0,$12:0,$13:0,$14:false,$15:false,$16:null,$17:null,$1E:null,$1F:null,$20:null,$21:false,$22:null,$23:null,$24:null,$25:null,get_firstTabStop:function(){ULS_SP();return this.$25;},$26:null,get_lastTabStop:function(){ULS_SP();if(!this.$26){this.$4B();}if(this.$26){return this.$26;}else{return null;}},get_url:function(){ULS_SP();return this.$9;},$27:null,get_html:function(){ULS_SP();return this.$27;},$28:null,get_title:function(){ULS_SP();return this.$28;},$29:null,get_args:function(){ULS_SP();return this.$29;},$2A:false,get_allowMaximize:function(){ULS_SP();return this.$2A;},$2B:false,get_showClose:function(){ULS_SP();return this.$2B;},$2C:null,get_returnValue:function(){ULS_SP();return this.$2C;},set_returnValue:function(value){ULS_SP();this.$2C=value;return value;},initialize:function(){ULS_SP();this.$4E();this.$56(this.$A,this.$B);if(this.$15){this.$3A(null);}this.$2D();},$2D:function(){ULS_SP();if(!this.$1E){this.$1E=new SP.Application.UI.DragBehavior(this.$5,this.$1);this.$1E.addExtraDragElement(this.$2);this.$1E.createIframeCoverElement(this.$3);this.$1E.initialize();}},$2E:function(){ULS_SP();if(this.$1E){this.$1E.dispose();this.$1E=null;}},$2F:function($p0){this.close(0);$p0.preventDefault();},$30:function($p0){if($p0.keyCode===27){this.close(0);}},$31:function($p0){if(this.get_firstTabStop()){this.get_firstTabStop().focus();}},$32:function($p0){if(this.get_lastTabStop()){this.get_lastTabStop().focus();}else{if(this.get_firstTabStop()){this.get_firstTabStop().focus();}}},$33:function($p0){if(this.$14){this.$16.src='/_layouts/images/'+'wndrestore_hover.gif';}else{this.$16.src='/_layouts/images/'+'wndmaximize_hover.gif';}},$34:function($p0){if(this.$14){this.$16.src='/_layouts/images/'+'wndrestore.gif';}else{this.$16.src='/_layouts/images/'+'wndmaximize.gif';}},$35:function($p0){this.$17.src='/_layouts/images/'+'wndclose_hover.gif';},$36:function($p0){this.$17.src='/_layouts/images/'+'wndclose.gif';},$37:function($p0){$p0.stopPropagation();},$38:function($p0){this.$1.style.cursor='move';},$39:function($p0){this.$1.style.cursor='pointer';},$3A:function($p0){if(this.$14){this.$16.src='/_layouts/images/'+'wndmaximize.gif';this.$16.alt=SP.Res.maximize;this.$20.setAttribute('title',SP.Res.maximize);this.$40(this.$12,this.$13);this.$5.style.left=this.$10.toString()+'px';this.$5.style.top=this.$11.toString()+'px';}else{this.$10=this.$5.offsetLeft;this.$11=this.$5.offsetTop;if(this.$3){this.$12=this.$3.offsetWidth;this.$13=this.$3.offsetHeight;}else{this.$12=this.$7.offsetWidth;this.$13=this.$7.offsetHeight;}if(this.$16){this.$16.src='/_layouts/images/'+'wndrestore.gif';this.$16.alt=SP.Res.restore;this.$20.setAttribute('title',SP.Res.restore);}this.$3E();}this.$14=!this.$14;if(this.$14){this.$2E();}else{this.$2D();}this.$2.style.width=this.$5.offsetWidth+'px';this.$2.style.height=this.$5.offsetHeight+'px';this.$2.style.left=SP.UI.UIUtility.calculateOffsetLeft(this.$5)+'px';this.$2.style.top=SP.UI.UIUtility.calculateOffsetTop(this.$5)+'px';if(this.$20){window.top.setTimeout(Function.createDelegate(this,this.$3B),0);}},$3B:function(){ULS_SP();this.$20.focus();},$3C:function($p0){if(this.$3){if(this.$3.contentWindow){this.$3.contentWindow.focus();}}},$3E:function(){ULS_SP();var $0=SP.UI.Dialog.$47(this.$5.ownerDocument);var $1=SP.UI.Dialog.$41($0)-2;var $2=SP.UI.Dialog.$42($0)-2;if($1>10*2){$1=$1-10*2;}$2=$2-this.$1.offsetHeight;if($2>10*2){$2=$2-10*2;}this.$5.style.left=''+10+'px';this.$5.style.top=''+10+'px';this.$40($1,$2);},$3F:function(){ULS_SP();if(this.$14){this.$3E();}},$40:function($p0,$p1){if($p0<=0||$p1<=0){return;}var $0=$p1+this.$1.offsetHeight;this.$6.style.width=$p0+'px';this.$6.style.height=$0+'px';this.$5.style.width=($p0+2)+'px';this.$5.style.height=($0+2)+'px';if(this.$3){this.$3.style.width=$p0.toString()+'px';this.$3.style.height=$p1.toString()+'px';}else{this.$7.style.width=$p0.toString()+'px';this.$7.style.height=$p1.toString()+'px';}this.$0.style.width=(this.$1.offsetWidth-64)+'px';},$49:function($p0){for(var $0=0;$0<$p0.length;$0++){var $1=$p0[$0];var $2=$1.getAttribute('target');var $3=$1.getAttribute('onclick');var $4=$1.getAttribute('rel');var $5=$1.getAttribute('href');var $6='';if($5){var $7=$5.toString();var $8=$7.indexOf('?');if($8!==-1){var $9=$7.substr($8+1);var $A=$9.match(new RegExp('DialogLink=[^&]*'));if($A&&$A.length>0){var $B=$A[0];var $C=$B.split('=');if($C.length>1){$6=$C[1];}}}}if((!$2||$2.toString()===''||$2.toString()==='_self')&&!$3){if(((!$4||$4.toString()==='sp_DialogLinkExternal')&&($6===''||$6==='External'))&&(!$2||$2.toString()==='')){if($5&&$5.toString().indexOf('javascript:')===-1){$1.setAttribute('target','_blank');}}else if(($4&&$4.toString()==='sp_DialogLinkInternal')||$6==='Internal'){if($5){var $D=$5.toString();if($D.indexOf('javascript:')===-1){$D=SP.UI.Dialog.$48($D);$1.setAttribute('href',$D);}}}else if((($4&&$4.toString()==='sp_DialogLinkNavigate')||$6==='Navigate')&&(!$2||$2.toString()==='')){if($5&&$5.toString().indexOf('javascript:')===-1){Sys.UI.DomEvent.addHandler($1,'click',Function.createDelegate(this,function($p1_0){
SP.Utilities.HttpUtility.navigateTo($p1_0.target.getAttribute('href').toString());$p1_0.preventDefault();$p1_0.stopPropagation();}));}}}}},$4A:function($p0){if(this.$0&&this.$3){var $0=null;try{if(this.$3.contentWindow){$0=this.$3.contentWindow.document;}else if(this.$3.contentDocument){$0=this.$3.contentDocument;}}catch($1){}if($0){this.$4=$0;var $2=SP.Res.defaultDialogTitle;try{$2=$0.title;}catch($6){}if(SP.ScriptUtility.isNullOrEmptyString(this.$28)){SP.UI.UIUtility.setInnerText(this.$0,$2);this.$0.title=$2;}var $3=this.$3.contentWindow;var $4=new SP.UI._DialogHostedWindow(this,$3);$4.$2();var $5=this.$4.getElementsByTagName('a');this.$49($5);}else{SP.UI.UIUtility.setInnerText(this.$0,SP.Res.defaultDialogTitle);this.$0.title=SP.Res.defaultDialogTitle;}}},$4B:function(){ULS_SP();if(this.$4){try{this.$26=this.$4C(this.$4.body);}catch($0){this.$26=null;}}else{this.$26=null;}},$4C:function($p0){if($p0.nodeType===1){var $0=$p0.childNodes;for(var $1=$0.length-1;$1>=0;$1--){var $2=$0[$1];if($2.tagName==='SCRIPT'){continue;}if(($2.nodeType===1)&&($2.style.display==='none')){continue;}var $3=this.$4C($2);if($3){return $3;}}if(this.$4D($p0)){return $p0;}else{return null;}}else{return null;}},$4D:function($p0){if($p0.tagName==='A'||$p0.tagName==='INPUT'||$p0.tagName==='AREA'||$p0.tagName==='BUTTON'||$p0.tagName==='SELECT'||$p0.tagName==='TEXTAREA'){if($p0.tabIndex===-1){return false;}if($p0.disabled||(($p0.getAttribute('disabled'))==='true')){return false;}if($p0.tagName==='INPUT'){var $0=$p0;if($0.type==='hidden'||$0.style.display==='none'){return false;}}return true;}return false;},$4E:function(){ULS_SP();var $0=this.$60('div');this.$5=$0;$0.className='ms-dlgContent';$0.setAttribute('role','dialog');$0.setAttribute('aria-labelledby','dialogTitleSpan');$0.setAttribute('tabindex','-1');if(this.get_$58()){$0.style.zIndex=this.get_$58();}if(this.get_$61()){window.top.document.body.appendChild($0);}else{document.body.appendChild($0);}var $1=this.$60('div');this.$6=$1;$1.className='ms-dlgBorder';$0.appendChild($1);this.$23=this.$60('input');this.$23.type='text';this.$23.className='ms-hidden';$1.appendChild(this.$23);var $2=this.$60('div');$2.className='ms-dlgTitle';Sys.UI.DomEvent.addHandler($2,'mousedown',Function.createDelegate(this,this.$38));Sys.UI.DomEvent.addHandler($2,'mouseup',Function.createDelegate(this,this.$39));$1.appendChild($2);var $3=this.$60('span');if(SP.ScriptUtility.isNullOrEmptyString(this.$28)){if(this.$9){SP.UI.UIUtility.setInnerText($3,SP.Res.dialogLoading);$3.title=SP.Res.dialogLoading;}else{SP.UI.UIUtility.setInnerText($3,SP.Res.defaultDialogTitle);$3.title=SP.Res.defaultDialogTitle;}}else{SP.UI.UIUtility.setInnerText($3,this.$28);$3.title=this.$28;}$3.className='ms-dlgTitleText';$3.id='dialogTitleSpan';this.$0=$3;this.$1=$2;$2.appendChild($3);$3=this.$60('span');$3.className='ms-dlgTitleBtns';if(this.get_allowMaximize()){this.$20=this.$60('a');this.$20.id='DlgResize'+SP.Guid.newGuid().toString();this.$20.className='ms-dlgCloseBtn';this.$20.setAttribute('title',SP.Res.maximize);SP.UI.Dialog.$4F(this.$20);this.$16=this.$60('img');this.$16.setAttribute('src','/_layouts/images/'+'wndmaximize.gif');this.$16.setAttribute('alt',SP.Res.maximize);this.$20.appendChild(this.$16);this.$22=Function.createDelegate(this,this.$3A);Sys.UI.DomEvent.addHandler(this.$1,'dblclick',this.$22);Sys.UI.DomEvent.addHandler(this.$20,'click',Function.createDelegate(this,this.$3A));Sys.UI.DomEvent.addHandler(this.$20,'mouseover',Function.createDelegate(this,this.$33));Sys.UI.DomEvent.addHandler(this.$20,'mouseout',Function.createDelegate(this,this.$34));Sys.UI.DomEvent.addHandler(this.$20,'mousedown',Function.createDelegate(this,this.$37));Sys.UI.DomEvent.addHandler(this.$20,'mouseup',Function.createDelegate(this,this.$37));$3.appendChild(this.$20);}if(this.get_showClose()){this.$1F=this.$60('a');this.$1F.id='DlgClose'+SP.Guid.newGuid().toString();this.$1F.className='ms-dlgCloseBtn';this.$1F.setAttribute('title',SP.Res.close);SP.UI.Dialog.$4F(this.$1F);this.$17=this.$60('img');this.$17.setAttribute('src','/_layouts/images/'+'wndclose.gif');this.$17.setAttribute('alt',SP.Res.close);this.$1F.appendChild(this.$17);Sys.UI.DomEvent.addHandler(this.$1F,'click',Function.createDelegate(this,this.$2F));Sys.UI.DomEvent.addHandler(this.$1F,'mouseover',Function.createDelegate(this,this.$35));Sys.UI.DomEvent.addHandler(this.$1F,'mouseout',Function.createDelegate(this,this.$36));Sys.UI.DomEvent.addHandler(this.$1F,'mousedown',Function.createDelegate(this,this.$37));Sys.UI.DomEvent.addHandler(this.$1F,'mouseup',Function.createDelegate(this,this.$37));$3.appendChild(this.$1F);}if(this.get_allowMaximize()){this.$25=this.$20;}else{this.$25=this.$1F;}$2.appendChild($3);if(this.$9){var $4=this.$9;$4=SP.UI.Dialog.$48($4);var $5=this.$60('div');this.$7=$5;$5.className='ms-dlgFrameContainer';$1.appendChild($5);var $6=this.$60('iframe');this.$3=$6;this.$3.id='DlgFrame'+SP.Guid.newGuid().toString();$6.className='ms-dlgFrame';$6.setAttribute('src',$4);$6.setAttribute('frameBorder','0');$5.appendChild($6);}else{var $7=this.$60('div');this.$7=$7;$7.className='ms-dlgFrameContainer';$1.appendChild($7);var $8=this.$27.getElementsByTagName('a');this.$49($8);$7.appendChild(this.$27);}this.$24=this.$60('input');this.$24.type='text';this.$24.className='ms-hidden';$1.appendChild(this.$24);Sys.UI.DomEvent.addHandler(this.$23,'focus',Function.createDelegate(this,this.$32));Sys.UI.DomEvent.addHandler(this.$24,'focus',Function.createDelegate(this,this.$31));this.$2=this.$60('iframe');this.$2.style.border='none';this.$2.style.position='absolute';this.$2.setAttribute('frameBorder','0');if(this.get_$61()){window.top.document.body.insertBefore(this.$2,this.$5);}else{document.body.insertBefore(this.$2,this.$5);}Sys.UI.DomEvent.addHandler(this.$5,'click',Function.createDelegate(this,this.$3C));Sys.UI.DomEvent.addHandler(this.$5,'keydown',Function.createDelegate(this,this.$30));if(this.$3){Sys.UI.DomEvent.addHandler(this.$3,'load',Function.createDelegate(this,this.$4A));}this.$50();},$50:function(){ULS_SP();if(this.$3){this.$3.cancelPopUp = Function.createDelegate(this,this.$51);this.$3.commitPopup = Function.createDelegate(this,this.$52);this.$3.commitPopupAndRedirect = Function.createDelegate(this,this.$53);this.$3.overrideDialogResult = Function.createDelegate(this,this.$55);this.$3.navigateParent = Function.createDelegate(null,SP.Utilities.HttpUtility.navigateTo);this.$3.commonModalDialogClose = Function.createDelegate(this,this.$54);this.$3.dialogArgs = this.get_args();}},$51:function(){ULS_SP();this.close(0);},$52:function($p0){this.set_returnValue($p0);this.close(1);},$53:function($p0){this.set_returnValue($p0);this.close(0);STSNavigate($p0);},$54:function($p0,$p1){this.set_returnValue($p1);this.close($p0);},$55:function($p0){this.$F=$p0;},$56:function($p0,$p1){if(this.get_$58()>0){this.$5C((this.get_$58()-1));}this.$5.style.display='block';if(this.$3){this.$3.style.width=this.$C.toString()+'px';this.$3.style.height=this.$D.toString()+'px';var $2=this.$3.offsetWidth;var $3=this.$3.offsetHeight+this.$1.offsetHeight;this.$6.style.width=$2+'px';this.$6.style.height=$3+'px';this.$5.style.width=($2+2)+'px';this.$5.style.height=($3+2)+'px';this.$13=this.$3.offsetHeight;this.$12=this.$3.offsetWidth;}else{var $4=0;if(SP.ScriptUtility.isNullOrUndefined(this.$C)){$4=this.$7.offsetWidth;}else{this.$7.style.width=this.$C.toString()+'px';$4=this.$C;}this.$6.style.width=$4+'px';this.$5.style.width=($4+2)+'px';var $5=0;if(SP.ScriptUtility.isNullOrUndefined(this.$D)){$5=this.$1.offsetHeight+this.$7.offsetHeight;}else{this.$7.style.height=this.$D.toString()+'px';$5=this.$D+this.$1.offsetHeight;}this.$6.style.height=$5+'px';this.$5.style.height=($5+2)+'px';this.$13=this.$7.offsetHeight;this.$12=this.$7.offsetWidth;}var $0,$1;if(!SP.ScriptUtility.isNullOrUndefined($p0)){$0=$p0;}else if(this.get_$61()){$0=(SP.UI.Dialog.$41(window.top)-this.$5.offsetWidth)/2+SP.UI.Dialog.$45(window.top);if($0<SP.UI.Dialog.$45(window.top)){$0=SP.UI.Dialog.$45(window.top);}}else{$0=(SP.UI.Dialog.$43(this.$5.ownerDocument)-this.$5.offsetWidth)/2;if($0<0){$0=0;}}if(!SP.ScriptUtility.isNullOrUndefined($p1)){$1=$p1;}else if(this.get_$61()){$1=(SP.UI.Dialog.$42(window.top)-this.$5.offsetHeight)/2+SP.UI.Dialog.$46(window.top);if($1<SP.UI.Dialog.$46(window.top)){$1=SP.UI.Dialog.$46(window.top);}}else{$1=(SP.UI.Dialog.$44(this.$5.ownerDocument)-this.$5.offsetHeight)/2;if($1<0){$1=0;}}this.$5.style.left=$0+'px';this.$5.style.top=$1+'px';this.$10=$0;this.$11=$1;this.$2.style.width=this.$5.offsetWidth+'px';this.$2.style.height=this.$5.offsetHeight+'px';this.$2.style.left=$0+'px';this.$2.style.top=$1+'px';this.$2.style.zIndex=(this.$5.style.zIndex-1);this.$0.style.width=(this.$1.offsetWidth-64)+'px';},close:function(dialogResult){ULS_SP();if(this.$21){return;}if(this.$1E){this.$1E.dispose();this.$1E=null;}if(this.$5){this.$5.style.display='none';Sys.UI.DomEvent.clearHandlers(this.$5);}if(this.$22){Sys.UI.DomEvent.removeHandler(this.$1,'dblclick',this.$22);this.$22=null;}this.$0=null;this.$1=null;if(this.$3){Sys.UI.DomEvent.clearHandlers(this.$3);this.$3.setAttribute('src','/_layouts/blank.htm');this.$3=null;}this.$4=null;if(this.$1F){Sys.UI.DomEvent.clearHandlers(this.$1F);this.$1F=null;}if(this.$23){Sys.UI.DomEvent.clearHandlers(this.$23);this.$23=null;}if(this.$24){Sys.UI.DomEvent.clearHandlers(this.$24);this.$24=null;}this.$26=null;this.$25=null;if(this.$20){Sys.UI.DomEvent.clearHandlers(this.$20);this.$20=null;}if(this.get_$58()>0){this.$5F();}if(this.$F===-1){this.$E=dialogResult;}else{this.$E=this.$F;}if(this.$8){window.top.setTimeout(Function.createDelegate(this,this.$59),0);}if(this.$5){SP.UI.UIUtility.removeNode(this.$5);this.$5=null;}if(this.$2){SP.UI.UIUtility.removeNode(this.$2);this.$2=null;}this.$21=true;},get_closed:function(){ULS_SP();return this.$21;},get_frameElement:function(){ULS_SP();return this.$3;},$57:0,get_$58:function(){ULS_SP();return this.$57;},set_$58:function($p0){this.$57=$p0;return $p0;},$59:function(){ULS_SP();if(this.$8){this.$8(this.$E,this.get_returnValue());this.$8=null;}},$5B:0,$5C:function($p0){var $0=SP.UI.Dialog.get_$5A();if(!$0){$0=window.top.document.createElement('div');$0.className='ms-dlgOverlay';window.top.document.body.appendChild($0);SP.UI.Dialog.set_$5A($0);Sys.UI.DomEvent.addHandler(window.top,'resize',Function.createDelegate(null,SP.UI.Dialog.$5D));}this.$5B=$0.style.zIndex;$0.style.display='block';$0.style.zIndex=$p0;$0.style.width=SP.UI.Dialog.$43(window.top.document)+'px';$0.style.height=SP.UI.Dialog.$44(window.top.document)+'px';},$5F:function(){ULS_SP();var $0=SP.UI.Dialog.get_$5A();if($0){if(SP.ScriptUtility.isNullOrUndefined(this.$5B)||this.$5B<=0){$0.style.display='none';}$0.style.zIndex=this.$5B;}},$60:function($p0){if(this.get_$61()){return window.top.document.createElement($p0);}else{return document.createElement($p0);}},get_$61:function(){ULS_SP();if(!(this.get_$58()>0)){throw Error.notImplemented(SP.Res.modelessDialogsNotImplemented);}return this.get_$58()>0;},get_$62:function(){ULS_SP();return this.$5;}}
SP.UI._DialogHostedWindow=function(dlg,wnd){ULS_SP();this.$0=dlg;this.$1=wnd;}
SP.UI._DialogHostedWindow.prototype={$0:null,$1:null,$2:function(){ULS_SP();try{this.$1.document.body.tabIndex=-1;}catch($0){}},dispose:function(){ULS_SP();}}
SP.UI.ModalDialog=function(options){ULS_SP();SP.UI.ModalDialog.initializeBase(this,[options]);}
SP.UI.ModalDialog.get_$65=function(){ULS_SP();var $0=0;var $1=window.top.g_ModalDialogCount;if(!SP.ScriptUtility.isNullOrUndefined($1)){$0=$1;}return $0;}
SP.UI.ModalDialog.set_$65=function($p0){window.top.g_ModalDialogCount = $p0;return $p0;}
SP.UI.ModalDialog.get_childDialog=function(){ULS_SP();var $0=window.top.g_childDialog;if(SP.ScriptUtility.isNullOrUndefined($0)){return null;}return $0;}
SP.UI.ModalDialog.$66=function($p0){window.top.g_childDialog = $p0;}
SP.UI.ModalDialog.showModalDialog=function(options){ULS_SP();var $0=new SP.UI.ModalDialog(options);$0.initialize();return $0;}
SP.UI.ModalDialog.showWaitScreenWithNoClose=function(title,message,height,width){ULS_SP();return SP.UI.ModalDialog.$67(title,message,false,null,height,width);}
SP.UI.ModalDialog.showWaitScreen=function(title,message,callbackFunc){ULS_SP();return SP.UI.ModalDialog.showWaitScreenSize(title,message,callbackFunc,550,550);}
SP.UI.ModalDialog.showWaitScreenSize=function(title,message,callbackFunc,height,width){ULS_SP();return SP.UI.ModalDialog.$67(title,message,true,callbackFunc,height,width);}
SP.UI.ModalDialog.$67=function($p0,$p1,$p2,$p3,$p4,$p5){var $0=window.top.document.createElement('INPUT');var $1=window.top.document.createElement('TABLE');var $2=window.top.document.createElement('TBODY');var $5=window.top.document.createElement('TR');var $6=window.top.document.createElement('TD');if($p2){$6.rowSpan=2;}var $7=window.top.document.createElement('IMG');$7.src='/_layouts/images/gears_an.gif';$6.appendChild($7);$5.appendChild($6);var $8=window.top.document.createElement('TD');$8.style.textAlign='center';$8.style.fontSize='8pt';$8.style.padding='4px';$8.style.width='100%';$8.innerHTML=$p1;$5.appendChild($8);$2.appendChild($5);if($p2){var $9=window.top.document.createElement('TR');var $A=window.top.document.createElement('TD');$A.style.textAlign='right';$0.type='Button';$0.value=SP.Res.createWaitScreenCancel;$A.appendChild($0);$9.appendChild($A);$2.appendChild($9);}$1.appendChild($2);var $3=SP.UI.$create_DialogOptions();$3.html=$1;$3.width=$p5;$3.height=$p4;$3.showClose=$p2;$3.title=$p0;$3.dialogReturnValueCallback=$p3;var $4=SP.UI.ModalDialog.showModalDialog($3);Sys.UI.DomEvent.addHandler($0,'click',Function.createDelegate($4,$4.$2F));return $4;}
SP.UI.ModalDialog.prototype={$63:false,$64:null,initialize:function(){ULS_SP();SP.UI.ModalDialog.set_$65(SP.UI.ModalDialog.get_$65()+1)-1;this.set_$58((SP.UI.ModalDialog.get_$65()*5+1500));SP.UI.ModalDialog.callBaseMethod(this, 'initialize');this.$64=SP.UI.ModalDialog.get_childDialog();SP.UI.ModalDialog.$66(this);},close:function(dialogResult){ULS_SP();if(this.$63){return;}this.$63=true;SP.UI.ModalDialog.set_$65(SP.UI.ModalDialog.get_$65()-1)+1;SP.UI.ModalDialog.$66(this.$64);this.$64=null;SP.UI.ModalDialog.callBaseMethod(this, 'close',[dialogResult]);},get_$68:function(){ULS_SP();return this.$64;}}
Type.registerNamespace('SP.Application.UI');SP.Application.UI.DragBehavior=function(elem,dragHandle){ULS_SP();SP.Application.UI.DragBehavior.initializeBase(this,[elem]);this.$2_0=new SP.Application.UI.MouseTrackerBehavior(dragHandle);this.$2_1=[];this.$2_2=null;}
SP.Application.UI.DragBehavior.prototype={$2_0:null,$2_1:null,$2_2:null,addExtraDragElement:function(extraDragElement){ULS_SP();this.$2_1[this.$2_1.length]=extraDragElement;},createIframeCoverElement:function(iframeToCover){ULS_SP();if(Sys.Browser.agent===Sys.Browser.Firefox||Sys.Browser.agent===Sys.Browser.Safari){if(!iframeToCover){return;}this.$2_2=document.createElement('div');this.$2_2.style.position='absolute';this.$2_2.style.cursor='move';this.$2_2.style.zIndex=(iframeToCover.style.zIndex+1);this.$2_2.style.width=iframeToCover.offsetWidth+'px';this.$2_2.style.height=iframeToCover.offsetHeight+'px';this.$2_2.style.top=iframeToCover.offsetTop+'px';this.$2_2.style.left=iframeToCover.offsetLeft+'px';}},initialize:function(){ULS_SP();SP.Application.UI.DragBehavior.callBaseMethod(this, 'initialize');this.$2_0.initialize();this.$2_0.add_beginDrag(Function.createDelegate(this,this.$2_5));this.$2_0.add_dragging(Function.createDelegate(this,this.$2_6));this.$2_0.add_stopDrag(Function.createDelegate(this,this.$2_7));},$2_3:0,$2_4:0,$2_5:function($p0,$p1){var $0=$p1.get_mousePosition().x;var $1=$p1.get_mousePosition().y;var $2=this.get_element().offsetLeft;var $3=this.get_element().offsetTop;this.$2_3=$0-$2;this.$2_4=$1-$3;if(this.$2_2){this.get_element().appendChild(this.$2_2);}},$2_6:function($p0,$p1){this.get_element().style.left=($p1.get_mousePosition().x-this.$2_3)+'px';this.get_element().style.top=($p1.get_mousePosition().y-this.$2_4)+'px';for(var $0=0;$0<this.$2_1.length;$0++){var $1=this.$2_1[$0];$1.style.left=($p1.get_mousePosition().x-this.$2_3)+'px';$1.style.top=($p1.get_mousePosition().y-this.$2_4)+'px';}},$2_7:function($p0,$p1){if(this.$2_2){this.get_element().removeChild(this.$2_2);}},dispose:function(){ULS_SP();try{if(this.$2_0){this.$2_0.dispose();}}finally{SP.Application.UI.DragBehavior.callBaseMethod(this, 'dispose');}}}
SP.Application.UI.MouseTrackerEventArgs=function(mousePosition,mousePositionMoved,mousePagePosition,target){ULS_SP();SP.Application.UI.MouseTrackerEventArgs.initializeBase(this);this.$1_3=target;this.$1_0=mousePosition;this.$1_1=mousePositionMoved;this.$1_2=mousePagePosition;}
SP.Application.UI.MouseTrackerEventArgs.prototype={$1_0:null,$1_1:null,$1_2:null,$1_3:null,get_mousePosition:function(){ULS_SP();return this.$1_0;},get_mousePagePosition:function(){ULS_SP();return this.$1_2;},get_target:function(){ULS_SP();return this.$1_3;}}
SP.Application.UI.MouseTrackerBehavior=function(elem){ULS_SP();SP.Application.UI.MouseTrackerBehavior.initializeBase(this,[elem]);this.$2_0=Function.createDelegate(this,this.$2_6);this.$2_1=Function.createDelegate(this,this.$2_8);this.$2_2=Function.createDelegate(this,this.$2_9);}
SP.Application.UI.MouseTrackerBehavior.$2_7=function($p0){if($p0.rawEvent.pageX){return new Sys.UI.Point($p0.rawEvent.pageX,$p0.rawEvent.pageY);}var $0=$p0.clientX+document.body.scrollLeft-document.body.clientLeft;var $1=$p0.clientY+document.body.scrollTop-document.body.clientTop;var $2=document.body.parentNode;if($2&&($2.clientLeft)){$0+=$2.scrollLeft-$2.clientLeft;$1+=$2.scrollTop-$2.clientTop;}return new Sys.UI.Point($0,$1);}
SP.Application.UI.MouseTrackerBehavior.prototype={$2_0:null,$2_1:null,$2_2:null,$2_3:false,initialize:function(){ULS_SP();SP.Application.UI.MouseTrackerBehavior.callBaseMethod(this, 'initialize');this.$2_3=false;Sys.UI.DomEvent.addHandler(this.get_element(),'mousedown',this.$2_0);},$2_4:0,$2_5:0,add_beginDrag:function(value){ULS_SP();this.get_events().addHandler('begindrag',value);},remove_beginDrag:function(value){ULS_SP();this.get_events().removeHandler('begindrag',value);},add_stopDrag:function(value){ULS_SP();this.get_events().addHandler('stopdrag',value);},remove_stopDrag:function(value){ULS_SP();this.get_events().removeHandler('stopdrag',value);},add_dragging:function(value){ULS_SP();this.get_events().addHandler('dragging',value);},remove_dragging:function(value){ULS_SP();this.get_events().removeHandler('dragging',value);},$2_6:function($p0){if(this.$2_3||$p0.button){return;}this.$2_3=true;this.$2_4=$p0.clientX;this.$2_5=$p0.clientY;if(this.get_element().ownerDocument.addEventListener){Sys.UI.DomEvent.addHandler(this.get_element().ownerDocument,'mousemove',this.$2_1);Sys.UI.DomEvent.addHandler(this.get_element().ownerDocument,'mouseup',this.$2_2);}else{this.get_element().setCapture();Sys.UI.DomEvent.addHandler(this.get_element(),'mousemove',this.$2_1);Sys.UI.DomEvent.addHandler(this.get_element(),'mouseup',this.$2_2);Sys.UI.DomEvent.addHandler(this.get_element(),'losecapture',this.$2_2);}$p0.preventDefault();$p0.stopPropagation();var $0=this.get_events().getHandler('begindrag');if($0){var $1=new Sys.UI.Point($p0.clientX,$p0.clientY);var $2=new Sys.UI.Point(0,0);var $3=SP.Application.UI.MouseTrackerBehavior.$2_7($p0);var $4=new SP.Application.UI.MouseTrackerEventArgs($1,$2,$3,$p0.target);$0(this,$4);}},$2_8:function($p0){if(!this.$2_3){return;}$p0.stopPropagation();var $0=this.get_events().getHandler('dragging');if($0){var $1=new Sys.UI.Point($p0.clientX,$p0.clientY);var $2=new Sys.UI.Point($p0.clientX-this.$2_4,$p0.clientY-this.$2_5);var $3=SP.Application.UI.MouseTrackerBehavior.$2_7($p0);var $4=new SP.Application.UI.MouseTrackerEventArgs($1,$2,$3,$p0.target);$0(this,$4);}},$2_9:function($p0){this.$2_3=false;if(this.get_element().ownerDocument.removeEventListener){Sys.UI.DomEvent.removeHandler(this.get_element().ownerDocument,'mouseup',this.$2_2);Sys.UI.DomEvent.removeHandler(this.get_element().ownerDocument,'mousemove',this.$2_1);}else{Sys.UI.DomEvent.removeHandler(this.get_element(),'losecapture',this.$2_2);Sys.UI.DomEvent.removeHandler(this.get_element(),'mouseup',this.$2_2);Sys.UI.DomEvent.removeHandler(this.get_element(),'mousemove',this.$2_1);this.get_element().releaseCapture();}$p0.stopPropagation();var $0=this.get_events().getHandler('stopdrag');if($0){var $1=new Sys.UI.Point($p0.clientX,$p0.clientY);var $2=new Sys.UI.Point($p0.clientX-this.$2_4,$p0.clientY-this.$2_5);var $3=SP.Application.UI.MouseTrackerBehavior.$2_7($p0);var $4=new SP.Application.UI.MouseTrackerEventArgs($1,$2,$3,$p0.target);$0(this,$4);}},dispose:function(){ULS_SP();try{if(this.$2_0){if(this.get_element()){Sys.UI.DomEvent.removeHandler(this.get_element(),'mousedown',this.$2_0);}}}finally{SP.Application.UI.MouseTrackerBehavior.callBaseMethod(this, 'dispose');}}}
SP.UI.Dialog.registerClass('SP.UI.Dialog');SP.UI._DialogHostedWindow.registerClass('SP.UI._DialogHostedWindow',null,Sys.IDisposable);SP.UI.ModalDialog.registerClass('SP.UI.ModalDialog',SP.UI.Dialog);SP.Application.UI.DragBehavior.registerClass('SP.Application.UI.DragBehavior',Sys.UI.Behavior);SP.Application.UI.MouseTrackerEventArgs.registerClass('SP.Application.UI.MouseTrackerEventArgs',Sys.EventArgs);SP.Application.UI.MouseTrackerBehavior.registerClass('SP.Application.UI.MouseTrackerBehavior',Sys.UI.Behavior);SP.UI.ModalDialog.zIndexStep=5;SP.UI.ModalDialog.zIndexStart=1500;
// ---- Do not remove this footer ----
// Generated using Script# v0.5.0.0 (http://projects.nikhilk.net)
// -----------------------------------
if(typeof(Sys)!="undefined"&&Sys&&Sys.Application){Sys.Application.notifyScriptLoaded();}
NotifyScriptLoadedAndExecuteWaitingJobs("sp.ui.dialog.js");
