var flashApi=(function(c){var a={};var b;var d;var e=function(){if(!d&&b){d=c(b).get(0)}return d};a.echo=function(f){alert(f)};a.connect=function(f){b=f};a.getFlash=function(){e()};a.call=function(g,f){e().flashApi(g,f)};a.confirmExit=function(f){flashApi.confirmText=f;return f};a.confirmExit=function(f){confirmText=f;return f};a.getDealer=function(f){};a.getInnerWidth=function(){if(document.body.clientWidth!=undefined){return document.body.clientWidth}else{return window.innerWidth}};a.getInnerHeight=function(){if(document.body.clientHeight!=undefined){return document.body.clientHeight}else{return window.innerHeight}};a.getPageXOffset=function(){if(document.body.scrollLeft!=undefined){return document.body.scrollTop}else{return window.pageXOffset}};a.getPageYOffset=function(){var f=0;if(typeof(window.pageYOffset)=="number"){f=window.pageYOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){f=document.body.scrollTop}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){f=document.documentElement.scrollTop}}}return f};a.scrollYTo=function(f){window.scrollTo(0,f);if(document.body.scrollTop!=undefined){document.body.scrollTop=f}else{window.pageYOffset=f}};a.popup=function(g,i,f,h,j){h=h||"forms";switch(h){case"forms":c("div#dialog").formOverlay(g,i,f);break}};return a})(jQuery);window.onbeforeunload=function(){if(flashApi.confirmText&&flashApi.confirmText!=""){var a=flashApi.confirmText;flashApi.confirmText=null;return a}};
