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(){var e=detailview.currentSelectedImageObject.image.replace(".jpg","");var c="";if(document.getElementById("detailview_zoom_"+e)){c=$("#detailview_zoom_"+e);}else{c=BonusLayer.addNewDivLayer("detailview_zoom_"+e,"skipElement");x=$("body").append(c);if(detailview.currentSelectedImageObject.imageZoom!=""){var d=new ZoomoViewer();d.clearImageArray();d.clearPlugIn();d.serverName="http://baur.zoomo-viewer.com";d.clientID=47;d.width=500;d.height=500;d.addPlugIn("gui_baur2");d.addImage(detailview.currentSelectedImageObject.imageZoom.replace(".jpg",""),detailview.currentSelectedImageObject.image);d.addParam("color1","4B4B32");d.addParam("color2","6C6C48");d.start(e,c);}else{var b=document.createElement("IMG");var f=document.createAttribute("src");f.nodeValue="http://bilder.baur.de/pool/formata/"+detailview.currentSelectedImageObject.image;b.setAttributeNode(f);$(c).append(b);}}jQuery.fn.modalBox({directCall:{element:c},setTypeOfFadingLayer:"disable",usejqueryuidragable:enableDragableModalbox});var a="&pc=catalog/popup/pop_zoomo_viewer";setLandmark("page",a);}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",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);},_getImages:function(){var b="";for(var a=0;a<this._images.length;a++){b+="&image="+this._images[a].name;b+="&url="+this._images[a].url;}return b;},_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);}};
