// JavaScript Document

var gtxt=new Array();
// Gallery 1
gtxt["fireeater"]="Fireeater|Acrylic 36\"w x 24\"h";
gtxt["natalieth"]="Natalie Woodpecker|Acrylic 36\"w x 48\"h";
gtxt["bigtownth"]="Big Town|Acrylic, 14\"w x 18\"h";
gtxt["badgirlth"]="Bad Girl|Acrylic, 14\"w x 11\"h";
gtxt["redth"]="Red|Acrylic, 11\"w x 14\"h";
gtxt["Snow-White"]="Snow White|Acrylic, 20\"w x 24\"h";
gtxt["Helen"]="Helen|Acrylic, 9\"w x 18\"h";
gtxt["whiskeyth"]="Whiskey on the Rocks with L'Emma Peel|Acrylic, 11\"w x 14\"h";
gtxt["shot"]="A Shot and a Beer|Acrylic, 11\"w x 14\"h";
gtxt["Post-Neo-Rat-Pack-Swingers"]="Post-Neo Rat Pack Swingers (with Hornbills)|\
Acrylic, 84\"w x 60\"h";

// Gallery 2
gtxt["ritual"]="Ritual of the Savage|Acrylic, 14\"w x 18\"h";
gtxt["tempt"]="Temptation|Acrylic, 20\"w x 24\"h";
gtxt["freefall"]="Free Falling|Acrylic, 36\"w x 24\"h";
gtxt["Midnight-Rodeo"]="The Midnight Rodeo|Acrylic, 36\"w x 24\"h";
gtxt["star"]="Star|Acrylic, 16\"w x 24\"h";
gtxt["Stop-Weaving-CHa-Cha-Cha"]="Stop Weaving Cha-Cha-Cha|Acrylic, 14\"w x 11\"h";
gtxt["whatcomes"]="What Comes Around Goes Around|Acrylic, 36\"w x 24\"h";
gtxt["African-Girl_green"]="African Girl Green|Acrylic, 14\"w x 18\"h";
gtxt["mexi"]="Mexican Vacation|Acrylic, 11\"w x 14\"h";
gtxt["Geraldines_Mermaid"]="Geraldines Mermaid|Acrylic, 14\"w x 18\"h";
gtxt["El-Dia-de-los-Muertos"]="El Dia de los Muertos|Acrylic, 14\"w x 18\"h";
gtxt["fear"]="Fear|Acrylic, 36\"w x 24\"h";
gtxt["what-a-way-to-go-go"]="What a Way to Go Go|Acrylic, 11\"w x 14\"h";

// Gallery 3
gtxt["america1"]="America1|Acrylic, 60\"w x 48\"h";
gtxt["the_silent-sphinx"]="The Silent Sphinx|Acrylic, 48\"w x 60\"h";
gtxt["rums"]="Rumsfeld|Acrylic, 36\"w x 48\"h";
gtxt["rushm"]="Rushmore|Acrylic, 60\"w x 36\"h";
gtxt["jennyth"]="A Portrait of Jenny|(in 4 parts)|Acrylic, 24\"w x 20\"h (each canvas)";
gtxt["The-Harbinger"]="The Harbinger|Acrylic, 36\"w x 48\"h";
gtxt["nelson"]="Nelson & Simone: A Walk on the Wild Side|\
(Inspired by the Photography of Art Shay)|Acrylic, 60\"w x 36\"h";
gtxt["jill"]="Jill Seated|Acrylic, 14\"w x 18\"h";
gtxt["Portrait-of-Orrin-2009"]="Orrin, 2009|Acrylic, 24\"w x 36\"h";
gtxt["Flyboy"]="Flyboy|Acrylic, 48\"w x 48\"h";

var gnotforsale=new Array();
gnotforsale["redth"]="SOLD";
gnotforsale["rushm"]="SOLD";
gnotforsale["Portrait-of-Orrin-2009"]="Not for Sale, Collection of the Artist";

// Designs
gtxt["unique-ad-samples"]="Unique Ad Comictorials";
gtxt["wilmette-chamber-ads"]="Wilmette Chamber of Commerce Ads";
gtxt["greversad1"]="IPA Award Winning Ad Design";
gtxt["britney1"]="Caricature|Britney Spears and K-Fed for Bowlers Journal magazine";
gtxt["ron_bernardi"]="Caricature|Ron Bernardi of Sunset Foods";
gtxt["ecoman"]="Character/Logo Design Earth Day Festival|\"Eco-Man\"";
gtxt["christmascard1"]="Design and Illustration|Corporate Christmas Card for Pioneer Press|\
\"Peace\"";
gtxt["line_art_samples1"]="Line Art Samples|\
Faerie & Dragon created with Adobe Illustrator|\
Tiger Dragon and Lizard Man created in Pen and Ink for a Game Company";
gtxt["larry_green"]="Caricature|Larry Green, former Publisher of Pioneer Press";
gtxt["nbkcg1"]="Community guide Design, Layout and Photography|Northbrook Community Guide";
gtxt["badgNationGamelogoirlth"]="Nation Game Logo|Logo Design for an electronic game company";
gtxt["championarts4c"]="Caricature|\
Champions of the Arts: Bruce Ingram, Dorothy Andries,|\
and Michael Bonesteel";
gtxt["dineoutindeerfield"]="Logo Design for Chamber of Commerce|\"Dine Out In Deerfield\"";
gtxt["winncg1"]="Community Winter Guide Design and Layout|Winnetka Winter Holiday Guide";
gtxt["gigonthegreen"]="Logo Design for Music Festival|\"Gig On The Green\"";
gtxt["cure365logo"]="Logo Design for a Non-Profit Organization|\"Cure 365\"";
gtxt["artinthepark"]="Logo Design for Fine Arts Festival|\"Art In The Park\"";
gtxt["candidatecard1"]="Campaign to promote a series of media seminars.|\
\"For Candidates Only\"|\Direct Mail Postcard (front and back shown)";

var gcopyrights=new Array();
gcopyrights["unique-ad-samples"]="Copyright Pioneer Press";
gcopyrights["wilmette-chamber-ads"]="Copyright Pioneer Press and the Wilmette Chamber of Commerce"
gcopyrights["greversad1"]="Copyright Pioneer Press";
gcopyrights["dineoutindeerfield"]="Copyright Terry O. Luc and Deerfield Chamber of Commerce";
gcopyrights["ecoman"]="Copyright Terry O. Luc and Village of Northbrook";
gcopyrights["gigonthegreen"]="Copyright Terry O. Luc and Village of Northbrook";
gcopyrights["cure365logo"]="Copyright Terry O. Luc and Cure 365";
gcopyrights["artinthepark"]="Copyright Terry O. Luc and Village of Northbrook";
gcopyrights["nbkcg1"]="Copyright Northbrook Chamber of Commerce and Pioneer Press";
gcopyrights["winncg1"]="Copyright Winnetka Chamber of Commerce and Pioneer Press";
gcopyrights["candidatecard1"]="Copyright Pioneer Press";

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function showPicText(mynodeid, myimagealtname) { //v3.0
	var textarray = gtxt[myimagealtname].split('|');
    var mynode = document.getElementById(mynodeid);
	var txtnode, theBR;
	
	for( var i=mynode.childNodes.length; i>1; i-- ) // clean off old text.
		mynode.removeChild(mynode.childNodes[i-1]);
 
    for( var j=0; j<textarray.length; j++ ){  //add new text.
	    txtnode = document.createTextNode(textarray[j])
	    mynode.appendChild(txtnode);
	    theBR = document.createElement('br');
	    mynode.appendChild(theBR);
	}

	var font = document.createElement("font"); 
	mynode.appendChild(font);
	font.style.color = "cyan";
	font.style.fontSize = "7pt";
	
	if( document.title.match(/Painting/) != null ){
		if( gnotforsale[myimagealtname] != null ){
		    txtnode = document.createTextNode(gnotforsale[myimagealtname]);
			font.style.fontSize = "10pt";
		}
		else
		    txtnode = document.createTextNode("For Sale, please inquire on pricing");
	}

	else if( gcopyrights[myimagealtname] == null)  // not a Painting Gallery and no special copyright.
		txtnode = document.createTextNode("Copyright Terry O. Luc");
	else
		txtnode = document.createTextNode(gcopyrights[myimagealtname]);
	
	font.appendChild(txtnode);
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){
   document.MM_sr[j++]=x; 
   if(!x.oSrc) 
   		x.oSrc=x.src; 
   x.src=a[i+2];
   showPicText("mytextarea",a[i+1]);
   }
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
