// basic javascript for KeikoArt.com


// Arrays of images

int = new Array();
int[0] = new Array( "images/Awakening.jpg", 367, 500, "Intuition", "Awakening, 2000<br />Pastel" );
int[1] = new Array( "images/Birth.jpg", 340, 500, "Intuition", "Birth, 2000<br />Pastel" );
int[2] = new Array( "images/Incarnation.jpg", 360, 500, "Intuition", "Incarnation, 2000<br />Pastel" );
int[3] = new Array( "images/MidnightSun1-5.jpg", 699, 200, "Intuition", "Midnight Sun Series, 2003<br />Mineral Pigment / Gold Leaf" );

ins = new Array();
ins[0] = new Array( "images/RainDrops.jpg", 331, 500, "Inspiration", "Rain Drops, 2001<br />Pastel" );
ins[1] = new Array( "images/FlowofLife1.jpg", 362, 500, "Inspiration", "Flow of Life 1, 2005<br />Pastel" );
ins[2] = new Array( "images/FlowofLife2.jpg", 354, 500, "Inspiration", "Flow of Life 2, 2005<br />Pastel" );
ins[3] = new Array( "images/JoyfulMove.jpg", 401, 500, "Inspiration", "Joyful Move, 2006<br />Mineral Pigment / Oil Pastel" );
ins[4] = new Array( "images/RisingBlue.jpg", 440, 500, "Inspiration", "Rising Blue, 2006<br />Mineral Pigment" );

ima = new Array();
ima[0] = new Array( "images/Genesis.jpg", 338, 500, "Imagination", "Genesis, 2000<br />Pastel" );
ima[1] = new Array( "images/HeavenandEarth.jpg", 355, 500, "Imagination", "Heaven and Earth, 2003<br />Mineral Pigment / Gold Leaf" );
ima[2] = new Array( "images/LeavingEarth.jpg", 362, 500, "Imagination", "Leaving Earth, 2005<br />Pastel" );
ima[3] = new Array( "images/BirthofYellow.jpg", 407, 500, "Imagination", "Birth of Yellow, 2006<br />Mineral Pigment / Oil Pastel" );
ima[4] = new Array( "images/WaveBlue.jpg", 356, 500, "Imagination", "Wave Blue, 2006<br />Mineral Pigment" );

geo = new Array();
geo[0] = new Array( "images/AllSoulsDay.jpg", 344, 500, "Geometry", "All Souls Day, 2002<br />Pastel" );
geo[1] = new Array( "images/AutumnLeave.jpg", 356, 500, "Geometry", "Autumn Leaves, 2005<br />Pastel" );
geo[2] = new Array( "images/Azalea1.jpg", 363, 500, "Geometry", "Azalea, 2006<br />Pastel" );
geo[3] = new Array( "images/Bonfire.jpg", 350, 500, "Geometry", "Bonfire, 2001<br />Pastel" );
geo[4] = new Array( "images/BrotherSister.jpg", 353, 500, "Geometry", "Brother and Sister, 2001<br />Pastel" );
geo[5] = new Array( "images/CosmosonEarth.jpg", 351, 500, "Geometry", "Cosmos on Earth, 2001<br />Pastel" );
geo[6] = new Array( "images/Easter.jpg", 380, 500, "Geometry", "Easter, 2000<br />Watercolor Crayon" );
geo[7] = new Array( "images/GoodFriday.jpg", 341, 500, "Geometry", "Good Friday, 2000<br />Watercolor Crayon" );
geo[8] = new Array( "images/IntoYourDream.jpg", 500, 355, "Geometry", "Into Your Dream, 2001<br />Pastel" );
geo[9] = new Array( "images/SummerSun.jpg", 499, 500, "Geometry", "Summer Sun, 2001<br />Oil" );
geo[10] = new Array( "images/UnderOliveTrees.jpg", 500, 365, "Geometry", "Under Olive Trees, 2001<br />Oil" );

obs = new Array();
obs[0] = new Array( "images/Cosmos1.jpg", 506, 500, "Observation and Perception", "Cosmos 1, 2003<br />Pencil" );
obs[1] = new Array( "images/Cosmos2.jpg", 390, 500, "Observation and Perception", "Cosmos 2, 2003<br />Pencil" );
obs[2] = new Array( "images/Cosmos3.jpg", 500, 418, "Observation and Perception", "Cosmos 3, 2003<br />Pencil" );
obs[3] = new Array( "images/Cosmos4.jpg", 550, 500, "Observation and Perception", "Cosmos 4, 2003<br />Pencil" );
obs[4] = new Array( "images/Cosmos5.jpg", 500, 371, "Observation and Perception", "Cosmos 5, 2003<br />Pencil" );
obs[5] = new Array( "images/Cosmos6.jpg", 372, 500, "Observation and Perception", "Cosmos 6, 2003<br />Pencil" );
obs[6] = new Array( "images/Cosmos7.jpg", 500, 321, "Observation and Perception", "Cosmos 7, 2003<br />Pencil" );

flo = new Array();
flo[0] = new Array( "images/AzaleaOrange.jpg", 358, 500, "Flowers", "Azalea Orange, 2006<br />Pastel" );
flo[1] = new Array( "images/AzaleaPink.jpg", 367, 500, "Flowers", "Azalea Pink, 2006<br />Pastel" );
flo[2] = new Array( "images/DaffodilandYellowFlowers.jpg", 364, 500, "Flowers", "Daffodil and Yellow Flowers, 2006<br />Pastel" );
flo[3] = new Array( "images/Iris.jpg", 352, 500, "Flowers", "Iris, 2006<br />Pastel" );
flo[4] = new Array( "images/Lotus.jpg", 363, 500, "Flowers", "Lotus, 2005<br />Pastel" );
flo[5] = new Array( "images/MorningGlory.jpg", 367, 500, "Flowers", "Morning Glory, 2006<br />Pastel" );
flo[6] = new Array( "images/Primula.jpg", 359, 500, "Flowers", "Primula, 2006<br />Pastel" );

col = new Array();
col[0] = new Array( "images/Afternoon.jpg", 500, 346, "Color Perspective", "Afternoon, 1998<br />Watercolor" );
col[1] = new Array( "images/CatDream.jpg", 380, 500, "Color Perspective", "Cat Dream, 1998<br />Watercolor" );
col[2] = new Array( "images/Fish.jpg", 500, 346, "Color Perspective", "Fish, 2001<br />Pastel" );
col[3] = new Array( "images/Hi.jpg", 346, 500, "Color Perspective", "Hi, 1999<br />Watercolor" );
col[4] = new Array( "images/SeekingSoul.jpg", 348, 500, "Color Perspective", "Seeking Soul, 1998<br />Watercolor" );
col[5] = new Array( "images/TempleVisit.jpg", 349, 500, "Color Perspective", "Temple Visit, 1999<br />Watercolor" );

fan = new Array();
fan[0] = new Array( "images/AutumnRain.jpg", 362, 500, "Fantasy", "Autumn Rain, 1998<br />Gouache" );
fan[1] = new Array( "images/Circus.jpg", 313, 500, "Fantasy", "Circus, 1999<br />Gouache" );
fan[2] = new Array( "images/FiddlerintheForest.jpg", 351, 500, "Fantasy", "Fiddler in the Forest, 1998<br />Watercolor" );
fan[3] = new Array( "images/FindYourFreedom.jpg", 334, 500, "Fantasy", "Find Your Freedom, 1999<br />Watercolor Crayon" );
fan[4] = new Array( "images/GoldenHarvest.jpg", 338, 500, "Fantasy", "Golden Harvest, 1999<br />Watercolor Crayon" );
fan[5] = new Array( "images/GiveMyHeart.jpg", 321, 500, "Fantasy", "I Want to Give You My Heart, 1999<br />Watercolor Crayon" );
fan[6] = new Array( "images/MoonlightVillage.jpg", 500, 343, "Fantasy", "Moonlight Village, 2001<br />Pastel" );
fan[7] = new Array( "images/RedTown.jpg", 345, 500, "Fantasy", "Red Town, 1999<br />Watercolor Crayon" );

nat = new Array();
nat[0] = new Array( "images/ASummerDay.jpg", 500, 396, "Nature", "A Summer Day, 2004<br />Mineral Pigment" );
nat[1] = new Array( "images/Daffodils.jpg", 500, 352, "Nature", "Daffodil Field, 2003<br />Sumi Ink" );
nat[2] = new Array( "images/FlyingHigh.jpg", 500, 369, "Nature", "Flying High, 1998<br />Acrylic" );
nat[3] = new Array( "images/Moult.jpg", 513, 500, "Nature", "Moult, 2006<br />Mineral Pigment / Gold Leaf / Nature Objects" );
nat[4] = new Array( "images/MountainRange.jpg", 382, 500, "Nature", "Mountain Range, 1999<br />Watercolor Crayon" );
nat[5] = new Array( "images/RiverGold.jpg", 436, 500, "Nature", "River Gold, 2006<br />Mineral Pigment / Gold Leaf" );
nat[6] = new Array( "images/ShootingStar.jpg", 500, 363, "Nature", "Shooting Star, 2001<br />Pastel" );
nat[7] = new Array( "images/WinterMoon.jpg", 500, 374, "Nature", "Winter Moon, 1998<br />Acrylic" );



// functions to call the popup window that displays the artwork

var artWin;
var 	wStyles = '<style type="text/css" media="all">@import "../ui/popwin.css";</style>';

// pops a window with HTML created from the passed information

function show_art( art )
{ 
	show_art_win( art[0], art[1], art[2], art[3], art[4] );
}


function show_art_win( iName, iWidth, iHeight, iTitle, iText )
{ 
	wWidth = iWidth + 32;
	wHeight = iHeight + 86;

	if( artWin ) artWin.close();

	artWin = window.open ( "", "artWindow", "toolbar=0,scrollbars=0,menubar=0,status=0,width="+wWidth+", height="+wHeight );

	artWin.document.write('<html><head><title>'+iTitle+'</title>'+wStyles+'</head><body onBlur="self.close()">');
	artWin.document.write('<img src="'+iName+'" width="'+iWidth+'" height="'+iHeight+'" />');
	artWin.document.write('<div>'+iText+'<br /><a href="#"  onClick="window.close()">Close Window</a></div></body></html>');

	artWin.document.close();
	artWin.focus()

}

// pops a window with page passed as iName 

function show_art1( iName, iWidth, iHeight )
{ 
	wWidth = iWidth + 40;
	wHeight = iHeight + 80;

	artWin = window.open ( 	iName, "mywindow", "width="+wWidth+", height="+wHeight );
	artWin.focus();

}


// display copyright info

function dispCopyright()
{
	document.write("Copyright &copy; 2006-07 KeikoArt.com")

}

// make arrays for the day and month names

days = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'); 
monthslong = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'); 
months = new Array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); 


// display last modified date

function lastMod()
{
	var modDate = new Date(document.lastModified);
	var formatDate = months[modDate.getMonth()] + " " + modDate.getDate() + ", " + modDate.getFullYear();
	var hours =   modDate.getHours();
	var mins =   modDate.getMinutes();

	if (mins < 10) { mins = "0" + mins; }
	document.write('<br />' + "Last modified on " + formatDate)

}

