

function MM_reloadPage(init) {  //Updated. Reloads the window if Nav4 resized

  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {

    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}

  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) history.go(0);

}

MM_reloadPage(true);



function MM_findObj(n, d) { //i4.03

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

  if(!x && d.getElementById) x=d.getElementById(n); return x;

}



// layer name, left, top, width, height (these are numbers or the word 'auto')

// then, left margin, right margin, top margin, bottom margin

function WR1_interneticsL(el,lp,tp,wp,hp,lm,rm,tm,bm) { //v0.6 tetra -internetical script by INTERNETICS.BE

	var x,g,d,sw,sh,xx,yy,ww,hh,pa='',t="','",u=",";

	if((g=MM_findObj(el))==null){return;}

	if((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1)&& !window.opera){pa="px";}

	var tS="WR1_interneticsL('"+el+t+lp+t+tp+t+wp+t+hp+"',"+lm+u+rm+u+tm+u+bm+")";

	if(window.innerWidth) {sw= window.innerWidth;sh = window.innerHeight;

	}else if(document.body) {sw=document.body.clientWidth;sh=document.body.clientHeight;

    if(document.body.offsetWidth == sw && document.documentElement && document.documentElement.clientWidth) {

	 sw=document.documentElement.clientWidth;}

    if(document.body.offsetHeight == sh && document.documentElement && document.documentElement.clientHeight) {

     sh=document.documentElement.clientHeight;}}

	if(!g.wr1netics) {g.wr1netics=true;g.wr1neticsw=0;g.wr1neticsh=0;}

	if(sw==g.wr1neticsw && sh==g.wr1neticsh) {setTimeout(tS,20);return;}

	d=(document.layers)?g:g.style;

	if(wp=='auto') {if(lp=='auto'){ww=sw-lm-rm;}else{ww=sw-lp-rm;}}else{ww=wp;}

	if(hp=='auto') {if(tp=='auto'){hh=sh-tm-bm;}else{hh=sh-tp-bm;}}else{hh=hp;}

	if(lp=='auto') {if(wp=='auto'){xx=lm;}else{xx=sw-wp-rm;}}else{xx=lp;}

	if(tp=='auto') {if(hp=='auto'){yy=tm;}else{yy=sh-tp-bm;}}else{yy=tp;}

	d.left=xx+pa;d.top=yy+pa;

	if(document.layers){g.clip.height=hh;g.clip.width=ww;

	}else if(window.opera){g.style.pixelHeight=hh;g.style.pixelWidth=ww;

	}else{d.width=ww+pa;d.height=hh+pa;}

	g.wr1neticsw=sw;g.wr1neticsh=sh;

	setTimeout(tS,20);

}



