// JavaScript Document

var d = new Date();
var cYear= d.getFullYear();

function artDetail(url) {
	PhotoWin=window.open(url,"detail","width=470,height=450,toolbar=no,scrollbars=no,menubar=no,resize=no,status=no,left=0,top=0");
}
function viewYouTube(url) {
	PhotoWin=window.open(url,"detail","width=480,height=390,toolbar=no,scrollbars=no,menubar=no,resize=no,status=no,left=0,top=0");
}

var whichProject = document.getElementById(this);
function showProject(whichProject) {
	alert(this);
	document.getElementById('project').src = "../2006/images/fineart/" + whichProject + ".jpg";
}

// writes on the fly a document with detail shot
function showDetail(whichDetail,myWidth,myHeight){
	myDetail = window.open("detail", "_blank", "width=" + myWidth + ",height=" + myHeight + ",toolbar=0,resizable=0,location=0,menubar=0,status=0,scrollbars=0");
	detailContent ="<html><head><title>Detail</title>"
	detailContent += "<link rel='stylesheet' type='text/css' href='sheets/sbkStyles.css' media='screen'></head>"
	detailContent += "<body id='miniWin' onblur='self.close()'><p align='center'><img src='images/art/" + whichDetail + "_d.jpg' />"
	detailContent += "</body></html>"

	myDetail.document.write(detailContent);
	myDetail.document.close() ;
}

// writes on the fly a document with making of
function showMaking(whichEffort,myWidth,myHeight){
	myEffort = window.open("effort", "_blank", "width=" + myWidth + ",height=" + myHeight + ",toolbar=0,resizable=0,location=0,menubar=0,status=0,scrollbars=0");
	effortContent ="<html><head><title>Inspired By...</title>"
	effortContent += "<link rel='stylesheet' type='text/css' href='sheets/sbkStyles.css' media='screen'></head>"
	effortContent += "<body id='miniWin' onblur='self.close()'><img src='images/art/" + whichEffort + "_m.jpg' />"
	effortContent += "</body></html>"

	myEffort.document.write(effortContent);
	myEffort.document.close() ;
}

// writes on the fly a document with book
function showBook(whichBook){
	myBook = window.open("book", "_blank", "width=212,height=323,toolbar=0,resizable=0,location=0,menubar=0,status=0,scrollbars=0");
	bookContent ="<html><head><title>Inspired By...</title>"
	bookContent += "<link rel='stylesheet' type='text/css' href='sheets/sbkStyles.css' media='screen'></head>"
	bookContent += "<body id='miniWin' onblur='self.close()'><img src='images/art/" + whichBook + "_b.jpg' />"
	bookContent += "</body></html>"

	myBook.document.write(bookContent);
	myBook.document.close() ;
}

