// 'Jump To Product' selection
function redirect_to_prodcat( obj ) {
	prodcat_code = obj.options[ obj.selectedIndex ].value;
	url = "/category/" + prodcat_code;
	window.location = url;
}

// Alternate table row class names
window.onload = colorRows;
function colorRows() {
	if (!document.getElementsByTagName) return;
       var myTR = document.getElementsByTagName('tr');
       for (var i=0;i<myTR.length;i++) {
               if (myTR[i].className.indexOf( "noTint" ) == -1 && i%2) {
                       myTR[i].className = 'odd';
               }
       }
}

// Lightbox options - must be evaluated before lightbox.js
window.LightboxOptions = {
	fileLoadingImage:        '/plugin_assets/printing_com/images/lightbox/loading.gif',
	fileBottomNavCloseImage: '/plugin_assets/printing_com/images/lightbox/closelabel.gif'
};

LightboxOptions = Object.extend({
    fileLoadingImage:        '/images/lightbox/loading.gif',     
    fileBottomNavCloseImage: '/images/lightbox/closelabel.gif',

    overlayOpacity: 0.8,   // controls transparency of shadow overlay

    animate: true,         // toggles resizing animations
    resizeSpeed: 10,        // controls the speed of the image resizing animations (1=slowest and 10=fastest)

    borderSize: 10,         //if you adjust the padding in the CSS, you will need to update this variable

	// When grouping images this is used to write: Image # of #.
	// Change it for non-english localization
	labelImage: "Image",
	labelOf: "of"
}, window.LightboxOptions || {});