
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 contactform(){
document.write('<form METHOD=post ACTION="sheilabledsoecgi/contact.cgi">');
document.write('<table WIDTH="400" BORDER="0" CELLSPACING="2" CELLPADDING="2" ALIGN="center">');
document.write('<tr ALIGN="center" BGCOLOR="#D3D2C7">'); 
document.write('<td COLSPAN="2"><b><font SIZE="3" COLOR="#330066">Contact Form</font></b></td></tr>');
document.write('<tr><td CLASS="forms" NOWRAP>Your Name:</td>');
document.write('<td><input TYPE="text" NAME="fullname" SIZE="40"></td></tr>');
document.write('<tr><td CLASS="forms" NOWRAP>E-Mail:</td>');
document.write('<td><input TYPE="text" NAME="email" SIZE="40"></td></tr>');
document.write('<tr><td CLASS="forms" NOWRAP>Telephone:</td>');
document.write('<td><input TYPE="text" NAME="telephone" SIZE="40"></td></tr>');
document.write('<tr VALIGN="top"><td CLASS="forms" NOWRAP>Message:</td>');
document.write('<td><textarea NAME="msg" COLS="29" ROWS="4"></textarea></td></tr>');
document.write('<tr><td ALIGN="CENTER" COLSPAN="2"><input TYPE="submit" NAME="Submit" VALUE="Submit"></td></tr>');
document.write('</table>');
document.write('<input TYPE=hidden NAME=op VALUE="send">');
document.write('</form>');
}


function artmessagesall(prints,cards,original,sepia,fax,msg1,msg2){
document.write('<P align="center" CLASS="artmessages">');

if(original == "sold"){
document.write('Original is sold.<BR>');
}
else if(original == "available"){
document.write('<A HREF="contact.html">Contact me</A> for availability and price of original.<BR>');
}
if(prints){
document.write('Prints come with an acid free backboard in a cellophane wrapper.<BR>');
}
if(fax){
document.write('If you would like to order by Mail or Fax, please <a HREF="mwi212.html">click here</a>.</P>');
}
document.write('</P>');

}

function artmessages(message){
document.write('<P align="center" CLASS="artmessages">Available as art prints, greeting cards and gift cards.<BR>If you would like to order by Mail or Fax, please <a HREF="mwi212.html">click here</a>.<BR>'+message+'</P>');
}
function artmessage_noprint(message){
document.write('<P align="center" CLASS="artmessages">Available as greeting cards and gift cards.<BR>If you would like to order by Mail or Fax, please <a HREF="mwi212.html">click here</a>.<BR>'+message+'</P>');
}   
function artmessage_nocards(message){
document.write('<P align="center" CLASS="artmessages">Available as art prints.<BR>'+message+'<BR>If you would like to order by Mail or Fax, please <a HREF="mwi212.html">click here</a>.</P>');
}   
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="sheilaart@sheilabledsoe.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="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 item(title, item, size1,price1,itemnum1,size2,price2,itemnum2){

// line 1
document.write('<tr><td COLSPAN="3"><b>'+item+'</B></td></tr>');
// line 2 paypal for 4 items
document.write('<tr VALIGN="TOP">');
document.write('	<td WIDTH="41%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+size1+'</td>');
document.write('    <td WIDTH="15%">'+price1+'</td>');
document.write('    <td WIDTH="44%"> ');
paypalbutton(title, item, size1, price1,itemnum1);
document.write('	</td>');
document.write('</tr>');
if(size2){
	document.write('<tr VALIGN="TOP">');
	document.write('	<td WIDTH="41%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+size2+'</td>');
	document.write('    <td WIDTH="15%">'+price2+'</td>');
	document.write('    <td WIDTH="44%"> ');
	paypalbutton(title, item, size2, price2,itemnum2);
	document.write('	</td>');
	document.write('</tr>');
}
}




function galleryitem(image,pagelink,title){
document.write('<td ALIGN="CENTER" WIDTH="33%" class="gallerytext"><a href=" '+pagelink+'" STYLE="font-size:75%">'+image+'<BR>&quot;'+title+'&quot;</a></td>');

}



function bannerhead2(pagetitle){
document.write('<A name="TopOfPage"></A>');
// if (document.all) document.body.style.cssText="background:#333366";
// url(images/candles_small.jpg)no-repeat fixed center center"
document.write('<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">');
document.write('<tr VALIGN="top"> ');
document.write('<td bgcolor="#FFFFFF" ALIGN="LEFT" HEIGHT="160"> <IMG SRC="images/banner_orchid.jpg" WIDTH="342" HEIGHT="160" BORDER="0" ALT=""></td>');
document.write('<TD  bgcolor="#FFFFFF" ALIGN="RIGHT"><IMG SRC="images/bannerleft.gif" WIDTH=297 HEIGHT=148 BORDER=0 ALT="" HSPACE="20"></TD>');

document.write('</tr>');
document.write('<tr bgcolor="#D3D2C7" align="center"> ');
document.write('<td HEIGHT="2" COLSPAN="2"></td></tr>');
document.write('<tr bgcolor="#000000" align="center"> ');
document.write('<td HEIGHT="2" COLSPAN="2"></td></tr>');
document.write('<tr bgcolor="#aea486" align="center"> ');
document.write('<td HEIGHT="4" COLSPAN="2"  background="images/left_nav_back2.gif"></td></tr>');
}


function bannerhead2_old(pagetitle){
document.write('<A name="TopOfPage"></A>');
// if (document.all) document.body.style.cssText="background:#333366";
// url(images/candles_small.jpg)no-repeat fixed center center"
document.write('<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">');
document.write('<tr VALIGN="top"> ');
document.write('<td bgcolor="#FFFFFF" ALIGN="LEFT" HEIGHT="160"  BACKGROUND="images/bannerbackground4.jpg">');
document.write('<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">');
document.write('<TR><TD><IMG SRC="images/bannerleft.gif" WIDTH=297 HEIGHT=148 BORDER=0 ALT="" HSPACE="20"></TD>');
document.write('<TD ALIGN="RIGHT"><IMG SRC="images/bannerright.gif" WIDTH=165 HEIGHT=148 BORDER=0 ALT="" HSPACE="20"></TD>');
document.write('</TR></td></TABLE>');
document.write('</td></tr>');
document.write('<tr bgcolor="#D3D2C7" align="center"> ');
document.write('<td HEIGHT="2" COLSPAN="2"></td></tr>');
document.write('<tr bgcolor="#000000" align="center"> ');
document.write('<td HEIGHT="2" COLSPAN="2"></td></tr>');
document.write('<tr bgcolor="#aea486" align="center"> ');
document.write('<td HEIGHT="4" COLSPAN="2"  background="images/left_nav_back2.gif"></td></tr>');
}

function bannerhead(pagetitle){
document.write('<A name="TopOfPage"></A>');
if (document.all) document.body.style.cssText="background:#3f5d85";
// url(images/candles_small.jpg)no-repeat fixed center center"
document.write('<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">');
document.write('<tr align="center"> ');
document.write('<td bgcolor="#330066"><a href="index.html"><img src="images/toplogo.gif" width="750" height="136" border=0></a></td>');
document.write('</tr>');
document.write('<tr bgcolor="#D3D2C7" align="center"> ');
document.write('<td HEIGHT="2"></td></tr>');

}

function navleft2(buttonused){
document.write('<td width="160" bgcolor="#000000" valign="top" rowspan="2" >');
// document.write('<td width="200" bgcolor="#D3D2C7" valign="top" rowspan="2" background="images/left_nav_back2.gif" >');
document.write('<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">');
document.write('<input type="hidden" name="cmd" value="_cart"><input type="hidden" name="business" value="info@patchesoflight.com"><input type="hidden" name="display" value="1">');

document.write('<BR><BR><center><TABLE  WIDTH="100%" cellpadding="0" CELLSPACING="0">');
buttonleft("Home","index.html",buttonused);
buttonleft("Gallery","gallery.html",buttonused);
buttonleft("Order Information","order_information.html",buttonused);
buttonleft("Graphic Design","graphicdesign.html",buttonused);
buttonleft("Art Reproduction Services","art_services.html",buttonused);
buttonleft("About the Artist","about_sr_bledsoe.html",buttonused);
buttonleft("Contact Us","contact.html",buttonused);
document.write('<TR><TD ALIGN="CENTER" BGCOLOR="#000000" >');
// <input type="image" src="https://www.paypal.com/images/view_cart.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
document.write('<input type="image" src="images/viewcart.gif" border="0" name="submit" alt="Make payments with PayPal - it is fast, free and secure!" >');
document.write('</TD></TR>');
document.write('</TABLE></center>');
document.write('</form>');
document.write('</td>');
}


function buttonleft(buttontitle,htmltitle,buttonused){
if(buttontitle == "Home"){
var imagename = "images/button_welcome.jpg";
}
else if(buttontitle == "Gallery"){
var imagename = "images/button_golden_boy.jpg";
}
else if(buttontitle == "Order Information"){
var imagename = "images/button_kona.jpg";
buttontitle = "Order<br>Information";
}
else if(buttontitle == "Graphic Design"){
var imagename = "images/button_black_chin.jpg";
buttontitle = "Graphic<br>Design";
}
else if(buttontitle == "Art Reproduction Services"){
var imagename = "images/button_Spring Forage.jpg";
}
else if(buttontitle == "About the Artist"){
var imagename = "images/button_spot_color.jpg";
buttontitle = "About<br>the Artist"
}
else if(buttontitle == "Contact Us"){
var imagename = "images/button_spring.jpg";
}

document.write('<TR><TD ALIGN="CENTER">');
document.write('<A HREF="'+htmltitle+'" class="button_text">');
document.write('<span class=buttontext>'+buttontitle+'</span>');
document.write('<br><IMG SRC="'+imagename+'" WIDTH="100" HEIGHT="100" BORDER="0" ALT="" align=center></A>');
document.write('</TD></TR>');
document.write('<TR><TD><FONT SIZE="-2">&nbsp;</FONT></TD></TR>');
}
		


var copyrightmessage = "<p CLASS='copyright'>© S.R. Bledsoe 2005<BR>All content and imagery copyright &copy; protected<BR> and may not be duplicated without express written consent.</font></p>";

function pagetitle(title,title2){
document.write('<P align="center" class="pagetitle">'+title+'</P>');
if(title2){
  document.write('<P align="center" class="pagetitle2">'+title2+'</P>');
}

}


function bottomnav(){

document.write('<BR><BR><P  class="navfoot" ALIGN="CENTER"><a HREF="index.html" CLASS="bottomnav">Home</a> | <a HREF="gallery.html" CLASS="bottomnav">Gallery</a> | <a HREF="order_information.html" CLASS="bottomnav">Order Information</a> | <a HREF="graphicdesign.html" CLASS="bottomnav">Graphic Design</a><br><a HREF="art_services.html" CLASS="bottomnav">Art Reproduction Services</a> | <a HREF="about_sr_bledsoe.html" CLASS="bottomnav">About the Artist</a> | <a HREF="contact.html" CLASS="bottomnav">Contact</a></P>');

document.write(copyrightmessage);
document.write('</CENTER></DIV>');
}

function shippingcosts(){
document.write('<DIV ALIGN="center"><table CELLSPACING="3" CELLPADDING="3" BORDER="1">');
shippingline("Orders under $25","$1.00");
 shippingline("$26 - $40","$2.00");
 shippingline("$41 - $75","$3.00");
 shippingline("$76 - $100","$4.00");
 shippingline("Over $100","Free");
document.write('</table></DIV>');
}

function shippingline(amount,shippingcost){
document.write('<tr> ');
document.write('	<td>'+amount+'</td>');
document.write('	<td>'+shippingcost+'</td>');
document.write('</tr>');
}
function bottomnav4gallery(){
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;<A HREF="../../index.html">home</A>&nbsp;&nbsp;|&nbsp;&nbsp;<A HREF="../../about.html">about</A>&nbsp;&nbsp;|&nbsp;&nbsp;<A HREF="../../members.html">members</A>&nbsp;&nbsp;|&nbsp;&nbsp;<A HREF="../../gallery.html">gallery</A>&nbsp;&nbsp;|&nbsp;&nbsp;<A HREF="../../events.html">events</A>&nbsp;&nbsp;|&nbsp;&nbsp;<A HREF="../../contact.html">contact</A>&nbsp;&nbsp;|&nbsp;&nbsp;<A HREF="../../links.html">links</A> &nbsp;&nbsp;]</P>');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write(copyrightmessage);
document.write('</CENTER></DIV>');
}
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 watermark(){
if (document.all)
document.body.style.cssText="background:#FFFFFF url(images/candles_small.jpg)no-repeat fixed center center"
}


function helpalert(message) {
alert (message);

}

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 bannerhead4cgi(pagetitle){
document.write('<A name="TopOfPage"></A>');
document.write('<TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER" BGCOLOR="#000000" background="../images/banner.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 navleft(){
document.write('<a href="index.html"><img src="images/homepage_button.gif" width="200" height="59" border=0></a><br>');
document.write('<a href="gallery.html"><img src="images/menu_gallery.gif" width="200" height="59" border="0"></a><br>');
document.write('<a HREF="order_information.html"><img SRC="images/menu_orderinfo.gif" WIDTH="200" HEIGHT="59" BORDER="0"></a><br>');
document.write('<a HREF="realtor.html"><img SRC="images/m_thankyou.gif" WIDTH="200" HEIGHT="55" BORDER="0"></a><br>');
document.write('<a HREF="tell_a_friend.php.htm"><img SRC="images/menu_tellfriend.gif" WIDTH="200" HEIGHT="59" BORDER="0"></a><br>');
document.write('<a HREF="about_sr_bledsoe.html"><img SRC="images/menu_artist.gif" WIDTH="200" HEIGHT="59" BORDER="0"></a><br>');
document.write('<a HREF="contact.php.htm"><img SRC="images/menu_contact.gif" WIDTH="200" HEIGHT="59" BORDER="0"></a><br>');
document.write('<input type="hidden" name="cmd" value="_cart"><input type="hidden" name="business" value="info@patchesoflight.com"><input type="image" src="images/menu_cart.gif" border="0" name="submit" alt="Make payments with PayPal - it is fast, free and secure!" WIDTH="200" HEIGHT="59"><input type="hidden" name="display" value="1">');
}
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(1)"><IMG SRC="../BGpurple.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(3)"><IMG SRC="../BGgrey.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>');
}




function get_color(color_num)
{

var now_color=color_num;
var my_color= new Array(5)
  my_color[0]="#CCCCFF";
  my_color[1]="#6600CC";
  my_color[2]="#99CCCC";
  my_color[3]="#666666";
  my_color[4]="white";
  my_color[5]="black";
  my_color[6]="#000099";
  my_color[7]="#669966";
  my_color[8]="#a59c7b";
document.bgColor=my_color[now_color];
}
