
function changeImage(imageName,imagePath){
	if(document.images){
  		document[imageName].src=imagePath;
	}
}

var tab_sets = new Array();

    tab_sets['product_shots'] = new Array();
    tab_sets['product_shots'][0] = 'products_screenshot1';
    tab_sets['product_shots'][1] = 'products_screenshot2';
    tab_sets['product_shots'][2] = 'products_screenshot3';
    tab_sets['product_shots'][3] = 'products_screenshot4';
    
    
    function switch_option( set, tab ){
    	
    	for(var i = 0; i < tab_sets[set].length; i++) {
            if(i == tab) {
                document.getElementById(tab_sets[set][i]).style.display = 'block';
            } else {
                document.getElementById(tab_sets[set][i]).style.display = 'none';
            }
        }
    }
    
    function switch_off_all( set ){
    	
    	for(var i = 0; i < tab_sets[set].length; i++) {
        	document.getElementById(tab_sets[set][i]).style.display = 'none';
        }
    }
    
    
    
    tab_sets['products'] = new Array();
    tab_sets['products'][0] = 'product_main';
    tab_sets['products'][1] = 'inventory_management';
    tab_sets['products'][2] = 'comprehensive';
    tab_sets['products'][3] = 'utilities';
    
    function switch_products_img( state, tab ) {
    	if( state == 'over' ){
    		document.getElementById(tab_sets['products'][tab]+'_img').src = '_images/'+tab_sets['products'][tab]+'_over.jpg';
    	}else{
    		document.getElementById(tab_sets['products'][tab]+'_img').src = '_images/'+tab_sets['products'][tab]+'.jpg';
    	}
    }
    
    
var current_products_img = 0;
var img_set = new Array();
var img_set_text = new Array();
    img_set[0] = '_images/products_screenshot_1.jpg';
    img_set_text[0] = '<b>Manifest Utility Screen</b><br />Manifest data is imported from EDI Documents, virtually eliminating the need to enter rolls manually. The Manifest Utility Screen displays overview manifest data for each manifest imported, and two reports are available directly from this screen to check on the status of manifests that have been imported but are still in transit. ';
    
    img_set[1] = '_images/products_screenshot_2.jpg';
    img_set_text[1] = '<b>Checking in Rolls</b><br />Once a manifest is imported from EDI, receiving the associated rolls is accomplished by selecting the manifest in the Manifest Utility Screen and choosing "Check In Rolls". Users need only set the Receipt Date, Receipt Location, and Invoice Cost information for the manifest, and all selected rolls will be added to inventory.';
    
    img_set[2] = '_images/products_screenshot_3.jpg';
    img_set_text[2] = '<b>Manual Add Roll Screen</b><br />What if we do not use EDI imports?  No problem, NIMS gives you the ability to add the rolls manually.';
    
    img_set[3] = '_images/products_screenshot_4.jpg';
    img_set_text[3] = '<b>Transfer Rolls</b><br />Transferring inventory rolls from one warehouse to another is made easy with NIMS. The screen also serves as a "stripping" function. Rolls transferred to a warehouse are flagged a "laydown" location are assumed stripped on the transfer date. Consigned rolls are automatically purchased at stripping.';
    
    img_set[4] = '_images/products_screenshot_5.jpg';
    img_set_text[4] = '<b>Individual Roll Maintenance</b><br />Roll records may be accessed and edited at any time.  Each roll has its own data set, as well as an Audit Trail that reflects all Inventory Management actions including: Addition to Inventory, Transfers, Stripping, and Usage.';
    
    img_set[5] = '_images/products_screenshot_6.jpg';
    img_set_text[5] = '<b>Pressrun Edit</b><br />Usage can be tracked with press run details as shown above or by roll usage as the next screen displays.';
    
    img_set[6] = '_images/products_screenshot_7.jpg';
    img_set_text[6] = '<b>Edit Roll Usage</b>';
    
    img_set[7] = '_images/products_screenshot_8.jpg';
    img_set_text[7] = '<b>Production Summary</b><br />The Production Summary Report provides an in-depth review of usage in a given period, including associated waste. ';
    
    img_set[8] = '_images/products_screenshot_9.jpg';
    img_set_text[8] = '<b>Reconciliation Report</b><br />The Reconciliation Report is a monthly report that offers an accounting overview in a concise, clear-cut summary format. ';
    
    img_set[9] = '_images/products_screenshot_10.jpg';
    img_set_text[9] = '<b>On Hand Inventory Report</b>';
    
    img_set[10] = '_images/products_screenshot_11.jpg';
    img_set_text[10] = '<b>Roll Break Overview Report</b>';
    
    img_set[11] = '_images/products_screenshot_12.jpg';
    img_set_text[11] = '<b>Masterfiles Main Menu</b>';
    
    img_set[12] = '_images/products_screenshot_13.jpg';
    img_set_text[12] = '<b>Manage Security</b><br />A 5 level security system allows administrators to control who accesses the database, and with what privileges. ';
    
    
    function rotate_products_img( dir ) {
    	
    	if( dir == 'prev' ){
    		
    		current_products_img = (current_products_img<=0)?img_set.length-1:current_products_img-1;
    		document.getElementById('products_screenshot_img').src = img_set[current_products_img];
    		document.getElementById('products_screenshot_text').innerHTML = img_set_text[current_products_img];
    		
    	}else{
    		
    		current_products_img = (current_products_img>=img_set.length-1)?0:current_products_img+1;
    		document.getElementById('products_screenshot_img').src = img_set[current_products_img];
    		document.getElementById('products_screenshot_text').innerHTML = img_set_text[current_products_img];
    		
    	}
    	
    }
    
    
    
    tab_sets['services'] = new Array();
    tab_sets['services'][0] = 'maintenance';
    tab_sets['services'][1] = 'customizations';
    tab_sets['services'][2] = 'training';
    
    function switch_services_img( state, tab ) {
    	if( state == 'over' ){
    		document.getElementById(tab_sets['services'][tab]+'_img').src = '_images/'+tab_sets['services'][tab]+'_over.jpg';
    	}else{
    		document.getElementById(tab_sets['services'][tab]+'_img').src = '_images/'+tab_sets['services'][tab]+'.jpg';
    	}
    }
    
    
    
    