/*
	ZoomoViewerŪ
	http://www.ZoomoViewer.com
*/
var serverName="http://baur.zoomo-viewer.com";var plugIns="gui_IAW";var servletPath="/servlet/ImageData";function zoomo_main(c,a){var b=serverName+servletPath+"?clientId="+clientID+"&image="+imageID;var d="imageURL="+escape(b)+"&plugIns="+serverName+"/html/zoomapp/plugins/"+plugIns;document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+c+'" height="'+a+'" id="zoomo_main" align="middle">');document.write('<param name="movie" value="'+serverName+"/html/zoomapp/zoomo07.swf?"+d+'" />');document.write('<embed src="'+serverName+"/html/zoomapp/zoomo07.swf?"+d+'" quality="high" width="'+c+'" height="'+a+'" name="zoomo_main" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');document.write("</object>");}function zoomo_nav(b,a){document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="145" height="200" id="zoomo_nav" align="middle">');document.write('<param name="allowScriptAccess" value="sameDomain" />');document.write('<param name="movie" value="'+b+"/html/zoomapp/"+a+'2.swf" /><embed src="'+b+"/html/zoomapp/"+a+'2.swf" width="145" height="200" name="zoomo_nav" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');document.write("</object>");}function openZoomoLayer(){if(clientHasFlash){var d=detailview.currentSelectedImageObject.image.replace(".jpg","");var a;if(detailview.currentSelectedImageObject.imageZoom!=""&&detailview.currentSelectedImageObject.imageZoom!="abschluss"){var c=new ZoomoViewer();c.clearImageArray();c.clearPlugIn();c.serverName="http://baur.zoomo-viewer.com";c.clientID=47;c.width=500;c.height=500;c.addPlugIn(zoomo_ski);c.addImage(detailview.currentSelectedImageObject.imageZoom.replace(".jpg",""),detailview.currentSelectedImageObject.image);c.addParam("color1","4B4B32");c.addParam("color2","6C6C48");a=c.getZoomContent();}else{a='<img src="http://bilder.baur.de/pool/formata/'+detailview.currentSelectedImageObject.image+'">';}jQuery.fn.modalBox({directCall:{data:a}});var b="&pc=catalog/popup/pop_zoomo_viewer";setLandmark("page",b);}}ZoomoViewer=function(){};ZoomoViewer.prototype={_plugIns:[],_images:[],_params:[],width:500,height:500,clientID:"",serverName:"http://baur.zoomo-viewer.com",appPath:"/html/zoomapp/",plugInPath:"/html/zoomapp/plugins/",servletPath:"/servlet/ImageData",checkImagePath:function(a){return a.indexOf("http://image01.otto.de/pool/formata/")!=-1?true:false;},addImage:function(a,b){if(b==undefined){b="";}this._images.push({name:a,url:b});},clearPlugIn:function(){this._plugIns=[];},addPlugIn:function(a){this._plugIns.push(a);},addParam:function(a,b){this._params[a]={value:b,zv:true};},clearImageArray:function(){this._images=[];},start:function(f,d){var c=this.serverName+this.servletPath+"?clientId="+this.clientID;c+=this._getImages();var e="imageURL="+escape(c);var b="&referrer="+encodeURIComponent(document.referrer);e+=escape(b);e+=this._getPlugIns()+this._getParams();var a="";a+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+this.width+'" height="'+this.height+'" id="zoomo_main" align="middle">';a+='<param name="movie" value="'+this.serverName+this.appPath+"zoomo07.swf?"+e+'" />';a+='<embed src="'+this.serverName+this.appPath+"zoomo07.swf?"+e+'" quality="high" width="'+this.width+'" height="'+this.height+'" name="zoomo_main" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';a+="</object>";jQuery(d).append(a);},getZoomContent:function(){var c=this.serverName+this.servletPath+"?clientId="+this.clientID;c+=this._getImages();var d="imageURL="+escape(c);var b="&referrer="+encodeURIComponent(document.referrer);d+=escape(b);d+=this._getPlugIns()+this._getParams();var a="";a+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+this.width+'" height="'+this.height+'" id="zoomo_main" align="middle">';a+='<param name="movie" value="'+this.serverName+this.appPath+"zoomo07.swf?"+d+'" />';a+='<embed src="'+this.serverName+this.appPath+"zoomo07.swf?"+d+'" quality="high" width="'+this.width+'" height="'+this.height+'" name="zoomo_main" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';a+="</object>";return a;},_getImages:function(){var c="";for(var b=0;b<this._images.length;b++){var a=this._images[b];c+="&image="+a.name;var d=a.url;c+=this.checkImagePath(d)?d:"&url=http://image01.otto.de/pool/formata/"+d;}return c;},_getPlugIns:function(){var b="&plugIns=";for(var a=0;a<this._plugIns.length;a++){b+=this.serverName+this.plugInPath+this._plugIns[a]+"|";}return b.substring(0,b.length-1);},_getParams:function(){var b="";for(var a in this._params){if(this._params[a].zv){b+="&"+a+"="+this._params[a].value;}}return b;},startSWFObject:function(a){var b=this.serverName+this.servletPath+"?clientId="+this.clientID;b+=this._getImages();var c="imageURL="+escape(b);c+=this._getPlugIns()+this._getParams();var d=new SWFObject(this.serverName+this.appPath+"zoomo07.swf?"+c,"ZoomoViewer",this.width,this.height,"6","#FFFFFF");d.write(a);}};
