// LABRAWEB  SCRIPTS - ISIMODE - ALL RIGHTS RESERVED -var oFom = null;	var oIpt = null;	var bSr = 0;	function Is() {	var agent = navigator.userAgent.toLowerCase();	this.major = parseInt(navigator.appVersion);	this.minor = parseFloat(navigator.appVersion);	this.ns  = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));	this.ns2 = (this.ns && (this.major == 2));	this.ns3 = (this.ns && (this.major == 3));	this.ns4 = (this.ns && (this.major == 4));	this.ns6 = (this.ns && (this.major >= 5));	this.ie   = (agent.indexOf("msie") != -1);	this.ie3  = (this.ie && (this.major == 2));	this.ie4  = (this.ie && (this.major >= 4));  this.ie6 = (agent.indexOf("msie 6") != -1);	this.op3 = (agent.indexOf("opera") != -1);	this.mac = (agent.indexOf("mac") != -1);	this.win = (agent.indexOf("win") != -1);  this.saf = (agent.indexOf("safari") != -1);  this.ffx = (agent.indexOf("firefox") != -1); if (this.saf) {this.ns=false; this.ns6=false; this.ie=true; this.ie6=true; this.mac=true; this.win=false;} if (this.ffx) {this.ns=false; this.ns6=false; this.ie=true; this.ie6=true; }}var is = new Is()if(is.ns4) {doc = "document"; sty = ""; htm = ".document";} else if(is.ie4) {doc = "document.all"; sty = ".style"; htm = "";} else if(is.ns6) {doc = "document"; sty = ""; htm = ".document";} else if(is.op3) {doc = "document.all"; sty = ".style"; htm = "";this.ie4=true;} else if(is.ns3) {doc = "document.all"; sty = ".style"; htm = ""} else { doc = "document.all"; sty = ".style"; htm = "" }function rsz(){ if(is.ns4){ location.reload();}}var fsw=0;function getfsw(){return fsw;}var fsh=0;function getfsh(){return fsh;}function Lt(n,v,l,t,w,h) {this.n = n;this.v = v;this.l = l;this.t = t;this.w = w;this.h = h;}var lt = new Array();function httl(n,v,l,t,w,h){	var s;	if(is.ns4){		lt[lt.length] = new Lt(n,v,l,t,w,h);document.write('<img src="/PICT3/PB00.gif" width="'+w+'" height="'+h+'" border="0">');}	else{if(is.ie ){ s='<DIV ID="'+n+'" STYLE="width: '+w+'px; height: '+h+'px; z-index: 1; visibility: visible; overflow: hidden; position: relative;">'+v+'</DIV>';}else{ 		 s='<DIV ID="'+n+'" STYLE="width: '+w+'px; height: '+h+'px; z-index: 1; visibility: visible; overflow: hidden; position: absolute;">'+v+'</DIV>';	}	if(bSr==0){		document.write(v);	}	else {		return s;	}}}function httlo(n){	if(is.ns4){		for(i=0;i<lt.length;++i){			document.write('<LAYER ID="'+lt[i].n+'" left='+lt[i].l+' top='+lt[i].t+' width='+lt[i].w+' height='+lt[i].h+' z-index=1 CLIP="0,0,'+lt[i].w+','+lt[i].h+'"');document.write('>'+lt[i].v);document.write('</LAYER>');		}	}}function sfsly(f){if(is.ns4){ fsw=is.mac?document.fsly.clip.width*2:document.fsly.clip.width; fsh=document.fsly.clip.height; }else if(is.ie) { fsw=fsly.offsetLeft>0?fsly.offsetLeft:fsly.offsetHeight; fsh=fsly.offsetHeight; fsly.innerHTML = "";}else if(is.ns6) { fsw=document.getElementById("fsly").offsetWidth; fsh=document.getElementById("fsly").offsetHeight;}else if(is.op3) { fsw=document.getElementById("fsly").offsetWidth; fsh=document.getElementById("fsly").offsetHeight;} else if(is.ns3) { fsw=6; fsh=6;} else { fsw=fsly.offsetLeft>0?fsly.offsetLeft:fsly.offsetHeight; fsh=fsly.offsetHeight; fsly.innerHTML = ""; }}function _iptSave(){	for(var i=0;i<oIpt.length;++i){		oIpt[i].save();	}}function _iptRstr(){	for(var i=0;i<oIpt.length;++i){		oIpt[i].rstr();	}}function _iptChk(n){	for(var i=0;i<oIpt.length;++i){		if(oIpt[i].n==n){			return oIpt[i];		}	}	return null;}function srUpdate(f){	if(is.ns4) {		_iptRstr();	}	parent.sr_bref=1;}function OpPW(UOW,WOW,FOW) { window.open(UOW,WOW,FOW);}function fsub(a,u){  if((oIpt!=null)&&(parent.sr.length)){		for(var i=0;i<parent.sr.length;++i){			srSet(oFom,parent.sr[i].t,a);		}	}	else {		var l="";		l+=a;		oFom["OLOZE"].value="";		for(var i=0;i<oFom.length;++i){			if(oFom[i].type=="checkbox"){				v=oFom[i].checked==true?"on":"";			}else if(oFom[i].type=="radio"){				v=oFom[i].checked?oFom[i].value:null;			}else{				v=oFom[i].value;			}			if(v!=null){				if(l.length>0) l+="&";				l+=oFom[i].name+"="+v;			}		}		oFom["OLOZE"].value=l;	}		if(u!=null)		oFom.action=u;   if(parent.ipt!=null)      parent.ipt=new Array();   if(parent.sr_bref!=null)      parent.sr_bref=0;   if(parent.sr!=null)      parent.sr=new Array();	oFom.submit();	return true;}function form(n,a,f,o,s,m){	if(is.ns6) {		document.write('<FORM NAME="'+n+'" ACTION="'+a+'" METHOD="'+m+'" '+o+' OnSubmit="'+s+'">');		sfsly(f);	}else{		sfsly(f);		document.write('<FORM NAME="'+n+'" ACTION="'+a+'" METHOD="'+m+'" '+o+' OnSubmit="'+s+'">');	}	document.write('<input type="HIDDEN" name="OLOZE" value="">');	oIpt = parent.ipt;}function fset(f){	oFom=f;	if(oIpt!=null){		srUpdate(oFom);	}}function mArr(n) {this.cnt=n; return(this);}function gotoPage(urlad){	self.location=urlad;}function trueReplace(dansQuoi,leQuoi,lePar){	var leResult='';	if(dansQuoi.length<1){leResult='';}else{		var strt=dansQuoi.indexOf(leQuoi);		if(strt<0){leResult=dansQuoi;}else{			leResult=dansQuoi.substring(0,strt)+lePar+dansQuoi.substring(strt+leQuoi.length);	}}	return leResult;}function printzePage() {if (typeof(window.print) != 'undefined') { window.print(); }} function addToFavorites (urlAddress, siteName) {if (window.external) {window.external.AddFavorite(urlAddress,siteName);}else if (window.sidebar) {window.sidebar.addPanel(siteName,urlAddress,"");}}function fermla() {opener=self;self.parent.close();}function check_frset(wnm){	if(parent.stKey==1){var flOk2Cont=1; window.name='';}else		if(wnm=='About'){flOk2Cont=1;}else{		var flOk2Cont=0; 		var zzloc = self.location+"";                   self.location='index.htm';		if(zzloc.indexOf('?')>-1)window.name=zzloc.substring(0,zzloc.indexOf('?')); 			else window.name=zzloc; 		}	return flOk2Cont;}function openPageNW(zePage){  var zeKey='['+'LNGCD'+']';	if(zePage.indexOf(zeKey,0)>-1){zePage=trueReplace(zePage,zeKey,parent.lgl[parent.curlgidx-1].lp)};	window.open(zePage,'About','height=520,width=720,location=no,scrollbars=yes,menubars=yes,toolbars=yes,resizable=yes');}function httlsp(n,v,l,t,w,h){	var s;	s='<DIV ID="'+n+'" STYLE="width: '+w+'px; height: '+h+'px; z-index: 1; visibility: visible; overflow: hidden; position: relative;">'+v+'</DIV>';	return s;}function sk_FormatNb(o,n){	var p,m,s,f,v;  n=Math.round(n*100)/100;	s="";	p=o.indexOf(".0");	if(p>=0) {		f=o.substr(p);		o=o.substr(0,p);		v=new String(Math.abs(n));		p=v.indexOf(".");		if(p>=0){			v=v.substr(p+1);			p=0;			for( var c=f.indexOf(".");c<f.length;++c ){				if((p<v.length)&&(f.charAt(c)=="0")){					s+=v.charAt(p);					++p;				}else{					s+=f.charAt(c);				}			}		}		else{			s+=f;		}	}	f=o;	v=new String(Math.floor(Math.abs(n)));	p=v.length-1;	m=f.search(/#/);	for( var c=f.length-1; c>m; --c ){		if(p>=0){			if( f.charAt(c)=="#" ){				s=v.charAt(p)+s;				--p;			}else{				s=f.charAt(c)+s;			}		}else{			break;		}	}	if(n<0){		s="-"+s;	}	if( f.charAt(0)!="#"){		s=f.substr(0,f.indexOf("#"))+s;	}	return s;}function sk_GiveIndex(cod){	var idx=0;	for (var j=1; j<=parent.skat.cnt; j++) {		if(cod==parent.skat[j].cod) {idx=j;break;}	}	return (idx);}function sk_GiveProdIndex(cod){	var idx=0;	for (var j=1; j<=parent.listProds.cnt; j++) {		if(cod==parent.listProds[j].cod) {idx=j;break;}	}	return (idx);}function getFmIdbyNm(zeform,zename){var found=0;for(i = 0; i<zeform.length; i++){if((zeform[i].type!='hidden')&&(zeform[i].type!='submit')){if(zeform[i].name==zename){found=i;}}}return found;}function getZeElement (zeID) {	if (document.getElementById)   	  // this is the way the standards work    	elem = document.getElementById(zeID);		else if (document.all)  		  // this is the way old msie versions work			elem = document.all[zeID];			else if (document.layers)   // this is the way nn4 works				elem = document.layers[zeID];return (elem);}function handleZeCont (lapage){ 	zz = 50; 	if(parent.vCurPgName == lapage) {		for (var i=1; i<=zz; i++) {			j = (i<10)?"0"+i:""+i;			nam = "MAP"+j+"01";			vElem = getZeElement(nam);			if (vElem!=null){				vElem.style.visibility="hidden";				k = parent.vCurContner[i];				if (k<1) k=1;				kk=(k<10)?"0"+k:""+k;				nam = "MAP"+j+kk;				vElem = getZeElement(nam);				if (vElem!=null){					vElem.style.visibility="visible";				}			}		}	} else {		for (var i=0; i<50; i++) {parent.vCurContner[i]=0;}		parent.vCurPgName = lapage;}}function swapcontainer (lecont, lechoix){	parent.vCurContner[eval(lecont)]=eval(lechoix); 	//window.location.reload();}function flyOverZeCont (lecont, lechoix){ 	zz = 50;	 	for (var i=1; i<=zz; i++) {		j = (i<10)?"0"+i:""+i;		nam = "MAP"+lecont+j;		vElem = getZeElement(nam);		if (vElem!=null){vElem.style.visibility="hidden";}	}	nam = "MAP"+lecont+lechoix;	vElem = getZeElement(nam);	if (vElem!=null){vElem.style.visibility="visible";}	return('');}function shadowOverZeCont (lecont){ 	zz = 50;	 	for (var i=1; i<=zz; i++) {		j = (i<10)?"0"+i:""+i;		nam = "MAP"+lecont+j;		vElem = getZeElement(nam);		if (vElem!=null){vElem.style.visibility="hidden";}	}	return('');}var forie4=document.all;var forns6=document.getElementById&&!document.all;var curdropmenuobj;var zemenuarray=new Array();var hidemenu_onclick="yes";var disappeardelay = 200;function getposOffset(what, offsettype){	var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;	var parentEl=what.offsetParent;	while (parentEl!=null){		totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;		parentEl=parentEl.offsetParent;	}	return totaloffset;}function showhide(obj, e, visible, hidden, menuwidth, dropmenuobj){	if (forie4 || forns6) dropmenuobj.style.left=dropmenuobj.style.top="-500px";	if (menuwidth!=""){ dropmenuobj.widthobj=dropmenuobj.style;	dropmenuobj.widthobj.width=menuwidth;}	if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover") obj.visibility=visible; else if (e.type=="click") obj.visibility=hidden;}function iecompattest(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;}function clearbrowseredge(obj, whichedge, dropmenuobj){	var edgeoffset=0;	if (whichedge=="rightedge"){		var windowedge=forie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15;		dropmenuobj.contentmeasure = dropmenuobj.offsetWidth;		if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure) edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth;	}else{		var topedge=forie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset;		var windowedge=forie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18;		dropmenuobj.contentmeasure = dropmenuobj.offsetHeight		if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight; 			if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge;  		}	}	return edgeoffset;}function populatemenu(what, dropmenuobj){ if (forie4 || forns6) dropmenuobj.innerHTML=what.join(""); }function hideozers(dropmenuobj){	var zz = zemenuarray.length;	var isinit = false;	for (var i=0; i<zz; i++){		if(zemenuarray[i].id==dropmenuobj.id){isinit=true; }else{ zemenuarray[i].style.visibility = "hidden";}	}	if (!isinit) {zemenuarray[zz]=dropmenuobj; }}function dropdownmenu(obj, e, menucontents, menuwidth, dropmenuobj,lefte,tope){	curdropmenuobj = dropmenuobj;          hideozers(dropmenuobj);	if (!forie4) document.onclick=hidemenu();	if (window.event) event.cancelBubble=true; else if (e.stopPropagation) e.stopPropagation();	clearhidemenu();	populatemenu(menucontents, dropmenuobj);	if (forie4 || forns6){		showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth, dropmenuobj);		dropmenuobj.x=getposOffset(obj, "left");		dropmenuobj.y=getposOffset(obj, "top");		dropmenuobj.style.left=dropmenuobj.x-lefte-clearbrowseredge(obj, "rightedge", dropmenuobj)+"px";		dropmenuobj.style.top=dropmenuobj.y-tope-clearbrowseredge(obj, "bottomedge", dropmenuobj)+obj.offsetHeight+"px";	}	return clickreturnvalue();}function clickreturnvalue(){ if (forie4 || forns6) return false; else return true;}function contains_forns6(a, b) { if(b){while (b.parentNode) if ((b = b.parentNode) == a) return true; return false;}}function dynamichide(e, dropmenuobj){ if (forie4 && !dropmenuobj.contains(e.toElement)) delayhidemenu(disappeardelay);		else if (forns6&&e.currentTarget!= e.relatedTarget && !contains_forns6(e.currentTarget, e.relatedTarget)) delayhidemenu(disappeardelay);}function hidemenu(){   if (typeof curdropmenuobj != "undefined"){ if (forie4 || forns6) curdropmenuobj.style.visibility="hidden";}}function delayhidemenu(){ if (forie4 || forns6) delayhide=setTimeout("hidemenu()",disappeardelay);}function clearhidemenu(){ if (typeof delayhide!="undefined") clearTimeout(delayhide);}function pwidchk (u,p,n) {if (u && p) self.location = "auth.htm?" + u + p + "-" + n.substring(0,n.indexOf('.')); return false;}function pwsignout (p) {parent.lkpg = [];location.replace(p);}function pwsttest (cod1,cod2){if(parent.lkpg[vCurPgName.substring(0,vCurPgName.length-6)]) document.writeln(cod1); else document.writeln(cod2);}
