
//----------------------------------------Lord of Chaos options---------------------------------------------------
   
 function change_loc(img_name)
    {
       img_name="../images/aow16_blister_";

       if (document.all.combo_head.options[document.all.combo_head.selectedIndex].value=="helmet")
        {
        	img_name=img_name + "h";
        }
        else        	
        {
            img_name=img_name + "b";
        }
        
        if (document.all.combo_right.options[document.all.combo_right.selectedIndex].value=="sword")
        {
	       	img_name=img_name + "s";
        }
        else        	
        {
            img_name=img_name + "h";
        }
       
		if (document.all.combo_left.options[document.all.combo_left.selectedIndex].value=="axe")
        {
        	img_name=img_name + "a";        
        }
        else        	
        {
            img_name=img_name + "s";            
        }
		
		if (document.all.combo_right.options[document.all.combo_right.selectedIndex].value=="sword") 
		{
			if (document.all.combo_left.options[document.all.combo_left.selectedIndex].value=="shield") document.all.loc_option.value="Sword & shield";
			if (document.all.combo_left.options[document.all.combo_left.selectedIndex].value=="axe") document.all.loc_option.value="Sword & axe";
		}
		if (document.all.combo_right.options[document.all.combo_right.selectedIndex].value=="hammer") 
		{
			if (document.all.combo_left.options[document.all.combo_left.selectedIndex].value=="shield") document.all.loc_option.value="Hammer & shield";
			if (document.all.combo_left.options[document.all.combo_left.selectedIndex].value=="axe") document.all.loc_option.value="Hammer & axe";
		}
	
		img_name= img_name + ".gif";		    
        document.all.loc.src = img_name;
        
     }
 //----------------------------------------Seņor del Caos options---------------------------------------------------
   
 function change_loc_esp(img_name)
    {
       img_name="../images/aow16_blister_";

       if (document.all.combo_head.options[document.all.combo_head.selectedIndex].value=="helmet")
        {
        	img_name=img_name + "h";
        }
        else        	
        {
            img_name=img_name + "b";
        }
        
        if (document.all.combo_right.options[document.all.combo_right.selectedIndex].value=="sword")
        {
	       	img_name=img_name + "s";
        }
        else        	
        {
            img_name=img_name + "h";
        }
       
		if (document.all.combo_left.options[document.all.combo_left.selectedIndex].value=="axe")
        {
        	img_name=img_name + "a";        
        }
        else        	
        {
            img_name=img_name + "s";            
        }
		
		if (document.all.combo_right.options[document.all.combo_right.selectedIndex].value=="sword") 
		{
			if (document.all.combo_left.options[document.all.combo_left.selectedIndex].value=="shield") document.all.loc_option.value="Espada y escudo";
			if (document.all.combo_left.options[document.all.combo_left.selectedIndex].value=="axe") document.all.loc_option.value="Espada y hacha";
		}
		if (document.all.combo_right.options[document.all.combo_right.selectedIndex].value=="hammer") 
		{
			if (document.all.combo_left.options[document.all.combo_left.selectedIndex].value=="shield") document.all.loc_option.value="Martillo y escudo";
			if (document.all.combo_left.options[document.all.combo_left.selectedIndex].value=="axe") document.all.loc_option.value="Martillo y hacha";
		}
	
		img_name= img_name + ".gif"			    
        document.all.loc.src = img_name;
        
     }
   
 //-----------------------------------------------------------------------------------------------------------------

function change_deq(img_name) // Dark Elf Queen options
    {
       img_name="../images/aow18_blister_";

       if (document.all.combo_headw.options[document.all.combo_headw.selectedIndex].value=="queenhead") // Cap
        {
        	img_name=img_name + "q";
        }
        else        	
        {
            img_name=img_name + "s";
        }
        
        if (document.all.combo_pad.options[document.all.combo_pad.selectedIndex].value=="queenpad") // Hombrera
        {
	       	img_name=img_name + "q";
        }
        else        	
        {
            img_name=img_name + "s";
        }
       
		if (document.all.combo_leftw.options[document.all.combo_leftw.selectedIndex].value=="sword") //Mā esquerre
        {
        	img_name=img_name + "s";        
        }
        else if (document.all.combo_leftw.options[document.all.combo_leftw.selectedIndex].value=="shield")        	
        {
            img_name=img_name + "h";            
        }
        else        	
        {
            img_name=img_name + "v";
        }

		// Texte descriptiu		
		if (document.all.combo_leftw.options[document.all.combo_leftw.selectedIndex].value=="shield")document.all.deq_option.value="AoW18";
		if (document.all.combo_leftw.options[document.all.combo_leftw.selectedIndex].value=="sword") document.all.deq_option.value="AoW18";
		if (document.all.combo_leftw.options[document.all.combo_leftw.selectedIndex].value=="staff") document.all.deq_option.value="AoW19";
			
		img_name= img_name + ".jpg";			    
        document.all.deq.src = img_name;
        
     }
   
 //-----------------------------------------------------------------------------------------------------------------

function change_war(img_name) // Warpriest options
    {
       img_name="../images/aow20_blister_";

       if (document.all.combo_headwar.options[document.all.combo_headwar.selectedIndex].value=="barehead") // Cap
        {
        	img_name=img_name + "b";
        }
        else        	
        {
            img_name=img_name + "c";
        }
        
        if (document.all.combo_rightwar.options[document.all.combo_rightwar.selectedIndex].value=="hammer") // Mā dreta
        {
	       	img_name=img_name + "h";
        }
        else        	
        {
            img_name=img_name + "s";
        }
       
		if (document.all.combo_leftwar.options[document.all.combo_leftwar.selectedIndex].value=="hammer") //Mā esquerre
        {
        	img_name=img_name + "h";        
        }        
        else        	
        {
            img_name=img_name + "s";
        }
        if (document.all.combo_cloakwar.options[document.all.combo_cloakwar.selectedIndex].value=="cloak") //Capa
        {
        	img_name=img_name + "c";        
        }        
        else        	
        {
            img_name=img_name + "n";
        }


		// Texte descriptiu
		if (document.all.combo_rightwar.options[document.all.combo_rightwar.selectedIndex].value=="hammer")document.all.war_option.value="AoW20";
		if (document.all.combo_rightwar.options[document.all.combo_rightwar.selectedIndex].value=="symbol") document.all.war_option.value="AoW21";		
	
		img_name= img_name + ".jpg";			    
        document.all.war.src = img_name;
        
     }
   
 //-----------------------------------------------------------------------------------------------------------------

function change_vamp(img_name) // Vampire countess options
    {
       img_name="../images/aow22_blister_1";       
        
        if (document.all.combo_rightvamp.options[document.all.combo_rightvamp.selectedIndex].value=="sword") // Mā dreta
        {
	       	img_name=img_name + "w";
        }
        else  if (document.all.combo_rightvamp.options[document.all.combo_rightvamp.selectedIndex].value=="staff")       	
        {
            img_name=img_name + "s";
        }
         else  if (document.all.combo_rightvamp.options[document.all.combo_rightvamp.selectedIndex].value=="outhand")       	
        {
            img_name=img_name + "o";
        }
        else
        {
            img_name=img_name + "c";
        }

       
		if (document.all.combo_vamps.options[document.all.combo_vamps.selectedIndex].value=="no") //Vampirillos
        {
        	img_name=img_name + "n";        
        }        
        else         	
        {
            img_name=img_name + "y";
        }   


		// Texte descriptiu
		if (document.all.combo_rightvamp.options[document.all.combo_rightvamp.selectedIndex].value=="sword")document.all.vamp_option.value="AoW22";
		if (document.all.combo_rightvamp.options[document.all.combo_rightvamp.selectedIndex].value=="clean") document.all.vamp_option.value="AoW22";
		if (document.all.combo_rightvamp.options[document.all.combo_rightvamp.selectedIndex].value=="staff") document.all.vamp_option.value="AoW23";
		if (document.all.combo_rightvamp.options[document.all.combo_rightvamp.selectedIndex].value=="outhand") document.all.vamp_option.value="AoW23";		
	
		img_name= img_name + ".jpg";			    
        document.all.vamp.src = img_name;
        
     }
   
 //-----------------------------------------------------------------------------------------------------------------
 function change_mar(bit_pos,bit)
    {
       var img_name=document.all.mar.src;
       pos_change=(4-bit_pos)+4; //posicio_bit +".jpg"
       img_name=img_name.substring(0,img_name.length-pos_change)+bit+img_name.substring(img_name.length-pos_change+1,img_name.length);	                 
       document.all.mar.src = img_name;//document.write(img_name);         
     }
  //-----------------------------------------------------------------------------------------------------------------    
  function change_lem(bit_pos,bit)
    {
       var img_name=document.all.lem.src;       
       if (img_name.charAt(img_name.length-5)==bit && bit_pos==3) bit='n'; // Per la capa
       pos_change=(4-bit_pos)+4; //posicio_bit +".jpg"
       img_name=img_name.substring(0,img_name.length-pos_change)+bit+img_name.substring(img_name.length-pos_change+1,img_name.length);	                 
       document.all.lem.src = img_name;//document.write(img_name);         
     }


function display_avatar(mini_sel,rcard_link,pguide_link,link3,link4)
    {       
       document.all.avatar_sel.src = "./images/adm_avatars_"+ mini_sel +".jpg"; 
       if (rcard_link=='hide')
       {
        document.getElementById('rcard').coords = "0, 0, 0, 0";
       }
       else 
       {
        document.getElementById('rcard').coords = "321, 498, 399, 525";
        document.getElementById('rcard').href = "http://www.arena-deathmatch.com/ccount/click.php?id=" + rcard_link; 
       } 
       if (pguide_link=='hide')
       {
        document.getElementById('pguide').coords = "0, 0, 0, 0";
       }
       else 
       {
        document.getElementById('pguide').coords = "423, 501, 515, 524";
        document.getElementById('pguide').href = "http://www.arena-deathmatch.com/ccount/click.php?id=" + pguide_link; 
       }       
     }



