var timerId=null;Ext.Loader.setConfig({enabled:true,disableCaching:false,preserveScripts:false,garbageCollect:true,paths:{"Ext.ux":"/final/scripts/ux","utilities":"/final/scripts/utilities","widgets":"/final/scripts/widgets",}});Ext.application({name:"microsoftDashboard",controllers:["Main"],requires:["microsoftDashboard.view.Main"],autoCreateViewport:true,appFolder:"../monitor/eg_scripts/microsoftDashboard",launch:function(){microsoftDashboard.app=this;
}});Highcharts.setOptions({global:{useUTC:true,timezoneOffset:timeZoneOffsetVal}});var wName="";var dd="";function execute(){microsoftDashboard.app.getController("Main").updatePage();}function scrollAnimation(d){if(typeof d=="object"){if(!Ext.isEmpty(d)){for(var b=0;b<d.length;b++){var c=d[b];Ext.fly(c).scrollIntoView(Ext.get("microsoft_ground"),false,true);
document.getElementById(c).style.border="3px solid #3A5D9D";}setTimeout(function(){for(var e=0;e<d.length;e++){var f=d[e];document.getElementById(f).style.border="";}},2000);}}else{if(!Ext.isEmpty(d)){Ext.fly(d).scrollIntoView(Ext.get("microsoft_ground"),false,true);document.getElementById(d).style.border="3px solid #3A5D9D";
setTimeout(function(){document.getElementById(d).style.border="";},1500);}}}function specificScrollAnimation(c,b){if(!Ext.isEmpty(c)&&c!=undefined&&c!="undefined"&&!Ext.isEmpty(b)&&b!=undefined&&b!="undefined"){Ext.fly(c+"0").scrollIntoView(Ext.get("microsoft_ground"),false,true);for(var a=0;a<b;a++){document.getElementById(c+a).style.border="3px solid #3A5D9D";
}setTimeout(function(){for(var d=0;d<b;d++){document.getElementById(c+d).style.border="";}},1500);}}function gotoLayerModelLinksPage(a){if(!Ext.isEmpty(a)&&a!=undefined&&a!="undefined"){window.location.href=a;}}function layerModelLinks(a){if(!Ext.isEmpty(a)&&a!=undefined&&a!="undefined"){if(dd==null){try{dd=window.parent.openWindow((a+"&newWindow=true"),wName,"toolbar=no,menubar=no,location=no,status=no,width=1012,height=603,left=0,top=105,screenx=0,screeny=0,scrollbars=yes,resizable=no");
}catch(b){dd=window.parent.window.parent.openWindow((a+"&newWindow=true"),wName,"toolbar=no,menubar=no,location=no,status=no,width=1012,height=603,left=0,top=105,screenx=0,screeny=0,scrollbars=yes,resizable=no");}if(dd!=null&&dd!=""&&dd!="undefined"){dd.focus();}}else{if(dd!=null&&dd!=""&&dd!="undefined"){dd.close();
}dd=null;try{dd=window.parent.openWindow((a+"&newWindow=true"),wName,"toolbar=no,menubar=no,location=no,status=no,width=1012,height=603,left=0,top=105,screenx=0,screeny=0,scrollbars=yes,resizable=no");}catch(b){dd=window.parent.window.parent.openWindow((a+"&newWindow=true"),wName,"toolbar=no,menubar=no,location=no,status=no,width=1012,height=603,left=0,top=105,screenx=0,screeny=0,scrollbars=yes,resizable=no");
}if(dd!=null&&dd!=""&&dd!="undefined"){dd.focus();}}}}function gotoSpecPage(p,m){if(!Ext.isEmpty(p)&&p!=undefined&&p!="undefined"&&!Ext.isEmpty(m)&&m!=undefined&&m!="undefined"){var f=Ext.getCmp("dashmenu_model_id");var g=f.getStore();var h=0;var q;var j;var s;for(var a=0;a<g.getCount();a++){for(var l=0;
l<g.data.items.length;l++){if(g.data.items[l].data.type==m){var d=g.data.items[l].data.children;if(!Ext.isEmpty(d)){s=g.data.items[l].data.children;q=m;}else{var o=g.data.items[l].data.id;var r=[];r.push({"id":o,"caption":o});s=r;q=m;}}}}for(var n=0;n<s.length;n++){if(s[n].caption==p){h=n;j=s[n].id;break;
}}try{requestParams.selectedTab=j;requestParams.dashboard=q;microsoftDashboard.app.getController("Main").menuOnLoad();}catch(i){}}}function noDataComputefunction(e){var d=false;var c=false;try{if(e.data==undefined||e.data==null||e.data.length==0){d=true;c=true;}else{d=false;if(e.data.length==0){d=true;
}else{if(e.data.length>0&&e.data[0].hasOwnProperty("Error")){d=true;}else{if(e.data.length>0){for(var b=0;b<e.data.length;b++){if(e.data[b].value=="-"||e.data[b].value=="0"){d=true;}else{d=false;break;}}}}}}}catch(f){}try{if(c){if(e.DataSet==undefined||e.DataSet==null||e.DataSet.length==0){d=true;}else{d=false;
for(var b=0;b<e.DataSet.length;b++){if(e.DataSet[b].data.length==0){d=true;}else{if(e.DataSet[b].data.length>0&&e.DataSet[b].data[0].hasOwnProperty("Error")){d=true;}else{if(e.DataSet[b].data.length>0){for(var a=0;a<e.DataSet[b].data.length;a++){if(e.DataSet[b].data[a].value=="-"||e.DataSet[b].data[a].value=="0"){d=true;
}else{d=false;break;}}}}}}}}}catch(f){}return d;}function loadPopup(a){try{parent.openWindow(encodeURI(a),"GRAPHS","toolbar=no,menubar=no,location=no,status=no,width=1014,height=603,left=0,top=80,screenx=0,screeny=0,resizable=yes,scrollbars=yes");}catch(b){}}function DashboardToLayers(a){if(!Ext.isEmpty(a)){window.location.href=a;
}}