var theLeftMenu="",popview=1,isMax=true;/*1=no popups, 0= Pop OK*/
var staplerhere=false;
function goGroupNext(xx){if (xx>0) sketchgroup=(sketchgroup<igroups)?sketchgroup+1:1;if (xx<0) sketchgroup=(sketchgroup<2)?igroups:sketchgroup-1;document.getElementById("selectr").src = xlx[sketchgroup];
}function QVtoggle(){/*0=popup,1=not quick,2=quick span insertion*/
Qvar=Qvar+1; /*if (isFile==true && Qvar>1) Qvar=0; */
if (Qvar>2) Qvar=popview;/* toggle2(Qtable); with 2 options; option 0=on all, 1=off, 2=table only */
if (Qvar==1) {document.getElementById("Qtable").style.display = "none";document.getElementById("gly").height=0;labelbtn(4);}else{document.getElementById("Qtable").style.display = "";labelbtn(Qvar);}
}function Qpaint(){if (Qvar==0)document.getElementById("Qid").src="images/QonY.gif";if (Qvar==1)document.getElementById("Qid").src="images/Qoff.gif";if (Qvar==2)document.getElementById("Qid").src="images/QonG.gif";lastQ=Qvar; labelbtn(Qvar);
}function QVhandler(cond){if (cond==3){document.getElementById("Qid").src="images/Qover.gif"; labelbtn(4);lastQ=3;return;}if (cond<3) lastQ=Qvar;if (cond==4) {QVtoggle();}Qpaint();
}function labelbtn(xx){switch(xx){case 2:document.getElementById('qvmsg').innerHTML="Mouseover to this window";break;case 0:document.getElementById('qvmsg').innerHTML="Mouseover to popup or tab";break;case 1:document.getElementById('qvmsg').innerHTML="";break;case 4:document.getElementById('qvmsg').innerHTML="Change display type";break;}/*document.getElementById('qvmsg').innerHTML+="("+Qvar+")"*/;
}function toggle2(e){if (e.style.display == "none") {e.style.display = "";} else {e.style.display = "none";}
}function setfocus(){var ii;ii = 1;document.activeElement.runtimeStyle.zIndex = document.activeElement.runtimeStyle.zIndex-1;return (true);
}function glimpse2(which){if (which<1) return;if (which>numPics) return;doStatus(which);if (Qvar==2) return;glimpse(which);
}function showNow(which){if (true/*isFile*/){stashSpan(which);return; 
}else{var zz="glimpse.htm?";doStatus(which);zz = document.location.pathname.substring(0,document.location.pathname.indexOf("Select"))+zz;window.open( zz + strLink(which),"newWin","width="+pwidth[which]+",height="+pheight[which]);lastPic=which;}
}function useSpan(which){if (which>0 && which<numPics && document.getElementById("spq"+which)) document.getElementById("spq"+which).style.color="red";if (which>0 && which<numPics && document.getElementById("spql"+which)) document.getElementById("spql"+which).style.color="red";
if (lastPic>0 && lastPic<=numPics){if (document.getElementById("spq"+lastPic)) document.getElementById("spq"+lastPic).style.color="navy";if (document.getElementById("spql"+lastPic)) document.getElementById("spql"+lastPic).style.color="navy";}document.getElementById("afsq").style.visibility="visible";
var zz = ptext[which];var z1="\"none\"";zz = "<center><table cellspacing='0' cellspacing='0' border='0'><tr valign='top'><td id='stretcher'><img id='stretchimg' src='images/600w.gif' alt='' width='1' height='"+ pheight[which]+"' style='visibility:hidden;' align='left'></td><td id='glycell' style='text-align:center;vertical-align:top;'><div onmouseout='javascript:document.getElementById(\"idx\").src=xup;' onmouseover='javascript:document.getElementById(\"idx\").src=xdn;if(document.getElementById(\"Qtable\").style.display==\"\"){document.getElementById(\"spq"+which+"\").style.color=\"red\";}if(document.getElementById(\"spql"+which+"\"))document.getElementById(\"spql"+which+"\").style.color=\"red\"'><div id='titlearea' style='text-align:center;width:90%;font-size:12px;'>"+zz+" &nbsp; <img src="+xup+" id='idx' height='9' width='9' onmouseout='javascript:this.src=xup' onmouseover='javascript:this.src=xcl' alt='' title='See all small'><\/div><img src='"+psrc[which]+"' title='"+ zz + "' alt='" + zz + "' style='border:0px;' onmousedown='javascript:document.getElementById(\"glyspan\").style.display="+z1+";' id='stashed' onclick='javascript:stashing=false;'><br><\/div><\/td><\/tr><\/table><\/center>"; return(zz);
}function stashSpan(which){stashing=true;var xh,xw,sh,sw,ph,pw;xw=document.body.offsetWidth-186;
/*document.getElementById("glyspan").innerHTML="<img src='images/600w.gif' alt='' width='1' height='"+ pheight[which]+"' style='visibility:hidden;'>"*/
document.getElementById("glyspan").innerHTML= useSpan(which);lastPic=which;document.getElementById("glyspan").width=document.getElementById("picholder").width;document.getElementById("glyspan").height=document.getElementById("picholder").height;document.getElementById("glyspan").style.width=document.getElementById("picholder").style.width;document.getElementById("glyspan").style.height=document.getElementById("picholder").style.height;document.getElementById("picholder").style.display="none";document.getElementById("glyspan").style.display="";sw=pwidth[which];if (sw>xw || isMax){xw = fitter(which);document.getElementById("stashed").width=xw;document.getElementById("stretcher").innerHTML='';try{document.getElementById("stashed").title=ptext[which]+" ("+((100*xw)/pwidth[which]).toFixed(0)+"%)";}catch(e){document.getElementById("stashed").title=ptext[which]+" ("+((100*xw)/pwidth[which])+"%)";}finally{};}pickarrow(0);}
function fitter(ii){var fw,fh,xw,ph,xh;fw = (document.getElementById("l2").style.display=="")?186:0;fh = (document.getElementById("l2").style.display=="")?document.getElementById("row3").offsetHeight:0;xw = document.body.offsetWidth-fw;xh = document.body.clientHeight-document.getElementById("toptable").offsetHeight-fh-20;/*-text desc + if quickview*/
try{ph = ((xw/pwidth[ii])* pheight[ii]).toFixed(0);if (ph>xh) xw = ((xh/pheight[ii])*pwidth[ii]).toFixed(0);}catch(e){ph = ((xw/pwidth[ii])* pheight[ii]);if (ph>xh) xw = ((xh/pheight[ii])*pwidth[ii]);}finally{};document.getElementById("stretchimg").height=ph;/*innerHTML='';*/return(xw);}
function stasharrows(stloc){ var qq=""; if (staplerhere) qq+="<img src='images/pinDn.gif' title='Float this' height='14 width='14' id='staple' onmouseover='javascript:this.src=isover;' onmouseout='javascript:pickpin();' onclick='javascript:stapler();'><span id='spacedyn' style='width:10px;height:1px;'> </span>";qq+="<img id='afsq' src='images/afsq.jpg' title='All' onclick='javascript:nextpic(-1);' onmouseover='javascript:this.title=document.getElementById(\"tx0\").innerHTML+\" group\";if (stashing!=false) this.src=\"images/afsqo.jpg\"' onmouseout='this.src=\"images/afsq.jpg\"' onmouseup='this.src=\"images/afsqo.jpg\"' onmousedown='this.src=\"images/afsqd.jpg\"' alt='All' height='14' width='14' style='cursor:pointer;visibility:hidden;'><br><img id='idafar' src='images/afar.gif' title='Next' onclick='javascript:nextpic(1);pickarrow(1);' onmouseover='javascript:pickarrow(1);' onmouseout='javascript:pickarrow(0);' onmouseup='this.src=\"images/afaro.gif\"' onmousedown='javascript:this.src=\"images/afard.gif\";' alt='Next' width='41' height='16' style='cursor:pointer;padding-top:2px;'><br><img src='images/afal.gif' title='Previous' id='idafal' onclick='javascript:nextpic(0);' onmouseover='javascript:pickarrow(-1);' onmouseout='javscript:pickarrow(0);' onmouseup='this.src=\"images/afalo.gif\"' onmousedown='this.src=\"images/afald.gif\"' alt='Previous' width='41' height='16' style='cursor:pointer;padding-bottom:2px;'>";document.getElementById(stloc).innerHTML="<div id='cntrl1' style='width:66px;text-align:center;'>"+qq+"<\/div>";if (inindexr==false && document.getElementById("sideli")) document.getElementById("sideli").style.display="";}
function pickarrow(opt){var qq="images/afar"; backLeap=(document.getElementById("picholder").style.display=="")?false:true;
if (!document.getElementById('idafar')) return;if (lastPic==picsLoaded) qq+="r"; qq+=(opt>0)?"o":""; 
document.getElementById('idafar').src=(qq+'.gif');document.getElementById('idafar').title=(lastPic==picsLoaded)?"Proceed to "+document.getElementById("tx1").innerHTML:"Next ("+ti[lastPic+1]+")";
if (backLeap){qq = "images/afal";if (lastPic<2) qq+="l";if (opt<0) qq +="o";qq+= ".gif";if (lastPic<2){ /* dbl arrow back*/var jj=(sketchgroup<2)?igroups:sketchgroup-1;document.getElementById('idafal').title="Back to "+ xtx[jj];document.getElementById('idafal').src=qq;
}else{document.getElementById('idafal').title=(lastPic<2)?"Show "+ti[picsLoaded]:"Previous ("+ti[lastPic-1]+")";document.getElementById('idafal').src=qq;}
}else{document.getElementById('idafal').title=(lastPic<2)?"Show "+ti[picsLoaded]:"Previous ("+ti[lastPic-1]+")";document.getElementById('idafal').src="images/afal"+((opt<0)?"o":"")+".gif";}
}function framechoices(opt){
var bfyl=".jpg", isb=(inindexr==false)?"0":"1", ifr=(document.getElementById("l2").style.display=="")?"1":"0";
var abtn="images/afsb"+isb+"fr"+ifr,sbtn="images/afsb"+((isb=="0")?"1":"0")+"fr"+ifr,fbtn="images/afsb"+isb+"fr"+((ifr=="0")?"1":"0");
var qq="<div id='cntrl2' style='width:60px;padding:3px;text-align:center;'><img src='"+abtn+bfyl+"' onclick='javascript:orgchange("+opt+");pickarrow(0);' onmouseover='javascript:this.src=\""+fbtn+"o"+((isb==1 && isb==1)?"f":"")+bfyl+"\";'  onmouseout='javascript:this.src=\""+abtn+bfyl+"\";' alt='"+((opt)?"Hide":"Show")+" frame' title='"+((opt)?"Hide":"Show")+" frame' id='frmbtn' style='cursor:pointer;' width='14' height='14'>";
qq+="&nbsp; <span onclick='javascript:sideproc();'><img border='0' src='"+abtn+bfyl+"' title='"+ ((inindexr)?"Hide":"Show") +" sidebar' alt='Sidebar frame visibility' onmouseover='javascript:this.src=\""+sbtn+"o"+bfyl+"\";'  onmouseout='javascript:this.src=\""+abtn+bfyl+"\";' id='sidebtn' style='cursor:pointer;' width='14' height='14'>";
qq+="<\/span><\/div>";return(qq);}
function sideproc(){var qq = "Selectr.htm";if (document.location.href.indexOf("ectr.")<0) qq = "SelectB.htm"; if (inindexr==false) qq = "indexr.htm?src=" + qq;qq = makegets(qq);if (document.getElementById("afsq").style.visibility!="hidden" && lastPic>0) {if (lastPic<1) lastPic=1;qq+="?isat="+lastPic;}if (qq.indexOf("?")==0 || qq.indexOf("undefined")>-1){alert("Try something else.");}else window.open(qq,"_parent");
}function setlinksbg(opt){window.parent.allsamebg("");window.parent.allsamebc((opt)?bgclrb:bgclra);if (parent.window.document.getElementById('wpfLinks')){parent.window.document.getElementById('wpfLinks').contentWindow.document.bgColor=(opt)?bgclrb:bgclra;if (window.navigator.appName=="Opera" && false)parent.window.document.getElementById('wpfLinks').contentWindow.document.body.style.backgroundImage="";}
}function orgchange(opt){if (document.getElementById("xtratext1").innerHTML=="&nbsp;") document.getElementById("xtratext1").innerHTML=resctrl("1")+"";document.getElementById("xtratext1").style.visibility=(opt)?"visible":"hidden";var dsply=(opt)?"none":"";document.getElementById("l1").style.display=dsply;document.getElementById("l2").style.display=dsply;document.getElementById("r2").style.display=dsply;document.getElementById("r3").style.display=dsply;document.getElementById("cellx2").style.display=dsply;document.getElementById("c4").innerHTML=(opt)?(cpyrt()+', William P Fritz'):"";document.getElementById("row3").style.display=dsply;document.getElementById("r1").style.backgroundImage=(opt)?"":"url(images/afur.jpg)";document.getElementById("c2").colSpan=(opt)?2:1;document.getElementById("l3").style.display=dsply;document.getElementById("c2").style.backgroundColor=(opt)?bgclra:bgclrw;document.bgColor=(opt)?bgclra:bgclrb;document.body.style.backgroundColor=(opt)?bgclra:bgclrb;if (inindexr) setlinksbg(!opt);if (opt){stasharrows("cellx"); document.getElementById("cellx").innerHTML+=framechoices(!opt);}else{stasharrows("l2a");document.getElementById("l2a").innerHTML+=framechoices(!opt);document.getElementById("cellx").innerHTML="&nbsp;";}if (staplerhere) pickpin();
}function resizeframe(){adjustmenu();if (stashing) stashSpan(lastPic);
}function adjustmenu(){var qq=""; if (document.body){ if (document.body.offsetWidth<900) qq="none";}if(document.getElementById("slbl")) document.getElementById("slbl").style.display=qq;if (document.getElementById("slbl2")) document.getElementById("slbl2").style.display=qq;if (document.getElementById("cellx")){qq=(qq=="")?"66":"1";document.getElementById("cellx").width=qq;document.getElementById("cellx").style.width=qq+"px";}
}function nextpic(opt){if (opt){if (opt<0){stashing=false;document.getElementById("gly").style.display="none";document.getElementById("glyspan").style.display="none";document.getElementById("picholder").style.display="";pickarrow(0);if (document.getElementById("afsq")) document.getElementById("afsq").style.visibility="hidden";return;}if (lastPic<numPics) stashSpan(lastPic+1);else { contShow();}}else{if (lastPic>1) stashSpan(lastPic-1);else {if (backLeap){if (isSelect){goGroupNext(-1); showNow(numPics);}}else stashSpan(numPics);}}pickarrow(0);/*if (inindexr) setlinksbg(false);document.bgColor=bgclra;bgclra=bgclradft;*/
}function leftside(xx){for (var ii=1;ii<4;ii++)document.getElementById("l"+ii).style.display=xx;
}function glimpse(which){var targ="gly"; var yy=0;doStatus(which);if (lastPic==which) return;if (Qvar==1) return; /* 0=out, 2=frame */if (Qvar==2){stashSpan(which);pickarrow(0);return;}if (window.navigator.appName=="Microsoft Internet Explorer" && window.navigator.appVersion.indexOf('MSIE 5.')>0) targ="newWin";if (window.navigator.appName=="Netscape"){yy = window.screenY + window.outerHeight-window.innerHeight-window.scrollY; /*- 30 compensate for bottom of frame */}else{yy = window.screenTop ;}if (targ=="newWin" || Qvar==0)yy= document.getElementById("Qtable").offsetTop + document.getElementById("Qtable").offsetHeight + yy;var zz="glimpse.htm?topY=" + (yy*1) + "&amp;";if (targ=="newWin" || Qvar==0){zz = document.location.pathname.substring(0,document.location.pathname.indexOf("Select"))+zz;window.open(zz+strLink(which),"newWin","width="+pwidth[which]+",height="+pheight[which]);}else{if ((window.navigator.appName+window.navigator.appVersion).indexOf("Safari")==-1){zz+=strLink(which)+",'" + targ + "',width=" + pwidth[which] + ",height=" + pheight[which];document.getElementById(targ).src = zz;}else{ stashSpan(which);}}lastPic=which;pickarrow(0);
}function strLink(which){return("src="+ psrc[which]+ "&amp; title=" + ptitle[which].replace(/ /g,"%20") + "&amp; width="+ pwidth[which] + "&amp; height=" + pheight[which] + "&amp; text=\"" + ptext[which].replace(/ /g,"%20")+"\"" );
}function xtrans(lng){var jj, ii, yy="";if (incoming.indexOf("language=")>-1){yy = incoming.substring(incoming.indexOf("language=")+9).substring(0,2);
}else{ii = document.referrer.indexOf(".htm");if (ii>-1){var y1 = document.referrer.substring(0,ii);if (lng==""){/* if the metalang... */
for (jj=1;jj<navail;jj++){if (y1.indexOf(langavail[jj])>-1) yy=langavail[jj];}if (lng==""){lng=0;}}}}
for (jj=1;jj<navail;jj++){if (yy==langavail[jj]) {lng=jj; langnow=jj;}}
if (lng==0)if (document.getElementById("tx10").innerHTML.indexOf("and")>-1) return;
var bgn = lng*(xnum);for (ii=xlnk+1;ii < xnum-1; ii++)document.getElementById('tx'+ (ii-1)).innerHTML = xtx[bgn+ii];
for (ii=1; ii <4; ii++)document.getElementById('tx'+ ii).innerHTML = xtx[bgn+ii];document.getElementById('tx0').innerHTML = xtx[bgn+sketchgroup];document.getElementById('txx').innerHTML = xtx[bgn+xnum-1];document.getElementById('tx00').innerHTML = xtx[bgn];document.title = xtx[bgn+sketchgroup];
for (ii=4; ii < 8; ii++)document.getElementById('lnk'+ii).href = xly[ii].substr(0,xly[ii].indexOf(".h"))+yy+".htm";
rearrangeout(sketchgroup,lng*xnum);for (ii=1; ii < 4; ii++){document.getElementById('lnk'+ii).href = xlx[islot[ii]] + "?language=" + yy;}
document.getElementById('lnk10').href = xly[10].substring(0,xly[10].indexOf(".h"))+yy+".htm";document.getElementById('lnk9').href = xly[9] + "?language=" + yy;
if (yy=="SP") yy="ES"; document.getElementById('thetable').lang=yy;if (lng==1) document.getElementById('Qid').title = "Mouseovers - Grün gleiches window, Gelb: tauchen Sie auf";
}function doStatus(x){window.status = ti[x];
}function correctOffsets(){var ii;var jj=10;if (this.name=="gly")jj=0;/*if (window.navigator.appName!="Microsoft Internet Explorer") jj+=10;*/for(ii=1;ii<numPics;ii++) pheight[ii] = pheight[ii]*1 + jj;
}function insertCells(){var qq; qq="images/FritzSHs.gif"; var zz;if (window.navigator.appName=='Microsoft Internet Explorer'){/*zz= "<iframe src='"+ qq + "' style='margin:0px;frameSpacing:0px;frameBorder:0px;border:2px;height:0px' scrolling='auto' width='100%' height='0' frameborder='0' framespacing='0' name='gly' border='0' id='gly' marginwidth='0' marginheight='0'><\/iframe>";*/document.getElementById("gly").style.border=0;}zz = "<center>";	var jj=1;do{zz +="<span id='cell"+ jj +"'><\/span>"; jj++;}while (jj<=picsLoaded);document.getElementById("picholder").innerHTML = zz+"<\/center>";
}function fillAnchors(){var ii=1, qq, zz, cursr = "help";if (window.navigator.appName.indexOf("Explorer")>0) cursr = "url(images/crsr/camera1.cur)";do{if (strPicsml[ii].length>0){qq=strLink(ii);zz = "<span id=" + pWrd[ii] + " name=" + pWrd[ii] + " onclick=\'javascript:showNow("+ ii+")\' style='cursor:" + cursr + "'><img src=";zz+=(strPicsml[ii].length>0 && strPicsml[ii].indexOf(";")>-1)?strPicsml[ii].substr(0,strPicsml[ii].indexOf(";"))+" onmouseover=\'javascript:this.src=\""+strPicsml[ii].substr(strPicsml[ii].indexOf(";")+1)+"\"\;this.title=\""+ti[ii]+"\"' onmouseout=\'javascript:this.src=\""+strPicsml[ii].substr(0,strPicsml[ii].indexOf(";"))+"\"\'":strPicsml[ii];zz+=" border=\'0\' title=\'Click to see  " + ptext[ii] +"' alt='" + ptext[ii] +"\'><\/span>\n";document.getElementById('cell'+ii).innerHTML=zz;}ii++;}while(ii <= numPics);
}function fillQuick(){var ii=1;var qqq="&nbsp;&nbsp;";theLeftMenu="";do{if (ii>99) return; theLeftMenu = theLeftMenu + "<a href='javascript:glimpse("+ii+")' id='il"+ii+"' onclick='javascript:if (Qvar==2) return;var old=Qvar;Qvar=2;glimpse("+ii+");Qvar=old;' onmouseover='javascript:glimpse("+ii+")'><span class='qvl' id='spql"+ii+"' >"+pWrd[ii]+"<\/span><\/a><\/br>\n";/*bqw2n orig background*/
qqq = qqq + "<a href='javascript:glimpse("+ii+")' id='il"+ii+"' onmouseover='javascript:glimpse("+ii+")'><span class='qv' id='spq"+ii+"' onmouseover='this.style.color=\"#ff0000\";this.style.backgroundImage=\"url(SteelBlu.gif)\"' onmouseout='this.style.color=\"navy\";this.style.backgroundImage=\"url(images/Selectbtn.gif)\"'>"+pWrd[ii]+"<\/span><\/a>&nbsp;\n";ii=ii+1;}while(ii <= numPics);
document.getElementById('QtableCell').innerHTML = qqq + numPics + " images.   <span class='qv' style='cursor:help;' onmouseover='javascript:nextpic(-1);'>[group]<\/span>";
if (document.getElementById('leftmen')) document.getElementById('leftmen').innerHTML = resctrl("")+"<br>" + theLeftMenu + numPics + " images.<br><span class='qvl' style='cursor:help;' onmouseover='javascript:nextpic(-1);' width='24' height='24'>[group]<\/span>";
document.getElementById("mag").src=(isMax)?"images/Swmg.gif":"images/Swmgr.gif";
}function resctrl(qq){return("<img id='mag"+qq+"' src='images/Swmg.gif' alt='' title='Show at picture resolution' onmousedown='javascript:this.src=(isMax)?\"images/Swmgovr.gif\":\"images/Swmgov.gif\";' onclick='javascript:isMax=(isMax)?false:true;var xx=(lastPic>0 && lastPic<=numPics)?lastPic:1;lastPic=0;stashSpan(xx);this.title=(isMax)?\"Show at picture resolution\":\"Fit to screen\";' style='padding:2px;' onmouseover='this.src=(isMax)?\"images/Swmgov.gif\":\"images/Swmgovr.gif\";' onmouseout='javascript:this.src=(isMax)?\"images/Swmgot.gif\":\"images/Swmgr.gif\";'>");
}function assignslot(x){islot[x]=sketchgroup+x; if (islot[x]>xlnk) islot[x]=islot[x]-xlnk;
}function rearrangeout(sg,ofst){document.getElementById("tx0").innerHTML=xtx[sg+ofst];var ii;for (ii=1;ii<4;ii++){document.getElementById("tx"+ii).innerHTML=xtx[islot[ii]+ofst];document.getElementById("lnk"+ii).href=xlx[islot[ii]];document.getElementById("lnk"+ii).title=xtx[islot[ii]+ofst];}
}function timerout(){if (oInterval=="") document.getElementById("timerspot").src='images/hbar/Timeroff.gif';else{ document.getElementById("timerspot").src='images/hbar/Timergreen.gif';document.getElementById("qvmsg").innerHTML=iInterval/1000+" seconds/picture";}}
function nutime(xx){document.getElementById("timerspot").src="images/hbar/Timeroff.gif";document.getElementById("timerspot").style.display=""; document.getElementById("hbar").style.display="none";if (xx==0){ if (oInterval!='') window.clearInterval(oInterval);oInterval=""; iInterval="";document.getElementById('qvmsg').innerHTML="Timer off";return; }document.getElementById('qvmsg').innerHTML=xx + " seconds/picture now";nextImage();iInterval=xx * 1000;timedimage=whichimage;if (oInterval!='') window.clearInterval(oInterval);oInterval=window.setInterval('nextImage()',iInterval);timerout();}
function contShow(){var qq = document.getElementById("lnk1").href;qq = makegets(qq);document.getElementById("tx1").style.color="yellow";document.getElementById("tx0").innerHTML="One Moment...";if (isSelect) goGroupNext(1); else window.open(qq,"_self");}
function addget(qq,nu){var argtoken="?";var zz="";if (qq.indexOf("src=")>0){zz=qq.substring(0,qq.indexOf("src=")+4);qq=qq.substring(qq.indexOf("src=")+4);}if (qq.indexOf("?")>0) qq+=argtoken;else qq+="?";return(zz+qq+nu);}
function parseAget(qq,zz){var ii,jj;if (zz=="") zz=window.document.location.href;qq+="=";jj=zz.indexOf(qq);if (jj>-1) {jj+=qq.length;zz=zz.substring(jj);if (zz.indexOf("?")>0) zz=zz.substring(0,zz.indexOf("?"));if (zz.indexOf("&")>0) zz=zz.substring(0,zz.indexOf("&"));return(zz);}return("");}
function presentOne(qq){if (Qvar==1)showNow(qq);else glimpse(qq);}
function nextImage(){if (whichimage<=numPics){presentOne(whichimage++);}else{ if (oInterval!=""){contShow(whichimage);}else{whichimage=1;presentOne(whichimage++);}}}
function energize(){var jj; for (jj=0; jj<igroups; jj++) assignslot(jj);rearrangeout(sketchgroup,0);insertCells();correctOffsets();fillQuick();lastPic=0;whichimage=1;fillAnchors();xtrans("");nextpic(-1);pickarrow(0);
document.getElementById("tx1").style.color="";if (isSelect) {	for (jj=1; jj<4; jj++){ document.getElementById( ("lnk"+jj) ).target="selectr";}}}
function makegets(qq){if (document.location.href.indexOf("ectr.")>0){
if (qq.length>0) qq += "?grp="+xlx[sketchgroup];
else qq = xlx[sketchgroup];/*could be the stripped contents of the frame selectr*//*alert("in makegets with "+qq);*//*if (lang.length>0) qq+="?language="+lang;  error (?) stashspan makegets sideproc*/}
if (langnow>-1) qq+="?language="+langavail[langnow];
if (document.getElementById("l2").style.display.length<1) qq=addget(qq,"frame=true");
if (oInterval!="") qq=addget(qq,"timer="+(iInterval/1000));
if (Qvar!=1) qq=addget(qq,"qv="+Qvar);
return(qq);}
function quickproc(){if (Qvar<2){document.getElementById("Qtable").style.display="none";return;}if (document.getElementById("l2").style.display=="none"){
document.getElementById("Qtable").style.display="";}else{if (document.getElementById("l2").innerHTML.indexOf("leftmen")<0) document.getElementById('l2').innerHTML+=theLeftMenu;document.getElementById("Qtable").style.display="none";document.getElementById("Qid").style.display="none";document.getElementById("qvmsg").style.display="none";} fillQuick();}
function cpyrt(){var d=new Date();return('Copyright © '+ d.getFullYear());}
function doOnUnload(){if (oInterval!="") window.clearInterval(oInterval);if (inindexr){bgclrb="";setlinksbg(true);}}
function doOnLoad(){
try {if (stapler) staplerhere=true;}catch(e){}finally{};
document.getElementById("Qtable").style.display="none";document.getElementById("xtratext1").innerHTML=resctrl("1")+"<br><b>View</b>";
orgchange(!framestart);adjustmenu();Qvar=1;lastQ=0;if (window.location.protocol.indexOf("file")>-1) isFile=true;
if (!numPics) initselectr();/* only initialize from getDad. Actual selectr onload is second. */
/* add resize the displayed image here */
else{var qq=parseAget("qv",incoming);
if (qq!=""){ Qvar=qq*1;quickproc();if (Qvar==1) {document.getElementById("Qtable").style.display = "none";document.getElementById("gly").height=0;labelbtn(4);}
else {document.getElementById("Qtable").style.display = "";labelbtn(Qvar);Qpaint();}}
qq = parseAget("timer",incoming);if (qq!="") nutime(qq);if (framestart==true) orgchange(false);else{if (inindexr==true)setlinksbg(false);}
qq=parseAget("isat",incoming);if (qq!=""){ showNow(qq*1); lastPic=qq*1;pickarrow(0);}
if (window.navigator.appName.indexOf('Explorer')>0){ var stcrsr = "hand";/* stcrsr="images/crsr/camera1.cur";*/ var ptrs = new Array("tx00","timerspot","sideli","idafar","idafal","afsq","frmbtn","sidebtn");for (var ii=0; ii<ptrs.length;ii++) document.getElementById(ptrs[ii]).style.cursor=stcrsr;}
}}
function initselectr(){
initStrings(); /* the frame loads before the parent executes this onload */
energize();/*for (var ii=4;ii<11;ii++) xly[ii]=document.getElementById(("lnk"+ii)).href;*/
if (document.getElementById("selectr")) document.getElementById("selectr").style.display="none";
if (document.getElementById("lnk7")){if (document.getElementById("lnk7").href.indexOf("index.htm")>-1) 
if (window.navigator.appName.indexOf("Opera")>-1) document.getElementById("lnk7").href="index.htm";
else document.getElementById("lnk7").href+="?shade=shaded";
}if (window.navigator.appName.indexOf("Opera")>-1){ document.getElementById("timerspot").style.display="none"; }
if (window.navigator.appName.indexOf("Explorer")>-1){ document.getElementById("hbar").scroll='no'; }
window.focus();window.onunload=doOnUnload;whichimage=1;}
window.onresize=resizeframe;
function keyfunc(e){ var qq=""; var indiv = (document.getElementById("picholder").style.display=="none")?true:false;
if (document.all) e=window.event;
/*document.getElementById("tx1").innerHTML=e.keyCode;*/
if (lastPic<1) lastPic=1;
switch(e.keyCode){/*16shift,40dn38up35end36home37lft39rt*/
case(16):break;
case (40):if (indiv) {nextpic(-1);}/*document.getElementById("selectr").src=document.getElementById("lnk1").href; */
else showNow(lastPic);break;//return(false);
case (38):if (indiv) nextpic(-1);else {showNow(lastPic);}break;
case (35):qq=numPics;
case (36):if (qq=="") qq=1;showNow(1*qq);lastPic=qq*1;pickarrow(1);break
case (65):prepit();break;
case (37):nextpic(0);break;
default:case (39):nextpic(1);break;
}return(true);}
document.onkeydown=keyfunc;
function prepit(){var qq="",w=0,h=0;if (document.getElementById("buf").innerHTML.indexOf("<img")>-1){assess();}else{for (ii=1;ii<strPicsml.length;ii++){qq+="<img id=\"tst"+ii+"\" src=\""+psrc[ii]+"\" alt=\"\" title=\""+ptitle[ii]+"\">";}document.getElementById("buf").innerHTML = qq;}
}function assess(){var yy;var qq="";for (ii=1;ii<strPicsml.length;ii++){yy = "tst"+ii;h = document.getElementById(yy).height;w = document.getElementById(yy).width;qq+="pwidth["+ii+"]="+w+"; pheight["+ii+"]="+h+";<br>";}document.getElementById("buf").innerHTML=qq;}
