/** Methods used in the Shopping cart.*/


/* Make the image switch to the 'unselected' mode. */
function hideSelected() {
	/* For some reason, with at least firefox 1.0, when the type of the button is image instead of submit, the button cannot
	be accessed through document.ppForm.ppButton: getElementsByName must be used instead.*/

    if(document.getElementsByName){
    	var ccButton = document.getElementsByName('ccButton')[0];
    	if(ccButton!=null){
    		ccButton.style.backgroundPosition='0 0';
    	}
        
    	var ppButton = document.getElementsByName('ppButton')[0];
    	if(ppButton!=null){
    		ppButton.style.backgroundPosition='0 0';
    	}
    }
    
    if(document.getElementById) {
    	 var hButton = document.getElementById('hButton');
    	/* This element may be null if the user selected a phone model that is not available through Handango.*/
         if(hButton!=null){
   		 	hButton.style.backgroundPosition='0 0';
         }
    }
}
