var css_file="";var sh=0;var cf=0;if(Prototype.Browser.Opera){css_file="opera"}if(Prototype.Browser.Gecko){if(navigator.userAgent.match(/Camino/)||navigator.userAgent.match(/Firefox\/2/)){css_file="firefoxold"}else{if(navigator.userAgent.match(/Firefox\/3.0/)){css_file="firefox"}else{css_file="firefoxnew"}}}if(Prototype.Browser.IE){if(navigator.userAgent.match(/MSIE 8/)){css_file="ie8"}if(navigator.userAgent.match(/MSIE 7/)){css_file="ie7"}else{if(navigator.userAgent.match(/MSIE 6/)){css_file="ie6";document.write('<script type="text/javascript" src="/js/unitpngfix.js"><\/script>');document.write('<script type="text/javascript" src="/js/unitpngfixdiv.js"><\/script>')}}}if(css_file){document.write('<style type="text/css">@import url(/css/'+css_file+".css);</style>")}function showcom(){sh=sh+1;if((sh%2)!=0){$("comments").setStyle({display:"block"})}else{$("comments").setStyle({display:"none"})}}function showcomform(){cf=cf+1;if((cf%2)!=0){$("commform").setStyle({display:"block"})}else{$("commform").setStyle({display:"none"})}}function tabsInit(){menuItems=$("setupmenu").getElementsBySelector("li");menuItems[0].addClassName("current");$("commonset").show();$("chpass").hide();$("isavatar").hide();for(i=0;i<menuItems.length;i++){if(i==0){menuItems[i].onclick=function(){changeTabs(0)}}else{if(i==1){menuItems[i].onclick=function(){changeTabs(1)}}else{if(i==2){menuItems[i].onclick=function(){changeTabs(2)}}}}}}function changeTabs(a){for(i=0;i<menuItems.length;i++){menuItems[i].removeClassName("current")}menuItems[a].addClassName("current");if(a==0){$("commonset").show();$("chpass").hide();$("isavatar").hide()}else{if(a==1){$("commonset").hide();$("chpass").show();$("isavatar").hide()}else{$("commonset").hide();$("chpass").hide();$("isavatar").show();hCarousel=new UI.Carousel("photos-block")}}}function initPlayer(h,c,a){if(a=="nashe"){if(typeof g=="undefined"){var g=new Object()}if(typeof g.util=="undefined"){g.util=new Object()}if(typeof g.SWFObjectUtil=="undefined"){g.SWFObjectUtil=new Object()}g.SWFObject=function(u,k,v,m,r,s,o,n,l,t){if(!document.getElementById){return}this.DETECT_KEY=t?t:"detectflash";this.skipDetect=g.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(u){this.setAttribute("swf",u)}if(k){this.setAttribute("id",k)}if(v){this.setAttribute("width",v)}if(m){this.setAttribute("height",m)}if(r){this.setAttribute("version",new g.PlayerVersion(r.toString().split(".")))}this.installedVer=g.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){g.SWFObject.doPrepUnload=true}if(s){this.addParam("bgcolor",s)}var j=o?o:"high";this.addParam("quality",j);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var p=(n)?n:window.location;this.setAttribute("xiRedirectUrl",p);this.setAttribute("redirectUrl","");if(l){this.setAttribute("redirectUrl",l)}};g.SWFObject.prototype={useExpressInstall:function(j){this.xiSWFPath=!j?"expressinstall.swf":j;this.setAttribute("useExpressInstall",true)},setAttribute:function(j,k){this.attributes[j]=k},getAttribute:function(j){return this.attributes[j]},addParam:function(k,j){this.params[k]=j},getParams:function(){return this.params},addVariable:function(k,j){this.variables[k]=j},getVariable:function(j){return this.variables[j]},getVariables:function(){return this.variables},getVariablePairs:function(){var l=new Array();var k;var j=this.getVariables();for(k in j){l[l.length]=k+"="+j[k]}return l},getSWFHTML:function(){var k="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}k='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';k+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var o=this.getParams();for(var n in o){k+=[n]+'="'+o[n]+'" '}var m=this.getVariablePairs().join("&");if(m.length>0){k+='flashvars="'+m+'"'}k+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}k='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';k+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var l=this.getParams();for(var n in l){k+='<param name="'+n+'" value="'+l[n]+'" />'}var j=this.getVariablePairs().join("&");if(j.length>0){k+='<param name="flashvars" value="'+j+'" />'}k+="</object>"}return k},write:function(k){if(this.getAttribute("useExpressInstall")){var j=new g.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(j)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var l=(typeof k=="string")?document.getElementById(k):k;l.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};g.SWFObjectUtil.getPlayerVersion=function(){var n=new g.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var j=navigator.plugins["Shockwave Flash"];if(j&&j.description){n=new g.PlayerVersion(j.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var k=1;var l=3;while(k){try{l++;k=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+l);n=new g.PlayerVersion([l,0,0])}catch(m){k=null}}}else{try{var k=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(m){try{var k=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");n=new g.PlayerVersion([6,0,21]);k.AllowScriptAccess="always"}catch(m){if(n.major==6){return n}}try{k=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(m){}}if(k!=null){n=new g.PlayerVersion(k.GetVariable("$version").split(" ")[1].split(","))}}}return n};g.PlayerVersion=function(j){this.major=j[0]!=null?parseInt(j[0]):0;this.minor=j[1]!=null?parseInt(j[1]):0;this.rev=j[2]!=null?parseInt(j[2]):0};g.PlayerVersion.prototype.versionIsValid=function(j){if(this.major<j.major){return false}if(this.major>j.major){return true}if(this.minor<j.minor){return false}if(this.minor>j.minor){return true}if(this.rev<j.rev){return false}return true};g.util={getRequestParameter:function(l){var m=document.location.search||document.location.hash;if(l==null){return m}if(m){var k=m.substring(1).split("&");for(var j=0;j<k.length;j++){if(k[j].substring(0,k[j].indexOf("="))==l){return k[j].substring((k[j].indexOf("=")+1))}}}return""}};g.SWFObjectUtil.cleanupSWFs=function(){var k=document.getElementsByTagName("OBJECT");for(var l=k.length-1;l>=0;l--){k[l].style.display="none";for(var j in k[l]){if(typeof k[l][j]=="function"){k[l][j]=function(){}}}}};if(g.SWFObject.doPrepUnload){if(!g.unloadSet){g.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",g.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",g.SWFObjectUtil.prepUnload);g.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(j){return document.all[j]}}var d=g.util.getRequestParameter;var b=g.SWFObject;var f=g.SWFObject;var e=new f("/js/player.swf","mpl","470","353","9");e.addParam("allowscriptaccess","always");e.addParam("allowfullscreen","true");e.addParam("flashvars","&skin=/js/modieus.swf&file="+h+"&image="+c+"&controlbar=over&controlbar=over");e.write("player")}else{}}function initPhoto(c){var a=$("photos").getElementsBySelector("li");if($("ajax-preloader")){$("ajax-preloader").hide()}if(a.length>6){hCarousel=new UI.Carousel("photos-block");hCarousel.scrollTo(c)}else{var b=$("photos");$("photos-block").remove();$("imgcont").insert({top:b});$("photos").setStyle({margin:"30px 0px 0px 0px"});$("photos").getElementsBySelector("li").each(function(d){d.setStyle({padding:"0px 6px 0px 6px"})})}}document.observe("dom:loaded",function(){b();a();c();window.setTimeout(function(){$$("div.glass").each(function(d){d.setStyle({display:"block"})})},1500);Event.observe(document.onresize?document:window,"resize",function(){b();c()});function c(){var d=0;var e=0;$$("div.content").each(function(f){d=d+f.getHeight()});$$("div.sideblock").each(function(f){e=e+f.getHeight()});if(e>d){$$("div.content").each(function(f){f.setStyle({height:e+"px"})})}else{$$("div.sideblock").each(function(f){f.setStyle({height:d+"px"})})}}function b(){if(document.viewport.getWidth()<1025){$("shadow-left").setStyle({display:"none"});$("shadow-right").setStyle({display:"none"})}else{$("shadow-left").setStyle({display:"block"});$("shadow-right").setStyle({display:"block"})}}function a(){if($("ff2bug")){$("ff2bug").setStyle({display:"none"})}}});