// Copyright 2011, Alki Arts, All rights reserved

function gallery()
{
	this.splash				= null;
	
	this.galleryNode;
	this.headerNode;
	this.infoNode;
	this.displayNode;
	this.copyNode;
	
	this.artists;
	
	this.viewer = new viewer();
	
	this.initArtists();
}
gallery.prototype.WIDTH  		= 800;
gallery.prototype.MIN_HEIGHT 	= 600;
gallery.prototype.TOP_PAD		= 0;
gallery.prototype.HEADER_HEIGHT = 75;
gallery.prototype.GRAD_WIDTH	= 70;
gallery.prototype.COPY_HEIGHT	= 20;
gallery.prototype.IMG_LEFT		= 250;

function gallery_initArtists()
{
	var lArtist;
	var lPhoto;
	var lBio;
	
	this.artists = new Array();
	this.splash = new splash();
	
	// warren knapp
	lBio = new Array();
	lBio.push('Warren Knapp is a West Coast artist & designer who has lived and worked in Seattle, San Francisco, and Los Angeles. Extended visits to London and a study of the architectural, animal and botanical prints of Great Britain have shaped Knapp\'s artistic sensitivity. In his Seattle Studio, the artist vigorously explores the spectrum of themes with each art piece as an assured statement of his creativity. ');
	lBio.push('Knapp is one of the most innovative and creative designers and directors in the residential and commercial architectural and communications industry. His imaginative approach to three-dimensional presentations has made him the elite choice as designer and artist for many senior executives of Fortune 500 companies. Warren\'s creative talent has bridged various facets of the multimedia and architectural arena for 19 years. ');
	lBio.push('Knapp is a graduate of Art Center College of Design, Pasadena with a Bachelor of Science in Industrial/Environmental design.');

	lArtist = new artist('Warren Knapp', 'http://www.warrenknapp.com', lBio.join('<br/><br/>'), 'images/warrenKnappThumb.jpg');
	lPhoto = new photo('Warren Knapp', null, 'images/warrenKnapp.jpg', 400, 323, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	

	// toshi esumi
	lBio = new Array();
	lBio.push('Toshi Esumi started painting in 2003 when he learned oil painting in a class room at University of Washington Extension. When he was a young boy in Japan, he was very curious about almost all activities around him from playing soccer  to calligraphy. He showed some talent in watercolor painting and woodcut printing at school, but he didn\'t consider becoming an artist at that time. Instead, he pursued an education to be an engineer and then a career in high-tech industries, which eventually brought him to this country.');
	lBio.push('After arriving in Seattle he began painting with oil and came to love that medium for its forgiveness and capability.  The climate in Washington is relatively similar to where he grew up. Mountains, rivers, lakes, and the ocean, as well as animals around—all of those seem to have helped him to revive his old memories. He started stepping into nature in order to paint his subjects right in their natural surroundings. But those paintings are primarily color studies in order to capture true life—which he then brings back to his studio in order to produce the final works of art in larger formats.');
	lBio.push('Over the years Toshi has fallen in love with nature and enjoys sharing his passion with viewers of his representational paintings.');

	lArtist = new artist('Toshi Esumi', '', lBio.join('<br/><br/>'), 'images/toshiEsumiThumb.jpg');
	lPhoto = new photo('Toshi Esumi', null, 'images/toshiEsumi.jpg', 411, 300, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	
	
	// tom wyrick
	lBio = new Array();
	lBio.push('"Painting on metal" by etching and grinding on stainless steel is a streamlined handsome style of art; well suited for commercial, or highly architectural spaces. ');
	lBio.push('The process of creating these pieces utilizes bouncing light off of positive and negative space in such a way that appears almost 3-D at times. These \'hanging sculptures\' serve as subtle non-intrusive backdrops or can serve as the main attraction; the focal point of a space. ');
	lBio.push('Wall hangings can be custom ordered in any size to fit the space and mood desired. Triptych and diptych work are among his favorites to create. Prices range from $100 - $5,000 ');
	lBio.push('Born in Southern California, Tom jokes about the \'many hats he\'s worn\' which include creating effects & sets for TV & movies, software development, and starting his own newspaper in North Carolina! These days Tom likes to think of himself as "An artist who lives on the beach" making his home on Seattle\'s beautiful Alki beach and drawing inspiration from the peace of the water and the energy of the city.');     

	lArtist = new artist('Tom Wyrick', 'http://wyricks.com/art/metal/', lBio.join('<br/><br/>'), 'images/tomWyrickThumb.jpg');
	lPhoto = new photo('Tom Wyrick', null, 'images/tomWyrick.jpg', 384, 512, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	
	
	lPhoto = new photo('Tom Wyrick', null, 'images/tomWyrick1.jpg', 375, 500, null);
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('Tom Wyrick', null, 'images/tomWyrick2.jpg', 375, 500, null);
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('Tom Wyrick', null, 'images/tomWyrick3.jpg', 386, 500, null);
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('Tom Wyrick', null, 'images/tomWyrick4.jpg', 386, 500, null);
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('Tom Wyrick', null, 'images/tomWyrick5.jpg', 500, 386, null);
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('Tom Wyrick', null, 'images/tomWyrick6.jpg', 500, 386, null);
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('Tom Wyrick', null, 'images/tomWyrick7.jpg', 386, 500, null);
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('Tom Wyrick', null, 'images/tomWyrick8.jpg', 333, 500, null);
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('Tom Wyrick', null, 'images/tomWyrick9.jpg', 333, 500, null);
	lArtist.addPhoto(lPhoto);
	

	// susan mulligan
	lBio = new Array();
	lBio.push('I create mixed-media work, with oil paint and natural beeswax as the predominant medium.  This process is known as encaustic painting from the ancient Greek enkaustikos, meaning “to heat” or “to burn.”'); 
	lBio.push('Using a wood surface, I work in many layers, allowing each piece to evolve.   Beeswax is malleable in a way that reminds me of clay.  A layer may be the addition of pigment or three-dimensional forms, or it may be a subtraction by scraping away using a variety of tools to reveal other underlying patterns.  Oil paint is used in thin glazes alternated with layers of wax to create transparency and depth.'); 
	lBio.push('I work in the present, reacting to the events of the process and not forcing the outcome, revealing representations of the natural world.  I’m greatly influenced by the Japanese aesthetic I was exposed to during my study in Arita, Japan—simplicity, harmony, naturalness, imperfection, serene beauty.'); 
	lBio.push('Born in Colorado and raised in the Pacific Northwest, I have studied art both domestically and abroad.  I have a Bachelor of Fine Arts degree with an emphasis on painting and drawing. Now married with two young children, I have a studio in Seattle’s SODO district.'); 

	lArtist = new artist('Susan Mulligan', 'http://suziemulligan13.blogspot.com/', lBio.join('<br/><br/>'), 'images/susanMulliganThumb.jpg');
	lPhoto = new photo('Susan Mulligan', null, 'images/susanMulligan.jpg', 403, 242, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	
	
	// susan k miller
	lBio = new Array();
	lBio.push('Susan is a full-time artist in West Seattle, Washington. She works in watercolor and watermedia collage.'); 
	lBio.push('In her artwork she tries to develop textures and contrasts of colors and light that are appealing and, perhaps, with a bit of mystery.  Susan\'s subjects are typically the architecture of the Mediterranean and the harbors of the Northwest.'); 
	lBio.push('\"What attracts me most are patterns of shapes, of light and shadow. I create a painting by putting down layers of colors to start telling the story I see in a scene, and then trying to introduce feelings of freshness and freedom, often with collaged papers or ephemera found locally - perhaps Greek newspapers, or gold Perugia chocolate wrappers.\"');
	lBio.push('\"I think in my most successful pieces, it\'s the viewer who completes the story.\"');
	lBio.push('Susan has studied in the U.S. and abroad with internationally recognized watercolor and mixed media artists, including Frank Webb, Mel Stabin, Don Andrews and Carla O\'Connor.');
	lBio.push('Susan\'s paintings have been juried into local and regional watercolor and collage shows, including the Northwest Watercolor Society "Waterworks" show, Eastside Arts and Northwest Collage Society shows. Her work is available at Alki Arts Gallery in Seattle, Washington.');

	lArtist = new artist('Susan K. Miller', 'http://www.susankmiller.net/', lBio.join('<br/><br/>'), 'images/susanMillerThumb.jpg');
	lPhoto = new photo('Susan K. Miller', null, 'images/susanMiller.jpg', 400, 270, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	

	// sheila lengle
	lBio = new Array();
	lBio.push('An artist since the first time I put crayon to paper, I’ve been lucky enough to have been in and out of a variety of creative careers during my 64 years. Though never a fulltime career painting. Fingers crossed that now is the time to go for it. ');
	lBio.push('I’m self-taught thus no rule guides me. I’ll paint whatever, whenever and with anything I want…rather like a spoiled child.. I think that’s a passion. I’m thrilled to feel this way and want to for the rest of my life.');

	lArtist = new artist('Sheila Lengle', '', lBio.join('<br/><br/>'), 'images/sheilaLengleThumb.jpg');
	lPhoto = new photo('Sheila Lengle', null, 'images/sheilaLengle.jpg', 406, 305, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	
	
	// robin weiss
	lBio = new Array();
	lBio.push('Born in Cleveland Ohio, Robin began drawing and painting at an early age. His first painting instruction from artist Louis Penfield gave him a love for capturing scenes of nature in watercolor.');
	lBio.push('Moving to the Pacific Northwest Robin has traveled on the Kitsap peninsula and surrounding areas painting landscapes and scenes of nature in watercolor and now oils.');

	lArtist = new artist('Robin Weiss', 'http://inpleinair.blogspot.com/', lBio.join('<br/><br/>'), 'images/robinWeissThumb.jpg');
	lPhoto = new photo('Robin Weiss', null, 'images/robinWeiss.jpg', 303, 400, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	
	
	// anna mastronardi novak
	lBio = new Array();
	lBio.push('My work reflects the simplicity, passion and underlying strength of life in a lush metaphor of hues and shapes.');
	lBio.push('');
	lBio.push('The mixed media encaustic work, oil on canvas, and wax pencil works seek to reveal an intimate and compelling softness, juxtaposed with bold sculptural composition;');
	lBio.push('a balance of tranquility belying the suggestiveness of the tactile forms.');
	lBio.push('');
	lBio.push('<b>Education</b>');
	lBio.push('Over 25 years of experience as a working fine artist, with original works in gallery and museum solo and group exhibitions in Washington, California, Arizona, Idaho and Colorado.');
	lBio.push('');
	lBio.push('Praxis School of Design, Seattle, WA');
	lBio.push('Certificate of Design, Graphic Design');
	lBio.push('');
	lBio.push('Highline College, Seattle, WA');
	lBio.push('Graphic Design, Color Theory, Painting');
	lBio.push('');
	lBio.push('Lakeland College, Mentor, OH');
	lBio.push('Graphic Design, Color Theory, Painting');
	lBio.push('');
	lBio.push('Pratt Fine Arts Center, Seattle, WA');
	lBio.push('Encaustic Workshops');

	lArtist = new artist('Anna Mastronardi Novak', '', lBio.join('<br/>'), 'images/AnnaNovakThumb.jpg');
	lPhoto = new photo('Float 1b', null, 'images/AnnaNovakFloat2.jpg', 400, 536, '');
	lArtist.addPhoto(lPhoto);

	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	
	lPhoto = new photo('Float 1a', null, 'images/AnnaNovakFloat1.jpg', 400, 526, null);
	lArtist.addPhoto(lPhoto);

	lPhoto = new photo('Autumn Palouse', null, 'images/AnnaNovakAutumnPalouse.jpg', 400, 519, null);
	lArtist.addPhoto(lPhoto);

	lPhoto = new photo('Anna', null, 'images/AnnaNovak.jpg', 267, 400, null);
	lArtist.addPhoto(lPhoto);
	

	// rodger squirrell
	lBio = new Array();
	lBio.push('Seattle artist Rodger Squirrell has created a diverse body of work using recycled industrial remnants, plate steel, and other materials reinvented as bold, skeletal forms.');
	lBio.push('An instructor of welding and metal fabrication at South Seattle Comrnunity College, Squirrell gained his skills as a welder in numerous industrial settings including offshore oil work, structural steel fabrication, bridge repair, and custom boat repair.');
	lBio.push('Squirrell\'s pieces have received numerous awards. In his hands, chrome automobile bumpers become statuesque women and stainless steel pipe sections become the furious start of a canoe race. A huge steel cactus displays spines made of hundreds of discarded cotter pins.'); 
	lBio.push('Squirrell has created a series of metal masks synthesizing his interest in Roman, West African and Mexican ceremony and has recently begun using recycled paper and cloth collage with metal to achieve greater flexibility and spatial cornplexity in his pieces.');
	
	lArtist = new artist('Rodger Squirrell', 'http://www.metalsquirrell.com/', lBio.join('<br/>'), 'images/rodgerSquirrellThumb.jpg');
	lPhoto = new photo('Rodger Squirrell', null, 'images/rodgerSquirrell.jpg', 405, 190, '');
	lArtist.addPhoto(lPhoto);

	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	
	lPhoto = new photo('cactus', null, 'images/rogerSquirrellCactus5315.jpg', 432, 287, null);
	lArtist.addPhoto(lPhoto);
	
	lPhoto = new photo('reach', null, 'images/rogerSquirrellReach5342.jpg', 432, 287, null);
	lArtist.addPhoto(lPhoto);
	
	lPhoto = new photo('torso', null, 'images/rogerSquirrelTorso5363.jpg', 432, 287, null);
	lArtist.addPhoto(lPhoto);
	
	lPhoto = new photo('hourglass', null, 'images/rogerSquirrellHourGlass5329.jpg', 432, 287, null);
	lArtist.addPhoto(lPhoto);
	

	// phil jones
	lBio = new Array();
	lBio.push('Born in the Eastern Washington river city of Spokane, Phil Jones discovered the joy of boating during family outings on Puget Sound and the lakes of Washington and Idaho. At age 6, when his family moved to Boston, he became fascinated with mariner lifestyles and New England-coast folklore. His family took their boat not only to fish, but also to explore the storied ports of Salem, Gloucester, Cape Cod and Wood\'s Hole. By now captivated, he studied art and took field trips to Salem\'s Maritime Museum and Boston\'s Museum of Fine Arts. There he learned to appreciate the work of the New England masters including Winslow Homer, Edward Hopper, and the Wyeths. As a teen, Jones moved with his family to the San Francisco-Bay area. There he learned to sail, improve his artwork, and cherish California history, rich with riveting tales of Windjammers and Schooners. At 19, he returned to the Pacific Northwest, and, in 1981, earned a B.F.A. in Graphic Design from Central Washington University.'); 
	lBio.push('Today, Jones paints in his studio across a street from the sand, rocks and driftwood of Seattle\'s historic Alki Beach, framing the south end of Elliott Bay. He tries to reflect, in paint, the splendor of the Northwest he sees from his studio window. ');
	lBio.push('As a fine artist his whole life, and as a commercial artist in graphic art and retail-store design for more than 20 years, Jones has mastered many avenues of expression. Although Jones works in both 2- and 3-dimensional media, he finds that watercolors best suit his taste and the maritime genre. ');
	lBio.push('Jones works are displayed regularly in galleries and restaurants throughout the Seattle area. They also are found in private collections. Jones welcomes private showings and as well as commission work.');
	lBio.push('As he says, "Enjoy!"');

	lArtist = new artist('Phil Jones', 'http://www.philjonesgallery.com/', lBio.join('<br/><br/>'), 'images/philJonesThumb.jpg');
	lPhoto = new photo('Phil Jones', null, 'images/philJones.jpg', 400, 378, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	

	// patri o'connor
	lBio = new Array();
	lBio.push('As a child, I was always conscious of visual imagery. The clouds were always recognizable shapes and the trees hid faces and creatures from everyone but me. Imagination, not precision, drives my work. Mostly, I want to create a dreamscape environment so that the viewer can move into memories or feelings of recognition of a time or place they may recall or relate to abstractly.'); 
	lBio.push('Growing up in a family of globe trotters exposed me to a variety of cultural experiences that spanned three continents. My earliest memories are of Gothic churches and beaches in Spain. The diversity of landscape and culture ranging from the deserts of New Mexico to the jungles of Venezuela and Paraguay, the cultural cornucopia of Mexico, the amazing landscapes of Chile, to the seemingly tame suburban environs of Detroit, Michigan shaped and inspired my visual aesthetic.');
	lBio.push('My paintings, though representational, are not realistic in the sense of being faithful to the subject. They are infused with a dreamlike quality that is similar to reality to but not necessarily true, a dimension that is more vivid and brilliant than the realm we inhabit. They are abstract, yet pay attention to detail and texture. Each painting has contrasts, whether it involves a juxtaposition of lights and darks, textural differences or the visual effect of contrasting reality and expressionism within one canvas.');
	lBio.push('My muse, aside from visual imagery, is the intangible realm of music. My process is candid. I show up and the canvas dictates where it wants to go.');

	lArtist = new artist('Patri O\'Connor', 'http://patri8paint.com', lBio.join('<br/><br/>'), 'images/patriOConnorThumb.jpg');
	lPhoto = new photo('Patri O\'Connor', null, 'images/patriOConnor.jpg', 300, 400, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	
		
	// marilyn van cleave
	lBio = new Array();
	lBio.push('I am an impressionistic artist. My work explores the dynamism of living things as well as the abstract by using mixed mediums, oils or acrylics on canvas.  Each painting intends to lead the viewers eye into the canvas pulling it out often in a circular direction with the aid of color and composition.  This movement brings energy to the painting making the visual experience inspiring.');
	
	lArtist = new artist('Marilyn Van Cleave', 'http://www.hangingcanvas.com/', lBio.join('<br/><br/>'), 'images/marilynVanCleaveThumb.jpg');
	lPhoto = new photo('Marilyn Van Cleave', null, 'images/marilynVanCleave.jpg', 400, 247, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	
		
	// linda hulce
	lBio = new Array();
	lBio.push('I have unearthed dreams, visions, lost memories, and passions in the process of painting these new works. Whether painting in my studio or plein Aire these efforts are my way of tapping into primary forces about which I am discovering and describing with paint and paper.'); 
	lBio.push('Currently living in West Seattle, I attended the University of Texas, majoring in Fine Art focusing in oil painting, and in 1998 began my exploration of Water media. I am extremely fortunate to have attended classes with Pat Dews, Zoltan Szabo, Judy Betts, Barbara Nechis, Frank Webb, as well as several local artists including Joan Archer and Carolyn Buchanan.');
	lBio.push('Currently I am showing at Parklane Gallery in Kirkland Washington and am a member of Eastside Association of Fine Arts, Northwest Watercolor Society, and Mercer Island Visual Arts League.');
	lBio.push('My art can be found in private collections throughout the West Coast as well as abroad.');

	lArtist = new artist('Linda Hulce', 'http://home.comcast.net/~lindahulce/site/', lBio.join('<br/><br/>'), 'images/lindaHulceThumb.jpg');
	lPhoto = new photo('Linda Hulce', null, 'images/lindaHulce.jpg', 400, 288, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	

	// leslie gauglitz
	lBio = new Array();
	lBio.push('My passion for creating hand blown glass comes from the unlimited possibilities of combined form and color. Each custom blown glass project is unique and exciting for me to design. My glass art designs bring visual excitement to the area it\'s placed. ');
	lBio.push('Leslie Gauglitz lives in the Seattle area where she was born and raised.'); 
	lBio.push('Leslie has always viewed life through artist eyes, and the Pacific Northwest\'s rich combination of nature and beautiful color has provided the perfect background to develop Leslie\'s vivid expression in color and form. ');
	lBio.push('Leslie is currently focusing on her gallery glass editions and custom glass design work for Northwest Glass Design. Leslie specializes in custom design blown glass for your residential and commercial areas offering a very large range of hand blown glass ideas.');
	lBio.push('All glass is identified with an Original Gauglitz Glass seal and hand signed by Leslie. Each piece of glass is hand blown in Seattle Washington.');

	lArtist = new artist('Leslie Gauglitz', 'http://northwestglassdesign.com/', lBio.join('<br/><br/>'), 'images/leslieGauglitzThumb.jpg');
	lPhoto = new photo('Leslie Gauglitz', null, 'images/leslieGauglitz.jpg', 230, 375, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	

	// layne cook
	lBio = new Array();
	lBio.push('Layne was born in Seattle, Washington and raised in Portland, Oregon. She moved back to Seattle in 1969 to attend the University of Washington. She received a BA degree in art in 1973 and before settling down to the business of earning a living. In 2001, she and her husband quit their jobs to take a six-month driving trip around the U.S and Canada in a VW Eurovan. It was during this time that she made the decision to seriously pursue her passion for art in the form of painting. She has been actively painting and exhibiting since then, and has work in many private collections as well as in Harborview Hospital, Swedish Hospital, Hotel Max, International Kitchens, Ryan Swanson and Cleveland law firm, and other corporations and institutions.');
	lBio.push('“As an art student in the early 70’s, I found that I was often at a loss for subject matter. Now, some 30 years later, the ideas flow faster than I can implement them; I like to think that my experience and broader outlook as an older person have contributed to this creative energy. I am fascinated by all aspects of painting; the power of a good composition, the role of light and shadows, the use of color and the value of restraint in using color. I delight in the process of working out every painting, and hope that some of that joy is conveyed to the viewer through my work.”');

	lArtist = new artist('Layne Cook', '', lBio.join('<br/><br/>'), 'images/layneCookThumb.jpg');
	lPhoto = new photo('Layne Cook', null, 'images/layneCook.jpg', 392, 301, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	
	
	// larry halvorsen
	lBio = new Array();
	lBio.push('Larry Halvorsen is a self-taught potter with 28 years experience working with clay. He distributes his production, commission and one-of-a kind work to shops and Galleries nation wide.');
	lBio.push('For the last 17 years he has been exploring and refining the sgraffito carving technique which has become his signature style. Combining his interests in primitive art, ancient tools, natural forms and a lifelong love of pattern, he creates an ever-evolving body of work.');
	lBio.push('The recent focus of his work has been a series of free-standing totems, including sculptures, birdbaths and tables and work for the wall. Using many small pieces a large area can be treated without the inherent weight problem associate with clay.');

	lArtist = new artist('Larry Halvorsen', 'http://www.halvorsenclay.com/', lBio.join('<br/><br/>'), 'images/larryHalvorsenThumb.jpg');
	lPhoto = new photo('Larry Halvorsen', null, 'images/larryHalvorsen.jpg', 400, 314, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	

	// liang wei
	lBio = new Array();
	lBio.push('Guest Professor at both Sichuan University and Chongqing Normal University from 2009-Current. Freelance Artist last 30 years and former Visiting Scholar at University of Washington. Graduated in Printmaking Department of Sichuan Academy of Fine Arts, Sichuan, China.');
	lBio.push('“As an Asian artist residing in the West, I often wonder how to express the special experiences I have had, and to create space that gives plenty of free play to the viewer’s imagination. My landscape strong represents my philosophy and my basic creative intent. I have lived in Seattle more than 20 years, and travel by car almost every where in the State. The splendid scenery of this place, the poetic embrace of mountains, flat or hills with water are always coming back to my attention. I piece together these fragments, these moments of beauty. I try to reclaim such moments that get lost in the bustle, to reawaken our vision of where we live; I wish to inspire people to appreciate our living environment, which leads our aspirations to reality.”');
	lBio.push('Moody, thoughtful and alluring are a few words that are frequently used to describe the paintings of Liang Wei as he wanders the west coast of the United States capturing landscapes and western culture. Not a realist, a Naturalist, nor an Impressionist, Liang Wei is a “Moodist.” The impressionists wanted to capture the moment, Liang Wei captures a mood.”');

	lArtist = new artist('Liang Wei', '', lBio.join('<br/><br/>'), 'images/liangWeiThumb.jpg');
	lPhoto = new photo('Liang Wei', null, 'images/liangWei.jpg', 569, 427, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	
	
	// karen dedrickson
	lBio = new Array();
	lBio.push('These birds and I have a unique relationship. They are revealing the complex qualities of being human with the most basic of art materials.'); 
	lBio.push('This initial inspiration came from the ancient art of Chinese calligraphic painting. One stands before a table, knees are relaxed; the painting begins from the center of the body down to the wrist. The whole arm moves with intention. Eyes are softly focused on the paper.'); 
	lBio.push('I may paint or draw one bird many times before I see the perfect one. But it\'s best when I am not thinking, it creates itself- landing finished on the surface. Their simplicity is their power. These birds are a sublime statement of skill and accident in one moment.'); 
	lBio.push('They are calligraphic comment on our complicated lives; a combination of an ounce of black ink, maybe a smudge of pastel on paper made from a crushed plant.');

	lArtist = new artist('Karen Dedrickson', 'http://www.dedricksonart.com/', lBio.join('<br/><br/>'), 'images/karenDedricksonThumb.jpg');
	lPhoto = new photo('Karen Dedrickson', null, 'images/karenDedrickson.jpg', 344, 400, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	

	// johnny o'brady
	lBio = new Array();
	lBio.push('I was born in Tacoma, Washington. I’m from a big family. I left home 3 days after high school and moved to Venice Beach, CA, where I had my first studio. After that I moved to a loft in Soho, NYC. Since then, I’ve lived in many beautiful places, mostly on or near water. My current studio is in Pioneer Square, Seattle.');  
	lBio.push('Nature and the sea are big influences for my art – especially ocean storms, and the movement of the wind and waves.');  
	lBio.push('I’m also influenced by the black-and-white films I watched as a kid. In my “Stars” series I try to capture the spirit of those Old Hollywood icons.');
	lBio.push('In the two series I’ve been working on recently – “Boxers” and “Cowboys” – I’m exploring the emotional spaces between cause and effect during heightened situations: A laughing Muhammad Ali dances back to avoid a wild punch, a rancher becomes an outlaw the second he fires his gun.');
	lBio.push('I want to portray the raw emotion behind these actions. In viewing these paintings I want you to feel the anger, fear, rage, and even thrill behind the punch or the trigger. I want you to feel the adrenaline that is pumping through every cell of the boxer’s or cowboy’s body. In these moments time slows down.');
	
	lArtist = new artist('Johnny O\'Brady', 'http://johnnyobrady.com', lBio.join('<br/><br/>'), 'images/johnnyOBradyThumb.jpg');
	lPhoto = new photo('Johnny O\'Brady', null, 'images/johnnyOBrady.jpg', 402, 271, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);

	lPhoto = new photo('Ali Ali Ali', null, 'images/johnnyOBradyAliAli.jpg', 500, 495, '59" x 61"<br/>acrylic on canvas<br/>2010');
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('Brando', null, 'images/johnnyOBradyBrando.jpg', 599, 469, '47" x 43"<br/>acrylic on canvas<br/>2008');
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('The Dawn Riders', null, 'images/johnnyOBradyTheDayRiders.jpg', 500, 486, '53.5" x 51"<br/>acrylic on canvas<br/>2010');
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('Marilyn Dress', null, 'images/johnnyOBradyMarilynDress.jpg', 500, 373, '46.5" x 34"<br/>acrylic on canvas<br/>2008');
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('Player 1', null, 'images/johnnyOBradyPlayer1.jpg', 500, 480, '83" x 87"<br/>acrylic on canvas<br/>2009');
	lArtist.addPhoto(lPhoto);

	// john constantine
	lBio = new Array();
	lBio.push('John Constantine has been working in the medium of watercolor since 1954.');
	lBio.push('He is a past president of the Northwest Watercolor Society and is represented in the permanent collection of the Seattle Art Museum. He earned an MFA Degree from the University of Washington in 1959.');
	lBio.push('John\'s present work tends more toward the simplification of forms in the landscape, as well as an interpretation of mood.');	
	
	lArtist = new artist('John Constantine', 'http://www.gerlitzart.com/', lBio.join('<br/><br/>'), 'images/johnConstantineThumb.jpg');
	lPhoto = new photo('John Constantine', null, 'images/johnConstantine.jpg', 362, 567, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);	


	// jim gerlitz
	lBio = new Array();
	lBio.push('I was drawing on school notebooks as far back as I can remember ... every thing from \'57 Plymouth Furys to the Lone Ranger.');
	lBio.push('My art education consists of the Burnley School of Art, where I was privileged to learn from such great illustrators/artists as Bill Cumming, Dick Brown, Perry Acker, and others. I also studied under Cherry Brown, Nancy Johnson and Stu Moldrem.');
	lBio.push('My style is more or less impressionistic, and my goal in most paintings is to accomplish the objective with a minimum of brush strokes, striving for a feel of spontaneity.');	
	
	lArtist = new artist('Jim Gerlitz', 'http://www.gerlitzart.com/', lBio.join('<br/><br/>'), 'images/jimGerlitzThumb.jpg');
	lPhoto = new photo('Jim Gerlitz', null, 'images/jimGerlitz.jpg', 156, 400, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	

	// jason sinclair astorquia
	lBio = new Array();
	lBio.push('Born and raised in Twin Falls, Idaho, I am the son of educators and am descended from bankers, politicians, ranchers, farmers, business people, common people, proud people, matriarchs, Scots, and Basques.');  
	lBio.push('Trained in Applied Mathematics, my professional life has been consumed with business operations, technology consulting, and software engineering, navigating startup companies and the Fortune 500.');  
	lBio.push('I have written music, poetry, and screenplays.  Since July 2004, I am a husband; March 2006, a father; and November 2007, a painter of acrylics on canvas. I have learned through observation and self-directed doing.');
	lBio.push('I live in Seattle and have exhibited in numerous Seattle venues.  My art is in numerous private collections.');
	lBio.push('I experiment in abstract nature, figures, colors, concepts, and process.');
	
	lArtist = new artist('Jason Sinclair Astorquia', 'http://storksplace.com', lBio.join('<br/><br/>'), 'images/jasonAstorquiaThumb.jpg');
	lPhoto = new photo('obscured', null, 'images/jasonAstorquia.jpg', 359, 400, '54" x 60"<br/>acrylic on canvas<br/>2010');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);

	lPhoto = new photo('golden gate', null, 'images/jasonAstorquiaGoldenGate.jpg', 400, 368, '56" x 60"<br/>acrylic on canvas<br/>2010');
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('encoded', null, 'images/jasonAstorquiaEncoded.jpg', 400, 327, '48" x 60"<br/>acrylic on canvas<br/>2010');
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('distorted', null, 'images/jasonAstorquiaDistorted.jpg', 363, 400, '54" x 60"<br/>acrylic on canvas<br/>2010');
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('autumn flows', null, 'images/jasonAstorquiaAutumnFlows.jpg', 341, 400, '30" x 36"<br/>acrylic on canvas<br/>2010');
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('sydney opera house', null, 'images/jasonAstorquiaSydney.jpg', 345, 400, '54" x 60"<br/>acrylic on canvas<br/>2010');
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('pixelate', null, 'images/jasonAstorquiaPixelate.jpg', 400, 349, '54" x 60"<br/>acrylic on canvas<br/>2010');
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('midnight', null, 'images/jasonAstorquiaMidnight.jpg', 307, 400, '30" x 40"<br/>acrylic on canvas<br/>2010');
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('helix', null, 'images/jasonAstorquiaHelix.jpg', 332, 400, '30" x 36"<br/>acrylic on canvas<br/>2010');
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('amino', null, 'images/jasonAstorquiaAmino.jpg', 299, 400, '36" x 48"<br/>acrylic on canvas<br/>2010');
	lArtist.addPhoto(lPhoto);
		
	
	// james lopresti
	lBio = new Array();
	lBio.push('I was born and raised in Seattle and while I’ve had no formal art training, I’ve been painting since childhood.');
	lBio.push('I approach painting much the same way one goes about solving a crossword puzzle.  A canvas has blank spaces that can be filled in many ways.  Put in a letter or a color; it’s right or it’s wrong.  If it’s wrong, keep trying until the puzzle is finished.');

	lArtist = new artist('James Lopresti', '', lBio.join('<br/><br/>'), 'images/jamesLoprestiThumb.jpg');
	lPhoto = new photo('James Lopresti', null, 'images/jamesLopresti.jpg', 410, 575, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	
	// janet ramble
	lBio = new Array();
	lBio.push('Attracted by the natural beauty of the Northwest, Janet Ramble\'s focus has been landscapes, gardens, fruits and vegetables. Her paintings can be found at Alki Arts in West Seattle, Silver Star Gallery in Chelan, Wild Rose\'s Antiques & Home Furnishings in West Seattle, and on-line at Etsy.com. She also sells at Pratt Institute of Fine Art (Christmas Sale), and a variety of charitable auctions. Janet lives with her husband and cat in West Seattle.'); 
	lBio.push('"I love painting great every day shapes, colors and subjects we see every day - for example, a big juicy tomato sitting on a favorite plate or a bowl of freshly picked Bing cherries." ');

	lArtist = new artist('Janet Ramble', 'http://www.etsy.com/shop/JanetRambleArt', lBio.join('<br/><br/>'), 'images/janetRambleThumb.jpg');
	lPhoto = new photo('Janet Ramble', null, 'images/janetRamble.jpg', 301, 401, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	

	// garrison coverdale
	lBio = new Array();
	lBio.push('Garrison has shown his work in galleries in Washington, Oregon, Arizona, California and Hawaii. "Raku" fired ceramics is his main area of creative interest currently.');
	lBio.push('He received his BA from WSU in 1971 and MFA from the University of Hawaii 1973.');

	lArtist = new artist('Garrison Coverdale', 'http://www.whitebirdgallery.com/coverdale/index.html', lBio.join('<br/><br/>'), 'images/garrisonCoverdaleThumb.jpg');
	lPhoto = new photo('Garrison Coverdale', null, 'images/garrisonCoverdale.jpg', 288, 312, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	

	// esperanza grundy
	lBio = new Array();
	lBio.push('The urge to create is irresistible to me. The symbols, images, textures and colors in my paintings and collages are my pathway to spirit and truth. My fundamental source of inspiration is my personal heritage: my family is Hispanic & Native American and has lived in the Southwestern US for many generations. Cultural explorations continue from there by listening to other people\'s stories, traveling to exotic places, reading and dreaming.');
	lBio.push('I gather, arrange and layer materials. Everything is a potential element: paper and fabric scraps, my own handmade papers, paint, stencils, transfers and photographs. Using cast off materials, "compost", to give new life as art is richly symbolic to me. Creating physical depth through layering allows me to more deeply express ideas and feelings. I hope the layers act as levels to invite emotions, thoughts, memories and meaning for viewers of my art.');

	lArtist = new artist('Esperanza Grundy', '', lBio.join('<br/><br/>'), 'images/esperanzaGrundyThumb.jpg');
	lPhoto = new photo('Esperanza Grundy', null, 'images/esperanzaGrundy.jpg', 427, 428, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	
	
	// carol braden 
	lBio = new Array();
	lBio.push('I am a Northwest-based, self-taught artist best known for my full-sized guitar sculptures made from authentic license plates. I also dabble in paint and mixed media pieces; always using recycled and re-purposed items in my work wherever practical.');


	lArtist = new artist('Carol Braden', 'http://www.carolbraden.com', lBio.join('<br/><br/>'), 'images/carolBradenThumb.jpg');
	lPhoto = new photo('Carol Braden', null, 'images/carolBraden.jpg', 402, 222, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);

	// cara granger astorquia 
	lBio = new Array();
	lBio.push('A native of the west coast, I grew up in Oakland, California and Newport, Oregon, two places about as socially opposite as one could imagine, but both beautifully inspiring to the fledgling artist and writer.');  
	lBio.push('I graduated college with that ubiquitous degree in English Literature, and since moving to Seattle, have spent many years writing creative copy for art retail, marketing departments, and private clients. I love to puzzle out the right words and the right order, to entirely engage the readers\' senses. ');
	lBio.push('My love of painting grew out of living-room-floor art sessions with my best friend; cheap paints, cut up cardboard boxes for canvas, and no brushes, only nimble fingers. Eventually, fingers gave way to finer tools and substrates filched from my college theater department: leftover plywood and masonite from stricken sets of Three Penny Opera and Terra Nova, dregs of gesso and house paint. ');
	lBio.push('Over the past 20 years of painting, my subjects have wildly varied and my materials steadily improved. My inspiration comes in waves, often generating a series of work. A trip through my portfolios elucidates my wide range and whims.');

	lArtist = new artist('Cara Granger Astorquia', 'http://caragranger.com', lBio.join('<br/><br/>'), 'images/caraGrangerAstorquiaThumb.jpg');
	lPhoto = new photo('fountain and oak', null, 'images/caraGrangerAstorquia.jpg', 400, 331, '30" x 36"<br/>acrylic on canvas<br/>2010');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	
	lPhoto = new photo('seuss flowers ii', null, 'images/caraSeussII.jpg', 400, 299, '24" x 30"<br/>acrylic on canvas<br/>2010');
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('a difference of opinion', null, 'images/caraDifferenceOfOpinion.jpg', 238, 400, '24" x 40"<br/>acrylic on canvas<br/>2010');
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('three', null, 'images/caraThree.jpg', 323, 400, '30" x 36"<br/>acrylic on canvas<br/>2010');
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('online ii', null, 'images/caraOnlineII.jpg', 400, 332, '24" x 30"<br/>acrylic on canvas<br/>2010');
	lArtist.addPhoto(lPhoto);
	lPhoto = new photo('cascade iv', null, 'images/caraCascade4.jpg', 360, 400, '54" x 60"<br/>acrylic on canvas<br/>2010');
	lArtist.addPhoto(lPhoto);	


	// brant abinosa
	lBio = new Array();
	lBio.push('I was born in Sharon, Pennsylvania. At a very young age, I had an intense passion to draw. I was happiest when I was drawing and my dream was to be an artist. However, while in high school, I was discouraged by those in authority, telling me that artists don\'t make it in life and that I\'d have to choose another profession. Sadly, I did not pursue formal art training and drawing ceased to be a part in my life as I pursued other interests.');
	lBio.push('But my love of art has resurfaced and I feel as though I\'ve been re-born.');
	lBio.push('My love for painting is a recent one, although it was love at first sight. I\ve been painting for about 6 months and I consider my work to be contemporary pop art style portraiture leaning towards photorealism. Painting as a whole appeals to me and I can assure you that portraiture will not be my final destination. I find beauty in all forms of art and welcome the opportunity to learn as many as I can. For the most part everything thus far has been self-taught by learning on the job so it\'ll be interesting to see what school will do for me.');
	lBio.push('Thank you for taking an interest in my work. I thoroughly enjoy sharing my work with others, so thank you for that opportunity!');

	lArtist = new artist('Brant Abinosa', '', lBio.join('<br/><br/>'), 'images/brantAbinosaThumb.jpg');
	lPhoto = new photo('Brant Abinosa', null, 'images/brantAbinosa.jpg', 427, 569, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	
	
	// Bob Elder 
	lBio = new Array();
	lBio.push('Bob began painting in 1985 while working as a schoolteacher for 2nd and 3rd grade children.  He left the classroom in 1993 to devote his time to his paintings.  Elder attributes his time as a teacher as an integral facet to his creative being. His ability to communicate through painting is a direct reflection of his ability to share concepts with children in a manner to which they can understand and grow as individuals along their own paths in life.')
	lBio.push('By breaking down communication to its rudimentary format of shapes, values and symbols to convey an idea, the most complex concepts can be understood.  Elder has made conscious choices in how to convey his conceptual vision by selecting tools that he has adhered to for the entirety of his career\: choice in the materials and execution.  Elder has limited his pallet to tones which emphasize the serenity of his brushstrokes and the paintbrushes themselves have been limited to only a few sizes of flats and brights.');
	lBio.push('Elder made yet another conscious decision when he began painting to remain outside of any academic circles pertaining to his work.  He chose as well to remain outside of the gallery circuit in pursuit of honesty in his painting, remaining true to himself.')

	lArtist = new artist('Bob Elder', 'http://alkiarts.com', lBio.join('<br/><br/>'), 'images/bobElderThumb.jpg');
	lPhoto = new photo('Bob Elder', null, 'images/bobElder.jpg', 385, 487, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	
	// beth gasser
	lBio = new Array();
	lBio.push('I have a passion to create and art making is my lucky to be alive obsession I hope never to stop! I am on a wonderful journey in the art world and I do not have time to waste.');
	lBio.push('My training in college emerged through California State Long Beach where I majored in art education. Though I proceeded to make a living teaching art in periodically for 25 years, I took a break from the classroom to focus on my personal painting style a few years back. The florals you see are a result of this “coming of age” for me. Pike Place Market in Seattle has been a great inspiration for me. My journey in painting went further upon moving three years ago to Three Tree Point in Seattle. The ocean and seaside life has taken reflection in my work.');
	lBio.push('My acrylic paintings are done with a layering process that takes me many hours. I enjoy the process and the focus centering within. From being a teacher, I have worked with all kinds of media and learned much about color through colored pencil. With painting however, I feel I have found my voice in art. I love the feeling of expressed joy with the content and full measure of richness with the color. My works have shown publicly and privately in Long Beach, Newport Beach, Palm Springs, Bellevue, Issaquah and Seattle.');

	lArtist = new artist('Beth Gasser', '', lBio.join('<br/><br/>'), 'images/bethGasserThumb.jpg');
	lPhoto = new photo('Beth Gasser', null, 'images/bethGasser.jpg', 491, 294, '');
	lArtist.addPhoto(lPhoto);
	
	this.artists.push(lArtist);
	this.splash.addPhoto(lPhoto);
	

			
			
	this.artists.sort(artist_sort);
	for (var i = 0; i < this.artists.length; i++) {
		this.artists[i].idx = i;
	}
}
gallery.prototype.initArtists = gallery_initArtists;




function gallery_draw()
{
	var section;
	var obj;
	var text;
	var top;
	var x;

	this.galleryNode = obtainElement('div');
	
	// header
	top = this.TOP_PAD;
	this.headerNode = obtainElement('div');
	this.headerNode.style.width = this.WIDTH + 'px';
	this.headerNode.style.height = this.HEADER_HEIGHT + 'px';
	this.headerNode.style.top = top + 'px';
	this.headerNode.style.borderBottom = '1px solid #B4B4B4';
	this.galleryNode.appendChild(this.headerNode);
	
	obj = obtainElement('div');
	obj.style.top = '1px';
	obj.style.left = '0px';
	obj.style.height = '750px';
	obj.style.width = '192px';
	obj.style.backgroundImage = 'url(images/logo.jpg)';
	this.headerNode.appendChild(obj);
	
	obj = obtainElement('div');
	obj.className = 'header';
	obj.style.top = '52px';
	obj.style.right = '0px';
	obj.style.height = '20px';
	obj.style.width = '100%';
	obj.style.textAlign = 'right';
	obj.style.paddingRight = '10px';
	obj.innerHTML = 'Alki Beach - Seattle, WA';	
	this.headerNode.appendChild(obj);
	
	
	top += this.HEADER_HEIGHT;
	this.infoNode = obtainElement('div');
	this.infoNode.className = 'header';
	this.infoNode.style.top = top + 'px';
	this.infoNode.style.width = this.IMG_LEFT + 'px';
	this.infoNode.style.height = (slideShow.prototype.PHOTO_HEIGHT + 30) + 'px';
	//this.infoNode.style.backgroundColor = 'yellow';
	this.galleryNode.appendChild(this.infoNode);

	obj = obtainElement('div');
	obj.style.top = '3px';
	obj.style.left = '0px';
	obj.style.height = '30px';
	obj.style.width = '100%';
	
	var menu = new Array();
	menu.push('<span class=\"toc\" onclick=\"gallery_showSection(0);\" onmouseover=\"this.className=\'tocHover\';\" onmouseout=\"this.className=\'toc\';\">home</span>');
	menu.push('<span class=\"toc\">&bull;</span>');
	menu.push('<span class=\"toc\" onclick=\"gallery_showSection(1);\" onmouseover=\"this.className=\'tocHover\';\" onmouseout=\"this.className=\'toc\';\">artists</span>');
	obj.innerHTML = menu.join('');	
	this.infoNode.appendChild(obj);
	
	text = new Array();
	text.push('<SPAN CLASS="text"">');
	text.push('<span style=\"font-size:11pt;\"><b>Alki Arts</b>');
	text.push('Art Gallery and Event Space');
	text.push('');
	text.push('<center>Featuring art of');
	text.push(' &lsquo;The New Northwest&rsquo;</center></span>');
	text.push('');
	text.push('We are an art gallery located on West Seattle\'s beautiful Alki Beach.');
	text.push('');
	text.push('All styles of fine art created by nearly 50 talented local working artists. We feature traditional and modern paintings, blown glass, metal sculpture and pottery; Something for everyone!');
	text.push('');
	text.push('Enjoy the beauty of Alki Beach as you enjoy browsing the art, or rent our gallery for your small business or networking events. Perfect for parties and fundraisers.'); 
	text.push('');
	text.push('Join us the second Thursday of each month for the West Seattle Art Walk.  Enjoy a featured artist, musician and of course wine & snacks!'); 
	text.push('');
	text.push('<b>Open: Wed - Sun, Noon - 7:00</b>'); 
	text.push('');
	text.push('206.432.9936');
	text.push('<a class="text" href="mailto:info@alkiarts.com">info@alkiarts.com</a>');
	text.push('2820 Alki Avenue SW');
	text.push('Seattle, WA 98116-2788');
	text.push('');
	text.push('<a href="http://www.facebook.com/AlkiArts" target="newwindow"><img alt="Facebook" border=0 src="images/facebook.jpg"></a>&nbsp;<a href="http://twitter.com/@alkiarts" target="newwindow"><img alt="twitter" border=0 src="images/twitter.jpg"></a>');
	text.push('</SPAN>');
	
	obj = obtainElement('div');
	obj.style.top = '30px';
	obj.style.left = '0px';
	obj.style.height = (parseInt(this.infoNode.style.height) - 30) + 'px';
	obj.style.width = (this.IMG_LEFT - 11) + 'px';
	obj.style.borderRight = '1px dashed #B4B4B4';
	obj.style.paddingLeft = '5px';
	obj.style.paddingRight = '5px';
	obj.innerHTML = text.join('<br/>');	
	this.infoNode.appendChild(obj);
	
	//this.infoNode.innerHTML = text.join('');
	//this.galleryNode.appendChild(this.infoNode);
	
	
	// display
	this.displayNode = obtainElement('div');
	this.displayNode.style.top = (top + 5) + 'px';
	this.displayNode.style.height = slideShow.prototype.PHOTO_HEIGHT + 'px'; 
	this.displayNode.style.width = slideShow.prototype.PHOTO_WIDTH + 'px';
	this.displayNode.style.backgroundImage = 'url(images/loading.gif)';
	this.displayNode.style.backgroundRepeat = 'no-repeat';
	this.displayNode.style.backgroundPosition = 'center center';
	
	this.galleryNode.appendChild(this.displayNode);
	
	// copy
	this.copyNode = obtainElement('div');
	this.copyNode.className = 'copy';
	this.copyNode.style.height = this.COPY_HEIGHT + 'px'; 
	this.copyNode.style.width = '250px';
	//this.copyNode.style.paddingLeft = this.GRAD_WIDTH + 'px';
	this.copyNode.style.textAlign = 'left';
	
	var now = new Date();
	text = new Array();
	text.push('&copy; ');
	text.push(now.getFullYear());
	text.push('&nbsp; Alki Arts');
	
	this.copyNode.innerHTML = text.join('');
	this.galleryNode.appendChild(this.copyNode);


	
	obj = document.getElementById('galleryHome');
	obj.appendChild(this.galleryNode);
	
	this.redraw();
	
	// show the splash
	this.splash.load();
	this.selectedSection = this.splash;
}
gallery.prototype.draw = gallery_draw;

function gallery_redraw()
{
	var width;
	var height;
	var left;
	var top;
	var displayHeight;

	width = document.body.clientWidth;
	width = Math.max(width, this.WIDTH);

	height = document.body.clientHeight;
	height = Math.max(height, this.MIN_HEIGHT);

	this.galleryNode.style.height 	= height + 'px';
	this.galleryNode.style.width 	= width + 'px';
	this.galleryNode.style.overflowY = 'auto';
	
	left = Math.max(Math.floor((width - this.WIDTH) / 2), 0);
	this.headerNode.style.left = left + 'px';
	this.infoNode.style.left 	= Math.max(left, 20) + 'px';
	
	this.displayNode.style.left = (left + this.IMG_LEFT) + 'px';
	
	var height = (this.MIN_HEIGHT - this.TOP_PAD - this.HEADER_HEIGHT - this.COPY_HEIGHT);
	if (this.displayNode.hasChildNodes()) {
		height = Math.max(height, parseInt(this.displayNode.childNodes[0].style.height));
	}
	this.displayNode.style.height = height + 'px';
	

	top = parseInt(this.displayNode.style.top);
	//top += Math.floor((parseInt(this.displayNode.style.height) - this.infoNode.offsetHeight) / 2);
	//this.infoNode.style.top = (top - 50) + 'px';

	top = parseInt(this.displayNode.style.top) + parseInt(this.displayNode.style.height) + this.COPY_HEIGHT + 100;
	this.copyNode.style.top = top + 'px';
	this.copyNode.style.left = left + 'px';
}
gallery.prototype.redraw = gallery_redraw;


function gallery_showSection(id1, id2)
{
	if (gallery == null) return;

	// clear out the display
	gallery.clearDisplay();
	gallery.redraw();
	
	// reset the menu 
	//gallery.tocNode.innerHTML = gallery.getTOC(id1);
	
	
	switch (id1) {
		case 0: // home
			gallery.splash.slideShow.play();
			//gallery.redraw();
			break;
			
		case 1: // artists
			if (gallery.splash) gallery.splash.deselect();
			if (id2 == null) {
				gallery.drawArtists();
			} else {
				var artist = gallery.artists[id2];
				if (artist) artist.load();
			}
			break;
	}
}

function gallery_setDisplay(node)
{	
	var top;
	var left;
	
	top = Math.floor((parseInt(this.displayNode.style.height) - parseInt(node.style.height)) / 2)
	left = Math.floor((parseInt(this.displayNode.style.width) - parseInt(node.style.width)) / 2)
	
	node.style.top 	= Math.max(0, top) + 'px';
	node.style.left = left + 'px';
	node.style.backgroundColor = '#FFFFFF';

	this.displayNode.appendChild(node);

	var height = (this.MIN_HEIGHT - this.TOP_PAD - this.HEADER_HEIGHT - this.COPY_HEIGHT);
	height = Math.max(height, parseInt(node.style.height));
	this.displayNode.style.height = height + 'px';
	
	this.galleryNode.scrollTop = 0;
}
gallery.prototype.setDisplay = gallery_setDisplay;

function gallery_drawArtists()
{
	var node = obtainElement('div');
	node.style.height = slideShow.prototype.PHOTO_HEIGHT + 'px'; 
	node.style.width = slideShow.prototype.PHOTO_WIDTH + 'px';
	
	var width = slideShow.prototype.PHOTO_WIDTH - 40;
	var headerNode = obtainElement('div');
	headerNode.style.width = width + 'px';
	headerNode.style.height = '25px';
	headerNode.style.top = '10px';
	headerNode.style.left = '20px';
	headerNode.className = 'listHeader';
	headerNode.innerHTML = 'artists';
	node.appendChild(headerNode);
	
	var bodyNode = obtainElement('div');
	bodyNode.style.top = '40px';
	//bodyNode.style.overflowY = 'auto';
	bodyNode.style.left = '20px';
	bodyNode.style.width = width + 'px';
	//bodyNode.style.height = (slideShow.prototype.PHOTO_HEIGHT - 40) + 'px';
	node.appendChild(bodyNode);
	
	var artist;
	var listNode;
	var top = 0;
	var left = 10;
	width -= 20;
	var height = 0;
	for (var i = 0; i < this.artists.length; i++) {
		
		artist = this.artists[i];
		listNode = obtainElement('div');
		listNode.style.top = top + 'px';
		listNode.style.left = left + 'px';
		listNode.style.width = width + 'px';
		listNode.style.textAlign = 'left';
		listNode.className = 'listRow';
		listNode.style.height = '52px';
		listNode.style.borderBottom = '1px dashed #B4B4B4';
		
		var buf = new Array();
		buf.push('<table cellpadding=0 cellspacing=0 border=0 height=50 width=100%>');
		buf.push('<tr>');
		buf.push('<td valign=top width=55 height=50>');
		buf.push('<img src=\"');
		buf.push(artist.thumb);
		buf.push('\">');
		buf.push('</td>');
		buf.push('<td valign=middle onclick=\"gallery_showSection(1,' + i + ');\" class=\"listText\" onmouseover=\"this.className=\'listTextHover\';\" onmouseout=\"this.className=\'listText\';\">');
		buf.push(artist.name);
		buf.push('</td>');
		buf.push('</tr></table>');
		listNode.innerHTML = buf.join('');
		bodyNode.appendChild(listNode);
		
		top += 54;
	}
	height = top;
	bodyNode.style.height = height + 'px';
	node.style.height = (height + 40) + 'px';
	
	gallery.setDisplay(node);
}
gallery.prototype.drawArtists = gallery_drawArtists;

function gallery_clearDisplay()
{
	this.displayNode.style.backgroundImage = 'url(images/loading.gif)';
	while (this.displayNode.hasChildNodes()) {
		this.displayNode.removeChild(this.displayNode.childNodes[0]);
	}
}
gallery.prototype.clearDisplay = gallery_clearDisplay;


function gallery_mouseOver(id, evt)
{
}
gallery.prototype.mouseOver = gallery_mouseOver;


function gallery_mouseOut(id)
{
}
gallery.prototype.mouseOut = gallery_mouseOut;


function gallery_mouseMove(id, evt)
{
}
gallery.prototype.mouseMove = gallery_mouseMove;


function artist_sort(artistA, artistB)
{
	if (artistA.name.toLowerCase() < artistB.name.toLowerCase()) return -1;
	if (artistA.name.toLowerCase() > artistB.name.toLowerCase()) return 1;
	return 0;
}

function artist(name, website, bio, thumb)
{
	this.idx;
	
	this.name = name;
	this.website = website;
	this.bio = bio;
	this.thumb = thumb;
	
	this.photos;
}

function artist_addPhoto(photo)
{
	if (this.photos == null) this.photos = new Array();
	
	photo.parentArtist = this;
	photo.artistIdx = this.photos.length;
	
	this.photos.push(photo);
}
artist.prototype.addPhoto = artist_addPhoto;


function artist_load()
{
	var node = obtainElement('div');
	node.style.height = (slideShow.prototype.PHOTO_HEIGHT + 325)+ 'px'; 
	node.style.width = slideShow.prototype.PHOTO_WIDTH + 'px';
	
	var width = slideShow.prototype.PHOTO_WIDTH - 40;
	var headerNode = obtainElement('div');
	headerNode.style.width = width + 'px';
	headerNode.style.height = '25px';
	headerNode.style.top = '10px';
	headerNode.style.left = '20px';
	headerNode.className = 'listHeader';
	headerNode.innerHTML = this.name;
	node.appendChild(headerNode);
	
	var bodyNode = obtainElement('div');
	bodyNode.style.top = '50px';
	bodyNode.style.overflowY = 'auto';
	bodyNode.style.left = '20px';
	bodyNode.style.width = width + 'px';
	bodyNode.style.height = (slideShow.prototype.PHOTO_HEIGHT + 275) + 'px';
	node.appendChild(bodyNode);
	
	var photo = this.photos[0];
	var height = Math.floor(photo.height / 2);
	var width = Math.floor(photo.width / 2);
	var buf = new Array();
	buf.push('<span style=\"padding-right:10px;padding-bottom:5px;float:left;\">');
	buf.push('<img src=\"');
	buf.push(photo.img);
	buf.push('\" height=' + height + ' width=' + width + '>')
	
	if (this.photos.length > 1) {
		buf.push('<br/>');
		buf.push('<span class="morePhotos" style=\"width=' + width + 'px;\" onclick=\"javascript:artist_morePhotos(' + this.idx + ');\">view images</span>');
	}
	
	buf.push('</span>'); 
	buf.push('<span class=\"listText\" style=\"padding:0px;\">');
	buf.push(this.bio);
	buf.push('</span>');
	bodyNode.innerHTML = buf.join('');
	
	gallery.setDisplay(node);
}
artist.prototype.load = artist_load;

function artist_morePhotos(idx) 
{
	if (gallery == null) return;
	if (gallery.artists == null) return;
	if (gallery.viewer == null) return;
	
	var lArtist;
	var lPhoto;
	
	lArtist = gallery.artists[idx];
	if (lArtist == null) return;
	
	lPhoto = lArtist.photos[1];
	if (lPhoto == null) return;
	
	gallery.viewer.show(lPhoto);
}

function splash()
{
	this.photos = new Array();
	this.slideShow;
	
	this.oid = cortex.getOID();
	cortex.addObj(this);
}

function splash_addPhoto(photo) 
{
	photo.idx = this.photos.length;
	photo.parentObj = this;
	
	this.photos.push(photo);
}
splash.prototype.addPhoto = splash_addPhoto;

function splash_load()
{
	var lPhoto;
	var x;
	
	for (x = 0; x < this.photos.length; x++) {
		lPhoto = this.photos[x];
		lPhoto.load();
	}
}
splash.prototype.load = splash_load;

function splash_draw()
{
	var lPhoto;
	var x;
	
	// have all the photos been loaded for display?
	for (x = 0; x < this.photos.length; x++) {
		lPhoto = this.photos[x];
		if (!lPhoto.imgLoaded) return;
	}
	
	// create the slideShow
	if (this.slideShow == null) {
		this.slideShow = new slideShow(this.photos, false, false);
	}
	
	// play
	this.slideShow.play();
}
splash.prototype.draw = splash_draw;

function splash_deselect()
{
	if (this.slideShow) this.slideShow.pause();
}
splash.prototype.deselect = splash_deselect;



function photo(name, thumb, img, height, width, text)
{
	this.name 	= name;
	this.thumb 	= thumb;
	this.img 	= img;
	this.height = height;
	this.width 	= width;
	this.text 	= text;
	
	this.thumbLoaded 	= false;
	this.imgLoaded		= false;
	
	this.idx;
	this.parentObj;
	
	this.artistIdx;
	this.parentArtist;
	
	this.thumbNode;
	this.displayNode;
	
	this.oid = cortex.getOID();
	cortex.addObj(this);
}
photo.prototype.THUMB_WIDTH 	= 90;
photo.prototype.THUMB_HEIGHT 	= 60;


function photo_load()
{
	var obj = obtainElement('div');

	this.thumbLoaded = false;
	this.imgLoaded = false;
		
	if (this.thumb) {
		obj.style.top = '0px';
		obj.style.left = '0px';
		obj.style.width = '1px';
		obj.style.height = '1px';
		obj.style.opacity = '0';
		obj.style.filter = 'alpha(opacity=0)';	
		obj.innerHTML = '<img src="' + this.thumb + '" onload="javascript:photo_thumbLoaded(\'' + this.oid + '\');"/>'
	
		document.body.appendChild(obj);
	} else {
		this.thumbLoaded = true;
	}
	
	obj = obtainElement('div');
	
	obj.style.top = '0px';
	obj.style.left = '0px';
	obj.style.width = '1px';
	obj.style.height = '1px';
	obj.style.opacity = '0';
	obj.style.filter = 'alpha(opacity=0)';	
	obj.innerHTML = '<img src="' + this.img + '" onload="javascript:photo_imgLoaded(\'' + this.oid + '\');"/>'

	document.body.appendChild(obj);
}
photo.prototype.load = photo_load;

function photo_thumbLoaded(oid)
{
	var lPhoto = cortex.getObjByID(oid);
	if (lPhoto == null) return;
	
	lPhoto.thumbLoaded = true;
	lPhoto.parentObj.draw();	
}

function photo_imgLoaded(oid)
{
	var lPhoto = cortex.getObjByID(oid);
	if (lPhoto == null) return;
	
	lPhoto.imgLoaded = true;
	lPhoto.parentObj.draw();	
}

function viewer()
{
	this.displayNode;
	this.photoNode;
	this.headerNode;
	this.detailsNode;
	this.nextNode;
	this.prevNode;
	this.backNode;
	
	this.photo;
	
	this.oid = cortex.getOID();
	cortex.addObj(this);
}
viewer.prototype.ABBR_CLOSE = 1;
viewer.prototype.ABBR_PREVIOUS = 2;
viewer.prototype.ABBR_NEXT = 3;

function viewer_show(photo)
{
	var obj;
	var top;
	var left;
	var height;
	var width;

	if (this.displayNode == null) {
	
		this.backNode = obtainElement('div');
		this.backNode.style.backgroundColor = '#000000';
		this.backNode.style.opacity = '.15';
		this.backNode.style.filter = 'alpha(opacity=15);';
		this.backNode.style.top = '0px';
		this.backNode.style.left = '0px';
		this.backNode.style.zIndex = '5';
		
		this.displayNode = obtainElement('div');
		this.displayNode.style.backgroundColor = '#ffffff';
		this.displayNode.id = this.oid;
		this.displayNode.style.zIndex = '10';
		
		this.photoNode = obtainElement('div');
		this.photoNode.style.top = '27px';
		this.photoNode.style.left = '25px';
		this.displayNode.appendChild(this.photoNode);
		
		this.nextNode = obtainElement('div');
		this.nextNode.style.right = '5px';
		this.nextNode.style.height = '15px';
		this.nextNode.style.width = '15px';
		this.nextNode.innerHTML = '&gt;';
		this.nextNode.className = 'header';
		this.nextNode.style.fontWeight = 'bold';
		this.nextNode.style.cursor = 'pointer';
		this.nextNode.abbr = this.ABBR_NEXT;
		this.nextNode.title = 'next';
		this.nextNode.style.color = '#aaaaaa';
		this.displayNode.appendChild(this.nextNode);
	
		this.prevNode = obtainElement('div');
		this.prevNode.style.left = '5px';
		this.prevNode.style.height = '15px';
		this.prevNode.style.width = '15px';
		this.prevNode.innerHTML = '&lt;';
		this.prevNode.className = 'header';
		this.prevNode.style.fontWeight = 'bold';
		this.prevNode.style.cursor = 'pointer';
		this.prevNode.abbr = this.ABBR_PREVIOUS;
		this.prevNode.title = 'previous';
		this.prevNode.style.color = '#aaaaaa';
		this.displayNode.appendChild(this.prevNode);
		
		this.nameNode = obtainElement('div');
		this.nameNode.style.top = '5px';
		this.nameNode.style.left = '27px';
		this.nameNode.style.height = '20px';
		this.nameNode.className = 'header';
		this.nameNode.style.fontWeight = 'bold';
		this.nameNode.style.color = '#aaaaaa';
		this.displayNode.appendChild(this.nameNode);
		
		this.detailsNode = obtainElement('div');
		this.detailsNode.style.bottom = '5px';
		this.detailsNode.style.height = '55px';
		this.detailsNode.style.left = '30px';
		this.detailsNode.className = 'text';
		this.displayNode.appendChild(this.detailsNode);
		
		obj = obtainElement('div');
		obj.style.top = '5px';
		obj.style.width = '15px';
		obj.style.right = '5px';
		obj.style.height = '14px';
		obj.style.cursor = 'pointer';
		obj.abbr = this.ABBR_CLOSE;
		obj.innerHTML = '<img src="images/close.jpg">';
		obj.title = 'close';
		this.displayNode.appendChild(obj);
		
		obj = obtainElement('div');
		obj.style.backgroundColor = '#aaaaaa';
		
		var border = obj.cloneNode(true);
		border.style.top = '0px';
		border.style.width = '1px';
		border.style.left = '0px';
		border.style.height = '100%';
		this.displayNode.appendChild(border);
		
		border = obj.cloneNode(true);
		border.style.top = '0px';
		border.style.width = '100%';
		border.style.left = '0px';
		border.style.height = '1px';
		this.displayNode.appendChild(border);
		
		border = obj.cloneNode(true);
		border.style.top = '0px';
		border.style.width = '1px';
		border.style.right = '0px';
		border.style.height = '100%';
		this.displayNode.appendChild(border);
		
		border = obj.cloneNode(true);
		border.style.bottom = '0px';
		border.style.width = '100%';
		border.style.left = '0px';
		border.style.height = '1px';
		this.displayNode.appendChild(border);
		
		obj = document.getElementById('galleryHome');
		obj.appendChild(this.backNode);
		obj.appendChild(this.displayNode);
		
	}
	
	height = photo.height + 90;
	width = photo.width + 50;
	
	this.displayNode.style.height = height + 'px';
	this.displayNode.style.width = width + 'px';
	
	top = Math.floor((height - 15) / 2);
	
	this.nextNode.style.top = top + 'px';
	this.prevNode.style.top = top + 'px';
	
	var img = new Array();
	img.push('<img src="');
	img.push(photo.img);
	img.push('" border=0 width=');
	img.push(photo.width);
	img.push(' height=')
	img.push(photo.height);
	img.push('>');
	
	this.photoNode.style.height = photo.height + 'px';
	this.photoNode.style.width = photo.width + 'px';
	this.photoNode.innerHTML = img.join('');
	
	this.nameNode.style.width = photo.width + 'px';
	this.nameNode.innerHTML = '';
	if (photo.name != null) this.nameNode.innerHTML = photo.name;

	this.detailsNode.style.width = photo.width + 'px';
	this.detailsNode.innerHTML = '';
	if (photo.text != null) this.detailsNode.innerHTML = photo.text;
	
	left = Math.max(0, Math.floor((document.body.clientWidth - width) / 2) + document.body.scrollLeft);
	top = Math.max(0, Math.floor((document.body.clientHeight - height) / 2) + document.body.scrollTop);
	
	this.displayNode.style.top = top + 'px';
	this.displayNode.style.left = left + 'px';
	this.displayNode.style.display = 'block';
	
	this.backNode.style.height = parseInt(gallery.galleryNode.style.height) + 'px';
	this.backNode.style.width = parseInt(gallery.galleryNode.style.width) + 'px';
	this.backNode.style.display = 'block';
	
	this.photo = photo;
}
viewer.prototype.show = viewer_show;


function viewer_hide()
{
	if (this.displayNode == null) return;
	this.displayNode.style.display = 'none';
	this.backNode.style.display = 'none';
}
viewer.prototype.hide = viewer_hide;


function viewer_handleClick(ce)
{
	if (ce == null) return;
	if (ce.ref == null) return;
	
	switch (ce.ref) {
		case this.ABBR_CLOSE:
			this.hide();
			break;
			
		case this.ABBR_PREVIOUS:
			var idx = 0;
			if (this.photo != null) {
				var idx = this.photo.artistIdx - 1;
				if (idx < 0) {
					idx = this.photo.parentArtist.photos.length - 1;
				} 
			}
			this.show(this.photo.parentArtist.photos[idx]);
			break;
			
		case this.ABBR_NEXT:
			var idx = 0;
			if (this.photo != null) {
				var idx = this.photo.artistIdx + 1;
				if (idx >= this.photo.parentArtist.photos.length) {
					idx = 0;
				} 
			}
			this.show(this.photo.parentArtist.photos[idx]);
			break;
	}
}
viewer.prototype.handleClick = viewer_handleClick;


function slideShow(photos, hasThumbs, hasNavigation)
{
	this.photos 		= photos;
	this.hasThumbs 		= hasThumbs;
	this.hasNavigation 	= hasNavigation;
	
	this.activePhoto;
	this.isPlaying;
	
	this.timer;
	
	this.opacity;
	
	this.displayNode;
	this.thumbsNode;
	this.photoNode;
	this.nameNode;
		
	this.priorPhoto;
	
	this.oid = cortex.getOID();
	cortex.addObj(this);
}
slideShow.prototype.DURATION = 4500;
slideShow.prototype.PHOTO_HEIGHT = 600;
slideShow.prototype.PHOTO_WIDTH = 550;

function slideShow_play()
{
	// kill the clock
	this.killClock();
	
	// init the active photo?
	if (this.activePhoto == null) this.activePhoto = this.photos[0];
	
	// flag playing status
	this.isPlaying = true;

	// show the activePhoto
	this.showActive();	
}
slideShow.prototype.play = slideShow_play;

function slideShow_pause()
{
	// kill the clock
	this.killClock();

	// flag playing status
	this.isPlaying = false;
}
slideShow.prototype.pause = slideShow_pause;

function slideShow_showActive()
{
	if (this.activePhoto == null) return;
	
	// show the active photo
	if (this.displayNode == null) {
		this.displayNode = obtainElement('div');
		this.displayNode.id = this.oid;
		this.displayNode.style.height = this.PHOTO_HEIGHT + 'px'; 
		this.displayNode.style.width = this.PHOTO_WIDTH + 'px';	
		
		this.nameNode = obtainElement('div');
		this.nameNode.style.left = '0px';
		this.nameNode.style.height = '20px';
		this.nameNode.style.width = '100%';
		this.nameNode.style.textAlign = 'center'
		this.nameNode.className = 'header';
		this.nameNode.style.fontWeight = 'bold';
		this.nameNode.style.color = '#666666';
		this.displayNode.appendChild(this.nameNode);
	}
	
	// add the photo
	if (this.photoNode == null || (!ie && !mobile)) {
		if (this.priorPhoto && this.priorPhoto.parentNode) {
			this.priorPhoto.parentNode.removeChild(this.priorPhoto);
		}
		if (this.photoNode != null) this.priorPhoto = this.photoNode;
		this.photoNode = obtainElement('div');
		if (ie) this.photoNode.className = 'photo'; 
		this.displayNode.appendChild(this.photoNode);		
	}
	
	var img = new Array();
	img.push('<img src="');
	img.push(this.activePhoto.img);
	img.push('" border=0 width=');
	img.push(this.activePhoto.width);
	img.push(' height=')
	img.push(this.activePhoto.height);
	img.push('>');
	
	if (ie && this.photoNode.filters.length > 0) this.photoNode.filters[0].apply();
	this.photoNode.style.height = this.activePhoto.height + 'px'; 
	this.photoNode.style.width = this.activePhoto.width + 'px';	

	var top = Math.floor((parseInt(this.displayNode.style.height) - parseInt(this.activePhoto.height)) / 2)
	var left = Math.floor((parseInt(this.displayNode.style.width) - parseInt(this.activePhoto.width)) / 2)
	this.photoNode.style.top = top + 'px';
	this.photoNode.style.left = left + 'px';
	this.photoNode.innerHTML = img.join('');
	if (!ie && !mobile) {
		this.photoNode.style.opacity = '.60';
		this.opacity = 60;
	}
	if (ie && this.photoNode.filters.length > 0) this.photoNode.filters[0].play();
	
	top += parseInt(this.activePhoto.height) + 7;
	this.nameNode.style.top = top + 'px';
	this.nameNode.innerHTML = this.activePhoto.parentArtist.name;
		
	// set the display
	gallery.setDisplay(this.displayNode);
	
	// not ie, manual fade in
	if (!ie && !mobile) {
		setTimeout('slideShow_fadeIn(\'' + this.oid + '\')', 0);
		setTimeout('slideShow_fadeIn(\'' + this.oid + '\')', 0);
		setTimeout('slideShow_fadeIn(\'' + this.oid + '\')', 0);
		setTimeout('slideShow_fadeIn(\'' + this.oid + '\')', 0);
	}
	
	// if we're playing, schedule the next for showing
	if (this.isPlaying) this.timer = setTimeout('slideShow_next(\'' + this.oid + '\')', this.DURATION);
}
slideShow.prototype.showActive = slideShow_showActive;


function slideShow_fadeIn(oid)
{
	var lSlideShow = cortex.getObjByID(oid);
	if (lSlideShow == null) 			return;
	if (lSlideShow.photoNode == null) 	return;
	if (!lSlideShow.isPlaying) return;
	if (lSlideShow.opacity >= 100)	{
		if (lSlideShow.priorPhoto && lSlideShow.priorPhoto.parentNode) {
			lSlideShow.priorPhoto.parentNode.removeChild(lSlideShow.priorPhoto);
			lSlideShow.priorPhoto = null;
		}
		return;
	}
	
	lSlideShow.opacity += 1;
	lSlideShow.photoNode.style.opacity = (lSlideShow.opacity / 100) + '';
	
	if (lSlideShow.opacity < 100) setTimeout('slideShow_fadeIn(\'' + oid + '\')', 0);
}


function slideShow_killClock()
{
	if (this.timer != null) clearTimeout(this.timer);
}
slideShow.prototype.killClock = slideShow_killClock;

function slideShow_showThumbs()
{
}
slideShow.prototype.showThumbs = slideShow_showThumbs;


function slideShow_next(oid)
{
	var lSlideShow = cortex.getObjByID(oid);
	if (lSlideShow == null) return;
	
	var nextIdx = 0;
	if (lSlideShow.activePhoto) {
		nextIdx = lSlideShow.activePhoto.idx + 1;
		if (nextIdx >= lSlideShow.photos.length) nextIdx = 0;
	}
	
	lSlideShow.activePhoto = lSlideShow.photos[nextIdx];
	lSlideShow.showActive();
}
slideShow.prototype.next = slideShow_next;


function slideShow_previous(oid)
{
	var lSlideShow = cortex.getObjByID(oid);
	if (lSlideShow == null) return;
	
	var nextIdx = 0;
	if (lSlideShow.activePhoto) {
		nextIdx = lSlideShow.activePhoto.idx - 1;
		if (nextIdx < 0) nextIdx = lSlideShow.photos.length - 1;
	}
	
	lSlideShow.activePhoto = lSlideShow.photos[nextIdx];
	lSlideShow.showActive();
}
slideShow.prototype.previous = slideShow_previous;


