
var jsfileisloaded = "true";

//-------------------------beginning of don't right-click code
//-------------------------this will block all images all files

function right(e) {
  if (e && e.which && (e.which == 3 || e.which == 2)) return false;
  else if (window.event && (event.button == 2 || event.button == 3)) {
    alert('Sorry. Private copyright protected graphics. Do not take.');
    return false;
  }
  return true;
}
function nocontextmenu() {
   alert('Sorry. Private copyright protected graphics. Do not take.'); return false
}
document.onmousedown=right;
if (window.captureEvents) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
document.oncontextmenu = nocontextmenu;
document.onmousedown = right;
document.onmouseup = right;


//-------------------------end of don't right-click code

function FixMemberAmount(memberstatus)
{
  var frm = document.forms["myform"];
  if(memberstatus == "yes")
  {
    frm.feeamt.value = "190.00";
  }
  else
  {
     frm.feeamt.value = "220.00";
  }
}


function CheckMemberAmount()
{
  var frm = document.forms["myform"];
  if(frm.member.value == "yes")
  {
    frm.feeamt.value = "190.00";
  }
  else
  {
     frm.feeamt.value = "220.00";
  }
}

function send_us_an_e_mail(msg,address1,address2,subject){
	var address = address1+'@'+address2;
	var temp_string = msg+'<A HREF="mailto:'+address+'?subject='+subject+'&cc=maryalward1@gmail.com">here</A>'+'.';
document.write(temp_string);
}

function get_timestamp(){
	var temp_timestamp = new Date();
	return temp_timestamp;
}

function contactform(){
document.write('<FORM ACTION="coeurdaleneartassoccgi/contact.cgi" METHOD="POST">');
document.write('<table border=0 align="center" width=600 cellspacing="11" bgcolor="#aec48c">');

document.write('<tr><td class="formdata">Name</td>');
document.write('    <td><input type="text" size=55 name="name"></td></tr>');
document.write('<tr><td class="formdata">E-mail</td>');
document.write('    <td><input type="text" size=55 name="email"></td></tr> ');
document.write('<tr><td class="formdata">Comments,<BR>Questions</td>');
document.write('	<td class="formtext"><textarea name="comments" cols=45 rows=6 ></textarea></td></tr>');
document.write('	<INPUT TYPE="text" NAME="inforequest" title="member number" class="infox">');
document.write('<tr><td align="center" COLSPAN=2>');
document.write('            <input type="submit" value="Send E-Mail"> ');
document.write('            <input type="reset"></td>');
document.write('</tr>');

document.write('</table>');
document.write('</FORM>');
}

function get_on_mailing_list(){
document.write('<A HREF="mailinglists.html">here</A> to be on our mailing lists.');
}


function mailing_list_form(){
document.write('<FORM ACTION="coeurdaleneartassoccgi/mailinglists.cgi" METHOD="POST">');
document.write('<INPUT TYPE="Hidden" NAME="modification" VALUE="false">');
document.write('<INPUT TYPE="hidden" NAME="whoisusing" VALUE="public">');
document.write('<INPUT TYPE="Hidden" NAME="catfriend" VALUE="on">');
document.write('<CENTER><table border=0 align="center" bgcolor="#aec48c" cellspacing="11" >');
document.write('<TR><TD class="formtext">First Name *</TD> ');
document.write('	    <TD  class="formtext"><input type="text" size=35 MAXLENGTH="100"    name="firstname"></TD></TR>');
document.write('	<TR><TD class="formtext">Last Name *</TD> ');
document.write('	    <TD class="formtext" ><input type="text" size=35 MAXLENGTH="100"   name="lastname"></TD></TR>');
document.write('	<TR><TD class="formtext">Business</TD> ');
document.write('	    <TD class="formtext" ><input type="text" size=35 MAXLENGTH="100"   name="businessname"></TD></TR>');
document.write('	<TR><TD class="formtext">Address</TD>');
document.write('	    <TD class="formtext"><input type="text" size=35 MAXLENGTH="100"   name="address"></TD></TR>');
document.write('	<TR><TD class="formtext">City</TD>');
document.write('	    <TD class="formtext"><input type="text" size=35 MAXLENGTH="100"   name="city" value = "Coeur d&#39;Alene"></TD></TR> ');
document.write('	<TR><TD class="formtext">State</TD>');
document.write('	    <TD class="formtext"><input type="text" size=35 MAXLENGTH="100"   name="state" value="ID"></TD></TR>');
document.write('	<TR><TD class="formtext">Zip Code</TD>');
document.write('		<TD class="formtext"><input type="text" size=35 MAXLENGTH="100"   name="zip" value="83814"></TD></TR>');
document.write('		<TR><TD class="formtext">Email</TD>');
document.write('		<TD class="formtext"><input type="text" size=35 MAXLENGTH="100"  name="email"></TD></TR>');
document.write('<TR><TD class="formtext">&nbsp;</TD><TD class="formtext">* Required<BR><BR></TD></TR>');
document.write('<TR VALIGN="TOP"><TD class="formtext">Which List?</TD><TD>');
document.write('<input type="checkbox" 	name="emaillist">E-mail List&nbsp;&nbsp;');
document.write('<input type="checkbox" 	name="maillist">Mail List<BR>');
document.write('<input type="checkbox" 	name="artistmaillist">I am an artist. Please send me local art information.<BR>');
document.write('<INPUT TYPE="text" NAME="inforequest" title="member number" class="infox">');
document.write('</TD></TR>');
document.write('<tr><td COLSPAN=2 class="formdata" ALIGN="CENTER">Comments, Questions...</td></tr>');
document.write('<tr><td COLSPAN=2 class="formtext"><textarea name="comments" cols=55 rows=2 ></textarea></td></tr>');
document.write('<tr><td align="center" COLSPAN=2>');
document.write('            <input type="submit" value="Sign Me Up for Your Mailing List"> ');
document.write('            <input type="reset"></td>');
document.write('</tr>');
document.write('</table>');
document.write('</CENTER>');
document.write('</FORM>');
}
















function tidy() {
if (newwindow.location && !newwindow.closed) {
   newwindow.close(); }
}
var newwindow = ''
function popitup(url) {
if (newwindow.location && !newwindow.closed) {
    newwindow.location.href = url;
    newwindow.focus(); }
else {
    newwindow=window.open(url,'htmlname','resizable=1');}
}

function registration_line(num_of_lines){

for(var i = 0; i <= num_of_lines; i++){
	document.write('<TR><TD CLASS="formcolumn" >&nbsp;</TD>');
	document.write('<TD CLASS="formcolumn" >&nbsp;</TD>');
	document.write('<TD CLASS="formcolumn" >&nbsp;</TD>');
	document.write('<TD CLASS="formcolumn" >&nbsp;</TD>');
	document.write('<TD CLASS="formcolumn" WIDTH="60">&nbsp;&nbsp;</TD>');
	document.write('</TR>');
	}
}
function get_date(){
var now = new Date();
var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var monNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
document.write(dayNames[now.getDay()] + " " + monNames[now.getMonth()] + " " + now.getDate() + ", " + now.getFullYear());
}
function showsection2010(imagename,person){
document.write('<TD align="center">');
document.write('<A HREF="ArtistShowcase2010/images/large/'+imagename+'">');
document.write('<IMG SRC="ArtistShowcase2010/images/small/'+imagename+'" BORDER="0"></A>');
document.write('<BR>'+person);
document.write('</TD>');
}


function showsection(imagename,person){
document.write('<TD align="center" width=300 height=310>');
document.write('<A HREF="ArtistShowcase2009/Artists Sections/larger/'+imagename+'">');
document.write('<IMG SRC="ArtistShowcase2009/Artists Sections/small/'+imagename+'" BORDER="0"></A>');
document.write('<BR>'+person);
document.write('</TD>');
}

function paypalbutton(title, item, size, price, itemnumber){
document.write('<form TARGET="paypal" ACTION="https://www.paypal.com/cgi-bin/webscr" METHOD="post">');
document.write('<input TYPE="hidden" NAME="cmd" VALUE="_cart">');
document.write('<input TYPE="hidden" NAME="business"  VALUE="mary@iwebtown.com">');
document.write('<input TYPE="hidden" NAME="item_name" VALUE="'+title+' ('+item+' '+size+')">');
document.write('<input TYPE="hidden" NAME="item_number" VALUE="'+itemnumber+'">');
document.write('<input TYPE="hidden" NAME="amount" VALUE="'+price+'">');
document.write('<input TYPE="hidden" NAME="no_note" VALUE="1">');
document.write('<input TYPE="hidden" NAME="currency_code" VALUE="USD">');
document.write('<input TYPE="hidden" NAME="lc" VALUE="US">');
document.write('<input type="hidden" name="shipping" value="3.00">');
document.write('<input type="hidden" name="handling" value="0.00">');
document.write('<input type="hidden" name="no_shipping" value="0">');
document.write('<input type="hidden" name="image_url" value="images/donate_button.gif">');

document.write(' <input type="image" src="images/addtocart.gif" border="0" name="submit" alt="Make payments with PayPal -its fast, free and secure!">');


document.write('<input TYPE="hidden" NAME="add" VALUE="1">');
document.write('</form>');
}




function blueheader(title,colspan){
document.write('<TR><TD class="header" colspan='+colspan+'><A NAME="scans">'+title+'</A></TD></TR>  ');
}
// below used to force browser to reload a .txt file with linking to it
function updateLink(filename) {
    now = new Date();
    return  filename + '?' + now.getTime();
}


function submit(){
var temp = "print '<INPUT TYPE=Submit>'";
document.write(temp);
}

function helpalert(message) {
alert (message);

}
function redirection(oldlocation,newlocation){
   if (!newlocation) return false;
   if (!oldlocation) return false;

var pos1 = 0;
pos1 = oldlocation.indexOf('/');
var folders= oldlocation.substring((pos1+1));
var newloc = newlocation + "/" + folders;
document.write(newloc);
location.replace(newloc);
}


function test(message){
document.write(message);
}

function printpage() {
window.print();  
}

function printthispage(message){
document.write("<center><form><input type=button "+"value=\""+message+"\" onClick=\"printpage()\"></form></center>");
}
function backbutton(number){
if(!number)number=1;
document.write('<input type=button value="Back" onClick="history.go(-');
document.write(number)
document.write(')">');
}

function artistheader(artist,cgi){
document.write('<DIV ALIGN="center">');
document.write('<table border="0" cellspacing="0" cellpadding="0" align="center" > ');
document.write('<tr><td class="artpagetitle" ALIGN="CENTER">Coeur d\'Alene Art  Association Member Gallery for </td><td class="artistname" ALIGN="CENTER"> &nbsp;'+artist+'</TD></I></td></tr> ');
document.write('</TABLE> ');
if(cgi){
document.write('<DIV ALIGN="center"><SCRIPT TYPE="text/JavaScript">backgroundcolorpicker_cgi(); ');
}
else{
document.write('<DIV ALIGN="center"><SCRIPT TYPE="text/JavaScript">backgroundcolorpicker(); ');
}
document.write('</SCRIPT><BR><BR></DIV> ');
}

// below not used. keep here for reference
function setbgColor(r, g, b) {
    var hr = hex(r); var hg = hex(g); var hb = hex(b);
    document.bgColor = "#"+hr+hg+hb;
}

function backgroundcolorpickernoimages(){
document.write('<center><table bordercolor="black" border="1"><tr>');
document.write('<td><FONT SIZE="-1" COLOR="#CCCCCC">Change Background Color to:</FONT></td> ');
document.write('<td bgcolor="white" height=10 width=10><a href="#" onmouseover="javascript:get_color(4)">&nbsp;</a></td> ');
document.write('<td bgcolor="#CCCCFF" height=10 width=10><a href="#" onmouseover="javascript:get_color(0)" style="text_decoration="none">&nbsp;</a></td> ');
document.write('<td><a href="#" onmouseover="javascript:get_color(2)"><IMG SRC="../BGltblue.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a></td> ');
document.write('<td><a href="#" onmouseover="javascript:get_color(8)"><IMG SRC="../BGbeige.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a></td> ');
document.write('<td><a href="#" onmouseover="javascript:get_color(7)"><IMG SRC="../BGgreen.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a></td> ');
document.write('<td><a href="#" onmouseover="javascript:get_color(9)"><IMG SRC="../BGslateblue.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a></td> ');
document.write('<td><a href="#" onmouseover="javascript:get_color(3)"><IMG SRC="../BGgrey.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a></td> ');
document.write('<td><a href="#" onmouseover="javascript:get_color(6)"><IMG SRC="../BGdarkblue.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a></td> ');
document.write('<td><a href="#" onmouseover="javascript:get_color(1)"><IMG SRC="../BGpurple.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a></td> ');
document.write('<td><a href="#" onmouseover="javascript:get_color(5)"><IMG SRC="../BGblack.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a></td> ');
document.write('</tr></table></center>');
}

function get_color(color_num)
{

var now_color=color_num;
var my_color= new Array(5)
  my_color[0]="#CCCCFF"; // lavendar
  my_color[1]="#6600CC"; // purple
  my_color[2]="#99CCCC"; // light blue
  my_color[3]="#666666"; // grey
  my_color[4]="white";
  my_color[5]="black";
  my_color[6]="#5611b5"; // dark blue
  my_color[7]="#669966"; // green
  my_color[8]="#a59c7b"; // beige
  my_color[9]="#b2a4c4"; // slate blue
  my_color[10]="#808092";  // gray-purple
  my_color[11]="#fdef59"; // gold
  
document.bgColor=my_color[now_color];
}

function backgroundcolorpicker4artcontest(){

document.write('<FONT SIZE="-1" COLOR="#404040">Change Background Color to:</FONT> ');
document.write('<a href="#" onmouseover="javascript:get_color(4)"><IMG SRC="../../artists/BGwhite.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(0)"><IMG SRC="../../artists/BGlavendar.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(2)"><IMG SRC="../../artists/BGltblue.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(8)"><IMG SRC="../../artists/BGbeige.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
// document.write('<a href="#" onmouseover="javascript:get_color(11)"><IMG SRC="../../artists/BGgold.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(7)"><IMG SRC="../../artists/BGgreen.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(9)"><IMG SRC="../../artists/BGslateblue.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(10)"><IMG SRC="../../artists/BGgraypurple.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(3)"><IMG SRC="../../artists/BGgrey.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(6)"><IMG SRC="../../artists/BGdarkblue.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(1)"><IMG SRC="../../artists/BGpurple.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(5)"><IMG SRC="../../artists/BGblack.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
}

function backgroundcolorpicker_cgi(){

document.write('<FONT SIZE="-1" COLOR="#CCCCCC">Change Background Color to:</FONT> ');
document.write('<a href="#" onmouseover="javascript:get_color(4)"><IMG SRC="../artists/BGwhite.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(0)"><IMG SRC="../artists/BGlavendar.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(2)"><IMG SRC="../artists/BGltblue.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(8)"><IMG SRC="../artists/BGbeige.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(7)"><IMG SRC="../artists/BGgreen.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(9)"><IMG SRC="../artists/BGslateblue.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(3)"><IMG SRC="../artists/BGgrey.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(6)"><IMG SRC="../artists/BGdarkblue.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(1)"><IMG SRC="../artists/BGpurple.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(5)"><IMG SRC="../artists/BGblack.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
}
function backgroundcolorpicker(){

document.write('<FONT SIZE="-1" COLOR="#CCCCCC">Change Background Color to:</FONT> ');
document.write('<a href="#" onmouseover="javascript:get_color(4)"><IMG SRC="../BGwhite.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(0)"><IMG SRC="../BGlavendar.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(2)"><IMG SRC="../BGltblue.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(8)"><IMG SRC="../BGbeige.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(7)"><IMG SRC="../BGgreen.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(9)"><IMG SRC="../BGslateblue.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(3)"><IMG SRC="../BGgrey.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(6)"><IMG SRC="../BGdarkblue.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(1)"><IMG SRC="../BGpurple.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
document.write('<a href="#" onmouseover="javascript:get_color(5)"><IMG SRC="../BGblack.jpg" WIDTH=14 HEIGHT=14 BORDER=0></a> ');
}
function get_color2test(color_num){
document.bgColor=color_num;
}


function backgroundcolorpicker2test(){

	document.write('<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR>');
	document.write('<TD><FONT SIZE="-1" COLOR="#CCCCCC">Change Background Color to:</FONT> </TD>');
document.write('<TD BGCOLOR="#CCCCFF" width=15 height=15><a href="#" onmouseover="javascript:get_color(0)" border="0"  CLASS="acolor"><IMG SRC="../../images/trans15x15.gif" WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></a></TD> ');
document.write('</TR></TABLE>');
}


var copyrightmessage = "<p CLASS='copyright'>All content and imagery copyright &copy; protected<BR> and may not be duplicated without express written consent.</font></p>";

function sendemail(address,subject,display) {
document.write('<A HREF="mailto:');
document.write(address);
if(subject){
document.write('?subject=');
document.write(subject);
}
document.write('">');
document.write(display);
}

function bannerhead(title,title2,level){
x="";
if(level == "1"){x="../";}
else if(level == "2"){x="../../";}
document.write('<A name="TopOfPage"></A>');
document.write('<TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER" BGCOLOR="#000000" background="'+x+'images/banner4.jpg" border=0>');
document.write('<TR VALIGN="BOTTOM"><TD height=122 ALIGN="left"><IMG SRC="'+x+'images/Logox122h.gif" WIDTH=132 HEIGHT=127 BORDER=0 ALT=""></TD></TR>');
document.write('<TR VALIGN="MIDDLE"><TD BGCOLOR="#000000" ALIGN="CENTER" HEIGHT="10"><IMG SRC="'+x+'images/tile2x10_black.gif" BORDER=0 ALT="" WIDTH=2 HEIGHT=10></TD></TR>');
document.write('</TABLE>');
document.write('<TABLE WIDTH="100%" border="0" CELLSPACING="0" CELLPADDING="0">');
//document.write('<TR VALIGN="MIDDLE"><TD BGCOLOR="#000000" ALIGN="CENTER" HEIGHT="20"><IMG SRC="images/tile2x10.gif" BORDER=0 ALT="" WIDTH=2 HEIGHT=10></TD></TR>');
document.write('<TR VALIGN="MIDDLE"><TD BGCOLOR="#aec48c" ALIGN="CENTER" HEIGHT="10"><IMG SRC="'+x+'images/tile2x10_green.jpg" BORDER=0 ALT="" WIDTH=2 HEIGHT=10></TD></TR>');

document.write('</TABLE>');

document.write('<TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="0" border=0>');
document.write('<tr><td bgcolor="#aec48c" width=10%>&nbsp;</td><td>');
// all page content goes here.  This td tag is terminated in bottomnav()

document.write('<center><TABLE><TR VALIGN="TOP"><TD ALIGN="CENTER">');
document.write('<BR><IMG SRC="'+x+'images/CDA_name_Sheilas.jpg" WIDTH=600 HEIGHT=71 BORDER=0 ALT=""></TD></TR>');
document.write('<TR VALIGN="TOP"><TD ALIGN="CENTER" CLASS="pagetitle">');
bannertitle(title,title2);
document.write('</TD></TR></TABLE>');
}

// removed one folder
function bannerhead2(title,title2){
document.write('<A name="TopOfPage"></A>');
document.write('<TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER" BGCOLOR="#000000" background="../images/banner4.jpg" border=0>');
document.write('<TR VALIGN="BOTTOM"><TD height=122 ALIGN="left"><IMG SRC="../images/Logox122h.gif" WIDTH=132 HEIGHT=127 BORDER=0 ALT=""></TD></TR>');
document.write('<TR VALIGN="MIDDLE"><TD BGCOLOR="#000000" ALIGN="CENTER" HEIGHT="10"><IMG SRC="../images/tile2x10_black.gif" BORDER=0 ALT="" WIDTH=2 HEIGHT=10></TD></TR>');
document.write('</TABLE>');
document.write('<TABLE WIDTH="100%" border="0" CELLSPACING="0" CELLPADDING="0">');
//document.write('<TR VALIGN="MIDDLE"><TD BGCOLOR="#000000" ALIGN="CENTER" HEIGHT="20"><IMG SRC="images/tile2x10.gif" BORDER=0 ALT="" WIDTH=2 HEIGHT=10></TD></TR>');
document.write('<TR VALIGN="MIDDLE"><TD BGCOLOR="#aec48c" ALIGN="CENTER" HEIGHT="10"><IMG SRC="../images/tile2x10_green.jpg" BORDER=0 ALT="" WIDTH=2 HEIGHT=10></TD></TR>');

document.write('</TABLE>');

document.write('<TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="0" border=0>');
document.write('<tr><td bgcolor="#aec48c" width=10%>&nbsp;</td><td>');
// all page content goes here.  This td tag is terminated in bottomnav()

document.write('<center><TABLE><TR VALIGN="TOP"><TD ALIGN="CENTER">');
document.write('<BR><IMG SRC="../images/CDA_name_Sheilas.jpg" WIDTH=600 HEIGHT=71 BORDER=0 ALT=""></TD></TR>');
document.write('<TR VALIGN="TOP"><TD ALIGN="CENTER" CLASS="pagetitle">');
bannertitle(title,title2);
document.write('</TD></TR></TABLE>');
}

function bottomnav(level){

document.write('<BR><DIV ALIGN="center"><CENTER>');
document.write('<table  border="0" cellspacing=1 cellpadding=1>');
document.write('<tr valign="top">');

document.write('<td><P  class="navfoot">[ &nbsp;&nbsp;');
$navstring  = naventry("home","index",level);
$navstring  += naventry("about","",level);
$navstring  += naventry("members","",level);
$navstring  += naventry("newsletters","",level);
$navstring  += naventry("gallery","",level);
$navstring  += naventry("events","",level);
$navstring  += naventry("contact","",level);
$navstring  += naventry("links","",level);
document.write($navstring.substring(0,$navstring.length-13));
document.write(']</P>');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write(copyrightmessage);
document.write('</CENTER></DIV>');
document.write('</td><td bgcolor="#aec48c" width=10%>&nbsp;</td></tr></table>');
}
function naventry(page,html,level){
	// if page is home, html should be index
	if(!html){html = page;}
	if(!level){ 
		$navstr = '<A HREF="'+html+'.html">'+page+'</A>&nbsp;&nbsp;|&nbsp;&nbsp;';
		}
	if(level == "1"){
		$navstr = '<A HREF="../'+html+'.html">'+page+'</A>&nbsp;&nbsp;|&nbsp;&nbsp;';
		}
	if(level == "2"){
		$navstr = '<A HREF="../../'+html+'.html">'+page+'</A>&nbsp;&nbsp;|&nbsp;&nbsp;';
		}
	return $navstr;
}


function pagetitle(title){
document.write('<P class="pagetitle" ALIGN="CENTER">'+title+'</P>');
}

function bannertitle(title,title2){
	document.write('<center>');
	for(var i = 0; i <= title.length; i++){
		document.write(title.charAt(i));
		document.write('<FONT SIZE="-1">&nbsp;</FONT>');
	}
	if(title2){
		document.write('<BR><small>'+title2+'</small>');}
	document.write('</center>');
}
function bannerhead4members(pagetitle){
document.write('<A name="TopOfPage"></A>');
document.write('<TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER" BGCOLOR="#000000" background="../images/banner4.jpg" border=0>');

document.write('<TR><TD height=122 ALIGN="center">&nbsp;</TD></TR>');
document.write('</TABLE>');
document.write('<TABLE WIDTH="100%" border="0" CELLSPACING="0" CELLPADDING="0">');
document.write('<TR VALIGN="MIDDLE"><TD BGCOLOR="#000000" ALIGN="CENTER" HEIGHT="10"><IMG SRC="../images/tile2x10.gif" BORDER=0 ALT="" WIDTH=2 HEIGHT=10></TD></TR>');
document.write('<TR VALIGN="MIDDLE"><TD ALIGN="CENTER" HEIGHT="50"><IMG SRC="../images/CdAAA.jpg" WIDTH=540 HEIGHT=41 BORDER=0 ALT=""></TD></TR>');
document.write('<tr><td class="pagetitle">'+pagetitle+'<BR></td></tr>');

document.write('</TABLE>');
}

function cantclickit() {
alert ("Private graphics.  Don't not take.");
}

function notprintable() {
alert ("This image is not suitable for printing.  If you are a member and you would like to print your own postcards, email the webmaster.");
}


function reloadPage(){
document.write(window.location.reload());
}

function display_art(artist,artist_folder,title,medium,size,price,image){
document.write('<FORM ACTION="../../coeurdaleneartassoccgi/artwork.cgi" METHOD="POST">');

document.write('<INPUT TYPE="hidden" NAME="artist" value="'+artist+'">');
document.write('<INPUT TYPE="hidden" NAME="artist_folder" value="'+artist_folder+'">');
document.write('<INPUT TYPE="hidden" NAME="title" value="'+title+'">');
document.write('<INPUT TYPE="hidden" NAME="medium" value="'+medium+'">');
document.write('<INPUT TYPE="hidden" NAME="size" value="'+size+'">');
document.write('<INPUT TYPE="hidden" NAME="price" value="'+price+'">');
document.write('<INPUT TYPE="hidden" NAME="image" value="'+image+'">');
document.write('<INPUT TYPE="submit" style="background: white;  font-size: 85%; font-weight:bold; " VALUE="&quot;'+title+'&quot;">');
document.write('</FORM>');
}

