var start="../../";var base=start;var back="";var next="";var ph=135;var pl=0;var sm=ph;var st=210;
/*if(top.frames.length>0)top.location.href=self.location.href;*/
window.defaultStatus=document.title;
function isi(s,i,j){return (s.substr(s.length-1,1)=="i")?j:i;}
function marke(s){return (s.substr(s.length-1,1)=="i")?"i":"";}
//function next_page(i,j){var r=/(.*\D)(\d+)(\D.*)/;var n,m;r.exec(picture.location.href);n=isi(RegExp.$1,i,j);m=(RegExp.$2%n)+1;picture.location.href=RegExp.$1+m+RegExp.$3;index.location.hash="m"+marke(RegExp.$1)+m;}
//function rand_page(i,j){var r=/(.*\D)(\d+)(\D.*)/;var n,m;var now=new Date();r.exec(picture.location.href);n=isi(RegExp.$1,i,j);m=((RegExp.$2*1+now.getTime())%n)+1;picture.location.href=RegExp.$1+m+RegExp.$3;index.location.hash="m"+marke(RegExp.$1)+m;}
//function back_page(i,j){var r=/(.*\D)(\d+)(\D.*)/;var n,m;r.exec(picture.location.href);n=isi(RegExp.$1,i,j);m=((RegExp.$2*1+n-2)%n)+1;picture.location.href=RegExp.$1+m+RegExp.$3;index.location.hash="m"+marke(RegExp.$1)+m;}
//function lang_page(lang){var r=/(.*\D)(\d+)(\D.*)/;r.exec(picture.location.pathname);index.location.href=lang+"0.html#"+"m"+marke(RegExp.$1)+(RegExp.$2);titel.location.href=lang+"titel.html";bottom.location.href=lang+"button.html";picture.location.href=lang+marke(RegExp.$1)+RegExp.$2+RegExp.$3+"#image";switch_page();}
function language(lang){location.href=dirname(index.location.pathname.replace(lang=="de"?"/en/":"/de/","/"+lang+"/"))+"/index.html#"+o_name(picture.location.pathname);}
function noframes(){location.href=picture.location.href.replace(/\.html/,"x.html");}
var page_num=0;var old_page_num=0;
function switch_page(){var new_page_num=o_name(picture.location.pathname);var d=dirname(index.location.pathname)+"/"+start+"images/";if(old_page_num && index.document.images["a"+old_page_num] && index.document.images["b"+old_page_num]){index.document.images["a"+old_page_num].src=d+"i42.gif";index.document.images["b"+old_page_num].src=d+"i42.gif";}if(page_num && index.document.images["a"+page_num] && index.document.images["b"+page_num]){index.document.images["a"+page_num].src=d+"iaoff.gif";index.document.images["b"+page_num].src=d+"iboff.gif";}if(new_page_num && index.document.images["a"+new_page_num] && index.document.images["b"+new_page_num]){index.document.images["a"+new_page_num].src=d+"iaon.gif";index.document.images["b"+new_page_num].src=d+"ibon.gif";}old_page_num=page_num;page_num=new_page_num;} 
var preview_img=0;
function Preview(i,j){if(i!=preview_img){preview_img=i;preview.document.open();preview.document.write("<html><head><link rel=\"stylesheet\" type=\"text/css\" href=\""+base+"style/default.css\"><meta http-equiv=\"Page-Exit\" content=\"blendTrans(Duration=1)\"></head><body class=\"balken\"><div class=\"preview\"><a href=\"i"+j+".html\" target=\"picture\"><img src=\"../../images/small/"+i+".jpg\" border=\"1\" vspace=\"3\"></a></div></body></html>");preview.document.close();}}
function view(i,j){if(i!=preview_img){preview_img=i;preview.document.open();preview.document.write("<html><head><link rel=\"stylesheet\" type=\"text/css\" href=\""+base+"style/default.css\"><meta http-equiv=\"Page-Exit\" content=\"blendTrans(Duration=1)\"></head><body class=\"balken\"><div class=\"preview\"><a href=\""+j+"0.html\" target=\"picture\"><img src=\""+base+"images/small/"+i+".jpg\" border=\"1\" alt=\"Index\" vspace=\"3\"></a></div></body></html>");preview.document.close();}}
//function v(i){if(i!=preview_img){preview_img=i;preview.document.open();preview.document.write("<html><head><base href=\""+parent.location.href+"\" /><link rel=\"stylesheet\" type=\"text/css\" href=\""+base+"style/default.css\" /><meta http-equiv=\"Page-Exit\" content=\"blendTrans(Duration=1)\" /></head><body class=\"balken\"><hr size=\"3\" noshade=\"noshade\" /><div class=\"sh\"></div><hr size=\"2\" noshade=\"noshade\" /><div class=\"preview\"><a href=\"0.html\" target=\"picture\" onclick=\"parent.preview_img=0;location.href='"+base+"preview.html'\"><img src=\""+base+"images/small/"+i+".jpg\" border=\"1\" alt=\"Index\" vspace=\"3\"></a></div></body></html>");preview.document.close();}}
function v(i){if(i!=preview_img){preview_img=i;var h="<html><head><base href=\""+location.href+"\" /><link rel=\"stylesheet\" type=\"text/css\" href=\""+base+"style/default.css\" /><meta http-equiv=\"Page-Exit\" content=\"blendTrans(Duration=1)\" /></head><body class=\"balken\"><div class=\"preview\"><a href=\"0.html\" target=\"picture\" onclick=\"parent.preview_img=0;this.style.display=\\\'none\\\';document.getElementById(\\\'h\\\').style.visibility=\\\'visible\\\'\"><img src=\""+base+"images/small/"+i+".jpg\" border=\"1\" alt=\"Index\" vspace=\"3\"></a></div><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"sh\" id=\"h\">Stefan Hintz</td></tr></table></body></html>";preview.location.href="javascript:document.open();document.write(\'"+escape(h)+"\');document.close()";}}
function backpage(){if(back){update_frames(back);}}
function nextpage(){if(next){update_frames(next);}}
function home(s){start=s;switch_page();} 
function links(b,n,c){back=oname(b);next=oname(n);sc(c);}
function update_frames(url){if(url.indexOf("//")<0){url=add_path(dirname(picture.location.href),url);}if(url.indexOf("#")>=0){location.href=url;}else{var h=o_name(url);index.location.hash="m"+h;location.hash=h;picture.location.href=url;}} 
function dirname(path){var i=path.lastIndexOf("/");if(i>0){return path.substr(0,i);}return "";}
function basename(p){var i=p.lastIndexOf("/");if(i>0){p=p.substr(i+1);}return p.replace(/\.html/,"");}
function frame_set(s,m,f,l,p){var h=location.hash;base=s;start=s;ph=p;if(h.length>1){f=h.substr(1,h.length-1)+".html";}else{var c=gc("picture");if(c){f=c+".html";}}document.write(frameset("main","rows","80,"+p+",*,80",frameset("title","cols","210,*",frame(s+"preview.html","preview","no")+frame("title.html","title","no"))+frame("navi.html","top","no")+frameset("middle","cols","210,*",frame(m,"index")+frame(f,"picture"))+frame(s+l+"/button.html","button","no")))}
function frame_set_i(s,f,l,p){var h=location.hash;base=s;start=s;ph=p;if(h.length>1){f=h.substr(1,h.length-1)+".html";}else{var c=gc("picture");if(c){f=c+".html";}}document.write(frameset("main","rows","80,"+p+",*,80",frame("title.html","title","no")+frame("t"+f,"index","no")+frame(f,"picture")+frame("button.html","button","no")))}
function frame_set_(){var f="1.html";var h=location.hash;if(h.length>1){f=h.substr(1,h.length-1)+".html";}document.write(frameset("main","rows","80,*,80",frameset("title","cols","210,*",frame("preview.html","preview","no")+frame("titel.html","titel","no"))+frameset("middle","cols","210,*",frame("indcx.html","index")+frame(f,"picture"))+frame("button.html","bottom","no")))}
function frame(u,n,s){return "<frame src=\""+u+"\" name=\""+n+"\""+(s?" scrolling=\""+s+"\"":"")+">";}
function frameset(i,r,v,c){return "<frameset id=\""+i+"\" "+r+"=\""+v+"\" border=\"0\">"+c+"</frameset>";}
function oname(path){var p=dirname(index.location.href.replace(index.location.hash,""));return p?path.replace(p+"/",""):path;}
function o_name(path){return path.replace(dirname(index.location.pathname)+"/","").replace(".html","");}
function add_path(p,u){while(u.indexOf("../")==0){u=u.substr(3,u.length-3);p=dirname(p);}return p+"/"+u;}
function out_l(){button.document.images.left.src=dirname(index.location.pathname)+"/"+start+"images/left.gif";}
function over_l(){button.document.images.left.src=dirname(index.location.pathname)+"/"+start+"images/left0.gif";}
function down_l(){button.document.images.left.src=dirname(index.location.pathname)+"/"+start+"images/left1.gif";}
function out_r(){button.document.images.right.src=dirname(index.location.pathname)+"/"+start+"images/right.gif";}
function over_r(){button.document.images.right.src=dirname(index.location.pathname)+"/"+start+"images/right0.gif";}
function down_r(){button.document.images.right.src=dirname(index.location.pathname)+"/"+start+"images/right1.gif";}
function sc(c){document.cookie="picture="+c;}
function gc(n){var a=document.cookie.split("; ");var i;var c=new Array();for (i=0;i<a.length;i++){var p=a[i].indexOf("=");if(p>=0){c[a[i].substring(0,p)]=a[i].substring(p+1);}}return c[n];}
function size_(){if (pl==0){document.getElementById("main").rows="80,0,*,80";document.getElementById("middle").cols="2,*";document.getElementById("title").cols="0,*";pl=1;}else{document.getElementById("main").rows="80,"+ph+",*,80";document.getElementById("middle").cols="210,*";document.getElementById("title").cols="210,*";pl=0;}}
function size(){if (pl==0){sm=ph;st=210;pl=1;s0();}else{pl=0;s1();}}
function s0(){if (pl==1){if (sm>0){sm-=20;document.getElementById("main").rows="80,"+sm+",*,80";}if (st>0){st-=20;document.getElementById("middle").cols=st+",*";document.getElementById("title").cols=st+",*";window.setTimeout("s0()",1);}}}
function s1(){if (pl==0){if (sm<ph){sm+=20;document.getElementById("main").rows="80,"+sm+",*,80";}if (st<210){st+=20;document.getElementById("middle").cols=st+",*";document.getElementById("title").cols=st+",*";window.setTimeout("s1()",1);}}}
function siz(){if (pl==0){document.getElementById("middle").cols="0,*";document.getElementById("title").cols="0,*";pl=1;}else{document.getElementById("middle").cols="210,*";document.getElementById("title").cols="210,*";pl=0;}}
function t(b,c,n){back=b+".html";next=n+".html";index.location.href="t"+c+".html";sc(c);}
function _s0(){pl=1;size_();}
function _s1(){pl=0;size_();}
