// -=-=-=-=-=-=-=-= function showCollectionMatrix() { // show a collection matrix of primary products for selection var availwidth = document.getElementById('collectiontext').offsetWidth; var thumbhgap = 20; thumbvgap = 26; var thumbcols = 4; var thumbwidth_default = 160; thumbheight_default = 134; var initleftpos = 50; var leftpos = initleftpos; var toppos = 64; var thumbwidth = ((availwidth - 2 * (initleftpos-1)) - ((thumbcols - 1) * thumbhgap) ) / thumbcols; var thumbheight = thumbheight_default * thumbwidth / thumbwidth_default; for (var j = 0; j < ProductMain.length; j++) { var prodselix = ProductMainIndex[j]; if (prodselix >= 0) { var prodname = ProductMain[j]; document.write( "
"); document.write( ""); document.write( "\""" ); document.write( ""); document.write( ""); document.write( "
" + prodname + "
"); document.write( "
"); document.write( "
"); leftpos += thumbwidth + thumbhgap; if (((j + 1) % thumbcols) == 0) { leftpos = initleftpos; toppos += thumbheight + thumbvgap; } } } }