
// inTensa Design Gallery 
// by Paul Davis
// http://www.kaosweaver.com/ 
// Copyright 2002, all rights reserved 
// 
// KW_columns[10]
// KW_dir[1]
// KW_scroll[3]
// KW_arrow1[afb/vorigeMacro_off.gif]
// KW_arrow2[afb/meerMacro_off.gif]
// KW_full[false]
function MM_findObj(n, d) { //v4.01
  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;
}
function MM_reloadPage(init) { 
  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) 
location.reload(); 
} 
MM_reloadPage(true); 
var obj,timer,stopObj,px,sf=navigator.userAgent.indexOf('Safari')!=-1;
function initObjects() {// by Paul Davis - www.kaosweaver.com
  var a=initObjects.arguments,i;obj=new Array();d=(sf || document.all || document.getElementById);
  px=(d)?"px":"";for(i=0;i<a.length;i++){obj[i]=(d && !sf)?MM_findObj(a[i]).style:MM_findObj(a[i]);
	obj[i].hClip=(!d)?obj[i].clip.height:MM_findObj(a[i]).offsetHeight
	obj[i].wClip=(!d)?obj[i].clip.width:MM_findObj(a[i]).offsetWidth	
	obj[i].v=0;obj[i].h=0;
  }
}

function moveObject(v,a,o){ // by Paul Davis - www.kaosweaver.com
  if (v=='v' || v=='b') { 
    obj[o].v=((obj[o].v-a)>0)?0:obj[o].v-a;
	obj[o].v=(obj[o].v<-(obj[o].hClip-obj[0].hClip))?-(obj[o].hClip-obj[0].hClip):obj[o].v;
    if (sf) obj[o].style.top= obj[o].v+px; else obj[o].top=obj[o].v+px;}
  if (v=='h' || v=='b'){
    obj[o].h=((obj[o].h-a)>0)?0:obj[o].h-a;
	obj[o].h=(obj[o].h<-(obj[o].wClip-obj[0].wClip))?-(obj[o].wClip-obj[0].wClip):obj[o].h;
    if (sf) obj[o].style.left=obj[o].h+px; else obj[o].left=obj[o].h+px; }
  if (!stopObj) setTimeout("moveObject('"+v+"',"+a+","+o+")",30)
}
function hideIt() {
	lObj = (document.layers)?MM_findObj('kwcover'):MM_findObj('kwcover').style;
	lObj.visibility='hidden'
}
function hideIt2() {
	lObj = (document.layers)?MM_findObj('KWscrollCover'):MM_findObj('KWscrollCover').style;
	lObj.visibility='hidden'
}
var sAPS=0;
function KW_switchPhoto(photo,counter) {
	lObj = (document.layers)?MM_findObj('kwcover'):MM_findObj('kwcover').style;
	MM_findObj('mainPhoto').src=photo;
    lObj.visibility="visible";
	setTimeout("hideIt()",5000);
  sAPS=counter;
}
lOldObj=new Object();
function KW_switchSection(sVal) {
    var cap="kwcaption"+sVal;
    lObj = (document.layers)?MM_findObj(cap):MM_findObj(cap).style;
    lObj.visibility="visible";
     if (lOldObj!=lObj) lOldObj.visibility = "hidden";
    lOldObj = lObj;
}

// End of inTensa Design Gallery
