nblksmssg='Bitte geben Sie einen Text ein.';var MSIE=false;var DOM2=false;var CSS1=false;if(navigator.appName.substr(0,9)=='Microsoft')
MSIE=true;else if(navigator.appName.substr(0,8)=='Netscape')
DOM2=true;if(document.compatMode=='CSS1Compat')
CSS1=true;function newElm(tag){return document.createElement(tag);}
function newTxt(content){return document.createTextNode(content);}
function getObj(id){if(id==null)
return document;if(document!=null)
return document.getElementById(id);if(window.document!=null)
return window.document.getElementById(id);if(this.document!=null)
return this.document.getElementById(id);return null;}
function getFrm(id){if(id==null)
return window;if(window.frames!=null)
return window.frames[id];if(this.window.frames!=null)
return this.window.frames[id];return null;}
function getElm(name){var elms=document.getElementsByName(name);for(var e=0;elms&&(e<elms.length);e++)
return elms.item(e);return null;}
function getTag(name){var elms=document.getElementsByTagName(name);for(var e=0;elms&&(e<elms.length);e++)
return elms.item(e);return null;}
function getElms(name){return document.getElementsByName(name);}
function getTags(name){return document.getElementsByTagName(name);}
function getEvt(event){if(!event)
return window.event;return event;}
function getKey(event){if((typeof event=='undefined')||(typeof event.keyCode=='undefined'))
return window.event.keyCode;return event.keyCode;}
function getTE(event){if(!event)
return null;if(event.target)
return event.target;else if(event.srcElement)
return event.srcElement;return null;}
function getFromTE(event){if(!event)
return null;if(event.relatedTarget)
return event.relatedTarget;else if(event.fromElement)
return event.fromElement;return null;}
function getToTE(event){if(!event)
return null;if(event.relatedTarget)
return event.relatedTarget;else if(event.toElement)
return event.toElement;return null;}
function d2num(num,signed){num=Math.floor(num+0.5);var sign=(signed==true?(num<0?'-':'+'):'');num=Math.abs(num);if(num<10)
return sign+'0'+num;return sign+''+num;}
function f2num(num,signed){var sign=(signed==true?(num<0?'-':'+'):'');num=Math.abs(num);var nat=Math.floor(num);var rem=d2num((num-nat)*100,false);return sign+''+nat+(rem!=0?'.'+rem:'');}
function f2float(num,signed){var sign=(signed==true?(num<0?'-':'+'):'');num=Math.abs(num);var nat=Math.floor(num);var rem=d2num((num-nat)*100,false);return sign+''+nat+'.'+rem;}
function amount(bytes){var units=['bytes','KB','MB','GB','TB'];var unit=0;while(bytes>=10000){bytes/=1024;unit++;}
return f2num(bytes,false)+' '+units[unit];}
function clearSelect(field){while(field.options.length>0){if(field.options.remove)
field.options.remove(0);else
field.options[0]=null;}}
function appendSelect(field,values){var d=0;for(val in values)
field.options.add(new Option(values[val],d++,false,false));}
function appendSelectNames(field,values){for(var d=0;d<(values.length>>1);d++)
field.options.add(new Option(values[(d<<1)+1],values[(d<<1)+0],false,false));}
function appendSelectKeys(field,values){for(var key in values)
field.options.add(new Option(values[key],key,false,false));}
function fillSelect(field,values){clearSelect(field);appendSelect(field,values);}
function fillSelectNames(field,values){clearSelect(field);appendSelectNames(field,values);}
function fillSelectKeys(field,values){clearSelect(field);appendSelectKeys(field,values);}
function selectValue(field,value){for(var d=0;d<field.options.length;d++)
if(field.options.item(d).value==value){field.value=value;field.selectedIndex=d;break;}}
function selectText(field,text){for(var d=0;d<field.options.length;d++)
if(field.options.item(d).text==text){field.value=field.options.item(d).value;field.selectedIndex=d;break;}}
function switchDisplay(dobj){if(!dobj)
return;if(dobj.style.display=='none')
dobj.style.display='block';else
dobj.style.display='none';}
function transImage(img,path){if(MSIE==true){img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+path+"');";img.src="pics/blank.gif";}
else
img.src=path;}
function checkWHStyle(img){if((img.style.left!=null)&&(img.style.left!='')&&(img.style.right!=null)&&(img.style.right!='')&&(img.style.width!=null)&&(img.style.width!='')&&(img.style.width.indexOf('%')!=-1))
if(MSIE==false)
img.style.width=null;if((img.style.top!=null)&&(img.style.top!='')&&(img.style.bottom!=null)&&(img.style.bottom!='')&&(img.style.height!=null)&&(img.style.height!='')&&(img.style.height.indexOf('%')!=-1))
if(MSIE==false)
img.style.height=null;}
function setAlpha(id,path){var img=getObj(id);if(img!=null)
if(MSIE==true){img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+path+"');";img.src="pics/trans.gif";}
else{checkWHStyle(img);img.src=path;}
return img;}
function setAlphaScale(id,path){var img=getObj(id);if(img!=null)
if(MSIE==true){img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+path+"', sizingMethod='scale');";img.src="pics/trans.gif";}
else{checkWHStyle(img);img.src=path;}
return img;}
function measureEventX(evt){if(MSIE==true){if(document!=null)
if(document.body!=null)
return window.event.clientX+document.body.scrollLeft;return 0;}
return evt.pageX;}
function measureEventY(evt){if(MSIE==true){if(document!=null)
if(document.body!=null)
return window.event.clientY+document.body.scrollTop;return 0;}
return evt.pageY;}
function measureFrameWidth(frmid){var fobj=getFrm(frmid);var frmw;if(fobj!=null){if(MSIE==true){if(fobj.document!=null)
if(fobj.document.body!=null)
frmw=fobj.document.body.scrollWidth;}
else{fobj.scrollBy(10000000,0);frmw=fobj.innerWidth-0;frmw+=fobj.pageXOffset;fobj.scrollBy(-10000000,0);}}
return frmw;}
function measureFrameHeight(frmid){var fobj=getFrm(frmid);var frmh;if(fobj!=null){if(MSIE==true){if(fobj.document!=null)
if(fobj.document.body!=null)
frmh=fobj.document.body.scrollHeight;}
else{fobj.scrollBy(0,10000000);frmh=fobj.innerHeight-0;frmh+=fobj.pageYOffset;fobj.scrollBy(0,-10000000);}}
return frmh;}
function offsetXFrame(frmid){var fobj=getFrm(frmid);var frmo;if(fobj!=null){if(MSIE==true){if(fobj.document!=null)
if(fobj.document.body!=null)
frmo=fobj.document.body.scrollLeft;}
else
frmo=fobj.pageXOffset;}
return frmo;}
function offsetYFrame(frmid){var fobj=getFrm(frmid);var frmo;if(fobj!=null){if(MSIE==true){if(fobj.document!=null)
if(fobj.document.body!=null)
frmo=fobj.document.body.scrollTop;}
else
frmo=fobj.pageYOffset;}
return frmo;}
function rethinkSize(frmid){var cobj=getObj('content');var nobj=getObj('nav_left');var iWidth,iHeight;if((cobj==null)||(nobj==null))
return;if(MSIE==true){iWidth=document.body.clientWidth;iHeight=document.body.clientHeight;}
else{iWidth=window.innerWidth-2;iHeight=window.innerHeight-2;}
cobj.style.height='0px';nobj.style.height='0px';var crmh=measureFrameHeight('content');var nrmh=measureFrameHeight('nav_left');var frmh=Math.max(crmh,nrmh);if(!isNaN(frmh)){cobj.style.height=frmh+'px';nobj.style.height=frmh+'px';}}
var lWidth=0,lHeight=0;function rethinkPopUp(dWidth,dHeight,preserve){var iWidth,iHeight;window.moveTo(50,50);if(MSIE==true){iWidth=document.body.clientWidth;iHeight=document.body.clientHeight;}
else{iWidth=window.innerWidth;iHeight=window.innerHeight;}
if(preserve){var dAspect,iAspect;var pWidth,pHeight;dAspect=dWidth/dHeight;iAspect=iWidth/iHeight;pWidth=iHeight*dAspect;pHeight=iWidth/dAspect;if(iAspect>dAspect){dWidth=pWidth;dHeight=dWidth/dAspect;}
else
if(dAspect>iAspect){dHeight=pHeight;dWidth=dHeight*dAspect;}}
if(((dWidth!=iWidth)||(dHeight!=iHeight))&&((lWidth!=iWidth)&&(lHeight!=iHeight))){lWidth=iWidth;lHeight=iHeight;window.resizeBy(dWidth-iWidth,dHeight-iHeight);setTimeout(function(){rethinkPopUp(dWidth,dHeight,preserve);},500);}}
function getQueryVariable(variable,uri){var url=(uri?uri:window.location.href);var uris=url.split("?");if(uris[1]!=null){var qvars=uris[1].split("&");for(var i=0;i<qvars.length;i++){var pair=qvars[i].split("=");if(pair[0]==variable)
return pair[1];}}
return null;}
function getQueryInternal(uri){var url=(uri?uri:window.location.href);var uris=url.split("#");return uris[1];}
function placeQuery(url,vararray,inverse){var uris=url.split("?");if(!uris[1])uris[1]='';var urir=uris[1].split("#");if(!urir[1])urir[1]='';var vars=vararray;if(urir[0]!=null){var qvars=urir[0].split("&");for(var i=0;i<qvars.length;i++){var pair=qvars[i].split("=");if(inverse){if(vars[pair[0]]!=null)
vars[pair[0]]=pair[1];}
else{if(vars[pair[0]]==null)
vars[pair[0]]=pair[1];}}}
var conc='';for(var key in vars)
if((vars[key]!=null)&&(vars[key]!='null')&&(vars[key]!=''))
conc+=(conc==''?'?':'&')+key+'='+vars[key];if(urir[1])
conc+='#'+urir[1];return conc;}
function placeQueryInternal(url,position){var uris=url.split("#");var urin=(uris[0]!=null)?uris[0]:'';if((position!=null)&&(position!=''))
urin+='#'+position;return urin;}
function rewriteLocalURL(url){var uri=url;if((uri.charAt(1)==':')&&(uri.charAt(2)=='\\')){uri='file:///'+uri.replace(/\\+/g,'/');}
else if(uri.charAt(0)=='/'){uri='file:///'+uri;}
return uri;}
function rewriteToBase(url){if(url!=''){if((url[1]==':')&&(url[2]=='\\')){url=url.substr(3,url.length-3);}
else
if((url[0]=='\\')&&(url[1]=='\\')){url=url.replace(/\\\\Bill\\clientes\\+/g,'');}
else
if((url[0]=='/')&&(url[1]=='l')&&(url[2]=='a')&&(url[3]=='n')){url=url.replace(/\/lan\/clientes\/+/g,'');}
url=url.replace(/\\+/g,'/');if((pos=url.lastIndexOf('/'))!=-1)
url=url.substr(0,pos+1);}
return url;}
function roundMoney(money){m=new Number(money);m*=100;m=Math.round(m);m/=100;return m;}
function chkMail(mail){return mail.match(/^(([A-Za-z0-9]+_+)|([A-Za-z0-9]+\-+)|([A-Za-z0-9]+\.+)|([A-Za-z0-9]+\++))*[A-Za-z0-9]+@((\w+\-+)|(\w+\.))*\w{1,63}\.[a-zA-Z]{2,6}$/);}
function putDebug(topic,content){if(content=='')
return;var mess=getObj('mess');if(!mess){mess=newElm('div');mess.id='mess';mess.style.position='absolute';mess.style.zIndex='10000';mess.style.top='20px';mess.style.left='20px';mess.style.width='0px';mess.style.bottom='20px';mess.style.color='#000000';mess.style.backgroundColor='#E0E0E0';mess.style.overflow='hidden';mess.contents=new Array();mess.contents['']='';var indc=newElm('div');indc.id='outDebug';indc.style.position='absolute';indc.style.bottom='40px';indc.style.left='0px';indc.style.width='20px';indc.style.height='20px';indc.style.backgroundColor='#00F000';indc.onclick=function(){var vis=(parseInt(mess.style.width)!=0);mess.style.width=(vis?'0px':'');mess.style.right=(vis?'':'20px');};var list=newElm('div');list.style.position='absolute';list.style.top='40px';list.style.left='20px';list.style.right='20px';list.style.bottom='20px';list.style.color='#000000';list.style.backgroundColor='#A0A0A0';list.style.border='1px inset #C0C0C0';list.style.overflow='scroll';list.innerHTML=content;var selc=newElm('select');selc.style.width='100%';selc.style.cursor='pointer';selc.onchange=function(){list.innerHTML=mess.contents[selc.options.item(selc.selectedIndex).text];};var body=getTag('body');mess.appendChild(selc);mess.appendChild(list);body.appendChild(indc);body.appendChild(mess);}
mess.contents[topic]=content;mess.firstChild.options.add(new Option(topic,mess.firstChild.options.length,false,false));if(content.match(/color: red;/))
getObj('outDebug').style.backgroundColor='red';}
function Optionhinzufuegen(obj){if(document.getElementById(obj.id)){if(document.getElementById(obj.id+'-neu').value!=""||document.getElementById(obj.id+'-neu').value.lenght>0){NeuerEintrag=new Option(document.getElementById(obj.id+'-neu').value,document.getElementById(obj.id+'-neu').value,false,true);document.getElementById(obj.id).options[document.getElementById(obj.id).length]=NeuerEintrag;document.getElementById(obj.id+'-neu').value="";}else{alert(nblksmssg);}}}
function Optionloeschen(obj){if(document.getElementById(obj.id)){if(document.getElementById(obj.id).options.length>=2&&document.getElementById(obj.id).selectedIndex>0){document.getElementById(obj.id).options[document.getElementById(obj.id).selectedIndex]=null;}}}
function picturePosition(obj){var gallery=(obj.name?getElms(obj.name):null);for(var e=0;gallery&&(e<gallery.length);e++)
if(obj==gallery.item(e))
return e;return-1;}
function pictureFull(){}
function pictureScroll(){}
function pictureControlIn(evt,obj){var onbody=newElm('img');var onwindow=newElm('img');var anwindow=newElm('a');var o;if(o=getObj('CTRLOutline'))o.parentNode.removeChild(o);var i;if(i=getObj('CTRLInline'))i.parentNode.removeChild(i);onbody.id='CTRLInline';onbody.src=root+'box/pics/zoom-inline.png';onbody.onclick=function(e){pictureInline(e,obj);return false;};onwindow.id='CTRLOutlineI';onwindow.src=root+'box/pics/zoom-outline.png';anwindow.id='CTRLOutline';anwindow.href=obj.href;anwindow.title=obj.title;anwindow.target=obj.target;anwindow.appendChild(onwindow);obj.insertBefore(onbody,obj.firstChild);obj.insertBefore(anwindow,obj.firstChild);}
function pictureControlOut(evt,obj){var te0=getToTE(evt);var check=(te0==null)||(te0.id=='CTRLOutline')||(te0.parentNode.id=='CTRLOutline')||(te0.id=='CTRLInline')||(te0.parentNode.id=='CTRLInline');if(!check){if(obj.firstChild.id=='CTRLOutline')obj.removeChild(obj.firstChild);if(obj.firstChild.id=='CTRLInline')obj.removeChild(obj.firstChild);}
return check;}
function pictureDisplaying(evt,obj){var pict=getObj('pbpicture');var imgp=pict.lastChild;pict.style.width=(parseInt(pict.offsetWidth)-4)+'px';pict.style.height=(parseInt(pict.offsetHeight)+0)+'px';pict.timer=setInterval(function(){var toBeX=parseInt(imgp.width);var toBeY=parseInt(imgp.height);var isNwX=parseInt(pict.style.width);var isNwY=parseInt(pict.style.height);var wd=isNwX+((toBeX+isNwX+7)>>3);var ht=isNwY+((toBeY+isNwY+7)>>3);pict.style.width=(isNwX=Math.min(wd,toBeX))+'px';pict.style.height=(isNwY=Math.min(ht,toBeY))+'px';if((isNwX==toBeX)&&(isNwY==toBeY)){clearInterval(pict.timer);pict.removeChild(pict.firstChild);imgp.style.display='none';imgp.style.position='';imgp.style.top='0px';imgp.style.left='0px';imgp.style.display='block';}
else{imgp.style.cursor='pointer';imgp.onclick=getObj('close').onclick;}},100);}
function pictureRemoving(){var body=getTag('body');var blck=getObj('blackback');var flow=getObj('centerflow');blck.style.opacity=0.6;if(MSIE)
blck.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity=60);';flow.style.opacity=1.0;if(MSIE)
flow.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity=100);';blck.timer=setInterval(function(){var xpb,opb=parseFloat(blck.style.opacity);var xpf,opf=parseFloat(flow.style.opacity);if(opb>0.0)blck.style.opacity=opb=(xpb=Math.floor(10*opb/2))/10;if(MSIE)blck.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity='+(xpb*10)+');';if(opf>0.0)flow.style.opacity=opf=(xpf=Math.floor(10*opf/2))/10;if(MSIE)flow.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity='+(xpf*10)+');';if((opb==0.0)&&(opf==0.0)){clearInterval(blck.timer);pictureRemove();}},10);}
var slideShowTime=4000;function pictureSet(pos,grp){var gallery=(grp?getElms(grp):null);if(gallery)
pictureInsert(gallery.item(pos),true);}
function pictureSlideshow(pos,grp){var gallery=(grp?getElms(grp):null);var cche=getObj('centerflow');var pict=getObj('pbpicture');var imgp=getObj('pbpreview');if(gallery&&cche){pictureInsert(gallery.item(pos),!(pos<gallery.length-1));if(pos<gallery.length-1){if(!imgp)
imgp=newElm('img');else
cche=null;imgp.id='pbpreview';imgp.style.position='absolute';imgp.style.top='-10000px';imgp.style.left='-10000px';imgp.onload=function(e){setTimeout(function(){pictureSlideshow(pos+1,grp);},slideShowTime);};imgp.src=getQueryVariable('image',gallery.item(pos+1).href);if(cche)
cche.appendChild(imgp);}
else if(imgp)
cche.removeChild(imgp);}}
function pictureInsert(obj,nav){var gallery=(obj.name?getElms(obj.name):null);var pos=picturePosition(obj);var ttlm=getObj('pbtitlem');var pict=getObj('pbpicture');var foot=getObj('pbfooter');var show=newElm('img');var imgp=newElm('img');var temp;if(typeof ttlm.indicator!='undefined')
clearInterval(ttlm.indicator);while(ttlm.firstChild)
ttlm.removeChild(ttlm.firstChild);while(pict.firstChild)
pict.removeChild(pict.firstChild);show.src=root+'pics/loading-circle.gif';show.title=show.alt='loading ...';show.style.padding='5em';imgp.style.position='absolute';imgp.style.top='-10000px';imgp.style.left='-10000px';imgp.onload=function(e){pictureDisplaying(e,obj);};if(gallery&&nav){ttlm.appendChild(temp=newElm('div'));temp.appendChild(newTxt('|< '));if(pos>0)temp.onclick=function(e){pictureSet(0,obj.name);};else temp.style.visibility='hidden';ttlm.appendChild(temp=newElm('div'));temp.appendChild(newTxt('<< '));if(pos>0)temp.onclick=function(e){pictureSet(pos-1,obj.name);};else temp.style.visibility='hidden';ttlm.appendChild(newTxt((pos+1)+' / '+gallery.length));ttlm.appendChild(temp=newElm('div'));temp.appendChild(newTxt(' >>'));if(pos<gallery.length-1)temp.onclick=function(e){pictureSet(pos+1,obj.name);};else temp.style.visibility='hidden';ttlm.appendChild(temp=newElm('div'));temp.appendChild(newTxt(' >|'));if(pos<gallery.length-1)temp.onclick=function(e){pictureSet(gallery.length-1,obj.name);};else temp.style.visibility='hidden';}
else if(gallery&&gallery.length>1){ttlm.innerHTML=' '+(pos+1)+' / '+gallery.length+' ';if(pos<gallery.length-1)
ttlm.indicator=setInterval(function(){var txt=ttlm.innerHTML;ttlm.innerHTML='.'+txt+'.';},Math.floor(slideShowTime/12));}
pict.appendChild(show);pict.appendChild(imgp);foot.innerHTML=URLDecode(getQueryVariable('description',obj.href));imgp.src=getQueryVariable('image',obj.href);}
function pictureLoading(evt,obj){var gallery=(obj.name?getElms(obj.name):null);var body=getTag('body');var flow=newElm('div');var cnta=newElm('table');var cntb=newElm('tbody');var cntr=newElm('tr');var cntd=newElm('td');var regn=newElm('table');var regb=newElm('tbody');var rgt1=newElm('tr');var rgt2=newElm('tr');var rgt3=newElm('tr');var ttll=newElm('td');var ttlm=newElm('td');var ttlr=newElm('td');var pict=newElm('td');var foot=newElm('td');var full=newElm('img');var scrl=newElm('img');var clse=newElm('img');var strp=newElm('img');flow.id='centerflow';cnta.id='centerback';regn.id='pictureback';rgt1.id='pbtitle';ttll.id='pbtitlel';ttlm.id='pbtitlem';ttlr.id='pbtitler';pict.id='pbpicture';foot.id='pbfooter';pict.colSpan=3;pict.setAttribute('colspan',3);foot.colSpan=3;foot.setAttribute('colspan',3);full.src=root+'box/pics/full.png';full.title='scaled';full.style.visibility='hidden';full.onclick=function(e){pictureFull(e,obj);};scrl.src=root+'box/pics/scroll.png';scrl.title='original';scrl.style.visibility='hidden';scrl.onclick=function(e){pictureScroll(e,obj);};strp.src=root+'box/pics/strip.png';strp.title='slide-show';strp.onclick=function(e){pictureSlideshow(0,obj.name);};clse.src=root+'box/pics/close.png';clse.title='close';clse.id='close';clse.onclick=function(e){pictureRemoving();};ttll.appendChild(full);ttll.appendChild(scrl);if(gallery&&(gallery.length>1))
ttlr.appendChild(strp);ttlr.appendChild(clse);rgt1.appendChild(ttll);rgt1.appendChild(ttlm);rgt1.appendChild(ttlr);rgt2.appendChild(pict);rgt3.appendChild(foot);regb.appendChild(rgt1);regb.appendChild(rgt2);regb.appendChild(rgt3);regn.appendChild(regb);cntd.appendChild(regn);cntr.appendChild(cntd);cntb.appendChild(cntr);cnta.appendChild(cntb);flow.appendChild(cnta);flow.style.top=body.firstChild.style.top;flow.style.left=body.firstChild.style.left;body.insertBefore(flow,body.firstChild);pictureInsert(obj,true);}
function pictureInline(evt,obj){var body=getTag('body');var blck=newElm('div');blck.id='blackback';blck.sL=(typeof body.parentNode.scrollLeft!='undefined'?body.parentNode.scrollLeft:window.pageXOffset);blck.sT=(typeof body.parentNode.scrollTop!='undefined'?body.parentNode.scrollTop:window.pageYOffset);window.scrollTo(0,0);if(MSIE){body.parentNode.style.overflow='hidden';body.parentNode.style.height='100%';}
body.style.overflow='hidden';body.style.height='100%';body.insertBefore(blck,body.firstChild);blck.style.opacity=0.0;if(MSIE)
blck.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity=0);';blck.timer=setInterval(function(){var opc=parseFloat(blck.style.opacity);if(opc<0.6){blck.style.opacity=''+(opc=Math.min(Math.max(opc,0.1)+
Math.max(opc,0.1),0.6));if(MSIE)
blck.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity='+
Math.floor(opc*100)+');';}
if(opc>=0.6){clearInterval(blck.timer);pictureLoading(evt,obj);}},50);}
function pictureRemove(){var body=getTag('body');var blck=getObj('blackback');var flow=getObj('centerflow');body.removeChild(blck);body.removeChild(flow);if(MSIE){body.parentNode.style.overflow='';body.parentNode.style.height='';}
body.style.overflow='';body.style.height='';setTimeout(function(){window.scrollTo(blck.sL,blck.sT);},0);}
function framePosition(obj){var directory=(obj.name?getElms(obj.name):null);for(var e=0;directory&&(e<directory.length);e++)
if(obj==directory.item(e))
return e;return-1;}
function frameFull(){}
function frameScroll(){}
function frameControlIn(evt,obj){var onbody=newElm('img');var onwindow=newElm('img');var anwindow=newElm('a');var o;if(o=getObj('CTRLOutline'))o.parentNode.removeChild(o);var i;if(i=getObj('CTRLInline'))i.parentNode.removeChild(i);onbody.id='CTRLInline';onbody.src=root+'box/pics/zoom-inline.png';onbody.onclick=function(e){frameInline(e,obj);return false;};onwindow.id='CTRLOutlineI';onwindow.src=root+'box/pics/zoom-outline.png';anwindow.id='CTRLOutline';anwindow.href=obj.href;anwindow.title=obj.title;anwindow.target=obj.target;anwindow.appendChild(onwindow);obj.appendChild(newTxt(' '));obj.appendChild(onbody);obj.appendChild(anwindow);}
function frameControlOut(evt,obj){var te0=getToTE(evt);var check=(te0==null)||(te0.id=='CTRLOutline')||(te0.parentNode.id=='CTRLOutline')||(te0.id=='CTRLInline')||(te0.parentNode.id=='CTRLInline');if(!check){if(obj.lastChild.id=='CTRLOutline')obj.removeChild(obj.lastChild);if(obj.lastChild.id=='CTRLInline')obj.removeChild(obj.lastChild);}
return check;}
function frameDisplaying(evt,obj){var pict=getObj('fbframe');var frmp=pict.lastChild;try{frmp.width=measureFrameWidth('popframe');frmp.height=Math.floor(parseInt(frmp.width*3)/4);}catch(e){}
pict.style.width=(parseInt(pict.offsetWidth)-4)+'px';pict.style.height=(parseInt(pict.offsetHeight)+0)+'px';pict.timer=setInterval(function(){var toBeX=parseInt(frmp.width);var toBeY=parseInt(frmp.height);var isNwX=parseInt(pict.style.width);var isNwY=parseInt(pict.style.height);var wd=isNwX+((toBeX+isNwX+7)>>3);var ht=isNwY+((toBeY+isNwY+7)>>3);pict.style.width=(isNwX=Math.min(wd,toBeX))+'px';pict.style.height=(isNwY=Math.min(ht,toBeY))+'px';if((isNwX==toBeX)&&(isNwY==toBeY)){clearInterval(pict.timer);if(pict.firstChild.src.match(/circle/))
pict.removeChild(pict.firstChild);frmp.style.position='';frmp.style.top='0px';frmp.style.left='0px';if(MSIE&&frmp.onload)
frmp.detachEvent('onload',frmp.onload);frmp.onload=null;}},100);}
function frameRemoving(){var body=getTag('body');var blck=getObj('blackback');var flow=getObj('centerflow');blck.style.opacity=0.6;if(MSIE)
blck.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity=60);';flow.style.opacity=1.0;if(MSIE)
flow.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity=100);';blck.timer=setInterval(function(){var xpb,opb=parseFloat(blck.style.opacity);var xpf,opf=parseFloat(flow.style.opacity);if(opb>0.0)blck.style.opacity=opb=(xpb=Math.floor(10*opb/2))/10;if(MSIE)blck.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity='+(xpb*10)+');';if(opf>0.0)flow.style.opacity=opf=(xpf=Math.floor(10*opf/2))/10;if(MSIE)flow.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity='+(xpf*10)+');';if((opb==0.0)&&(opf==0.0)){clearInterval(blck.timer);frameRemove();}},10);}
var slideShowOnLoad=null;var slideShowTime=4000;function frameSet(pos,grp){var directory=(grp?getElms(grp):null);if(directory)
frameInsert(directory.item(pos),true);}
function frameSlideshow(pos,grp){var directory=(grp?getElms(grp):null);var cche=getObj('centerflow');var pict=getObj('fbframe');var frmp=getObj('fbpreview');if(directory&&cche){frameInsert(directory.item(pos),!(pos<directory.length-1));if(pos<directory.length-1){if(!frmp)
frmp=newElm('iframe');else
cche=null;frmp.id='fbpreview';frmp.style.position='absolute';frmp.style.top='-10000px';frmp.style.left='-10000px';frmp.width='800px';frmp.height='600px';frmp.frameBorder=0;frmp.setAttribute('frameborder',0);frmp.marginHeight=0;frmp.setAttribute('marginwidth',0);frmp.marginWidth=0;frmp.setAttribute('marginheight',0);frmp.style.padding='0px';if(MSIE){if(slideShowOnLoad)
frmp.detachEvent('onload',slideShowOnLoad);frmp.attachEvent('onload',slideShowOnLoad=function(e){setTimeout(function(){frameSlideshow(pos+1,grp);},slideShowTime);});}
else
frmp.onload=function(e){setTimeout(function(){frameSlideshow(pos+1,grp);},slideShowTime);};if(cche)
cche.appendChild(frmp);frmp.src=directory.item(pos+1).href;}
else if(frmp)
cche.removeChild(frmp);}}
function frameInsert(obj,nav){var directory=(obj.name?getElms(obj.name):null);var pos=framePosition(obj);var ttlm=getObj('fbtitlem');var pict=getObj('fbframe');var foot=getObj('fbfooter');var show=newElm('img');var frmp=newElm('iframe');var temp;if(typeof ttlm.indicator!='undefined')
clearInterval(ttlm.indicator);while(ttlm.firstChild)
ttlm.removeChild(ttlm.firstChild);while(pict.firstChild)
pict.removeChild(pict.firstChild);show.src=root+'pics/loading-circle.gif';show.style.padding='5em';frmp.style.position='absolute';frmp.style.top='-10000px';frmp.style.left='-10000px';frmp.width='800px';frmp.height='600px';frmp.name='popframe';frmp.frameBorder=0;frmp.setAttribute('frameborder',0);frmp.marginHeight=0;frmp.setAttribute('marginwidth',0);frmp.marginWidth=0;frmp.setAttribute('marginheight',0);frmp.style.padding='0px';if(MSIE)
frmp.attachEvent('onload',frmp.onload=function(e){frameDisplaying(e,obj);});else
frmp.onload=function(e){frameDisplaying(e,obj);};if(directory&&nav){ttlm.appendChild(temp=newElm('div'));temp.appendChild(newTxt('|< '));if(pos>0)temp.onclick=function(e){frameSet(0,obj.name);};else temp.style.visibility='hidden';ttlm.appendChild(temp=newElm('div'));temp.appendChild(newTxt('<< '));if(pos>0)temp.onclick=function(e){frameSet(pos-1,obj.name);};else temp.style.visibility='hidden';ttlm.appendChild(newTxt((pos+1)+' / '+directory.length));ttlm.appendChild(temp=newElm('div'));temp.appendChild(newTxt(' >>'));if(pos<directory.length-1)temp.onclick=function(e){frameSet(pos+1,obj.name);};else temp.style.visibility='hidden';ttlm.appendChild(temp=newElm('div'));temp.appendChild(newTxt(' >|'));if(pos<directory.length-1)temp.onclick=function(e){frameSet(directory.length-1,obj.name);};else temp.style.visibility='hidden';}
else if(directory&&directory.length>1){ttlm.innerHTML=' '+(pos+1)+' / '+directory.length+' ';if(pos<directory.length-1)
ttlm.indicator=setInterval(function(){var txt=ttlm.innerHTML;ttlm.innerHTML='.'+txt+'.';},Math.floor(slideShowTime/12));}
pict.appendChild(show);pict.appendChild(frmp);foot.innerHTML='<a href="'+obj.href+'" target="'+obj.target+'">'+obj.innerHTML+'</a>';frmp.src=obj.href;}
function frameLoading(evt,obj){var directory=(obj.name?getElms(obj.name):null);var body=getTag('body');var flow=newElm('div');var cnta=newElm('table');var cntb=newElm('tbody');var cntr=newElm('tr');var cntd=newElm('td');var regn=newElm('table');var regb=newElm('tbody');var rgt1=newElm('tr');var rgt2=newElm('tr');var rgt3=newElm('tr');var ttll=newElm('td');var ttlm=newElm('td');var ttlr=newElm('td');var pict=newElm('td');var foot=newElm('td');var full=newElm('img');var scrl=newElm('img');var clse=newElm('img');var strp=newElm('img');flow.id='centerflow';cnta.id='centerback';regn.id='frameback';rgt1.id='fbtitle';ttll.id='fbtitlel';ttlm.id='fbtitlem';ttlr.id='fbtitler';pict.id='fbframe';foot.id='fbfooter';pict.colSpan=3;pict.setAttribute('colspan',3);foot.colSpan=3;foot.setAttribute('colspan',3);full.src=root+'box/pics/full.png';full.title='scaled';full.style.visibility='hidden';full.onclick=function(e){frameFull(e,obj);};scrl.src=root+'box/pics/scroll.png';scrl.title='original';scrl.style.visibility='hidden';scrl.onclick=function(e){frameScroll(e,obj);};strp.src=root+'box/pics/strip.png';strp.title='slide-show';strp.onclick=function(e){frameSlideshow(0,obj.name);};clse.src=root+'box/pics/close.png';clse.title='close';clse.id='close';clse.onclick=function(e){frameRemoving();};ttll.appendChild(full);ttll.appendChild(scrl);if(directory&&(directory.length>1))
ttlr.appendChild(strp);ttlr.appendChild(clse);rgt1.appendChild(ttll);rgt1.appendChild(ttlm);rgt1.appendChild(ttlr);rgt2.appendChild(pict);rgt3.appendChild(foot);regb.appendChild(rgt1);regb.appendChild(rgt2);regb.appendChild(rgt3);regn.appendChild(regb);cntd.appendChild(regn);cntr.appendChild(cntd);cntb.appendChild(cntr);cnta.appendChild(cntb);flow.appendChild(cnta);flow.style.top=body.firstChild.style.top;flow.style.left=body.firstChild.style.left;body.insertBefore(flow,body.firstChild);frameInsert(obj,true);}
function frameInline(evt,obj){var body=getTag('body');var blck=newElm('div');blck.id='blackback';blck.sL=(typeof body.parentNode.scrollLeft!='undefined'?body.parentNode.scrollLeft:window.pageXOffset);blck.sT=(typeof body.parentNode.scrollTop!='undefined'?body.parentNode.scrollTop:window.pageYOffset);window.scrollTo(0,0);if(MSIE){body.parentNode.style.overflow='hidden';body.parentNode.style.height='100%';}
body.style.overflow='hidden';body.style.height='100%';body.insertBefore(blck,body.firstChild);blck.style.opacity=0.0;if(MSIE)
blck.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity=0);';blck.timer=setInterval(function(){var opc=parseFloat(blck.style.opacity);if(opc<0.6){blck.style.opacity=''+(opc=Math.min(Math.max(opc,0.1)+
Math.max(opc,0.1),0.6));if(MSIE)
blck.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity='+
Math.floor(opc*100)+');';}
if(opc>=0.6){clearInterval(blck.timer);frameLoading(evt,obj);}},50);}
function frameRemove(){var body=getTag('body');var blck=getObj('blackback');var flow=getObj('centerflow');body.removeChild(blck);body.removeChild(flow);if(MSIE){body.parentNode.style.overflow='';body.parentNode.style.height='';}
body.style.overflow='';body.style.height='';setTimeout(function(){window.scrollTo(blck.sL,blck.sT);},0);}