
    colRed   = 'color=#CC0000'
    colBlue  = 'color=#000033'
    colBlack = 'color=#202020'
    colGray  = 'color=#606060'
   
    function pageHead() {
	fnt1  =  '<font face="Arial, Helvetica, sans-serif" color="#AA0000" size="5">'
	fnt2  =  '<font face="Arial, Helvetica, sans-serif" color="#808080" size="3">'
	fnt3  =  '<font face="Arial, Helvetica, sans-serif" color="#808080" size="2">'
	hd  =  '<table border=0 width=700><tr>'
	hd +=  '<td valign=top align=left>'
	hd +=  '<img src=images/lg_font_s.gif ALT="Gallery Gertrude Stein"><br>'
	hd +=  fnt3 + '&nbsp; 200 West 57th Street New York, NY 10019  &nbsp;Tel (212) 535-0600 &nbsp;Fax (212) 765-6178'
	hd +=  '<br><br></font></td></tr></table>'
	document.write(hd)
    } 

    function pageFoot() {
	fnt1  =  '<font face="Arial, Helvetica, sans-serif"  size="2">'
	ft  =  fnt1 + '<center><br><br><hr size=1 color=silver>'
	ft +=  '&copy Gallery Gertrude Stein &nbsp; <img src=images/sq10.jpg> &nbsp;'
	ft +=  'Hours: 10am to 5:30pm Tuesday - Saturday  &nbsp; <img src=images/sq10.jpg>'
	ft +=  '&nbsp; Email: <a href="mailto:aethe@aol.com">aethe@aol.com</a>'
	ft +=  '<br></center>'
	document.write(ft)
    } 

    function artistPageHead(artist) {
	fnt1  =  '<font face="Arial, Helvetica, sans-serif" color="#AA0000" size="5">'
	fnt2  =  '<font face="Arial, Helvetica, sans-serif" color="#808080" size="3">'
	fnt3  =  '<font face="Arial, Helvetica, sans-serif" color="#000000" size="4">'
	sqr1   = '&nbsp;&nbsp;&nbsp; <img src=images/sq10.jpg> &nbsp;&nbsp;&nbsp;'
	hd  =  '<table border=0 width=550><tr>'
	hd +=  '<td valign=top align=left>'
	hd +=  fnt1 + '<b>Gallery Gertrude Stein</b><br></font>'
	hd +=  fnt2 + '200 West 57th Street New York, NY 10019  &nbsp;Tel (212) 535-0600'
	hd +=  '<br><br></font><table bgcolor=#AA0000 border=0 width=500><tr height=30>'
	hd +=  '<th align=center><font face="Verdana, Arial, Helvetica, sans-serif" size=2>'
	hd +=  sqr1 + '<a href="artists.htm"><font color=silver>back to Artist Index</a>'
	hd +=  sqr1 + '</font></th></tr></table><center><br><br>'
	hd +=  fnt3 + artist + '</font><br></center></td></tr></table>'
	document.write(hd)
    } 
    function artistPageFoot() {
	fnt1  =  '<font face="Arial, Helvetica, sans-serif"  size="2">'
	ft  =  fnt1 + '<center><br><br><hr size=1 color=silver>'
	ft +=  '&copy Gallery Gertrude Stein &nbsp; <img src=images/sq10.jpg> &nbsp;'
	ft +=  '&nbsp; Email: <a href="mailto:aethe@aol.com">aethe@aol.com</a>'
	ft +=  '<br></center>'
	document.write(ft)
    } 

    function aPageHead(typ) {
	fnt1  =  '<font face="Arial, Helvetica, sans-serif" color="#AA0000" size="5">'
	fnt2  =  '<font face="Arial, Helvetica, sans-serif" color="#808080" size="3">'
	fnt3  =  '<font face="Arial, Helvetica, sans-serif" color="#000000" size="4">'
	sqr1  =  '&nbsp;&nbsp;&nbsp; <img src=..\/images\/sq10.jpg> &nbsp;&nbsp;&nbsp;'

	hd  =  '<table border=0 width=700><tr>'
	hd  +=  '<td valign=top align=left>'
	hd  +=  '<img src=/images/lg_font_s.gif><br>'
	hd  +=  fnt2 + '200 West 57th Street New York, NY 10019  &nbsp;Tel (212) 535-0600'
	hd  +=  '<br><br></font><table bgcolor=#AA0000 border=0 width=700><tr height=20>'
	hd  +=  '<th align=center><font face="Verdana, Arial, Helvetica, sans-serif" size=2>'
	bak = '';
	if(typ == 'jazz') {
		bak = 'back to Art and Jazz';
		bakhd = sqr1 + '<a href="..\/jazz.htm"><font color=silver>' + bak + '</a>'
	}
	if(typ == 'gallery') {
		bak = 'back to Gallery';
		bakhd = sqr1 + '<a href="..\/gallery.htm"><font color=silver>' + bak + '</a>'
	}
	if(bak == '') {
		bak = 'back to Artist Index';
		bakhd = sqr1 + '<a href="..\/artists.htm"><font color=silver>' + bak + '</a>'
	}
	hd +=  bakhd +sqr1 + '</font></th></tr></table>'
	hd +=  '</td></tr></table>'
	document.write(hd)
    } 

    function aPageFoot() {
	fnt1  =  '<font face="Arial, Helvetica, sans-serif"  size="2">'
	ft  =  fnt1 + '<center><hr size=1 color=silver>'
	ft +=  '&copy Gallery Gertrude Stein &nbsp; <img src=..\/images\/sq10.jpg> &nbsp;'
	ft +=  '&nbsp; Email: <a href="mailto:aethe@aol.com">aethe@aol.com</a>'
	ft +=  '</center>'
	document.write(ft)
    } 

    function popUpWindow(pg,w,r,s) {
	var sz = ''
	if(w == 'tarot' ) { sz =  'width=480,height=480' }
	if(w == 'artist' ){ sz =  'width=550,height=550' }
	if(s == 'scroll') { sz += ',scrollbars=yes' }
	if(r == 'resize') { sz += ',resizable' }
	picWindow = window.open(pg,w,sz)
	picWindow.focus()
    }

    function popCenterWindow(pic,txt) {
	resize = 'width=550,height=550' 
	popWnd = window.open('','artist',resize)
	popWnd.document.write("<HTML><HEAD><TITLE>Gallery Gertrude Stein</TITLE></HEAD>")
	popWnd.document.write("<BODY bgcolor=white topmargin=0>")
	popWnd.document.write("<table border=0 cellpadding=0 height=100% width=100%>")
	popWnd.document.write("<tr valign=center><td align=center>")
	popWnd.document.write("<img src=" + pic + "><br>")
	popWnd.document.write("<font  face='HELVETICA,ARIAL' size=2 color=gray>")
	popWnd.document.write("<br> " + txt )
	popWnd.document.write("</td></tr></table></BODY></HTML>")
	popWnd.document.close()
	popWnd.focus()
    }

    function workWindow(pic,txt,artist) {
	space  = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'
	space  = space + space 
	resize = 'width=550,height=550' 
	popWnd = window.open('','work',resize)
	popWnd.document.write("<HTML><HEAD><TITLE>" + space + "Gallery Gertrude Stein")
	if(artist != "") { popWnd.document.write(": " + artist + space) }
	popWnd.document.write("</TITLE></HEAD>")
	popWnd.document.write("<BODY bgcolor=white topmargin=0>")
	popWnd.document.write("<table border=0 cellpadding=0 height=100% width=100%>")
	popWnd.document.write("<tr valign=center><td align=center>")
	popWnd.document.write("<img src=" + pic + "><br>")
	popWnd.document.write("<font  face='HELVETICA,ARIAL' size=2 color=gray>")
	popWnd.document.write("<br> " + txt )
	popWnd.document.write("</td></tr></table></BODY></HTML>")
	popWnd.document.close()
	popWnd.focus()
    }

    function selImg(prefix,from,to,w) {
      	var sel = from + Math.floor( (Math.random()* (1 + to - from)) )
      	var img = "images/cover/" + prefix + sel
  //    document.write("<a HREF=index.htm><img src=" +  img + ".jpg border=0 height=360></a>")
	document.write("<img src=" +  img + ".jpg border=0 height=360>")
    }

