var gaJsHost=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");document.write(unescape("%3Cscript src='"+gaJsHost+"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));window.addEvent("domready",function(){$try(function(){var A=_gat._getTracker("UA-3193822-6");A._trackPageview()});if(Browser.Plugins.Flash.version>=8){var B=$$("body");B.set("html","");B.grab(new Swiff("swf/photo_app.swf",{id:"photo_app",width:window.getWidth(),height:window.getHeight(),params:{allowScriptAccess:"always",swLiveConnect:"true",quality:"high",align:"TL",showMenu:"false",scaleMode:"noScale",wmode:"transaprent",bgcolor:"#ffffff"},vars:{param_config_path:"ini/config.ini"},callBacks:{onError:function(A){alert(A)},onDo:function(C){if(!$("dialogContainer")){$$("body").grab(new Element("div",{id:"dialogContainer"}))}if(!$("modal")){$$("body").grab(new Element("div",{id:"modal"}))}switch(C){case"loadlayer":var A=new Request({url:arguments[1],method:"get"});A.success=function(I,H){$("modal").setStyle("display","block");$("modal").setStyle("width",window.getWidth());$("modal").setStyle("height",window.getHeight());var G=$("dialogContainer");G.empty();G.set("html",I);G.setStyle("display","block");var F=G.getSize();var E=(window.getWidth()-F.x)/2;var D=(window.getHeight()-F.y)/2;G.setStyle("left",(E>10?E:10));G.setStyle("top",(D>10?D:10))};A.send()}}}}))}});window.addEvent("resize",function(){var B=$("photo_app");if(B){B.width=window.getWidth();B.height=window.getHeight()}});