/***********************************************************************
*
* getCartItem		-	Gets the Actinic Cart Value & No of Items
*
* Input: nIndex	-	Cart item index to retrieve
*							1 = TOTAL_VALUE
*							3 = CART_COUNT
*
* Returns:				Requested cart item or 0 (zero) if not found
*
************************************************************************/

//CART_CONTENT = Cookie name
//1 = TOTAL_VALUE
//3 = CART_COUNT

function getCartItem(nIndex)
	{
	var act_cart= getCookie("CART_CONTENT")
	var sTemp =(act_cart != null) ? sTemp=act_cart.split("\t"):0;
	return (sTemp.length > 0) ? sTemp[nIndex] : 0;
	}
	
/***********************************************************************
*
* win	- calls up the WUP window
*
* Input   - None
* Returns - None
************************************************************************/

function win()
	{
	var sMsg = window.open("paycash1.htm","","height = 507, width = 400, left = 378, top = 40");
	}

/***********************************************************************
*
* GotoAnchor - JS for jumping to an anchor - some user agents don't handle
*				anchors correctly if BASE HREF is present
*
* Input: 				sAnchor
*
* Returns:				nothing
*
************************************************************************/

function GotoAnchor(sAnchor)
	{
	window.location.hash = sAnchor;
	}










function StockLevels(pitem)

{
                var strIDs = ' '
                {
  
              if (pitem >= 20001)
                  {
                  strIDs = '<b>Special Order Item - Please Call for Availability</b>'
                  }
                 else
	{
              if (pitem >= 10001)
                  {
                  strIDs = 'Delivery: <b>6-9 working days</b>'
                  }
                 else
                 	 	{
                  		if (pitem >= 5000)
                    	 {
                     	strIDs = 'Delivery: <b>7-9 working days</b>'
                     	}
                     	else
                  			{
                 			if (pitem >= 1)
                     		{
                     		strIDs = 'Delivery: <b>3-5 working days</b>'
                     		}
                     		else	
				{
				if (pitem <= -99)
                     				{
                     				strIDs = '<font color="#FF0000"><b>SOLD OUT</b></font>'
                     				}
                     				else
                     					{
                     					strIDs = 'Please Call'
                     					}
				}
		                  }

	}	
	}	 
               }
                return strIDs
}




function StockLevelstb(pitem)

{
                var strIDs = ' '
                {
  
              if (pitem >= 20001)
                  {
                  strIDs = '<b>Special Order Item - Please Call for Availability</b>'
                  }
                 else
	{
              if (pitem >= 10001)
                  {
                  strIDs = 'Availablity: <b>3-5 days</b>'
                  }
                 else
                 	 	{
                  		if (pitem >= 5000)
                    	 {
                     	strIDs = 'Availablity: <b>3-5 days</b>'
                     	}
                     	else
                  			{
                 			if (pitem >= 1)
                     		{
                     		strIDs = 'Availablity: <b>In Store</b>'
                     		}
                     		else	
				{
				if (pitem <= -99)
                     				{
                     				strIDs = '<font color="#FF0000"><b>SOLD OUT</b></font>'
                     				}
                     				else
                     					{
                     					strIDs = 'Please Call'
                     					}
				}
		                  }

	}	
	}	 
               }
                return strIDs
}





function StockLevelsAcc(pitem)

{
                var strIDs = ' '
                {
                
                 if (pitem >= 1)
                     {
                     strIDs = '<b>&nbsp;&nbsp;&nbsp;&nbsp;IN STOCK</b>'
                     }
                     else
                     {
                     strIDs = '<b><font color="#FF0000">&nbsp;&nbsp;&nbsp;&nbsp;OUT OF STOCK</font></b>'
                     }
                  

                }
                return strIDs
}



function StockLevelsTwo(pitem)

{
                var strIDs = ' '
                {
                
                 if (pitem >= 1)
                     {
    
                     }
                     else
                     {
                     strIDs = '<b><font color="#FF0000">&nbsp;&nbsp;&nbsp;&nbsp;OUT OF STOCK</font></b>'
                     }
                  

                }
                return strIDs
}




/***************************************************************
*
* ValidatePage - make sure the required box is ticked
*
* Returns: false if the box is unchecked
*
***************************************************************/
function ValidatePage()
{
if (!document.forms[0].INVOICEMOVING.checked)
{
alert('Please agree to our terms');
document.forms[0].INVOICEMOVING.focus();
return (false);
}
return (true);
}

function setPCookie(name, value, expire, path) 
{
var expire = new Date(); 
expire.setTime(expire.getTime() + (24*60*60*1000));
path = /acatalog/;
htap = /cgi-bin/;
document.cookie = name + "=" + escape(value)   + ((expire == null) ? "" : ("; expires=" + expire.toGMTString())) + ((path) ? ";path=" + path : "");
path = /cgi-bin/;
document.cookie = name + "=" + escape(value)   + ((expire == null) ? "" : ("; expires=" + expire.toGMTString())) + ((path) ? ";path=" + path : "");
}

function getPCookie(ref) 
{
wref = String(ref);

var pword = ref.indexOf("pedalon");

	if (  getCookie("startpage") )
	{
                }	
	else
	{
                name = "startpage";   
	value= wref ;
	setPCookie(name,value);
	} 

 }


function getACartItem(index)
	{
	var act_cart= getCookie("ACTINIC_CONTACT")
	temp =(act_cart != null) ? temp=act_cart.split("\t"):0;
	return (temp.length > 0) ? temp[index] : 0;
	}



function tbc()
{
                var strIDs = ' '
        
                     strIDs ='<br><B>IMPORTANT</B><br><span class="actaxxsmall">As of 1st September 2007 this product is not available for delivery.  This product is only available to collect instore. This is at the request of the Trek Bicycle Company and will affects all dealers Worldwide&nbsp;<A HREF="TBC_Online_Sales.html"><U><font color="#FF0000">more</font></U></A></span><br> '

 return strIDs
}



function loadpage() {
browver= parseInt(navigator.appVersion);
browtype = navigator.appName;
browsertype = "old";
if (browtype == "Netscape" && !(browver < 3)) {
browsertype = "new"; 
}
if (browtype == "Microsoft Internet Explorer" && !(browver < 4)) {
browsertype = "new";
}
if (browsertype == "new") {
thetimer = setTimeout("changeimage()", 5000);
banneradcode = 0;
listofimages = new Array(10);
for (i=0;i<=10;i=i+1)
{
listofimages[i] = new Image(130,149)
listofimages[i].src = "pp" +i +".jpg"
}
}
}

function changeimage(){
var currentTime = new Date()
 var seconds = currentTime.getSeconds()

if (browsertype == "new") {

for (i=0;i<=10;i=i+1)
{
if(seconds< (i*6+6))
	{
	banneradcode = i
	i=11
	}
}



imagesource = "pp" + banneradcode + ".jpg"
window.document.bannerad.src = imagesource
thetimer = setTimeout("changeimage()", 5000);
}
else if (browsertype == "old") {
}
}


function dropdown(mySel)
{
var myWin, myVal;
myVal = mySel.options[mySel.selectedIndex].value;
if(myVal)
   {
   if(mySel.form.target)myWin = parent[mySel.form.target];
   else myWin = window;
   if (! myWin) return true;
   myWin.location = myVal;
   }
return false;
}


function tabletop(title,width)
{
                var strIDs = ' '
        
                     strIDs ="<table width='"+(width+20)+"' cellpadding='0' cellspacing='0'  background='gradient1.jpg'  ><tr><td bgcolor='#000066' align='left' valign='top' height='10' width='10' ><IMAGE SRC='tl.gif'></td><td bgcolor='#000066' align='center' valign='middle' width='"+width+"'><span class='actaxxsmall'><b><font color='#FFFFFF'>" + title + "</font></b></span></td><td bgcolor='#000066' align='right' valign='top' width='10' height='10'><IMAGE SRC='tr.gif'></td></tr><tr><td width='10' style='background:url(sl.gif) repeat'></td><td width='"+width+"'>"
 return strIDs
}

function tablebottom()
{
                var strIDs = ' '
        
                     strIDs ="</td><td width='10' style='background:url(sr.gif) repeat'></td></tr><tr><td width='10' height='10'><IMAGE SRC='bl.gif'></td><td width='130' height='10' style='background:url(sb.gif) repeat'></td></td><td width='10' height='10'><IMAGE SRC=br.gif></td></tr></table>"
 return strIDs
}


function tabletopline(width)
{
                var strIDs = ' '
        
                     strIDs ="<table width='"+(width+20)+"' cellpadding='0' cellspacing='0'  ><tr><td bgcolor='#ffffff' align='left' valign='top' height='10' width='10' ><IMAGE SRC='ltl.gif'></td><td  align='center' valign='middle' width='"+width+"' style='background:url(st.gif) repeat'></td><td bgcolor='#ffffff' align='right' valign='top' width='10' height='10'><IMAGE SRC='ltr.gif'></td></tr><tr><td width='10' style='background:url(sl.gif) repeat'></td><td width='"+width+"'>"
 return strIDs
}



function tabletopP(title)
{
                var strIDs = ' '
        
                     strIDs ="<table width='100%' cellpadding='0' cellspacing='0'  ><tr><td bgcolor='#000066' align='left' valign='top' height='10' width='10' ><IMAGE SRC='tl.gif'></td><td bgcolor='#000066' align='left' valign='middle' width='100%'><span class='actaxxsmall'><b><font color='#FFFFFF'>" + title + "</font></b></span></td><td bgcolor='#000066' align='right' valign='top' width='10' height='10'><IMAGE SRC='tr.gif'></td></tr><tr><td width='10' style='background:url(sl.gif) repeat'></td><td width='100%'>"
 return strIDs
}

function tablebottomP()
{
                var strIDs = ' '
        
                     strIDs ="</td><td width='10' style='background:url(sr.gif) repeat'></td></tr><tr><td width='10' height='10'><IMAGE SRC='bl.gif'></td><td width='100%' height='10' style='background:url(sb.gif) repeat'></td></td><td width='10' height='10'><IMAGE SRC=br.gif></td></tr></table>"
 return strIDs
}



function StockLevelsGlobal(ref,pitem)

{
var sRef=ref
sSref = sRef.substring(0,2)

var strIDs = ' '
if ( sSref == 'SC')
{
    strIDs = ' '
                {
  
              if (pitem >= 20001)
                  {
                  strIDs = '<b>Special Order Item - Please Call for Availability</b>'
                  }
                 else
	{
              if (pitem >= 10001)
                  {
                  strIDs = 'Delivery: <b>7-9 working days</b>'
                  }
                 else
                 	 	{
                  		if (pitem >= 5000)
                    	 {
                     	strIDs = 'Delivery: <b>7-9 working days</b>'
                     	}
                     	else
                  			{
                 			if (pitem >= 1)
                     		{
                     		strIDs = 'Delivery: <b>3-5 working days</b>'
                     		}
                     		else	
				{
				if (pitem <= -99)
                     				{
                     				strIDs = '<font color="#FF0000"><b>SOLD OUT</b></font>'
                     				}
                     				else
                     					{
                     					strIDs = 'Please Call'
                     					}
				}
		                  }

	}	
	}	 
               }
}

else if ( sSref == 'GN')
{
    strIDs = ' '
                {
  
              if (pitem >= 20001)
                  {
                  strIDs = '<b>Special Order Item - Please Call for Availability</b>'
                  }
                 else
	{
              if (pitem >= 10001)
                  {
                  strIDs = 'Delivery: <b>5-7 working days</b>'
                  }
                 else
                 	 	{
                  		if (pitem >= 5000)
                    	 {
                     	strIDs = 'Delivery: <b>5-7 working days</b>'
                     	}
                     	else
                  			{
                 			if (pitem >= 1)
                     		{
                     		strIDs = 'Delivery: <b>3-5 working days</b>'
                     		}
                     		else	
				{
				if (pitem <= -99)
                     				{
                     				strIDs = '<font color="#FF0000"><b>SOLD OUT</b></font>'
                     				}
                     				else
                     					{
                     					strIDs = 'Please Call'
                     					}
				}
		                  }

	}	
	}	 
               }
}

else if ( sSref == 'KN')
{
    strIDs = ' '
                {
  
              if (pitem >= 20001)
                  {
                  strIDs = '<b>Special Order Item - Please Call for Availability</b>'
                  }
                 else
	{
              if (pitem >= 10001)
                  {
                  strIDs = 'Delivery: <b>5-7 working days</b>'
                  }
                 else
                 	 	{
                  		if (pitem >= 5000)
                    	 {
                     	strIDs = 'Delivery: <b>5-7 working days</b>'
                     	}
                     	else
                  			{
                 			if (pitem >= 1)
                     		{
                     		strIDs = 'Delivery: <b>3-5 working days</b>'
                     		}
                     		else	
				{
				if (pitem <= -99)
                     				{
                     				strIDs = '<font color="#FF0000"><b>SOLD OUT</b></font>'
                     				}
                     				else
                     					{
                     					strIDs = 'Please Call'
                     					}
				}
		                  }

	}	
	}	 
               }
}
else if (sSref == 'TB')
{
     strIDs = ' '
                {
  
              if (pitem >= 20001)
                  {
                  strIDs = '<b>Special Order Item - Please Call for Availability</b>'
                  }
                 else
	{
              if (pitem >= 10001)
                  {
                  strIDs = 'Availablity: <b>3-5 days</b>'
                  }
                 else
                 	 	{
                  		if (pitem >= 5000)
                    	 {
                     	strIDs = 'Availablity: <b>3-5 days</b>'
                     	}
                     	else
                  			{
                 			if (pitem >= 1)
                     		{
                     		strIDs = 'Availablity: <b>In Store</b>'
                     		}
                     		else	
				{
				if (pitem <= -99)
                     				{
                     				strIDs = '<font color="#FF0000"><b>SOLD OUT</b></font>'
                     				}
                     				else
                     					{
                     					strIDs = 'Please Call'
                     					}
				}
		                  }

	}	
	}	 
               }
}
else 
{
     strIDs = ' '
                {
                
                 if (pitem >= 1)
                     {
                     strIDs = '<b>&nbsp;&nbsp;&nbsp;&nbsp;IN STOCK</b>'
                     }
                     else
                     {
                     strIDs = '<b><font color="#FF0000">&nbsp;&nbsp;&nbsp;&nbsp;OUT OF STOCK</font></b>'
                     }
                  

                }
}
            
return strIDs
}

function tablebottomG(type,width)
{
var strIDs = ' '

if(type == 'v')
{
strIDs ="</td><td width='10' style='background:url(sr.gif) repeat'></td></tr><tr><td width='10' height='10'><IMAGE SRC='bl.gif'></td><td width='100%' height='10' style='background:url(sb.gif) repeat'></td></td><td width='10' height='10'><IMAGE SRC=br.gif></td></tr></table>"
}

if(type == 'f')
{
strIDs ="</td><td width='10' style='background:url(sr.gif) repeat'></td></tr><tr><td width='10' height='10'><IMAGE SRC='bl.gif'></td><td width='"+(width-20)+"' height='10' style='background:url(sb.gif) repeat'></td></td><td width='10' height='10'><IMAGE SRC=br.gif></td></tr></table>"
}
if(type == 'sl')
{
strIDs="</td><td width='5' bgcolor='#000066'></td></tr><tr><td width='5' height='5'><IMAGE SRC='ssbl.gif'></td><td width='100%' height='5'  bgcolor='#000066'></td></td><td width='5' height='5'><IMAGE SRC='ssbr.gif'></td></tr></table>"
}
return strIDs
}


function tabletopG(type,width,bg,solidorline,title)
{

var strIDs=' '


if (type=='f')
{
strIDs += "<table width='"+width+"' cellpadding='0' cellspacing='0'  "
}

if (type=='v')
{
strIDs += "<table width='100%' cellpadding='0' cellspacing='0'  "
}
if (type=='p')
{
strIDs += "<table width='100%' cellpadding='0' cellspacing='0' height='158'  "
}
if (bg==0)
{
strIDs += ">"
}
if (bg==1)
{
strIDs +="background='gradient1.jpg' >"
}
if (bg==2)
{
strIDs +="background='gradient2.jpg' >"
}
if (bg==3)
{
strIDs +="background='gradient3.jpg' >"
}

if (solidorline == 's')
{
strIDs +="<tr><td bgcolor='#000066' align='left' valign='top' height='10' width='10' ><IMAGE SRC='tl.gif'></td><td bgcolor='#000066' align='center' valign='middle' width='100%'><span class='actaxxsmall'><b><font color='#FFFFFF'>" + title + "</font></b></span></td><td bgcolor='#000066' align='right' valign='top' width='10' height='10'><IMAGE SRC='tr.gif'></td></tr>"
}
if (solidorline == 'l')
{
strIDs +="<tr><td  align='left' valign='top' height='10' width='10' ><IMAGE SRC='ltl.gif'></td><td  align='center' valign='middle' width='100%' style='background:url(st.gif) repeat'></td><td  align='right' valign='top' width='10' height='10'><IMAGE SRC='ltr.gif'></td></tr>"
}
if (type=='f')
{
strIDs +="<tr><td width='10' style='background:url(sl.gif) repeat'></td><td width='"+width+"'>"
}
if (type=='v')
{
strIDs +="<tr><td width='10' style='background:url(sl.gif) repeat'></td><td width='100%'>"
}
if (type=='p')
{
strIDs +="<tr><td width='10' style='background:url(sl.gif) repeat'></td><td width='100%'>"
}

if (type=='sl')
{
strIDs = "<table width='100%' cellpadding='0' cellspacing='0'  ><tr><td  align='left' valign='top' height='5' width='5' ><IMAGE SRC='sstl.gif'></td><td  align='center' valign='middle' width='100%' bgcolor='#000066'></td><td align='right' valign='top' width='5' height='5'><IMAGE SRC='sstr.gif'></td></tr><tr><td width='5' bgcolor='#000066'></td><td width='100%'>"
}


return strIDs
}




function sidemenuB()
{
var strIDs=' '
strIDs =
tabletopG("f",145,1,"s","Pedal On")
+
 '<a href="podium%5fpoints%2ephp"><span class="actxxsmall"><b>&#187; free products</b></span></a></br><a href="special%5foffers%2ehtml"><span class="actxxsmall"><b>&#187; special offers</b></span></a><br><a href="cyclescheme%2ehtml"><span class="actxxsmall"><b>&#187; cyclescheme</b></span></a><br><a href="bike%5ffitting%2ehtml"><span class="actxxsmall"><b>&#187; bike fitting</b></span></a><br><a href="southern_xc.html"><span class="actxxsmall"><b>&#187; Southern XC</b></span></a>'
+
tablebottomG("f",145)
+
'</td></tr><tr><td height="4"></td></tr><tr><td>'
+
tabletopG("f",145,1,"s","bikes")
+
'<a href="road%5fbikes%2ehtml"><span class="actxxsmall"><b>&#187; road bikes</b></span></a></br><a href="full%5fsuspension%5fbikes%2ehtml"><span class="actxxsmall"><b>&#187; full suspension</b></span></a></br><a href="hardtails%2ehtml"><span class="actxxsmall"><b>&#187; hardtails</b></span></a></br><a href="cyclo%5fcross%5fbikes%2ephp"><span class="actxxsmall"><b>&#187; cyclo cross</b></span></a></br><a href="urban%5fbikes%2ephp"><span class="actxxsmall"><b>&#187; urban bikes</b></span></a></br>'
+
tablebottomG("f",145)
+
'</td></tr><tr><td height="4"></td></tr><tr><td>'
+
tabletopG("f",145,2,"s","components")
+
'<a href="mtb%5fbars%2ehtml"><span class="actxxsmall"><b>&#187; bars - mtb</b></span></a><br><a href="road%5fbars%2ehtml"><span class="actxxsmall"><b>&#187; bars - road</b></span></a><br><a href="bar%5fends%2ehtml"><span class="actxxsmall"><b>&#187; bar ends</b></span></a><br><a href="bottom%5fbrackets%2ehtml"><span class="actxxsmall"><b>&#187; bottom brackets</b></span></a><br><a href="disc%5fbrakes%2ehtml"><span class="actxxsmall"><b>&#187; brakes - disc</b></span></a><br><a href="road%5fbrakes%2ehtml"><span class="actxxsmall"><b>&#187; brakes - road</b></span></a><br><a href="v%5fbrakes%2ehtml"><span class="actxxsmall"><b>&#187; brakes - v</b></span></a><br><a href="brakes%2ehtml"><span class="actxxsmall"><b>&#187; brake spares</b></span></a><br><a href="cassettes%2ehtml"><span class="actxxsmall"><b>&#187; cassettes - mtb</b></span></a><br><a href="road%5fcassettes%2ehtml"><span class="actxxsmall"><b>&#187; cassettes - road</b></span></a><br><a href="chains%2ehtml"><span class="actxxsmall"><b>&#187; chains</b></span></a><br><a href="chainsets%2ehtml"><span class="actxxsmall"><b>&#187; chainsets - mtb</b></span></a><br><a href="road%5fchainsets%2ehtml"><span class="actxxsmall"><b>&#187; chainsets - road</b></span></a><br><a href="chainrings%2ehtml"><span class="actxxsmall"><b>&#187; chainrings</b></span></a><br><a href="road%5fforks%2ehtml"><span class="actxxsmall"><b>&#187; forks - road</b></span></a><br><a href="suspension%5fforks%2ehtml"><span class="actxxsmall"><b>&#187; forks - suspension</b></span></a><br><a href="suspensionspares%2ehtml"><span class="actxxsmall"><b>&#187; frame spares</b></span></a><br><a href="front%5fmechs%2ehtml"><span class="actxxsmall"><b>&#187; front mechs - mtb</b></span></a><br><a href="road%5ffront%5fmechs%2ehtml"><span class="actxxsmall"><b>&#187; front mechs - road</b></span></a><br><a href="drivetrain%2ehtml"><span class="actxxsmall"><b>&#187; gear spares</b></span></a><br><a href="grips%5fand%5ftape%2ehtml"><span class="actxxsmall"><b>&#187; grips + tape</b></span></a><br><a href="headsets%2ehtml"><span class="actxxsmall"><b>&#187; headsets</b></span></a><br><a href="mtb%5fhubs%2ehtml"><span class="actxxsmall"><b>&#187; hubs - mtb</b></span></a><br><a href="road%5fhubs%2ehtml"><span class="actxxsmall"><b>&#187; hubs - road</b></span></a><br><a href="mtb%5fpedals%2ehtml"><span class="actxxsmall"><b>&#187; pedals - mtb</b></span></a><br><a href="road%5fpedals%2ehtml"><span class="actxxsmall"><b>&#187; pedals - road</b></span></a><br><a href="pedal%5fspares%2ehtml"><span class="actxxsmall"><b>&#187; pedal spares</b></span></a><br><a href="rear%5fmechs%5f%2ehtml"><span class="actxxsmall"><b>&#187; rear mechs - mtb </b></span></a><br><a href="road%5frear%5fmechs%5f%2ehtml"><span class="actxxsmall"><b>&#187; rear mechs - road</b></span></a><br><a href="saddles%2ehtml"><span class="actxxsmall"><b>&#187; saddles</b></span></a><br><a href="seatposts%2ehtml"><span class="actxxsmall"><b>&#187; seatposts</b></span></a><br><a href="shifters%2ehtml"><span class="actxxsmall"><b>&#187; shifters - mtb</b></span></a><br><a href="road%5fshifters%2ehtml"><span class="actxxsmall"><b>&#187; shifters - road</b></span></a><br><a href="mtb%5fstems%2ehtml"><span class="actxxsmall"><b>&#187; stems - mtb</b></span></a><br><a href="road%5fstems%2ehtml"><span class="actxxsmall"><b>&#187; stems - road</b></span></a><br><a href="tubes%2ehtml"><span class="actxxsmall"><b>&#187; tubes</b></span></a><br><a href="puncture%5fprotection%2ehtml"><span class="actxxsmall"><b>&#187; tube repair</b></span></a><br><a href="cyclocross%5ftyres%2ehtml"><span class="actxxsmall"><b>&#187; tyres - cyclocross</b></span></a><br><a href="tyres.html"><span class="actxxsmall"><b>&#187; tyres - mtb</b></span></a><br><a href="tubeless%5ftyres%2ehtml"><span class="actxxsmall"><b>&#187; tyres - mtb tubeless</b></span></a><br><a href="road%5ftyres%2ehtml"><span class="actxxsmall"><b>&#187; tyres - road</b></span></a><br><a href="mtb%5fdisc%5fwheels%2ehtml"><span class="actxxsmall"><b>&#187; wheels - mtb disc</b></span></a><br><a href="mtb%5fwheels%2ehtml"><span class="actxxsmall"><b>&#187; wheels - mtb v</b></span></a><br><a href="road%5fwheels%2ehtml"><span class="actxxsmall"><b>&#187; wheels - road</b></span></a><br><a href="wheel%5fskewers%2ehtml"><span class="actxxsmall"><b>&#187; wheel - skewers</b></span></a><br><a href="wheels%2ehtml"><span class="actxxsmall"><b>&#187; wheel - spares</b></span></a><br><a href="wheel%5fspokes%2ehtml"><span class="actxxsmall"><b>&#187; wheel - spokes</b></span></a>'
+
tablebottomG("f",145)
+
'</td></tr><tr><td height="3"></td></tr><tr><td>'
+
tabletopG("f",145,2,"s","accessories")
+
'<a href="bike%5fcare%2ehtml"><span class="actxxsmall"><b>&#187; bike care</b></span></a></br><a href="computers%2ehtml"><span class="actxxsmall"><b>&#187; computers</b></span></a></br><a href="cycling%5fliterature%2ehtml"><span class="actxxsmall"><b>&#187; cycling literature</b></span></a></br><a href="MinouraBottle%5fCage%5fHolder%5fLarge%2ehtml"><span class="actxxsmall"><b>&#187; hydration</b></span></a></br><a href="gps%5fand%5fnavigation%2ehtml"><span class="actxxsmall"><b>&#187; GPS and Navigation</b></span></a></br><a href="locks%2ehtml"><span class="actxxsmall"><b>&#187; locks</b></span></a></br><a href="MinouraSwing%5fGrip%5fExtension%5fBracket%2ehtml"><span class="actxxsmall"><b>&#187; lights</b></span></a></br><a href="mudguards%2ehtml"><span class="actxxsmall"><b>&#187; mudguards</b></span></a></br><a href="panniers%2ehtml"><span class="actxxsmall"><b>&#187; panniers</b></span></a></br><a href="protection%2ehtml"><span class="actxxsmall"><b>&#187; protection</b></span></a></br><a href="pumps%2ehtml"><span class="actxxsmall"><b>&#187; pumps</b></span></a></br><a href="luggage%2ehtml"><span class="actxxsmall"><b>&#187; saddle bags</b></span></a></br><a href="racks%2ehtml"><span class="actxxsmall"><b>&#187; racks</b></span></a></br><a href="tools%2ehtml"><span class="actxxsmall"><b>&#187; tools</b></span></a></br><a href="ParkFoldingRepairStand%2ehtml"><span class="actxxsmall"><b>&#187; workstands</b></span></a>'
+
tablebottomG("f",145)
+
'</td></tr><tr><td height="3"></td></tr><tr><td>'
+
tabletopG("f",145,1,"s","fitness")
+
'<a href="elite%5fchamois%5fcream%2ehtml"><span class="actxxsmall"><b>&#187; body care</b></span></a></br><a href="energy%5fdrinks%2ehtml"><span class="actxxsmall"><b>&#187; energy</b></span></a></br><a href="heart%5frate%5fmonitors%2ehtml"><span class="actxxsmall"><b>&#187; heart rate monitors</b></span></a></br><a href="recovery%5fproducts%2ehtml"><span class="actxxsmall"><b>&#187; recovery</b></span></a></br><a href="sports%5fsupplements%2ehtml"><span class="actxxsmall"><b>&#187; supplements</b></span></a></br><a href="cycle%5ftrainers%2ehtml"><span class="actxxsmall"><b>&#187; trainers</b></span></a>'
+
tablebottomG("f",145)
+
'</td></tr><tr><td height="4"></td></tr><tr><td>'
+
tabletopG("f",145,2,"s","clothing")
+
'<a href="cycling%5fbase%5flayers%2ehtml"><span class="actxxsmall"><b>&#187; base layers</b></span></a><br><a href="cycling%5feyewear%2ehtml"><span class="actxxsmall"><b>&#187; eyewear</b></span></a><br><a href="cycling%5fgloves%2ehtml"><span class="actxxsmall"><b>&#187; gloves</b></span></a><br><a href="giro_helmets.html"><span class="actxxsmall"><b>&#187; helmets - mtb</b></span></a><br><a href="cycle%5fhelmets%2ehtml"><span class="actxxsmall"><b>&#187; helmets - road</b></span></a><br><a href="insoles%2ehtml"><span class="actxxsmall"><b>&#187; insoles</b></span></a><br><a href="waterproofs%2ehtml"><span class="actxxsmall"><b>&#187; jackets - men&#39;s</b></span></a><br><a href="jackets%5fwomens%2ehtml"><span class="actxxsmall"><b>&#187; jackets - women&#39;s</b></span></a><br><a href="cycling%5fjerseys%2ehtml"><span class="actxxsmall"><b>&#187; jerseys - men&#39;s</b></span></a><br><a href="jerseys%5fwomens%2ehtml"><span class="actxxsmall"><b>&#187; jerseys - women&#39;s</b></span></a><br><a href="mtb%5fshoes%2ehtml"><span class="actxxsmall"><b>&#187; shoes - mtb</b></span></a><br><a href="road%5fshoes%2ehtml"><span class="actxxsmall"><b>&#187; shoes - road</b></span></a><br><a href="cycling%5fshorts%2ehtml"><span class="actxxsmall"><b>&#187; shorts - men&#39;s</b></span></a><br><a href="shorts%5fwomens%2ehtml"><span class="actxxsmall"><b>&#187; shorts - women&#39;s</b></span></a><br><a href="cycling%5ffootwear%2ehtml"><span class="actxxsmall"><b>&#187; socks + overshoes</b></span></a><br><a href="cycling%5ftights%2ehtml"><span class="actxxsmall"><b>&#187; tights - men&#39;s</b></span></a><br><a href="tights%5fwomens%2ehtml"><span class="actxxsmall"><b>&#187; tights - women&#39;s</b></span></a><br><a href="cycling%5fextremities%2ehtml"><span class="actxxsmall"><b>&#187; warmers</b></span></a>'
+
tablebottomG("f",145)
+
'</td></tr><tr><td height="4"></td></tr><tr><td>'
+
tabletopG("f",145,2,"l","")
+
'<a href="special%5foffers%2ehtml"><span class="actxxsmall"><b>&#187; special offers</b></span></a></br><a href="bike%5ffitting%2ehtml"><span class="actxxsmall"><b>&#187; bike fitting</b></span></a></br><a href="product%5flist%2ehtml"><span class="actxxsmall"><b>&#187; product A2Z</b></span></a>'
+
tablebottomG("f",145)

return strIDs
}

function tabletoplineFP()
{
                var strIDs = ' '
        
                     strIDs ="<table width='100%' cellpadding='0' cellspacing='0'  height='158' background='gradient2.jpg' ><tr><td  align='left' valign='top' height='10' width='10' ><IMAGE SRC='ltl.gif'></td><td  align='center' valign='middle' width='100%' style='background:url(st.gif) repeat'></td><td  align='right' valign='top' width='10' height='10'><IMAGE SRC='ltr.gif'></td></tr><tr><td width='10' style='background:url(sl.gif) repeat'></td><td width='100%' align='center'>"
 return strIDs
}

function tabletoplineFPPP()
{
                var strIDs = ' '
        
                     strIDs ="<table width='100%' cellpadding='0' cellspacing='0'  height='105' background='gradient2.jpg' ><tr><td  align='left' valign='top' height='10' width='10' ><IMAGE SRC='ltl.gif'></td><td  align='center' valign='middle' width='100%' style='background:url(st.gif) repeat'></td><td  align='right' valign='top' width='10' height='10'><IMAGE SRC='ltr.gif'></td></tr><tr><td width='10' style='background:url(sl.gif) repeat'></td><td width='100%' align='center'>"
 return strIDs
}

function tabletoplineFP2()
{
                var strIDs = ' '
        
                     strIDs ="<table width='100%' cellpadding='0' cellspacing='0'  height='158' background='gradient4.jpg' ><tr><td  align='left' valign='top' height='10' width='10' ><IMAGE SRC='ltl.gif'></td><td  align='center' valign='middle' width='100%' style='background:url(st.gif) repeat'></td><td  align='right' valign='top' width='10' height='10'><IMAGE SRC='ltr.gif'></td></tr><tr><td width='10' style='background:url(sl.gif) repeat'></td><td width='100%' align='center'>"
 return strIDs
}

function tablebottomFP()
{
                var strIDs = ' '
        
                     strIDs ="</td><td width='10' style='background:url(sr.gif) repeat'></td></tr><tr><td width='10' height='10'><IMAGE SRC='bl.gif'></td><td width='100%%' height='10' style='background:url(sb.gif) repeat'></td></td><td width='10' height='10'><IMAGE SRC=br.gif></td></tr></table>"
 return strIDs
}


function ShowViewed()
{
if( getCookie("RECENTP") == null)
{}
else{
var pLink = getCookie("RECENTP")
var mySplitResult = pLink.split("\t");
for(i = 0; i < (mySplitResult.length-1); i++)
	
	{
	document.write(mySplitResult[i]); 
	}
}

}


function RecentlyViewed(a,b)
{
var date = new Date();
date.setTime(date.getTime()+(1*24*60*60*1000));
var sLink =""

if(a != null)
{


if( getCookie("RECENTP") == null)
{
sLink = "<A Href="+b+"><span class='actxxsmall'><b>&#187; "+a+"</b></span></A><br>"+"\t"
}
else if( getCookie("RECENTP") == "undefined")
{
sLink = "<A Href="+b+"><span class='actxxsmall'><b>&#187; "+a+"</b></span></A><br>"+"\t"
}
else
{
var oLink = getCookie("RECENTP")
sLink = "<A Href="+b+"><span class='actxxsmall'><b>&#187; "+a+"</b></span></A><br>"+"\t" +  oLink

var myLinkString = sLink
var myLinkSplitResult = myLinkString.split("\t");
myNewString = myLinkSplitResult[0]+"\t";


for(j = 1; j < 10 && j < (myLinkSplitResult.length); j++)
	{
	if(myLinkSplitResult[j] != myLinkSplitResult[0])
	{
	myNewString = myNewString + myLinkSplitResult[j] + "\t";
	}	
	
	}

sLink=myNewString;
}


setCookie("RECENTP",sLink,date)
}
else{}
}


function tabletopSX(type,width,bg,solidorline,title)
{

var strIDs=' '


if (type=='f')
{
strIDs += "<table width='"+width+"' cellpadding='0' cellspacing='0'  "
}

if (type=='v')
{
strIDs += "<table width='100%' cellpadding='0' cellspacing='0'  "
}
if (type=='p')
{
strIDs += "<table width='100%' cellpadding='0' cellspacing='0' height='158'  "
}
if (bg==0)
{
strIDs += ">"
}
if (bg==1)
{
strIDs +="background='gradient1.jpg' >"
}
if (bg==2)
{
strIDs +="background='gradient2.jpg' >"
}
if (bg==3)
{
strIDs +="background='gradient3.jpg' >"
}

if (solidorline == 's')
{
strIDs +="<tr><td bgcolor='#336633' align='left' valign='top' height='10' width='10' ><IMAGE SRC='gtl.gif'></td><td bgcolor='#336633' align='center' valign='middle' width='100%'><span class='actaxxsmall'><b><font color='#FFFFFF'>" + title + "</font></b></span></td><td bgcolor='#336633' align='right' valign='top' width='10' height='10'><IMAGE SRC='gtr.gif'></td></tr>"
}
if (solidorline == 'l')
{
strIDs +="<tr><td  align='left' valign='top' height='10' width='10' ><IMAGE SRC='gltl.gif'></td><td  align='center' valign='middle' width='100%' style='background:url(gst.gif) repeat'></td><td  align='right' valign='top' width='10' height='10'><IMAGE SRC='gltr.gif'></td></tr>"
}
if (type=='f')
{
strIDs +="<tr><td width='10' style='background:url(gsl.gif) repeat'></td><td width='"+width+"'>"
}
if (type=='v')
{
strIDs +="<tr><td width='10' style='background:url(gsl.gif) repeat'></td><td width='100%'>"
}
if (type=='p')
{
strIDs +="<tr><td width='10' style='background:url(gsl.gif) repeat'></td><td width='100%'>"
}

if (type=='sl')
{
strIDs = "<table width='100%' cellpadding='0' cellspacing='0'  ><tr><td  align='left' valign='top' height='5' width='5' ><IMAGE SRC='gsstl.gif'></td><td  align='center' valign='middle' width='100%' bgcolor='#336633'></td><td align='right' valign='top' width='5' height='5'><IMAGE SRC='gsstr.gif'></td></tr><tr><td width='5' bgcolor='#336633'></td><td width='100%'>"
}


return strIDs
}


function tablebottomSX(type,width)
{
var strIDs = ' '

if(type == 'v')
{
strIDs ="</td><td width='10' style='background:url(gsr.gif) repeat'></td></tr><tr><td width='10' height='10'><IMAGE SRC='gbl.gif'></td><td width='100%' height='10' style='background:url(gsb.gif) repeat'></td></td><td width='10' height='10'><IMAGE SRC=gbr.gif></td></tr></table>"
}

if(type == 'f')
{
strIDs ="</td><td width='10' style='background:url(gsr.gif) repeat'></td></tr><tr><td width='10' height='10'><IMAGE SRC='gbl.gif'></td><td width='"+(width-20)+"' height='10' style='background:url(gsb.gif) repeat'></td></td><td width='10' height='10'><IMAGE SRC=gbr.gif></td></tr></table>"
}
if(type == 'sl')
{
strIDs="</td><td width='5' bgcolor='#336633'></td></tr><tr><td width='5' height='5'><IMAGE SRC='gssbl.gif'></td><td width='100%' height='5'  bgcolor='#336633'></td></td><td width='5' height='5'><IMAGE SRC='gssbr.gif'></td></tr></table>"
}
return strIDs
}



function tabletopMX(type,width,bg,solidorline,title)
{

var strIDs=' '


if (type=='f')
{
strIDs += "<table width='"+width+"' cellpadding='0' cellspacing='0'  "
}

if (type=='v')
{
strIDs += "<table width='100%' cellpadding='0' cellspacing='0'  "
}
if (type=='p')
{
strIDs += "<table width='100%' cellpadding='0' cellspacing='0' height='158'  "
}
if (bg==0)
{
strIDs += ">"
}
if (bg==1)
{
strIDs +=">"
}
if (bg==2)
{
strIDs +=">"
}
if (bg==3)
{
strIDs +=">"
}

if (solidorline == 's')
{
strIDs +="<tr><td bgcolor='#FF0000' align='left' valign='top' height='10' width='10' ><IMAGE SRC='rtl.gif'></td><td bgcolor='#FF0000' align='center' valign='middle' width='100%'><span class='actaxxsmall'><b><font color='#FFFFFF'>" + title + "</font></b></span></td><td bgcolor='#FF0000' align='right' valign='top' width='10' height='10'><IMAGE SRC='rtr.gif'></td></tr>"
}
if (solidorline == 'l')
{
strIDs +="<tr><td  align='left' valign='top' height='10' width='10' ><IMAGE SRC='rltl.gif'></td><td  align='center' valign='middle' width='100%' style='background:url(rst.gif) repeat'></td><td  align='right' valign='top' width='10' height='10'><IMAGE SRC='rltr.gif'></td></tr>"
}
if (type=='f')
{
strIDs +="<tr><td width='10' style='background:url(rsl.gif) repeat'></td><td width='"+width+"'>"
}
if (type=='v')
{
strIDs +="<tr><td width='10' style='background:url(rsl.gif) repeat'></td><td width='100%'>"
}
if (type=='p')
{
strIDs +="<tr><td width='10' style='background:url(rsl.gif) repeat'></td><td width='100%'>"
}

if (type=='sl')
{
strIDs = "<table width='100%' cellpadding='0' cellspacing='0'><tr><td  align='left' valign='top' height='5' width='5' ><IMAGE SRC='rsstl.gif'></td><td  align='center' valign='middle' width='100%' style='background:url(rsts.gif) repeat'></td><td  align='right' valign='top' width='5' height='5'><IMAGE SRC='rsstr.gif'></td></tr><tr><td width='5' style='background:url(rsls.gif) repeat'></td><td width='100%'>"
}


return strIDs
}


function tablebottomMX(type,width)
{
var strIDs = ' '

if(type == 'v')
{
strIDs ="</td><td width='10' style='background:url(rsr.gif) repeat'></td></tr><tr><td width='10' height='10'><IMAGE SRC='rbl.gif'></td><td width='100%' height='10' style='background:url(rsb.gif) repeat'></td></td><td width='10' height='10'><IMAGE SRC=rbr.gif></td></tr></table>"
}

if(type == 'f')
{
strIDs ="</td><td width='10' style='background:url(rsr.gif) repeat'></td></tr><tr><td width='10' height='10'><IMAGE SRC='rbl.gif'></td><td width='"+(width-20)+"' height='10' style='background:url(rsb.gif) repeat'></td></td><td width='10' height='10'><IMAGE SRC=rbr.gif></td></tr></table>"
}
if(type == 'sl')
{
strIDs ="</td><td width='5' style='background:url(rsrs.gif) repeat'></td></tr><tr><td width='5' height='5'><IMAGE SRC='rssbl.gif'></td><td width='100%' height='5' style='background:url(rsbs.gif) repeat'></td></td><td width='5' height='5'><IMAGE SRC=rssbr.gif></td></tr></table>"
}
return strIDs
}

function emergency()
{
var strIDs =''
        
strIDs += "<tr><td bgcolor='#FFFF00' width='100%' align='center'><a href='scott_mountain_bikes.html'><image src='scaleoffer.gif' border='0'></a></td><tr>" 

return strIDs
}

function Fprod(br,pr)
{

strIDs = ''

if(pr>1200)
{
strIDs += "3. 24 Months Interest Free &nbsp;<A HREF='Finance2.html'><U><font color='#FF0000'>more</font></U></A></I><br>"
}

if(pr>1999)
{
strIDs += "4. 36 Months Interest Free&nbsp;<A HREF='Finance2.html'><U><font color='#FF0000'>more</font></U></A></I><br>"
}

return strIDs
}

function ybuy(id)
{
var strIDs=''

var prod = id.substring(0,2)

if (prod != 'TB')
{
strIDs+="FREE UK Shipping **<br>"
}


return strIDs
}


function ybuyqq(id)
{
var strIDs=''

var prod = id.substring(2,4)

if (prod != 'TB')
{
strIDs+="FREE UK Shipping **<br>"
}


return strIDs
}

function FPP(br,pr)
{
var prod = br.substring(0,4)

strIDs = ''


if(prod == 'SCzz')
{
strIDs = "<span class='actxxsmall'><b><font color='#FF0000'>Special Offer - 5 Extra Podium Points with this bike - ends 21.03.10</font></b></span><br><br>"
}


if(prod == 'SCzy')
{
strIDs = "<span class='actxxsmall'><b><font color='#FF0000'>Special Offer - 10 Extra Podium Points with this bike - ends 21.03.10</font></b></span><br><br>"
}


if(prod == 'SCzx')
{
strIDs = "<span class='actxxsmall'><b><font color='#FF0000'>Special Offer - 20 Extra Podium Points with this bike - ends 21.03.10</font></b></span><br><br>"
}

return strIDs
}


function Scale(pr)
{
strIDs = ''


if(pr == "zx")
{
strIDs += "<br><span class='actxxsmall'><b><font color='#FF0000'>Special Offer - 20 Extra Podium Points with this bike</font></b></span>"
}
if(pr == "zy")
{
strIDs += "<br><span class='actxxsmall'><b><font color='#FF0000'>Special Offer - 10 Extra Podium Points with this bike</font></b></span>"
}
if(pr == "zz")
{
strIDs += "<br><span class='actxxsmall'><b><font color='#FF0000'>Special Offer - 5 Extra Podium Points with this bike</font></b></span>"
}
return strIDs
}
