 var selectedDetailTabName;
 function changeDetailPageTab(tabName)
 {
	 for (var i in tabArray) 
	  {   
		  var tabObj = tabArray[i];
		  if (tabObj == null)
		   continue;
		  var tab = document.getElementById('tab_' + tabObj.name);// set the tab image to 'on' or 'off'
		  if (tab != null)
		   {
			   tab.type = "image";
			   if (tabObj.name == tabName)
			    tab.src = tabObj.onImg;
			   else
			    tab.src = tabObj.offImg;
		   }// show this tab, hide all others
		  var div = document.getElementById('div_' + tabObj.name);
		  if (div != null)
		   if (tabObj.name == tabName) 
		    div.style.display = "block";
		   else
		    div.style.display = "none";// Turn the accessibility images off.
		  var div2 = document.getElementById('access_' + tabObj.name);
		  if (div2 != null) 
		   div2.style.display = "none";
	  }// foreach tab
  }

/***************************************************************************************************************

*****************************************************************************************************************/
function above_Head_Nav()
  {
	  document.write("<div id=\"logo\"><a href=\"index.html\"><img src=\"common/logo-final1-web.jpg\" width=\"173\" height=\"40\" border=\"0\" /></a></div>");
	  document.write("<div id=\"above-header-links\"><div id=\"above-header-links-a\"><table width=\"145\" border=0 cellpadding=0 cellspacing=0>");
	  document.write("<tr><td width=\"22\" align=\"right\"><a href=\"contract_us.htm\"><img src=\"common/icon-phone.gif\" width=\"20\" height=\"20\" border=0></a></td>");
	  document.write("<td width=\"137\" ><a href=\"contract_us.htm\" class=\"page_name\" style=\"text-decoration:none;\">713 266 2111</a></td>");
	  document.write("</tr></table></div><div id=\"above-header-links-b\"><a href=\"main/customer_service/sitemap.htm\" class=\"linkstyle\">Site Map</a> | <a href=\"http://order.store.yahoo.net/cgi-bin/wg-order?yhst-14300415523630\" class=\"linkstyle\">View Cart</a> | <a href=\"customer_service.html\" class=\"linkstyle\">Help</a></div></div>");
  }



function HeadNavigation()
  {
    document.write("<TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR>");
	document.write("<TD><a href=\"index.html\" onMouseOver=\"MM_swapImage('Image1','','index/images/home-gray_01.jpg',1)\" onMouseOut=\"MM_swapImgRestore()\"><IMG SRC=\"index/images/home-brown_01.jpg\" name=\"Image1\" WIDTH=63 HEIGHT=51 border=\"0\" id=\"Image1\"></a></TD>");
	document.write("<TD><a href=\"main/boots/Tall_Boots.htm\" onMouseOver=\"MM_swapImage('Image2','','index/images/home-gray_02.jpg',1)\" onMouseOut=\"MM_swapImgRestore()\"><IMG SRC=\"index/images/home-brown_02.jpg\" name=\"Image2\" WIDTH=93 HEIGHT=51 border=\"0\" id=\"Image2\"></a></TD>");
	document.write("<TD><a href=\"boots.html\" onMouseOver=\"MM_swapImage('Image3','','index/images/home-gray_03.jpg',1)\" onMouseOut=\"MM_swapImgRestore()\"><IMG SRC=\"index/images/home-brown_03.jpg\" name=\"Image3\" WIDTH=75 HEIGHT=51 border=\"0\" id=\"Image3\"></a></TD>");
	document.write("<TD><a href=\"riding-gloves.html\" onMouseOver=\"MM_swapImage('Image4','','index/images/home-gray_04.jpg',1)\" onMouseOut=\"MM_swapImgRestore()\"><IMG SRC=\"index/images/home-brown_04.jpg\" name=\"Image4\" WIDTH=72 HEIGHT=51 border=\"0\" id=\"Image4\"></a></TD>");
	document.write("<TD><a href=\"body_armors.html\" onMouseOver=\"MM_swapImage('Image5','','index/images/home-gray_05.jpg',1)\" onMouseOut=\"MM_swapImgRestore()\"><IMG SRC=\"index/images/home-brown_05.jpg\" name=\"Image5\" WIDTH=77 HEIGHT=51 border=0 id=\"Image5\"></a></TD>");
	document.write("<TD><a href=\"custom_boots.html\" onMouseOver=\"MM_swapImage('Image6','','index/images/home-gray_06.jpg',1)\" onMouseOut=\"MM_swapImgRestore()\"><IMG SRC=\"index/images/home-brown_06.jpg\" name=\"Image6\" WIDTH=121 HEIGHT=51 border=0 id=\"Image6\"></a></TD>");
	document.write("<TD><a href=\"customer_service.html\" onMouseOver=\"MM_swapImage('Image7','','index/images/home-gray_07.jpg',1)\" onMouseOut=\"MM_swapImgRestore()\"><IMG SRC=\"index/images/home-brown_07.jpg\" name=\"Image7\" WIDTH=150 HEIGHT=51 border=0 id=\"Image7\"></a></TD>");
	document.write("<TD><a href=\"main/customer_service/1.shipping-and-handling.html\"><IMG SRC=\"index/images/home-brown_08.jpg\" WIDTH=149 HEIGHT=51 border=0></a></TD>");
	document.write("</TR>");
	document.write("<TR><TD COLSPAN=8><img src=\"index/images/boots-brwon_09.jpg\" width=800 height=225 border=0 usemap=\"#Map\"></TD>");
	document.write("</TR></TABLE>");

  }

function Footer()
  {
	 document.write("<div id=\"footer_main_div\"><div id=\"from_right_1\"><span class=\"footer_heading\"><IMG height=12 src=\"common/orangearrow.gif\" width=11 align=absMiddle> Stay in touch</span><br>"); 
	 document.write("<IMG height=17 src=\"common/imgLiveHelp.gif\" width=79 border=0><span class=\"footer_content\"><font color=\"#c05050\">(coming Soon)<br>");
	 document.write("» Call us: +1-713-266-2111<br>» Email: <span class=\"footer_content\" onclick=\"openDetailTabPopup('mail_us2.htm')\" style=\"cursor:pointer \">ask@ridersmall.com</span><br>");
	 document.write("<span onclick=\"addfave()\" style=\"cursor:pointer;\">» Add: To your favourites</span><br><br></font>");
	 document.write("Site designed &amp; developed by:<br><A style=\"FONT-WEIGHT: 700; COLOR: #353535; TEXT-DECORATION: none\"href=\"http://www.deosai.com/\">DEOSAI</A></span>");
	 document.write("</div><div id=\"from_right_2\"><span class=\"footer_heading\"><IMG height=12 src=\"common/orangearrow.gif\" width=11 align=absMiddle> About</span><br>");
	 document.write("<span class=\"footer_content\"><a href=\"main/customer_service/1.why_shop_fromus.html\" class=\"linkstyle\">» Why shop from us</a><br>");
	 document.write("<a href=\"about_us.htm\" class=\"linkstyle\">» About us</a><br><a href=\"contract_us.htm\" class=\"linkstyle\">» Contact Us</a><br>");
	 document.write("<a href=\"main/customer_service/1.privacy.html\" class=\"linkstyle\">» Privacy Policy</a><br>");
	 document.write("<a href=\"main/customer_service/1.gaurantee.htm\" class=\"linkstyle\">» Security Guarantee</a><br>");
	 document.write("<a href=\"main/customer_service/1.terms_and_conditions.html\" class=\"linkstyle\">» Terms of Use</a><br>");
	 document.write("<a href=\"main/customer_service/sitemap.htm\" class=\"linkstyle\">» Site Map</a>");
	  document.write("<br /><br /> </span></div> ");
	 
	 
	 
	 
	 document.write("<div id=\"from_right_3\"><span class=\"footer_heading\"><IMG height=12 src=\"common/orangearrow.gif\" width=11 align=absMiddle> Shopping</span><br>");
	document.write("<span class=\"footer_content\"><a href=\"main/customer_service/1.gaurantee.htm\" class=\"linkstyle\">» Safe Shopping Guarantee</a><br>");
	 document.write("<a href=\"/customer_service/1.shipping-and-handling.html\" class=\"linkstyle\">» Shipping</a><br>");
	 document.write("<a href=\"main/customer_service/1.payment_options.html\" class=\"linkstyle\">» Payments</a><br>");
	 document.write("<a href=\"main/customer_service/1.Return_n_exchange.htm\" class=\"linkstyle\">» Return &amp; Exchange</a><br>");
	 document.write("<a href=\"http://order.store.yahoo.net/cgi-bin/wg-order?yhst-14300415523630\" class=\"linkstyle\">» Cart &amp; Checkout</a><br></span></div>");
	 document.write("<div id=\"from_right_4\"><span class=\"footer_heading\">");
	 document.write("<IMG height=12 src=\"common/orangearrow.gif\" width=11 align=absMiddle> Customer Service</span><br><span class=\"footer_content\">");
	 document.write("<a href=\"main/customer_service/order-tracking.html\" class=\"linkstyle\">» Order Status &amp; Tracking</a><br>");
	 document.write("<a href=\"main/customer_service/1.Return_n_exchange.htm\" class=\"linkstyle\">» Return Authorization</a><br>");
	 document.write("<a href=\"main/customer_service/1.gaurantee.htm\" class=\"linkstyle\">» 110% Price Guarantee</a><br>");
	 document.write("<a href=\"main/customer_service/sizing-guide.htm\" class=\"linkstyle\">» Sizing Guides</a><br>");
	 document.write("<a href=\"customer_service.html\" class=\"linkstyle\">» HELP Desk</a><br>");
	 document.write("<br><br><br><a href=\"http://www.ridersmall.com/affiliate/index.html\" <strong style=\"color:#FF0000; font-size:12px\">» Affiliate Program</a><br></span></div></div>");
  }

function Below_Footer()
  {
	document.write("<table width=\"800\" height=\"186\" border=0 cellpadding=0 cellspacing=0><tr><td height=\"60\" colspan=1 align=\"center\" class=\"style1\">");
	document.write("<em>riding boots, horse riding boots, equestrian riding boots, riding boots leather, english riding boots</em></td>");
	document.write("<td height=\"60\" colspan=9 align=\"center\"><a href=\"main/customer_service/1.gaurantee.htm\"><img src=\"common/satisfaction-Guaranty-seel-.jpg\" width=\"200\" height=\"125\" border=0></a></td>");
	document.write("<td height=\"60\" align=\"center\"><h1><span class=\"style1\">riding boots, horse riding boots, equestrian riding boots, riding boots leather, english riding boots</span></h1></td>");
	document.write("</tr><tr><td width=\"72\" height=\"60\">&nbsp;</td><td width=\"82\">&nbsp;</td><td width=\"80\"><a href=\"main/customer_service/1.payment_options.html\">");
	document.write("<img src=\"common/paypalsmall.gif\" alt=\"riding boots\" width=\"80\" height=\"34\" border=0></a></td>");
	document.write("<td width=\"41\"><a href=\"main/customer_service/1.payment_options.html\"><img src=\"common/mc.gif\" width=\"40\" height=\"24\" border=0></a></td>");
	document.write("<td width=\"40\"><a href=\"main/customer_service/1.payment_options.html\"><img src=\"common/discover.gif\" width=\"40\" height=\"24\" border=0></a></td>");
	document.write("<td width=\"40\"><a href=\"main/customer_service/1.payment_options.html\"><img src=\"common/ae.gif\" width=\"40\" height=\"24\" border=0></a></td>");
	document.write("<td width=\"40\"><a href=\"main/customer_service/1.payment_options.html\"><img src=\"common/visa.gif\" width=\"40\" height=\"24\" border=0></a></td>");
	document.write("<td width=\"57\"><a href=\"main/customer_service/1.payment_options.html\"><img src=\"common/billmelatersmall.gif\" width=\"57\" height=\"34\" border=0></a></td>");
	document.write("<td width=\"82\"><a href=\"main/customer_service/1.shipping-and-handling.html\"><img src=\"common/FedEx.jpg\" width=\"82\" height=\"39\" border=0></a></td>");
	document.write("<td width=\"196\"><img src=\"common/12.gif\"></td><td width=\"70\">&nbsp;</td></tr><tr align=\"center\" valign=\"top\">");
	document.write("<td height=\"22\" colspan=\"11\" class=\"style1\">riding boots, horse riding boots, equestrian riding boots, riding boots leather, english riding boots </td>");
	document.write("</tr><tr align=\"center\" valign=\"top\"><td height=\"22\" colspan=\"11\"><div align=\"center\"><span class=\"footer_content\">Copyright &copy; RidersMall.com<br />");
	document.write("<img src=\"common/misc_yahoo.gif\" width=\"62\" height=\"24\" /></span></div></td></tr></table>");
  }


function Special_Offer_Add()
  {
	  document.write("<TABLE cellSpacing=1 cellPadding=0 width=152 border=0 style=\"margin-left:10px;\"><tr>");
	  document.write("<td><img src=\"common/corners/left-cor.jpg\" width=\"25\" height=\"20\"><img src=\"common/corners/center-bar.jpg\" width=\"100\" height=\"20\"><img src=\"common/corners/right-cor.jpg\" width=\"25\" height=\"20\"></td>");
	  document.write("</tr><tr>");
	  document.write("<td align=center valign=top><a href=main/offers/p-1.htm target=\"_blank\"><img src=\"main/adds/kids-paddock-add.jpg\" width=\"150\" height=\"252\" border=0></a></td>");
	  document.write("</tr><tr>");
	  document.write("<td ><img src=\"common/corners/left-bottom.jpg\" width=\"25\" height=\"20\"><img src=\"common/corners/center-bar.jpg\" width=\"100\" height=\"20\"><img src=\"common/corners/right-bottom.jpg\" width=\"25\" height=\"20\"></td>");
	  document.write("</tr></TABLE>");
  }
  
function Banner_Add()
  {
	  document.write("<TABLE cellSpacing=0 cellPadding=0 align=center border=0  style=\"margin-top:20px; margin-left:10px;\"><TR><TD height=16>");
	  document.write("<a href=\"main/custom/field.htm\"><img src=\"index/images/add/add-girl-wala_v03.jpg\" width=\"140\" height=\"626\" border=0>");
	  document.write("</a></TD></tr></TABLE>");
  }
			    
/************************************************************************************************************************

************************************************************************************************************************/
var whichimg='3';

function change_img(source)
{
	if(document.all)
	 {
	  var obj=document.all.mainimg;
	 }
	 
	else if(document.getElementById)
	 {
		 var obj=document.getElementById('mainimg');
	 }
	 
	obj.src=source;
}


/*******************************************************************************************************************/
/*								Functions for Changing Borders of the Pictures in Product Page								   */	
/********************************************************************************************************************/
function changeborder_onmouseover(id)
{
	if(document.getElementById)
		{var obj=document.getElementById(id);}
	else if(document.all)
		{var obj=document.all[id];}
	obj.style.borderColor="#E5E0C0";
	obj.style.borderStyle="dashed";
	obj.style.borderWidth="thin";	
}

function changeborder_onmouseout(id)
{
	if(document.getElementById)
		{var obj=document.getElementById(id);}
	else if(document.all)
		{var obj=document.all[id];}
		
	obj.style.borderColor="#FFFFFF";
	obj.style.borderStyle="solid";
	obj.style.borderWidth="thin";
}

/*******************************************************************************************************************/
/*								End of functions about Changing Borders of the Pictures in Product Page			   */	
/*******************************************************************************************************************/

function open_img_new_wind(source)
{
	var popup=window.open(source,'popup1','height=800,width=700,left=50px,top=50px');
	popup.focus();
	
}


/*******************************************/
/*Add to favorities*/
/******************************************/
var url="http://www.riddersmall.com/"
var title="Ridders Mall"
function addfave()
{
if (document.all)
window.external.AddFavorite(url,title)
}

function openDetailTabPopup(url) {
       
    window_handle = window.open(url,'ProductDetail',"location=0,menubar=0,resizable=no,height=550,width=600,scrollbars=yes,left=220,screenX=220,top=70,screenY=70"
                              );
    if( window_handle ){
        window_handle.focus();
    }
  }
/*********************************************************

**********************************************************/
function change_tab(id)
{

 for(i=2;i<8;i=i+2)
  	{
	after_id=i+1;
	before_id=i-1;
	div_id=i;
	before_img=document.getElementById('img_' + before_id);
	after_img=document.getElementById('img_' + after_id);
	center_td=document.getElementById('td_' + div_id);

	if(div_id==id)
  		{
			center_td.background=center_onimg;
			if(before_id=='1')
			 before_img.src=onimg_1;
			else
			 before_img.src=left_onimg; 
			if(after_id=='7')
			 after_img.src=onimg_15;
			else
			 after_img.src=right_onimg; 
  		}
	else
		{	
			center_td.background=center_offimg;
			if(after_id=='7')
			 after_img.src=offimg_15;
			else
			after_img.src=right_offimg;
			if(before_id=='1')
			 before_img.src=offimg_1;
			detail_div=document.getElementById('detail_div_' + i);
			detail_div.style.display="none";
 
			
			
		}
	
 	}
	detail_div=document.getElementById('detail_div_' + id);
	detail_div.style.display="block";

	
}

function change_tab1(id)
{

 for(i=10;i<17;i=i+2)
  	{
	after_id=i+1;
	before_id=i-1;
	div_id=i;
	before_img=document.getElementById('img_' + before_id);
	after_img=document.getElementById('img_' + after_id);
	center_td=document.getElementById('td_' + div_id);

	if(div_id==id)
  		{
			center_td.background=center_onimg;
			if(before_id=='9')
			 before_img.src=onimg_1;
			else
			 before_img.src=left_onimg; 
			if(after_id=='17')
			 after_img.src=onimg_15;
			else
			 after_img.src=right_onimg; 
  		}
	else
		{	
			center_td.background=center_offimg;
			if(after_id=='17')
			 after_img.src=offimg_15;
			else
			after_img.src=right_offimg;
			if(before_id=='9')
			 before_img.src=offimg_1;
			detail_div=document.getElementById('detail_div_' + i);
			detail_div.style.display="none";
 
			
			
		}
	
 	}
	detail_div=document.getElementById('detail_div_' + id);
	detail_div.style.display="block";

	
}
function change_tab2(id)
{

 for(i=20;i<31;i=i+2)
  	{
	after_id=i+1;
	before_id=i-1;
	div_id=i;
	before_img=document.getElementById('img_' + before_id);
	after_img=document.getElementById('img_' + after_id);
	center_td=document.getElementById('td_' + div_id);

	if(div_id==id)
  		{
			center_td.background=center_onimg;
			if(before_id=='19')
			 before_img.src=onimg_1;
			else
			 before_img.src=left_onimg; 
			if(after_id=='31')
			 after_img.src=onimg_15;
			else
			 after_img.src=right_onimg; 
  		}
	else
		{	
			center_td.background=center_offimg;
			if(after_id=='31')
			 after_img.src=offimg_15;
			else
			after_img.src=right_offimg;
			if(before_id=='19')
			 before_img.src=offimg_1;
			detail_div=document.getElementById('detail_div_' + i);
			detail_div.style.display="none";
 
			
			
		}
	
 	}
	detail_div=document.getElementById('detail_div_' + id);
	detail_div.style.display="block";

	
}

function change_div(value)
{
 if(value==1)
  {
    
    var divid1=document.getElementById('narrow_by_1');
    var divid2=document.getElementById('narrow_by_2');
	
  } 
 
 else if(value==2)
  {
    
	var divid1=document.getElementById('narrow_by_2');
    var divid2=document.getElementById('narrow_by_1');
	
  }
  else if(value==3)
  {
    
	var divid1=document.getElementById('narrow_by_3');
    var divid2=document.getElementById('narrow_by_4');
	
  }
  else if(value==4)
  {
    
	var divid1=document.getElementById('narrow_by_4');
    var divid2=document.getElementById('narrow_by_3');
	
  }
  
  divid1.style.display = "block";
  divid2.style.display = "none";
  
}

function change_div_gender(value)
{
 if(value=='men')
  {
    
    var divid1=document.getElementById('men');
    var divid2=document.getElementById('ladies');
	var divid3=document.getElementById('kids');
  } 
 
 else if(value=='ladies')
  {
    
	var divid1=document.getElementById('ladies');
    var divid2=document.getElementById('men');
	var divid3=document.getElementById('kids');
  }
  
 else if(value=='kids')
  {
    
	var divid1=document.getElementById('kids');
    var divid2=document.getElementById('men');
	var divid3=document.getElementById('ladies');
  }
  
  divid1.style.display = "block";
  divid2.style.display = "none"; 
  divid3.style.display = "none";
}

function change_sizing_div(value)
{
 if(value=='men')
  {
    
    var divid1=document.getElementById('sizing_men');
    var divid2=document.getElementById('sizing_ladies');
	var divid3=document.getElementById('sizing_kids');
  } 
 
 else if(value=='ladies')
  {
    
	var divid1=document.getElementById('sizing_ladies');
    var divid2=document.getElementById('sizing_men');
	var divid3=document.getElementById('sizing_kids');
  }
  
 else if(value=='kids')
  {
    
	var divid1=document.getElementById('sizing_kids');
    var divid2=document.getElementById('sizing_men');
	var divid3=document.getElementById('sizing_ladies');
  }
  
  divid1.style.display = "block";
  divid2.style.display = "none"; 
  divid3.style.display = "none";
}












