// preload the main tab images
tabskate = new Image();
tabskate.src = "images/tabskateon.gif";
tabbmx = new Image();
tabbmx.src = "images/tabbmxon.gif";
tabshoes = new Image();
tabshoes.src = "images/tabshoeson.gif";
tabclothes = new Image();
tabclothes.src = "images/tabclotheson.gif";
tabvideos = new Image();
tabvideos.src = "images/tabvideoson.gif";

// preload the sub tab images

tabskatedecks = new Image();
tabskatedecks.src = "images/tab.skate.deckson.gif";
tabskatetrucks = new Image();
tabskatetrucks.src = "images/tab.skate.truckson.gif";
tabskatewheels = new Image();
tabskatewheels.src = "images/tab.skate.wheelson.gif";
tabskateaccessories = new Image();
tabskateaccessories.src = "images/tab.skate.accessorieson.gif";

// window opener script

function show_photo( pFileName, pTitle, pWidth, pHeight) {
// specify window parameters
  photoWin = window.open( "", "photo",
     "width=" + pWidth + ",height=" + pHeight + ",status=0,scrollbars=0,resizable=0,screenX=50,screenY=50,left=50,top=50");

// wrote content to window
  photoWin.document.write('<html><head><title>' + pTitle + '</title></head>');	
  photoWin.document.write('<BODY BGCOLOR=#ffffff LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 rightmargin=0 bottommargin=0>');
  photoWin.document.write('<a href="javascript:window.close()"><img src="' + pFileName + '" border="0" width="' + pWidth + '" height="' +pHeight + '" alt="' + pTitle + '"></a>');
  photoWin.document.write('</font></body></html>');
  photoWin.document.close();	
	
// bring the window to the front
//	if (navigator.appName.substring(0,8) == "Netscape")
  photoWin.focus();
}

function shoes( filename, description, width, height, price ) {
var picture = 'images/shoes/' + filename + '.jpg';
var picturesm = 'images/shoes/' + filename + '.sm.jpg';

document.write('<td align="center"><form method="POST" action="http://www.2rich.com/scripts/jaciis.dll">');
document.write('<a class="main" href="javascript:show_photo');
document.write("('"+picture+"','[click to close]','"+width+"','"+height+"')");
document.write('" onmouseover="');
document.write("window.status='[click to zoom in]'; ");
document.write('return true" onmouseout="');
document.write("window.status=''; ");
document.write('return true">');
document.write('<img border="0" src="'+picturesm+'" alt=""><br><small>');
document.write(description + '</a><br>');
document.write(price + '</small><br> size ');
document.write('<select size="1" name="jac_prodoptions0">');
//
// document.write('<option value="+0;5;1">5</option>');
// document.write('<option value="+0;6;2">6</option>');
// document.write('<option value="+0;7;3">7</option>');
// document.write('<option value="+0;7.5;4">7.5</option>');
// document.write('<option value="+0;8;5">8</option>');
// document.write('<option value="+0;8.5;6">8.5</option>');
// 
document.write('<option value="+0;9;7">9</option>');
document.write('<option value="+0;9.5;8">9.5</option>');
document.write('<option value="+0;10;9">10</option>');
document.write('<option value="+0;10.5;10">10.5</option>');
document.write('<option value="+0;11;11">11</option>');
document.write('<option value="+0;11.5;12">11.5</option>');
document.write('<option value="+0;12;13">12</option>');
document.write('<option value="+0;13;14">13</option>');
document.write('</select>');
document.write('<br>');
document.write('<input type="text" name="jac_quantity_input" size="2" value="1">');
document.write('<input type="image" name="additem" src="images/addtocart.gif" border="0" align="absmiddle" width="100" height="20">');
document.write('<input type="hidden" value="' + filename + '" name="sku">');
document.write('<input type="hidden" value="' + price + '" name="price">');
document.write('<input type="hidden" value="' + description + '" name="description">');
document.write('<input type="hidden" value="0" name="weight"><input type="hidden" name="jac_disallowfractionalquantity" value="yes"><input type="hidden" name="jac_minimumquantity" value="no"><input type="hidden" value="yes" name="taxable"><input type="hidden" value="Crescent Down Works" name="merchantname"><input type="hidden" value="0001-3941-1416-4763" name="merchant"></form></td>');
}