/* Requires window.parent to be selectr.htm and to be in iframe selectr */
var sketchgroup,igroups=5,picsLoaded,Qvar,lastQ,lastPic=0,numPics = 0;
var ti = new Array(), pWrd = new Array(), psrc = new Array(),strPicsml = new Array(),pwidth = new Array(),pheight = new Array(),ptext = new Array(),ptitle = new Array(),pwhich = new Array(),xnum = 14;
var isfromgrp=false;
if (!window.parent.document.getElementById("selectr")) {
var qq = window.location.href.substr(window.location.href.lastIndexOf("/")+1);
if (qq.indexOf("language=")<0) qq = getReferrer(qq);
window.open("Selectr.htm?grp="+qq,"_self");	/*.replace("?","&") */
}
function getReferrer(qq){var langavail= new Array("","DE","FR","SP","IT"), navail=5;var ii = document.referrer.indexOf(".htm");if (ii>-1){var y1 = document.referrer;for (var jj=1;jj<navail;jj++){if (y1.indexOf( (langavail[jj]+".") )>-1) return(qq+"?language="+langavail[jj]);}}return(qq);}
function showtext(qq){document.getElementById("theText").innerHTML=qq;
}
function loadKid(){initStrings();
/*showtext("Group "+sketchgroup+" of "+igroups+ " with "+ numPics+"<BR>In "+window.parent.window.location.href);// shows with Opera only*/
document.getElementById("theText").style.display="none";
giveDad(); 
}
function giveDad(){var dad;dad = window.parent;
dad.ti=this.ti;dad.pWrd=this.pWrd;dad.ti=this.ti;dad.psrc=this.psrc;dad.strPicsml=this.strPicsml;dad.pwidth=this.pwidth;dad.pheight=this.pheight;
dad.ptext=this.ptext;dad.ptitle=this.ptitle;dad.pwhich=this.pwhich;dad.sketchgroup=this.sketchgroup;dad.picsLoaded=this.picsLoaded;dad.numPics=this.numPics;dad.xnum=this.xnum;
dad.energize();dad.document.title=document.title;if (dad.inindexr) dad.window.parent.document.title = dad.document.title;
}

