var swfobject=function(){function c(){if(!D){try{var a=j.getElementsByTagName("body")[0].appendChild(s("span"));a.parentNode.removeChild(a)}catch(b){return}D=true;a=Q.length;for(var d=0;d<a;d++)Q[d]()}}function I(a){if(D)a();else Q[Q.length]=a}function E(a){if(typeof q.addEventListener!=k)q.addEventListener("load",a,false);else if(typeof j.addEventListener!=k)j.addEventListener("load",a,false);else if(typeof q.attachEvent!=k)Z(q,"onload",a);else if(typeof q.onload=="function"){var b=q.onload;q.onload=
function(){b();a()}}else q.onload=a}function J(){da?G():r()}function G(){var a=j.getElementsByTagName("body")[0],b=s(t);b.setAttribute("type",R);var d=a.appendChild(b);if(d){var e=0;(function(){if(typeof d.GetVariable!=k){var f=d.GetVariable("$version");if(f){f=f.split(" ")[1].split(",");g.pv=[parseInt(f[0],10),parseInt(f[1],10),parseInt(f[2],10)]}}else if(e<10){e++;setTimeout(arguments.callee,10);return}a.removeChild(b);d=null;r()})()}else r()}function r(){var a=z.length;if(a>0)for(var b=0;b<a;b++){var d=
z[b].id,e=z[b].callbackFn,f={success:false,id:d};if(g.pv[0]>0){var h=o(d);if(h)if(S(z[b].swfVersion)&&!(g.wk&&g.wk<312)){F(d,true);if(e){f.success=true;f.ref=K(d);e(f)}}else if(z[b].expressInstall&&L()){f={};f.data=z[b].expressInstall;f.width=h.getAttribute("width")||"0";f.height=h.getAttribute("height")||"0";if(h.getAttribute("class"))f.styleclass=h.getAttribute("class");if(h.getAttribute("align"))f.align=h.getAttribute("align");var i={};h=h.getElementsByTagName("param");for(var l=h.length,m=0;m<
l;m++)if(h[m].getAttribute("name").toLowerCase()!="movie")i[h[m].getAttribute("name")]=h[m].getAttribute("value");M(f,i,d,e)}else{aa(h);e&&e(f)}}else{F(d,true);if(e){if((d=K(d))&&typeof d.SetVariable!=k){f.success=true;f.ref=d}e(f)}}}}function K(a){var b=null;if((a=o(a))&&a.nodeName=="OBJECT")if(typeof a.SetVariable!=k)b=a;else if(a=a.getElementsByTagName(t)[0])b=a;return b}function L(){return!T&&S("6.0.65")&&(g.win||g.mac)&&!(g.wk&&g.wk<312)}function M(a,b,d,e){T=true;ba=e||null;ea={success:false,
id:d};var f=o(d);if(f){if(f.nodeName=="OBJECT"){N=n(f);U=null}else{N=f;U=d}a.id=fa;if(typeof a.width==k||!/%$/.test(a.width)&&parseInt(a.width,10)<310)a.width="310";if(typeof a.height==k||!/%$/.test(a.height)&&parseInt(a.height,10)<137)a.height="137";j.title=j.title.slice(0,47)+" - Flash Player Installation";e=g.ie&&g.win?"ActiveX":"PlugIn";e="MMredirectURL="+q.location.toString().replace(/&/g,"%26")+"&MMplayerType="+e+"&MMdoctitle="+j.title;if(typeof b.flashvars!=k)b.flashvars+="&"+e;else b.flashvars=
e;if(g.ie&&g.win&&f.readyState!=4){e=s("div");d+="SWFObjectNew";e.setAttribute("id",d);f.parentNode.insertBefore(e,f);f.style.display="none";(function(){f.readyState==4?f.parentNode.removeChild(f):setTimeout(arguments.callee,10)})()}A(a,b,d)}}function aa(a){if(g.ie&&g.win&&a.readyState!=4){var b=s("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(n(a),b);a.style.display="none";(function(){a.readyState==4?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)})()}else a.parentNode.replaceChild(n(a),
a)}function n(a){var b=s("div");if(g.win&&g.ie)b.innerHTML=a.innerHTML;else if(a=a.getElementsByTagName(t)[0])if(a=a.childNodes)for(var d=a.length,e=0;e<d;e++)!(a[e].nodeType==1&&a[e].nodeName=="PARAM")&&a[e].nodeType!=8&&b.appendChild(a[e].cloneNode(true));return b}function A(a,b,d){var e,f=o(d);if(g.wk&&g.wk<312)return e;if(f){if(typeof a.id==k)a.id=d;if(g.ie&&g.win){var h="";for(var i in a)if(a[i]!=Object.prototype[i])if(i.toLowerCase()=="data")b.movie=a[i];else if(i.toLowerCase()=="styleclass")h+=
' class="'+a[i]+'"';else if(i.toLowerCase()!="classid")h+=" "+i+'="'+a[i]+'"';i="";for(var l in b)if(b[l]!=Object.prototype[l])i+='<param name="'+l+'" value="'+b[l]+'" />';f.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+h+">"+i+"</object>";V[V.length]=a.id;e=o(a.id)}else{l=s(t);l.setAttribute("type",R);for(h in a)if(a[h]!=Object.prototype[h])if(h.toLowerCase()=="styleclass")l.setAttribute("class",a[h]);else h.toLowerCase()!="classid"&&l.setAttribute(h,a[h]);for(var m in b)b[m]!=
Object.prototype[m]&&m.toLowerCase()!="movie"&&O(l,m,b[m]);f.parentNode.replaceChild(l,f);e=l}}return e}function O(a,b,d){var e=s("param");e.setAttribute("name",b);e.setAttribute("value",d);a.appendChild(e)}function p(a){var b=o(a);if(b&&b.nodeName=="OBJECT")if(g.ie&&g.win){b.style.display="none";(function(){b.readyState==4?u(a):setTimeout(arguments.callee,10)})()}else b.parentNode.removeChild(b)}function u(a){if(a=o(a)){for(var b in a)if(typeof a[b]=="function")a[b]=null;a.parentNode.removeChild(a)}}
function o(a){var b=null;try{b=j.getElementById(a)}catch(d){}return b}function s(a){return j.createElement(a)}function Z(a,b,d){a.attachEvent(b,d);H[H.length]=[a,b,d]}function S(a){var b=g.pv;a=a.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return b[0]>a[0]||b[0]==a[0]&&b[1]>a[1]||b[0]==a[0]&&b[1]==a[1]&&b[2]>=a[2]?true:false}function ga(a,b,d,e){if(!(g.ie&&g.mac)){var f=j.getElementsByTagName("head")[0];if(f){d=d&&typeof d=="string"?d:"screen";if(e)ca=v=null;
if(!v||ca!=d){e=s("style");e.setAttribute("type","text/css");e.setAttribute("media",d);v=f.appendChild(e);if(g.ie&&g.win&&typeof j.styleSheets!=k&&j.styleSheets.length>0)v=j.styleSheets[j.styleSheets.length-1];ca=d}if(g.ie&&g.win)v&&typeof v.addRule==t&&v.addRule(a,b);else v&&typeof j.createTextNode!=k&&v.appendChild(j.createTextNode(a+" {"+b+"}"))}}}function F(a,b){if(ha){b=b?"visible":"hidden";if(D&&o(a))o(a).style.visibility=b;else ga("#"+a,"visibility:"+b)}}function ia(a){return/[\\\"<>\.;]/.exec(a)!=
null&&typeof encodeURIComponent!=k?encodeURIComponent(a):a}var k="undefined",t="object",R="application/x-shockwave-flash",fa="SWFObjectExprInst",q=window,j=document,B=navigator,da=false,Q=[J],z=[],V=[],H=[],N,U,ba,ea,D=false,T=false,v,ca,ha=true,g=function(){var a=typeof j.getElementById!=k&&typeof j.getElementsByTagName!=k&&typeof j.createElement!=k,b=B.userAgent.toLowerCase(),d=B.platform.toLowerCase(),e=d?/win/.test(d):/win/.test(b);d=d?/mac/.test(d):/mac/.test(b);b=/webkit/.test(b)?parseFloat(b.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,
"$1")):false;var f=!+"\u000b1",h=[0,0,0],i=null;if(typeof B.plugins!=k&&typeof B.plugins["Shockwave Flash"]==t){if((i=B.plugins["Shockwave Flash"].description)&&!(typeof B.mimeTypes!=k&&B.mimeTypes[R]&&!B.mimeTypes[R].enabledPlugin)){da=true;f=false;i=i.replace(/^.*\s+(\S+\s+\S+$)/,"$1");h[0]=parseInt(i.replace(/^(.*)\..*$/,"$1"),10);h[1]=parseInt(i.replace(/^.*\.(.*)\s.*$/,"$1"),10);h[2]=/[a-zA-Z]/.test(i)?parseInt(i.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else if(typeof q.ActiveXObject!=k)try{var l=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(l)if(i=l.GetVariable("$version")){f=true;i=i.split(" ")[1].split(",");h=[parseInt(i[0],10),parseInt(i[1],10),parseInt(i[2],10)]}}catch(m){}return{w3:a,pv:h,wk:b,ie:f,win:e,mac:d}}();(function(){if(g.w3){if(typeof j.readyState!=k&&j.readyState=="complete"||typeof j.readyState==k&&(j.getElementsByTagName("body")[0]||j.body))c();if(!D){typeof j.addEventListener!=k&&j.addEventListener("DOMContentLoaded",c,false);if(g.ie&&g.win){j.attachEvent("onreadystatechange",
function(){if(j.readyState=="complete"){j.detachEvent("onreadystatechange",arguments.callee);c()}});q==top&&function(){if(!D){try{j.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}c()}}()}g.wk&&function(){D||(/loaded|complete/.test(j.readyState)?c():setTimeout(arguments.callee,0))}();E(c)}}})();(function(){g.ie&&g.win&&window.attachEvent("onunload",function(){for(var a=H.length,b=0;b<a;b++)H[b][0].detachEvent(H[b][1],H[b][2]);a=V.length;for(b=0;b<a;b++)p(V[b]);for(var d in g)g[d]=
null;g=null;for(var e in swfobject)swfobject[e]=null;swfobject=null})})();return{registerObject:function(a,b,d,e){if(g.w3&&a&&b){var f={};f.id=a;f.swfVersion=b;f.expressInstall=d;f.callbackFn=e;z[z.length]=f;F(a,false)}else e&&e({success:false,id:a})},getObjectById:function(a){if(g.w3)return K(a)},embedSWF:function(a,b,d,e,f,h,i,l,m,P){var W={success:false,id:b};if(g.w3&&!(g.wk&&g.wk<312)&&a&&b&&d&&e&&f){F(b,false);I(function(){d+="";e+="";var C={};if(m&&typeof m===t)for(var w in m)C[w]=m[w];C.data=
a;C.width=d;C.height=e;w={};if(l&&typeof l===t)for(var X in l)w[X]=l[X];if(i&&typeof i===t)for(var Y in i)if(typeof w.flashvars!=k)w.flashvars+="&"+Y+"="+i[Y];else w.flashvars=Y+"="+i[Y];if(S(f)){X=A(C,w,b);C.id==b&&F(b,true);W.success=true;W.ref=X}else if(h&&L()){C.data=h;M(C,w,b,P);return}else F(b,true);P&&P(W)})}else P&&P(W)},switchOffAutoHideShow:function(){ha=false},ua:g,getFlashPlayerVersion:function(){return{major:g.pv[0],minor:g.pv[1],release:g.pv[2]}},hasFlashPlayerVersion:S,createSWF:function(a,
b,d){if(g.w3)return A(a,b,d)},showExpressInstall:function(a,b,d,e){g.w3&&L()&&M(a,b,d,e)},removeSWF:function(a){g.w3&&p(a)},createCSS:function(a,b,d,e){g.w3&&ga(a,b,d,e)},addDomLoadEvent:I,addLoadEvent:E,getQueryParamValue:function(a){var b=j.location.search||j.location.hash;if(b){if(/\?/.test(b))b=b.split("?")[1];if(a==null)return ia(b);b=b.split("&");for(var d=0;d<b.length;d++)if(b[d].substring(0,b[d].indexOf("="))==a)return ia(b[d].substring(b[d].indexOf("=")+1))}return""},expressInstallCallback:function(){if(T){var a=
o(fa);if(a&&N){a.parentNode.replaceChild(N,a);if(U){F(U,true);if(g.ie&&g.win)N.style.display="block"}ba&&ba(ea)}T=false}}}}();
$(document).ready(function(c){function I(){if(typeof self.innerHeight!="undefined")return{x:self.innerWidth,y:self.innerHeight};else if(typeof document.documentElement.clientHeight!="undefined")return{x:document.documentElement.clientWidth,y:document.documentElement.clientHeight};else if(typeof document.body.clientHeight!="undefined")return{x:document.body.clientWidth,y:document.body.clientHeight}}function E(){if(c("#diashow img:visible").length==0||c("#diashow img:last").is(":visible")){c("#diashow img").fadeOut();
c("#diashow img:first-child").fadeIn();A=1;n=window.setTimeout(E,6E3)}else{c("#diashow img:visible").next("img").fadeIn().prev("img").fadeOut();n=window.setTimeout(E,4E3)}c("span#current").text(A++ +" von "+c("#diashow img").length)}function J(){if(c("#diashow img:visible").length==0||c("#diashow img:first").is(":visible")){c("#diashow img").fadeOut();c("#diashow img:last").fadeIn();A=c("#diashow img").length;n=window.setTimeout(J,6E3)}else{c("#diashow img:visible").prev("img").fadeIn().next("img").fadeOut();
n=window.setTimeout(J,4E3)}c("span#current").text(A--+" von "+c("#diashow img").length)}function G(p){if(O!=p){O=p;c("#diashow").length>0&&c("#diashow").remove()}if(c("#diashow").length==0){c('<div id="diashow"></div>').prependTo("#container").hide();c.each(p.images,function(s,Z){c("#diashow").append(c('<img src="'+p.folder+Z+'.jpg"/>').css({maxHeight:267,maxWidth:400}))});c('<div id="description"></div>').appendTo("#diashow").css({position:"absolute",left:440,top:16,height:267,width:240});c("#description").append(p.description).append(c('<div id="dianav"></div>').css({position:"absolute",
left:0,bottom:16,height:20,width:240}).append('<span id="current" style="color:#99071e">1 von '+c("#diashow img").length+"</span><br/>").append(c('<a href="#tour_2008" style="color:#000000; display: inline; position: relative;">Vorheriges</a>').bind("click",function(){window.clearTimeout(n);J()})).append(" ").append(c('<a href="#tour_2008" style="color:#000000; display:inline; position: relative;">N\u00e4chstes</a>').bind("click",function(){window.clearTimeout(n);E()})).append(" ").append(c('<a href="#tour_2008" style="color:#000000; display:inline; position: relative;">Stop</a>').bind("click",
function(){window.clearTimeout(n)})).append(" ").append(c('<a href="#tour_2008" style="color:#000000; display:inline; position: relative;">Schliessen</a>').bind("click",function(){G(O)})))}if(c("#diashow").is(":hidden")){c("#diashow img").hide().css({position:"absolute",top:16,left:20});var u=I(),o=Math.max(0,(u.y-400)/2+c(document).scrollTop());u=Math.max(0,(u.x-700)/2+c(document).scrollLeft());c("#diashow").css({position:"absolute",top:o,left:u,height:300,width:700,border:"6px solid #ffffff",backgroundColor:"#CED0C0",
"z-index":999}).fadeIn();n=window.setTimeout(E,10)}else{c("#diashow").fadeOut();c("#diashow img").hide();window.clearTimeout(n)}}function r(p){try{c("#soundnav").get(0)["play"+p]()}catch(u){}}function K(){c("#roberto").bind("mouseenter",function(){r(1)});c("#mongo").bind("mouseenter",function(){r(2)});c("#skin").bind("mouseenter",function(){r(3)});c("#school").bind("mouseenter",function(){r(4)});c("#news").bind("mouseenter",function(){r(5)});c("#impressum").bind("mouseenter",function(){r(6)});c("#contact").bind("mouseenter",
function(){r(1)})}var L={folder:"./imgs/show_tour_2008/",images:new Array("000","001","004","011","014","021","022","024","044","045","047","048","049","050","052","053","054","056","057","058","060","061","062","063","064"),description:'<p style="margin-top: 0px"><span style="color:#99071e">KONZERT</span><br/>CubopFunk feat. Roberto Santamaria,<br/>24. Oktober 2008 \u2013<br/>Jazz+KlassikTage in T\u00fcbingen</p>'},M={folder:"./imgs/diashow2/",images:new Array("001","002","003","004","005","006",
"007","008","009","010","011","012","013","014","015","016","017","018","019","020","021","022"),description:'<p style="margin-top: 0px"><span style="color:#99071e">FOTOGALLERY II</span></p>'},aa={folder:"./imgs/diashow3/",images:new Array("001","002","003","004","005","006"),description:'<p style="margin-top: 0px"><span style="color:#99071e">FOTOGALLERY MASTERCLASS IN TELFS (TIROL)</span></p>'},n=false,A=0,O=null;c("#diashow_1 *").bind("mouseover",function(){c(this).css("cursor","pointer")});c("#diashow_2 *").bind("mouseover",
function(){c(this).css("cursor","pointer")});c("#diashow_3 *").bind("mouseover",function(){c(this).css("cursor","pointer")});c("#diashow_1").bind("click",function(){G(L)});c("#diashow_2").bind("click",function(){G(M)});c("#diashow_3").bind("click",function(){G(aa)});c('<div id="soundnav"></div>').appendTo("body");swfobject.embedSWF("../swf/Soundnav.swf","soundnav","0","0","8.0.0","expressInstall.swf");K();c("#page2").hide();c("#para_mongo").bind("click",function(){var p=c("#headline").css("background-position"),
u=c(this).css("background-position");c("#headline").css("background-position",u);c(this).css("background-position",p);c("#page2,#page1").toggle();c("#text").scrollbars()});c("#gallery_roberto").bind("click",function(){c("#gallery").length==0?c('<div id="gallery"></div>').appendTo("#container").load("./gallery_roberto.html"):c("#gallery").remove()});c("#gallery_mongo").bind("click",function(){if(c("#gallery").length==0){c('<div id="gallery"></div>').appendTo("#container");c("#gallery").load("http://roberto-ritmo.com/gallery_mongo.html")}else c("#gallery").remove()});
if(c("body").hasClass("news")){return;size=I();x=parseInt(size.x/2);y=parseInt(size.y/2);c("body").append('<div id="flyer"><img src="/imgs/flyer_roberto.jpg"/></div>');c("#flyer").hide();c("#flyer img").load(function(){x-=c("#flyer").outerHeight()/2;y-=c("#flyer").outerWidth()/2;c("#flyer").css({position:"absolute",top:y,left:x,margin:"auto",padding:"20px","background-color":"#D0CDAF",border:"5px solid white","z-index":5}).show()});c("body").click(function(){c("#flyer").remove()})}});

