var ids=new Array('a1','a2','a3','a4');

function switchid1(id){
for (var i=0;i<ids.length;i++)
{
    var idO=ids[i];
   // alert(id)
		if(id==ids[i])
		{
		 alert(id+'in')
		    document.getElementById(id).style.display='block';
		}
		else
		{
		     document.getElementById(idO).style.display='none';
		}
		alert(document.getElementById(id).style.display='block')
		//hidediv(ids[i]);
		
	
	}
	//hideallids();
	//showdiv(id);
}
       
function switchid(id)
{

   //var idValue=id;
   //alert(id)
        if(id=='a1')
        {
         document.getElementById('a1').style.display='block';
         document.getElementById('a2').style.display='none';
         document.getElementById('a3').style.display='none';
         document.getElementById('a4').style.display='none';
        
         
         
                          /* Mozilla */
         document.getElementById('main2').setAttribute('class','hide2');
         document.getElementById('main3').setAttribute('class','show3');
         document.getElementById('main4').setAttribute('class','show4');
         document.getElementById('main5').setAttribute('class','show5');
     
          
                         /* IE */
                         
          
         document.getElementById('main2').setAttribute('className','hide2');
         document.getElementById('main3').setAttribute('className','show3');
         document.getElementById('main4').setAttribute('className','show4');
         document.getElementById('main5').setAttribute('className','show5');
       
         
        }
        else if(id=='a2')
        {
         document.getElementById('a1').style.display='none';
         document.getElementById('a2').style.display='block';
         document.getElementById('a3').style.display='none';
         document.getElementById('a4').style.display='none';
        
         
         
                                /* IE */
         document.getElementById('main2').setAttribute('className','show2');
         document.getElementById('main3').setAttribute('className','hide3');
         document.getElementById('main4').setAttribute('className','show4');
         document.getElementById('main5').setAttribute('className','show5');
     
        
                               /* Mozilla*/
                            
         document.getElementById('main2').setAttribute('class','show2');
         document.getElementById('main3').setAttribute('class','hide3');
         document.getElementById('main4').setAttribute('class','show4');
         document.getElementById('main5').setAttribute('class','show5');
    
            
        }
        else if(id=='a3')
        {
         document.getElementById('a1').style.display='none';
         document.getElementById('a2').style.display='none';
         document.getElementById('a3').style.display='block';
         document.getElementById('a4').style.display='none';
    
         
                        /* Mozilla */
                        
          document.getElementById('main2').setAttribute('class','show2');
         document.getElementById('main3').setAttribute('class','show3');
         document.getElementById('main4').setAttribute('class','hide4');
         document.getElementById('main5').setAttribute('class','show5');
       
         
                            /* IE */
         
           document.getElementById('main2').setAttribute('className','show2');
         document.getElementById('main3').setAttribute('className','show3');
         document.getElementById('main4').setAttribute('className','hide4');
         document.getElementById('main5').setAttribute('className','show5');
        
         
         
        }
        else if(id=='a4')
        {
         document.getElementById('a1').style.display='none';
         document.getElementById('a2').style.display='none';
         document.getElementById('a3').style.display='none';
         document.getElementById('a4').style.display='block';
     
         
         
                        /* Mozilla */
                    
         document.getElementById('main2').setAttribute('class','show2');
         document.getElementById('main3').setAttribute('class','show3');
         document.getElementById('main4').setAttribute('class','show4');
         document.getElementById('main5').setAttribute('class','hide5');
        
          
                        /*  IE */
                        
                        
         document.getElementById('main2').setAttribute('className','show2');
         document.getElementById('main3').setAttribute('className','show3');
         document.getElementById('main4').setAttribute('className','show4');
         document.getElementById('main5').setAttribute('className','hide5');
        
        }
        
        
	
}	

