<!--
// inTensa Design Gallery 
// by Paul Davis
// http://www.kaosweaver.com/ 
// Copyright 2002, all rights reserved 
// 
// KW_columns[8]
// KW_dir[1]
// KW_scroll[3]
// KW_arrow1[img/left.gif]
// KW_arrow2[img/right.gif]
// KW_full[false]
// KW_nrc[Right Click Disabled]
// KW_gSize[800|425]
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;
function initObjects() {// by Paul Davis - www.kaosweaver.com
  var a=initObjects.arguments,i;obj=new Array();d=(document.all || document.getElementById);
  px=(d)?"px":"";for(i=0;i<a.length;i++){obj[i]=(d)?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;
    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;
    obj[o].left=obj[o].h+px; }
  if (!stopObj) setTimeout("moveObject('"+v+"',"+a+","+o+")",30)
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
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()",999);
  sAPS=counter;
}
function KW_openWin() {
  z=MM_findObj('mainPhoto').src.replace("_main","");
  var look='width=800,height=425'
	popwin=window.open('','',look);
	popwin.document.open();
popwin.document.write("<ht"+""+"ml><he"+""+"ad><ti"+""+"tle>:: Click to Close ::</ti"+""+"tle><META HTTP-EQUIV=\"imagetoolbar\" CONTENT=\"no\"><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"></he"+""+"ad><st"+""+"yle type=\"text/css\"> <!-- BODY {  margin : 0px; } --> </style><bo"+""+"dy bgcolor=#FFFFFF  marginwidth=\"0\" marginheight=\"0\" onBlur=\"window.close()\"><scr"+""+"ipt>  var msg='Right Click Disabled';function disableIE() {if (document.all) {alert(msg);return false;}} function disableNS(e){ if (document.layers||(document.getElementById&&!document.all)) {  if (e.which==2||e.which==3) {alert(msg);return false;} }} if (document.layers) {  document.captureEvents(Event.MOUSEDOWN);document.onmousedown=disableNS;} else {  document.onmouseup=disableNS;document.oncontextmenu=disableIE;} document.oncontextmenu=new Function('alert(msg);return false')</sc"+""+"ript><table width=\"800\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"center\"><"+""+"a hr"+""+"ef='javasc"+""+"ript:self.close();'><img src='"+z+"' border=0 alt=\"Click Image to Close\"></"+""+"a></td></tr></table></bo"+""+"dy></ht"+""+"ml>");
	popwin.document.close();
}
// End of inTensa Design Gallery

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


//Chromeless 
    var CWIN = null      
function chromeless(u,n,W,H,X,Y,tW,wNS,fSO,brd,res,tsz,scrollbars){
	var c=(document.all&&navigator.userAgent.indexOf("Win")!=-1)?1:0
	var v=navigator.appVersion.substring(navigator.appVersion.indexOf("MSIE ")+5,navigator.appVersion.indexOf("MSIE ")+8)
	//min=(v>=5.5?min:false);
	var w=window.screen.width; var h=window.screen.height
	var W=W||w; W=(typeof(W)=='string'?Math.ceil(parseInt(W)*w/100):W); W-=2 //W+=(brd*2+2)*c
	var H=H||h; H=(typeof(H)=='string'?Math.ceil(parseInt(H)*h/100):H); //H+=(tsz+brd+2)*c

	var X=X||Math.ceil((w-W)/2)
	var Y=Y||Math.ceil((h-H)/2)
	
	var s1=",width="+W+",height="+H+",innerWidth="+W+",innerHeight="+H
    var s2=s1+",left="+X+",top="+Y+",screenX="+X+",screenY="+Y
	
	if (CWIN && !CWIN.closed) {CWIN.close();}
	CWIN=window.open(u,n,wNS+s2,true);
	//CWIN.moveTo(X,Y)
	
	CWIN.focus()
	CWIN.setURL=function(u) { if (this && !this.closed) { if (this.frames.main) this.frames.main.location.href=u; else this.location.href=u } }
	CWIN.closeIT=function(u) { if (this && !this.closed) this.close() }
	return CWIN
}                                                                               
                                                                               
function openIT(nomefin,CurrURL,W,H,X,Y,n,b,r,scrb,boh) {

	var tW  = nomefin
	var wNS ='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+scrb+',resizable=yes'
	var fSO ='scrolling=auto'
	var brd =b||0;
	var maxc =n||false;
	var minc =b||false;
	var res =r||false;
	var tsz =20;
	return chromeless(CurrURL,nomefin,W,H,X,Y,tW,wNS,fSO,brd,res,tsz,scrb)
}
//end

//-->
