if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(f,d,n,g,j,m,o,i,a,e){if(!document.getElementById){return}this.DETECT_KEY=e?e:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(f){this.setAttribute("swf",f)}if(d){this.setAttribute("id",d)}if(n){this.setAttribute("width",n)}if(g){this.setAttribute("height",g)}if(j){this.setAttribute("version",new deconcept.PlayerVersion(j.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(m){this.addParam("bgcolor",m)}var b=o?o:"high";this.addParam("quality",b);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var k=(i)?i:window.location;this.setAttribute("xiRedirectUrl",k);this.setAttribute("redirectUrl","");if(a){this.setAttribute("redirectUrl",a)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(a,b){this.params[a]=b},getParams:function(){return this.params},addVariable:function(a,b){this.variables[a]=b},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var a=new Array();var b;var c=this.getVariables();for(b in c){a[a.length]=b+"="+c[b]}return a},getSWFHTML:function(){var d="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}d='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';d+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var c=this.getParams();for(var a in c){d+=[a]+'="'+c[a]+'" '}var b=this.getVariablePairs().join("&");if(b.length>0){d+='flashvars="'+b+'"'}d+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}d='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';d+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var a in c){d+='<param name="'+a+'" value="'+c[a]+'" />'}var b=this.getVariablePairs().join("&");if(b.length>0){d+='<param name="flashvars" value="'+b+'" />'}d+="</object>"}return d},write:function(a){if(this.getAttribute("useExpressInstall")){var b=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(b)&&!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 c=(typeof a=="string")?document.getElementById(a):a;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var c=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){c=new deconcept.PlayerVersion(a.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 d=1;var b=3;while(d){try{b++;d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+b);c=new deconcept.PlayerVersion([b,0,0])}catch(f){d=null}}}else{try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(f){try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");c=new deconcept.PlayerVersion([6,0,21]);d.AllowScriptAccess="always"}catch(f){if(c.major==6){return c}}try{d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(f){}}if(d!=null){c=new deconcept.PlayerVersion(d.GetVariable("$version").split(" ")[1].split(","))}}}return c};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(d){var c=document.location.search||document.location.hash;if(d==null){return c}if(c){var b=c.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==d){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var c=document.getElementsByTagName("OBJECT");for(var b=c.length-1;b>=0;b--){c[b].style.display="none";for(var a in c[b]){if(typeof c[b][a]=="function"){c[b][a]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;(function(f,a){var h=document.createElement("div"),g=("backgroundColor borderBottomColor borderBottomWidth borderLeftColor borderLeftWidth borderRightColor borderRightWidth borderSpacing borderTopColor borderTopWidth bottom color fontSize fontWeight height left letterSpacing lineHeight marginBottom marginLeft marginRight marginTop maxHeight maxWidth minHeight minWidth opacity outlineColor outlineOffset outlineWidth paddingBottom paddingLeft paddingRight paddingTop right textIndent top width wordSpacing zIndex").split(" ");function e(j,k,m){return(j+(k-j)*m).toFixed(3)}function i(k,j,m){return k.substr(j,m||1)}function c(m,q,t){var o=2,n,s,p,u=[],k=[];while(n=3,s=arguments[o-1],o--){if(i(s,0)=="r"){s=s.match(/\d+/g);while(n--){u.push(~~s[n])}}else{if(s.length==4){s="#"+i(s,1)+i(s,1)+i(s,2)+i(s,2)+i(s,3)+i(s,3)}while(n--){u.push(parseInt(i(s,1+n*2,2),16))}}}while(n--){p=~~(u[n+3]+(u[n]-u[n+3])*t);k.push(p<0?0:p>255?255:p)}return"rgb("+k.join(",")+")"}function b(m){var k=parseFloat(m),j=m.replace(/^[\-\d\.]+/,"");return isNaN(k)?{v:j,f:c,u:""}:{v:k,f:e,u:j}}function d(n){var m,o={},k=g.length,j;h.innerHTML='<div style="'+n+'"></div>';m=h.childNodes[0].style;while(k--){if(j=m[g[k]]){o[g[k]]=b(j)}}return o}a[f]=function(r,o,j,n){r=typeof r=="string"?document.getElementById(r):r;j=j||{};var t=d(o),s=r.currentStyle?r.currentStyle:getComputedStyle(r,null),m,u={},p=+new Date,k=j.duration||200,w=p+k,q,v=j.easing||function(x){return(-Math.cos(x*Math.PI)/2)+0.5};for(m in t){u[m]=b(s[m])}q=setInterval(function(){var x=+new Date,y=x>w?1:(x-p)/k;for(m in t){r.style[m]=t[m].f(u[m].v,t[m].v,v(y))+t[m].u}if(x>w){clearInterval(q);j.after&&j.after();n&&setTimeout(n,1)}},10)}})("emile",this);function _$(a){return(typeof a=="string")?document.getElementById(a):a}function _$A(b){if(!b){return[]}if(b.toArray){return b.toArray()}else{var d=[],c;for(c=0,l=b.length;c<l;c++){d.push(b[c])}return d}}Function.prototype.bind=function(){var a=this,c=_$A(arguments),b=c.shift();return function(){return a.apply(b,c.concat(_$A(arguments)))}};function impossible_slideshow(a){this.wrapper=document.getElementById(a);this.supportOpacity=(this.wrapper.style.opacity!=undefined);this.screens=this.wrapper.getElementsByTagName("img");if(this.screens.length>1){this.startSlideshow()}}impossible_slideshow.prototype.initScreens=function(){var c=[0,0];for(var b=0;b<this.screens.length;b++){var a=this.screens[b];(this.supportOpacity)?a.style.opacity=0:a.style.visibility="hidden";c[0]=Math.max(c[0],a.width);c[1]=Math.max(c[1],a.height)}};impossible_slideshow.prototype.startSlideshow=function(){if(this.screens.length<=1){return}this.cur_screen=-1;this.initScreens();this.showNextScreen()};impossible_slideshow.prototype.showNextScreen=function(){var b=this.cur_screen;this.cur_screen++;if(this.cur_screen>=this.screens.length){this.cur_screen=0}if(b>=0){this.fadeScreen(this.screens[b],0)}var a=this;this.fadeScreen(this.screens[this.cur_screen],1,function(){setTimeout(function(){a.showNextScreen()},3000)})};impossible_slideshow.prototype.fadeScreen=function(a,b,c){if(!this.supportOpacity){a.style.visibility=(b==1)?"visible":"hidden";c&&c(a);return}emile(a,"opacity:"+b,{duration:750,after:function(){c&&c(a)}})};var Impossible={init:function(a){a=a||{};a.wall_width=a.wall_width||220;a.wall_height=a.wall_height||260;Impossible.options=a;if(window.attachEvent){window.attachEvent("onload",Impossible.createMenus)}},createMenus:function(){var a=_$("top_menu").getElementsByTagName("LI");for(var b=0;b<a.length;b++){var c=a[b].getElementsByTagName("UL");if(c.length==0){continue}a[b].sub=c[0];a[b].onmouseover=function(){this.className+=" hover";this.sub.style.left="auto"};a[b].onmouseout=function(){this.className=this.className.replace(new RegExp(" hover\\b"),"");this.sub.style.left="-999em"}}},publishPhoto:function(b){var a=_$("wall_photos"),c=_$("pola_"+b),d;if(!a||c){return}d=document.createElement("div");d.className="pola column_2";d.innerHTML='<img id="pola_'+b+'" src="/wall_photos/'+b+'.jpg" width="'+Impossible.options.wall_width+'" height="'+Impossible.options.wall_height+'" />';a.insertBefore(d,a.firstChild)}};
