/************************************************************************************
   Freedom Rider's Javascript functions
*************************************************************************************/

//
//  Blurt out all the shipping info, in a standard manner
//
function FR_blurt_shipping_info() {
   document.write( "<BR>" );
   document.write( "Freedom Rider is committed to your complete satisfaction. If you are not completely satisfied with any item for any reason*, return it to us for exchange or a full refund. We will refund your purchase price and all shipping charges if there was an error in your order, or the merchandise you received was defective." );
   document.write( "<BR>" );
   document.write( "<BR>" );
   document.write( "<B>SHIPPING and HANDLING</B>" );
   document.write( "<BR>" );
   document.write( "<BR>" );
   document.write( "The following shipping and handling charges will be added to your order when it is processed:" );
   document.write( "<BR>" );
   document.write( "<BR>" );
   document.write( "<TABLE BORDER='0' CELLSPACING='2' CELLPADDING='1'>" );
   document.write( "<TR>" );
   document.write( "<TD>Orders $19.99 and under  </TD> <TD ALIGN='right'>$7.50 </TD>" );
   document.write( "</TR>" );
   document.write( "<TR>" );
   document.write( "<TD>Orders $20.00 - $49.99   </TD> <TD ALIGN='right'>$9.50 </TD>" );
   document.write( "</TR>" );
   document.write( "<TR>" );
   document.write( "<TD>Orders $50.00 - $74.99   </TD> <TD ALIGN='right'>$12.50 </TD>" );
   document.write( "</TR>" );
   document.write( "<TR>" );
   document.write( "<TD>Orders $75.00 - $99.99   </TD> <TD ALIGN='right'>$15.00 </TD>" );
   document.write( "</TR>" );
   document.write( "<TR>" );
   document.write( "<TD>Orders $100.00 - $199.99 </TD> <TD ALIGN='right'>$18.00 </TD>" );
   document.write( "</TR>" );
   document.write( "<TR>" );
   document.write( "<TD>Orders $200.00 - $299.99 </TD> <TD ALIGN='right'>$21.00 </TD>" );
   document.write( "</TR>" );
   document.write( "<TR>" );
   document.write( "<TD>Orders $300.00 and up    </TD> <TD ALIGN='right'>7% of total order </TD>" );
   document.write( "</TR>" );
   document.write( "</TABLE>" );
   document.write( "<BR>" );
   document.write( "The following apply to all orders:" );
   document.write( "<UL>" );
   document.write( "<LI>Orders shipped to any non-USA destination will be shipped US Mail Global Priority and actual shipping costs will be charged.</LI>" );
   document.write( "<LI>There is no shipping and handling charge for gift certificate purchases.</LI>" );
   document.write( "<LI>All prices are in US dollars.</LI>" );
   document.write( "<LI>Please allow 7-10 working days for most deliveries.</LI>" );
   document.write( "<LI>If the color requested isn't available, we reserve the right to substitute another color unless you specify 'no color substitutions' in the Comments/Special Instructions box.</LI>" );
   document.write( "<LI>*Merchandise which has been used, worn, soiled or damaged may not be returned.</LI>" );
   document.write( "<LI>*Books, videos, bits and custom made merchandise may only be returned due to a manufacturer's defect or error. Specials and clearance items may only be returned due to a manufacturer's defect or error.</LI>" );
   document.write( "<LI>When testing saddles and saddle pads for fit, style and comfort, please place a clean sheet between the horse and the merchandise to ensure <B>'like new'</B> condition in case of return.</LI>" );
   document.write( "<LI>Shipping charges are not refundable.</LI>" );
   document.write( "</UL>" );
   document.write( "<BR>" );
}

//
//  Determine the handling and shipping price, based on the purchase amount
//  (via Vic's formula, as described above in FR_blurt_shipping_info() :
//
function FR_Calc_US_Shipping( Amount ) {

   var DefaultUSShippingPct = 7.00;

   var Shipping =   0.00;
   if      ( Amount <=   0.00 )  { Shipping =   0.00; }
   else if ( Amount <   20.00 )  { Shipping =   7.50; }
   else if ( Amount <   50.00 )  { Shipping =   9.50; }
   else if ( Amount <   75.00 )  { Shipping =  12.50; }
   else if ( Amount <  100.00 )  { Shipping =  15.00; }
   else if ( Amount <  200.00 )  { Shipping =  18.00; }
   else if ( Amount <  300.00 )  { Shipping =  21.00; }
   else { 
      Shipping = Amount * ( DefaultUSShippingPct / 100.0 );
   }

   return( Shipping.toFixed(2) );
}

//
//  Put the Freedom Rider/BE info at the top of a printed page
//  
function FR_TopPrintPage()  {
   document.write( "<B>Freedom Rider Tack Shop<BR>888-253-8811<BR>www.freedomrider.com</B>\n" );
}


//
//  Put the Freedom Rider/BE link to home page at the bottom of a printed page
//  
function FR_BottomPrintPage()  {
	document.write( "<DIV STYLE='text-align: center; text-decoration: none;'>" );
	document.write( "<a href=index.html>" );
	document.write( "<input type=submit value='Go to Freedom Rider Home Page'>" );
	document.write( "</A></DIV>" );
}


//
//  Put the Freedom Rider/BE logo with a link to home page
//
function FR_ShowLogo()  {
   document.write("<A HREF=\"index.html\"><IMG ALT=\"Freedom Rider\" BORDER=\"0\" SRC=\"http://www.freedomrider.com/Logo-Freedom-Rider.gif\" WIDTH=\"229\"></A>")
}

//
//  Puts the Name of the company (or companies i.e. Freedom Rider and Britain Equestrian) into a sentance.
//
function FR_ShowCompanyName()  {
   document.write( "Freedom Rider, Inc." );
}

//
//  Put the Follow on Facebook blurb
//
function FR_Facebook()  {
   document.write("<A TARGET=\"new\" HREF=\"http://bit.ly/FreedomRider_on_Facebook\">Follow us on<BR><IMG SRC=\"http://www.freedomrider.com/facebook.jpg\" ALT=\"Follow Freedom Rider on Facebook\" TITLE=\"Click here to follow Freedom Rider on Facebook\" WIDTH=\"90\" HEIGHT=\"30\" BORDER=\"0\"</A><BR>\n" 
);
}


//  
//  Puts the top and left hand sides on each page
//  
function FR_TopOfWebPage()  {
	document.write( "<A NAME='top'></A>" );
	document.write( "<TABLE ALIGN='center' VALIGN='top' WIDTH='900' TITLE='Freedom Rider - Enabling people to do more with horses.' WIDTH='100%' BORDER='0' CELLSPACING='2' CELLPADDING='4'>" );
	document.write( "<TR>" );
	document.write( "<TD ROWSPAN='2' ALIGN='left' TITLE='Click here to go to the Freedom Rider home page. Freedom Rider - Enabling people to do more with horses.'>" );
	document.write( "<A HREF='http://www.freedomrider.com/index.html'><IMG CLASS='HIDE' ALT='Freedom Rider' ALIGN='left' BORDER='0' SRC='http://www.freedomrider.com/Logo-Freedom-Rider.png' WIDTH='100%'></A>" );
	document.write( "</TD>" );
	document.write( "<TD ROWSPAN='2' WIDTH='40%'>" );
	document.write( "<OBJECT CLASS='HIDE' WIDTH='100%' HEIGHT= '50px' TYPE='text/html' DATA='http://www.freedomrider.com/keyword/search_engine.cgi'></OBJECT>" );
	document.write( "</TD>" );
	document.write( "<TD WIDTH='12%' TITLE='Click here for more information on how to contact Freedom Rider. Freedom Rider - Enabling people to do more with horses.'>" );
	document.write( "<A HREF='http://www.freedomrider.com/Contact-Freedom-Rider.html' TARGET='new'><DIV class='HEADERBODY'><DIV class='HIDE'><B>Contact Us</B><BR>Toll Free<BR><B><SPAN STYLE='white-space: nowrap;'>888-253-8811</SPAN></B></DIV></DIV></A>" );
	document.write( "</TD>" );
	document.write( "<TD WIDTH='12%' TITLE='Click here to view your shopping cart. Proceed to check out from your shopping cart.'>" );
	document.write( "<A HREF='http://www.freedomrider.com/managecart.html'><IMG CLASS='HIDE' BORDER='0' SRC='http://www.freedomrider.com/Logo-Shopping-Cart.png' ALIGN='middle' TITLE='Click here to view your shopping cart. Proceed to check out from your shopping cart.'><SPAN STYLE='color: #FF0000;'><B></B></SPAN></A>" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "</TABLE>" );
	document.write( "<TABLE VALIGN='top' WIDTH='900'>" );
	document.write( "<TR>" );
	document.write( "<TD WIDTH='200' VALIGN='top'>" );
	document.write( "<TABLE VALIGN='top' CELLSPACING='0' CELLPADDING='3' BORDER=0>" );
	document.write( "<TR>" );
	document.write( "<TD HEIGHT='475' TITLE='Space for Products Menu'>" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "<TR>" );
	document.write( "<TD>" );
	document.write( "<A HREF='http://www.facebook.com/pages/Freedom-Rider-Tack-Shop/92303655955' TARGET='_TOP' TITLE='Freedom Rider Tack Shop'><IMG class='HIDE' SRC='http://www.freedomrider.com/Logo-Facebook-Visit.jpg' WIDTH='120' STYLE='border: 0px;' ALT='Visit us and like us on Facebook' TITLE='Visit us and like us on Facebook'></A>" );
	document.write( "<BR>" );
	document.write( "<A HREF='http://www.facebook.com/victoria.surr' TARGET='_TOP' class='HIDE' STYLE='font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 10px; font-variant: normal; font-style: normal; font-weight: normal; color: #3B5998; text-decoration: none;' TITLE='Freedom Rider Tack Shop'>Victoria Surr</A> <SPAN STYLE='font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 10px; font-variant: normal; font-style: normal; font-weight: normal; text-decoration: none;' TITLE='Freedom Rider Tack Shop'>likes this.</SPAN><BR>&nbsp;" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "<TR>" );
	document.write( "<TD>" );
	document.write( "<A HREF='http://www.addthis.com/bookmark.php?v=20' ONMOUSEOVER='return addthis_open(this, '', '[URL]', '[TITLE]')' ONMOUSEOUT='addthis_close()' ONCLICK='return addthis_sendto()'><IMG class='HIDE' SRC='http://s7.addthis.com/static/btn/lg-share-en.gif' WIDTH='125' HEIGHT='16' ALT='Bookmark and Share' STYLE='border:0'/></A><SCRIPT TYPE='text/javascript' SRC='http://s7.addthis.com/js/200/addthis_widget.js'></SCRIPT>" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "</TABLE>" );
	document.write( "</TD>" );
	document.write( "<TD VALIGN='top'>" );
	document.write( "<TABLE VALIGN='top' BORDER='0' CELLSPACING='2' CELLPADDING='3'>" );
	document.write( "<TR>" );
	document.write( "<TD COLSPAN='4'>" );
}

//
//  Put the right hand side on each page
//  
function FR_RightSideOfWebPage()  {
	document.write( "</TABLE>" );
	document.write( "</TD>" );
	document.write( "<TD ROWSPAN='2'  VALIGN='top'>" );
	document.write( "<TABLE class='HIDE' ALIGN='Right' BORDER='1' CELLSPACING='0' CELLPADDING='3'>" );
	document.write( "<TR>" );
	document.write( "<TD>" );
	document.write( "<A TITLE='Freedom Rider home page' HREF='http://www.freedomrider.com/'><DIV class='HEADERBODY'><B>Home</B></DIV></A>" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "<TR>" );
	document.write( "<TD>" );
	document.write( "<A TITLE='Go to Shopping Cart' HREF='http://www.freedomrider.com/managecart.html'><DIV STYLE='text-align: center;'><IMG TITLE='Freedom Rider accepts MasterCard, VISA, Discover and PayPal' SRC='http://www.freedomrider.com/Logo-MC-Visa-Discover-Paypal.gif' WIDTH='100' HEIGHT='62' BORDER='0' TITLE='Go to Shopping Cart' ALT='Go to Shopping Cart'></DIV></A>" );
	document.write( "<BR>" );
	document.write( "<A TITLE='Click here to view your shopping cart. Proceed to check out from your shopping cart.'  HREF='http://www.freedomrider.com/managecart.html'><DIV class='HEADERBODY'><B>Go to Shopping Cart</B></DIV></A>" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "<TR>" );
	document.write( "<TD>" );
	document.write( "<A TITLE='How to Order from Freedom Rider' HREF='http://www.freedomrider.com/Order-From-Freedom-Rider.html'><DIV class='HEADERBODY'>How to Order</DIV></A>" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "<TR>" );
	document.write( "<TD>" );
	document.write( "<A TITLE='Search Freedom Rider' HREF='http://www.freedomrider.com/form.html'><DIV class='HEADERBODY'><B>Search for Products</B></DIV></A>" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "<TR>" );
	document.write( "<TD>" );
	document.write( "<A TITLE='Freedom Rider Specials' HREF='http://www.freedomrider.com/Specials-From-Freedom-Rider.html'><DIV class='HEADERBODY'><B>Specials</B></DIV></A>" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "<TR>" );
	document.write( "</TR>" );
	document.write( "<TR>" );
	document.write( "<TD>" );
	document.write( "<A TITLE='Contact Freedom Rider' HREF='http://www.freedomrider.com/Contact-Freedom-Rider.html'><DIV class='HEADERBODY'>Contact Freedom Rider</DIV></A>" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "<TR>" );
	document.write( "<TD>" );
	document.write( "<A HREF='http://www.facebook.com/pages/Freedom-Rider-Tack-Shop/92303655955' TARGET='new' TITLE='Like Freedom Rider Tack Shop on Facebook'><IMG SRC='http://www.freedomrider.com/Logo-FB-Like.gif' WIDTH='130' ALIGN='middle' BORDER='0' ALT='Like Freedom Rider Tack Shop on Facebook'></A>" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "<TR>" );
	document.write( "<TD>" );
	document.write( "<A TITLE='Victoria Surr, president of Freedom Rider' HREF='http://www.freedomrider.com/Surr-Victoria-Freedom-Rider-President-Message.html'><IMG SRC='http://www.freedomrider.com/Logo-V-Surr-closeup.gif' WIDTH='130' HEIGHT='168' ALIGN='middle' BORDER='0' ALT='Victoria Surr'><BR><DIV class='HEADERBODY'><B>Victoria Surr</B></DIV><B><DIV class='HEADERBODY'></B><I>President of<BR>Freedom Rider</I></DIV></A>" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "<TR>" );
	document.write( "<TD>" );
	document.write( "<A TITLE='About Freedom Rider' HREF='http://www.freedomrider.com/About-Freedom-Rider.html'><DIV class='HEADERBODY'>About Freedom Rider</DIV></A>" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "<TR>" );
	document.write( "<TD>" );
	document.write( "<A TITLE='Meet Fred, Morgan gelding FR Freedom First' HREF='http://www.freedomrider.com/fred/index.html'><DIV class='HEADERBODY'>Meet Fred</DIV></A>" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "<TR>" );
	document.write( "<TD>" );
	document.write( "<A TITLE='Links of Interest' HREF='http://www.freedomrider.com/links.html'><DIV class='HEADERBODY'>Links of Interest</DIV></A>" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "<TR>" );
	document.write( "<TD>" );
	document.write( "<A TITLE='Link to Freedom Rider' HREF='http://www.freedomrider.com/linktous.html'><DIV class='HEADERBODY'>Link to us</DIV></A>" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "<TR>" );
	document.write( "<TD>" );
	document.write( "<A TITLE='Freedom Rider privacy policy' HREF='http://www.freedomrider.com/Privacy-Freedom-Rider.html'><DIV class='HEADERBODY'>Privacy Policy</DIV></A>" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "<TR>" );
	document.write( "<TD>" );
	document.write( "<SPAN STYLE='font-size: 70%;'>" );
	document.write( "<DIV STYLE='text-align: center;'> &copy;" );
	var currentDate = new Date();
	var day = currentDate.getDay();
	var date = currentDate.getDate();
	var month = currentDate.getMonth();
	var year = currentDate.getFullYear();
	document.write( year)
	document.write( " Freedom Rider, Inc." );
	document.write( "<DIV STYLE='text-align: center;'> All rights reserved.</DIV>" );
	document.write( "</SPAN>" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "</TABLE>" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "</TABLE>" );
}

//
//  Put the right hand side on each page
//  
function FR_UnderBottomOfWebPage()  {
	document.write( "<TR>" );
	document.write( "<TD>" );
	document.write( "<HR>" );
	document.write( "<FORM>" );
	document.write( "<DIV STYLE='text-align: center;'><INPUT TITLE='You may need to press Control+P or Command+P to print this page' VALUE='   Print this page   ' TYPE='button' onClick='javascript:window.print(); return false;'></DIV>" );
	document.write( "<DIV CLASS='HIDE'><DIV STYLE='text-align: center;'>You may need to press Control+P or Command+P to print this page.</DIV></DIV>" );
	document.write( "</FORM>" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "</TABLE>" );
}


//
//  Prevents some users from copying images
//  
function FR_CopywrightProtected()  {
var msg="This image is protected by copyright law. Please contact us for more information if you wish to use our images.\n\n";
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(msg);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(msg);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
}


//  
//  Puts the top on each page
//  
function FR_OnlyTopOfWebPage()  {
	document.write( "<A NAME='top'></A>" );
	document.write( "<TABLE ALIGN='center' VALIGN='top' WIDTH='900' TITLE='Freedom Rider - Enabling people to do more with horses.' WIDTH='100%' BORDER='0' CELLSPACING='2' CELLPADDING='4'>" );
	document.write( "<TR>" );
	document.write( "<TD ROWSPAN='2' ALIGN='left' TITLE='Click here to go to the Freedom Rider home page. Freedom Rider - Enabling people to do more with horses.'>" );
	document.write( "<A HREF='http://www.freedomrider.com/index.html'><IMG CLASS='HIDE' ALT='Freedom Rider' ALIGN='left' BORDER='0' SRC='http://www.freedomrider.com/Logo-Freedom-Rider.png' WIDTH='100%'></A>" );
	document.write( "</TD>" );
	document.write( "<TD ROWSPAN='2' WIDTH='40%'>" );
	document.write( "<OBJECT CLASS='HIDE' WIDTH='100%' HEIGHT= '50px' TYPE='text/html' DATA='http://www.freedomrider.com/keyword/search_engine.cgi'></OBJECT>" );
	document.write( "</TD>" );
	document.write( "<TD WIDTH='12%' TITLE='Click here for more information on how to contact Freedom Rider. Freedom Rider - Enabling people to do more with horses.'>" );
	document.write( "<A HREF='http://www.freedomrider.com/Contact-Freedom-Rider.html' TARGET='new'><DIV class='HEADERBODY'><DIV class='HIDE'><B>Contact Us</B><BR>Toll Free<BR><B><SPAN STYLE='white-space: nowrap;'>888-253-8811</SPAN></B></DIV></DIV></A>" );
	document.write( "</TD>" );
	document.write( "<TD WIDTH='12%' TITLE='Click here to view your shopping cart. Proceed to check out from your shopping cart.'>" );
	document.write( "<A HREF='http://www.freedomrider.com/managecart.html'><IMG CLASS='HIDE' BORDER='0' SRC='http://www.freedomrider.com/Logo-Shopping-Cart.png' ALIGN='middle' TITLE='Click here to view your shopping cart. Proceed to check out from your shopping cart.'><SPAN STYLE='color: #FF0000;'><B></B></SPAN></A>" );
	document.write( "</TD>" );
	document.write( "</TR>" );
	document.write( "</TABLE>" );
	document.write( "<TABLE VALIGN='top' BORDER='0' CELLSPACING='2' CELLPADDING='3'>" );
	document.write( "<TR>" );
	document.write( "<TD COLSPAN='4'>" );
}

//
//  A dummy process you can use for simple syntax-integrity testing
//
function FR_HelloWorld()  {
   document.write( "<BR>[[ Hello World, as said by the Javascript function! ]]<BR>\n" );
}





