	
	/*   --------------------------- Stylesheet reference ----------------------- */	
	
	var path = '';
	if (level!=null) {
		// build path
		for(i=0; i<level; i++) {
			path += '../';
		}
	}
	
	
	/*   --------------------------- other functions ----------------------- */
	
	
	
	// default offsets for new smaller windows ('methods', things')
	var windowOffsetX = -310;
	var windowOffsetY = -250;
	
	
	function showMethod(dir) {						// open 'method' window
		width = 600;
		height = 500;
		
		windowLeft = getCenterX() + windowOffsetX;
		windowTop = getCenterY() + windowOffsetY - 50;
		
		parameters  = 'toolbar=0,location=0,menubar=0';
		parameters += ',width=' + width + ',height=' + height + ',top=' + windowTop + ',left=' + windowLeft;
		
		window.open(dir + '/index.html', 'method', parameters);
	}
	
	
	function showShop(dir) {						// open 'projects' window
		width = 410;
		height = 642;
		
		if (IE && MAC) {
			width = 389;
			height = 626;
		}
		if (NN4 && MAC) {
			width = 383;
			height = 620;
		}
		
		windowLeft = getCenterX() + windowOffsetX - 150;
		windowTop = getCenterY() + windowOffsetY - 80;
		
		parameters  = 'toolbar=0,location=0,menubar=0';
		parameters += ',width=' + width + ',height=' + height + ',top=' + windowTop + ',left=' + windowLeft;
		
		window.open(dir + '/index.html', 'shop', parameters);
	}

	
	
	function showMenu(dir) {						// open 'projects' window
		width = 432;
		height = 642;
		
		if (IE && MAC) {
			width = 389;
			height = 626;
		}
		if (NN4 && MAC) {
			width = 383;
			height = 620;
		}
		
		windowLeft = getCenterX() + windowOffsetX - 150;
		windowTop = getCenterY() + windowOffsetY - 80;
		
		parameters  = 'toolbar=0,location=0,menubar=0';
		parameters += ',width=' + width + ',height=' + height + ',top=' + windowTop + ',left=' + windowLeft;
		
		window.open(dir + '/index.html', 'projects', parameters);
	}
	
	
	function showImagebank(dir) {						// open 'imagebank' window
		width = 385;
		height = 430;
		
		if (IE && MAC) {
			width = 385;
			height = 429;
		}
		if (NN4 && MAC) {
			width = 379
			height = 423;
		}
		
		windowLeft = getCenterX() + windowOffsetX - 150;
		windowTop = getCenterY() + windowOffsetY - 50;
		
		parameters  = 'toolbar=0,location=0,menubar=0';
		parameters += ',width=' + width + ',height=' + height + ',top=' + windowTop + ',left=' + windowLeft;
		
		window.open(dir + '/index.html', 'imagebank', parameters);
		
		
		
	}
	
	
	function showImagebank(dir) {						// open 'imagebank' window
		width = 385;
		height = 430;
		
		if (IE && MAC) {
			width = 385;
			height = 429;
		}
		if (NN4 && MAC) {
			width = 379
			height = 423;
		}
		
		windowLeft = getCenterX() + windowOffsetX - 150;
		windowTop = getCenterY() + windowOffsetY - 50;
		
		parameters  = 'toolbar=0,location=0,menubar=0';
		parameters += ',width=' + width + ',height=' + height + ',top=' + windowTop + ',left=' + windowLeft;
		
		window.open(dir + '/index.html', 'imagebank', parameters);
		
		
		
		}
	
	function showPublications(hash, level) {							// opens 'information' page with target
		var path = '';
		for(i=1; i<level; i++) {
			path += '../';
		}
		
		width = 830;
		height = 642;
		
		if (IE && MAC) {
			width = 900;
			height = 626;
		}
		if (NN4 && MAC) {
			width = 900;
			height = 620;
		}
		
		windowLeft = getCenterX() + windowOffsetX - 170;
		windowTop = getCenterY() + windowOffsetY - 80;
		
		parameters  = 'toolbar=0,location=0,menubar=0';
		parameters += ',width=' + width + ',height=' + height + ',top=' + windowTop + ',left=' + windowLeft;
		
		
		window.open(path + '../publications/index.html#' + hash, 'publications', parameters);

		}
		
		
	function showPublication(dir) {						// opens 'thing' window
		width = 300;
		height = 642;
	
		if (IE && MAC) {
			width = 284;
			height = 626;
		}
		if (NN4 && MAC) {
			width = 300;
			height = 620;
		}
	
		windowLeft = getCenterX() + windowOffsetX + 300;
		windowTop = getCenterY() + windowOffsetY - 80;
		
		parameters  = 'toolbar=0,location=0,menubar=0';
		parameters += ',width=' + width + ',height=' + height + ',top=' + windowTop + ',left=' + windowLeft;
		
		window.open(dir + '/index.html', 'publication', parameters);
		
		
	}
		
		
	function showThing(dir) {						// opens 'thing' window
		width = 300;
		height = 642;
	
		if (IE && MAC) {
			width = 284;
			height = 626;
		}
		if (NN4 && MAC) {
			width = 300;
			height = 620;
		}
	
		windowLeft = getCenterX() + windowOffsetX + 300;
		windowTop = getCenterY() + windowOffsetY - 80;
		
		parameters  = 'toolbar=0,location=0,menubar=0';
		parameters += ',width=' + width + ',height=' + height + ',top=' + windowTop + ',left=' + windowLeft;
		
		window.open(dir + '/index.html', 'thing', parameters);
		
		
	}
	
	function showDownloads(item) {						// opens 'downloads' window
		width = 410;
		height = 642;
		
		if (IE && MAC) {
			width = 389;
			height = 626;
		}
		if (NN4 && MAC) {
			width = 383;
			height = 620;
		}
	
		windowLeft = getCenterX() + windowOffsetX + 300;
		windowTop = getCenterY() + windowOffsetY - 80;
		
		parameters  = 'toolbar=0,location=0,menubar=0';
		parameters += ',width=' + width + ',height=' + height + ',top=' + windowTop + ',left=' + windowLeft;
		
		window.open('/press/login/index.php?item=' + item, 'download', parameters);
		
		
	}
	
	function showRequestPassword() {						// opens 'request password' window
		width = 410;
		height = 642;
		
		if (IE && MAC) {
			width = 389;
			height = 626;
		}
		if (NN4 && MAC) {
			width = 383;
			height = 620;
		}
	
		windowLeft = getCenterX() + windowOffsetX + 300;
		windowTop = getCenterY() + windowOffsetY - 80;
		
		parameters  = 'toolbar=0,location=0,menubar=0';
		parameters += ',width=' + width + ',height=' + height + ',top=' + windowTop + ',left=' + windowLeft;
		
		window.open('/press/login/request_password.html', 'download', parameters);
		
		
	}
	
	
	function showBigImage(url) {		// opens big 'thing' image
		windowLeft = getCenterX() - 50;
		windowTop = getCenterY() - 50;
		
		parameters  = 'toolbar=0,location=0,menubar=0,scrollbars=0,width=100,height=100,top=' + windowTop + ',left=' + windowLeft;
		window.open(url, 'bigthing', parameters);
	
	}
	
	function showMovie(url, width, height) {		// opens big 'thing' image
		windowLeft = getCenterX() - parseInt(width / 2);
		windowTop = getCenterY() - parseInt(height / 2) + 40;
		
		parameters  = 'toolbar=0,location=0,menubar=0,scrollbars=0';
		parameters += ',width=' + width + ',height=' + height + ',top=' + windowTop + ',left=' + windowLeft;
		
		window.open(url, 'bigthing', parameters);

	}
	
	function showInformation(hash, level) {							// opens 'information' page with target
		var path = '';
		for(i=1; i<level; i++) {
			path += '../';
		}
		
		width = 410;
		height = 642;
		
		if (IE && MAC) {
			width = 389;
			height = 626;
		}
		if (NN4 && MAC) {
			width = 383;
			height = 620;
		}
		
		windowLeft = getCenterX() + windowOffsetX;
		windowTop = getCenterY() + windowOffsetY - 80;
		
		parameters  = 'toolbar=0,location=0,menubar=0,scrollbars=1';
		parameters += ',width=' + width + ',height=' + height + ',top=' + windowTop + ',left=' + windowLeft;
		
		
		window.open(path + '../studio/information/index.html#' + hash, 'info', parameters);



}	function showText(url, parameters) {							// opens 'information' page with target

		width = 410;
		height = 642;
		
		if (IE && MAC) {
			width = 389;
			height = 626;
		}
		if (NN4 && MAC) {
			width = 383;
			height = 620;
		}
		
		windowLeft = getCenterX() + windowOffsetX + 270;
		windowTop = getCenterY() + windowOffsetY - 80;
		
		parameters  = 'toolbar=1,location=1,menubar=1,scrollbars=1';
		parameters += ',width=' + width + ',height=' + height + ',top=' + windowTop + ',left=' + windowLeft;
		
		
		window.open(url, 'text');

	}
	
	function goNewWin() {



window.open("../../index.html",'Home','toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1'); 


self.close()

	}
	
	function showSubscribe(dir) {

	
		width = 360;
		height = 240;
		
		if (IE && MAC) {
			width = 344;
		}
		if (NN4 && MAC) {
			width = 360;
		}
		
		windowLeft = getCenterX() + windowOffsetX - 0;
		windowTop = getCenterY() + windowOffsetY + 50;
		
		parameters  = 'toolbar=0,location=0,menubar=0,scrollbars=0';
		parameters += ',width=' + width + ',height=' + height + ',top=' + windowTop + ',left=' + windowLeft;



		window.open(dir + '/index.html','subscribe', parameters); 
	
	
	
	
	}
	
	function showGuestbook(dir) {

	
		width = 600;
		height = 600;
		
		if (IE && MAC) {
			width = 584;
		}
		if (NN4 && MAC) {
			width = 550;
		}
		
		windowLeft = getCenterX() + windowOffsetX - 0;
		windowTop = getCenterY() + windowOffsetY - 50;
		
		parameters  = 'toolbar=0,location=0,menubar=0,scrollbars=0';
		parameters += ',width=' + width + ',height=' + height + ',top=' + windowTop + ',left=' + windowLeft;



		window.open(dir + '/jax_guestbook.php','guestbook', parameters); 
	
	
	
	
	}
	
	
	
	function goCart() {

	
		width = 490;
		height = 642;
		
		if (IE && MAC) {
			width = 474;
			height = 626;
		}
		if (NN4 && MAC) {
			width = 490;
			height = 620;
		}
		
		windowLeft = getCenterX() + windowOffsetX + 267;
		windowTop = getCenterY() + windowOffsetY - 80;
		
		parameters  = 'toolbar=0,location=0,menubar=0';
		parameters += ',width=' + width + ',height=' + height + ',top=' + windowTop + ',left=' + windowLeft;
	

window.open("cart/index.html",'cart', parameters); 
		
		
		
		

}
	
	function goSupp() {

	
		width = 490;
		height = 445;
		
		if (IE && MAC) {
			width = 474;
			height = 429;
		}
		if (NN4 && MAC) {
			width = 490;
			height = 423;
		}
		
		
		windowLeft = getCenterX() + windowOffsetX + 267;
		windowTop = getCenterY() + windowOffsetY - 80;
		
		parameters  = 'toolbar=0,location=0,menubar=0';
		parameters += ',width=' + width + ',height=' + height + ',top=' + windowTop + ',left=' + windowLeft;
	

window.open("cart/index2.html",'cart', parameters); 


}

 <!--
 function openMailform(location,winName) {

		width = 530;
		height = 570;
		
		if (IE && MAC) {
			width = 514;
			height = 570;
		}
		if (NN4 && MAC) {
			width = 530;
			height = 570;
		}
		
		
		windowLeft = getCenterX() + windowOffsetX - 0;
		windowTop = getCenterY() + windowOffsetY - 70;
		
		parameters  = 'toolbar=1,location=1,menubar=1';
		parameters += ',width=' + width + ',height=' + height + ',top=' + windowTop + ',left=' + windowLeft;
	

 window.open(location,winName,parameters);

	
	
	
	
	}


 <!--
 function openRecommend(location,winName) {

		width = 530;
		height = 530;
		
		if (IE && MAC) {
			width = 514;
			height = 530;
		}
		if (NN4 && MAC) {
			width = 530;
			height = 530;
		}
		
		
		windowLeft = getCenterX() + windowOffsetX - 0;
		windowTop = getCenterY() + windowOffsetY - 50;
		
		parameters  = 'toolbar=0,location=0,menubar=0';
		parameters += ',width=' + width + ',height=' + height + ',top=' + windowTop + ',left=' + windowLeft;
	

 window.open(location,winName,parameters);

	
	
	
	
	}

	
	function setScroll() {
		detectEnvironmentProperties();
		var bodyWidth;
		if (!NN4) {
			bodyWidth = document.body.scrollWidth;
		} else {
			bodyWidth = document.width;
		}
		/*var r = parseInt((bodyWidth - windowWidth) * Math.random());
		window.scrollTo(r,0);*/
	}
	
	function getCenterX() {												// get horizontal center of screen
		if (IE || NN6) {
			return parseInt(screen.width / 2);
		} else {
			return parseInt(screen.availWidth / 2);
		}
	}
	
	function getCenterY() {												// get vertical center of screen
		if (IE || NN6) {
			return parseInt(screen.height / 2);
		} else {
			return parseInt(screen.availHeight / 2);
		}
	}

	function maxResize() {
		window.moveTo(0,0);
		self.resizeTo(screen.availWidth, screen.availHeight);
	}


function mouseOver(obj) {
	obj.src = obj.src.replace('.gif', '_s.gif'); 
}	

function mouseOut(obj) {
	obj.src = obj.src.replace('_s.gif', '.gif'); 
}
	
