// JavaScript Document
if (document.images) {

		
		blue_go_on       = new Image();
    	blue_go_on.src   = "images/blue_go_on.jpg" ;
    	blue_go_off     = new Image() ;
    	blue_go_off.src = "images/blue_go_off.jpg" ;

		
		search_button_on       = new Image();
		search_button_on.src   = "images/search_button_on.jpg" ;
   		search_button_off     = new Image() ;
    	search_button_off.src = "images/search_button_off.jpg" ;
		
		bar_1_on       = new Image();
		bar_1_on.src   = "images/bar_1_on.jpg" ;
   		bar_1_off     = new Image() ;
    	bar_1_off.src = "images/bar_1_off.jpg" ;
		
		bar_2_on       = new Image();
		bar_2_on.src   = "images/bar_2_on.jpg" ;
   		bar_2_off     = new Image() ;
    	bar_2_off.src = "images/bar_2_off.jpg" ;
		
		bar_3_on       = new Image();
		bar_3_on.src   = "images/bar_3_on.jpg" ;
   		bar_3_off     = new Image() ;
    	bar_3_off.src = "images/bar_3_off.jpg" ;
		
		bar_4_on       = new Image();
		bar_4_on.src   = "images/bar_4_on.jpg" ;
   		bar_4_off     = new Image() ;
    	bar_4_off.src = "images/bar_4_off.jpg" ;
		
		bar_5_on       = new Image();
		bar_5_on.src   = "images/bar_5_on.jpg" ;
   		bar_5_off     = new Image() ;
    	bar_5_off.src = "images/bar_5_off.jpg" ;
		
		bar_6_on       = new Image();
		bar_6_on.src   = "images/bar_6_on.jpg" ;
   		bar_6_off     = new Image() ;
    	bar_6_off.src = "images/bar_6_off.jpg" ;
		
	}
	
	function button_on( buttonname )
	{
   	 if (document.images) {
    	  document[ buttonname ].src = eval( buttonname + "_on.src" );
    	}
	}
	
	function button_off( buttonname  )
	{
  	  if (document.images) {
   	   document[ buttonname ].src = eval( buttonname + "_off.src" );
    	}
	}
	
	function DivState(Div,Button,State){             

        var DivName = document.getElementById(Div);

        DivName.className = Button + "_" + State;
	}
	
	function decision(message, url){
		
		if(confirm(message)) location.href = url;
	}
	
	function checkout_decision(message, url_true, url_false){
	
		if(confirm(message) == true) {
			location.href = url_true;
		}
		else{
			location.href = url_false;
		}
		
	}	
	
	function ToggleAnswer( answerId )
	{
		var answerItem = document.getElementById( answerId );
		
		if ( answerItem.style.display == "none" )
			answerItem.style.display = "block";
		else
			answerItem.style.display = "none";
	}