// JavaScript Document
function productsmall(description, caption, paypal_desc, code, qty, colour, price, height, width, card, otherinfo, pathtoimage){
//	document.write(description);
//	document.write(caption);
//	document.write(paypal_desc);
//	document.write(code);
//	document.write(qty);
//	document.write(colour);
//	document.write(price);
//	document.write(height);
//	document.write(width);
//	document.write(card);
//	document.write(otherinfo);
//	document.write(pathtoimage);
document.write('<table width="686" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr>');
document.write('<td width="200" align="center" valign="top">');
document.write('<a name="'+code+'"></a>');
document.write('<img src="'+ pathtoimage +'" alt="'+description+'">');
document.write('</td>');
document.write('<td align="left" valign="top">');
document.write('<p class="description">'+description+' <span style="font-size:12px;">'+qty+'</span></p>');
document.write('<table width="100%" border="0" cellspacing="2" cellpadding="0">');
document.write('<tr><td width="100" align="right">Stock Code :</td><td width="260" >'+code+'</td></tr>');
document.write('<tr><td width="100" align="right">Colour :</td><td width="260">'+colour+'</td></tr>');
document.write('<tr><td width="100" align="right" valign="bottom">Price :</td><td width="260" valign="bottom" class="price">£'+price+'</td></tr>');
document.write('<tr valign="bottom">');
document.write('<td height="50"  width="100" align="right">&nbsp;</td>');
document.write('<td height="50" width="260">');
document.write('<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal">');
document.write('<input type="image" src="https://www.paypal.com/en_GB/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal -  fast, free and secure!">');
document.write('<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">');
document.write('<input type="hidden" name="cmd" value="_cart"><input type="hidden" name="add" value="1">');
document.write('<input type="hidden" name="business" value="payments@rainbowkitsandcrafts.co.uk">');
document.write('<input type="hidden" name="on0" value="Colour">');
document.write('<input type="hidden" name="item_name" value="' + paypal_desc + '">');
document.write('<input type="hidden" name="item_number" value=" : ' + code + '">');
document.write('<input type="hidden" name="amount" value="' + price + '">');
document.write('<input type="hidden" name="os0" value="' + colour + '">');
document.write('<input type="hidden" name="no_shipping" value="2">');
document.write('<input type="hidden" name="no_note" value="1">');
document.write('<input type="hidden" name="currency_code" value="GBP">');
document.write('<input type="hidden" name="lc" value="GB">');
document.write('<input type="hidden" name="bn" value="PP-ShopCartBF">');
document.write('</form></td></tr>');
document.write('<tr><td colspan="2" align="left" class="otherinfo">'+otherinfo+'</td></tr>');
document.write('</table></td>');


document.write('<td width="120" align="right" valign="top">');
document.write('<img src="images/dimensions.gif">');
document.write('<table width="118"  border="0" align="center" cellpadding="2" cellspacing="2" class="dimensionstable">');
document.write('<tr><td width="42" align="left" valign="top"><div align="right">H : </div></td> <td width="70" align="left" valign="top">'+height+'</td></tr>');
document.write('<tr><td width="42" align="left" valign="top"><div align="right">W : </div></td><td align="left" valign="top">'+width+'</td></tr>');
document.write('<tr><td width="42" align="left" valign="top"><div align="right">Card : </div></td><td align="left" valign="top">'+card+'</td></tr>');
document.write('</table>');
document.write('</td></tr></table>');
document.write('<div style="border-bottom:2px dotted #3399FF; margin:5px 0;"></div>');
}

                            
      
	  
function kits(description, text,caption, paypal_desc, code, content, price, extrainfo, pathtoimage){
	
//	document.write(description);
//	document.write(text);
//	document.write(paypal_desc);
//	document.write(code);
//	document.write(content);
//	document.write(price);
//	document.write(extrainfo);
//	document.write(pathtoimage);

document.write('<table width="100%" border="0" cellspacing="2" cellpadding="0">');
document.write('<tr>');
document.write('<td width="330" align="center" valign="top">');
document.write('<a name="'+code+'"></a>');
document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr>');
document.write('<td width="330" align="center" valign="middle" style="background:#FFFFCC; border:3px #ccc solid; padding:5px 0;">');
document.write('<img src="'+ pathtoimage +'" alt="'+caption+'">');
document.write('</td></tr>');
document.write('<tr><td width="330" align="center" valign="top" class="kits_frame_bottom">'+caption+'</td></tr>');
document.write('</table></td>');
document.write('<td align="left" valign="top" style="padding:0 0 0 5px;"><p class="description">'+description+'</p>');
document.write('<p>Stock code : '+code+'</p>');
document.write('<p>'+text+'</p>');
document.write('<p style="border-bottom:1px #ccc dotted;">Content</p>');
document.write('<p style="border-bottom:1px #ccc dotted; padding-bottom:5px;">'+content+'</p>');
document.write('<table width="100%" cellpadding="0" cellspacing="0"><tr><td>');
document.write('<p>Price : <span class="price">£ '+price+'</span></p>');
document.write('</td>');
document.write('<td align="right">');
document.write('<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="paypal">');
document.write('<input type="image" src="https://www.paypal.com/en_GB/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - its fast, free and secure!">');
document.write('<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">');
document.write('<input type="hidden" name="add" value="1">');
document.write('<input type="hidden" name="cmd" value="_cart">');
document.write('<input type="hidden" name="business" value="payments@rainbowkitsandcrafts.co.uk">');
document.write('<input type="hidden" name="item_name" value="' + paypal_desc + '">');
document.write('<input type="hidden" name="item_number" value=" : ' + code + '">');
document.write('<input type="hidden" name="amount" value="' + price + '">');
document.write('<input type="hidden" name="no_shipping" value="2">');
document.write('<input type="hidden" name="no_note" value="1">');
document.write('<input type="hidden" name="currency_code" value="GBP">');
document.write('<input type="hidden" name="lc" value="GB">');
document.write('<input type="hidden" name="bn" value="PP-ShopCartBF">');
document.write('</form>');
document.write('</td></tr></table>');
document.write('<p style="border-top:1px dotted #ccc;" class="copyright">'+extrainfo+'</p>');
document.write('</td></tr></table>');
document.write('<div style="border-bottom:2px dotted #3399FF; margin:5px 0;"></div>');

	}


function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}
