﻿// Expandable File

function showHide(layer_ref) 
{
var state = 'block';
var mydivs=new Array();
var i = 8;
    
mydivs[0]="StoringCopaxone"
mydivs[1]="DisposingCopaxone"
mydivs[2]="PrepareInject"
mydivs[3]="autoject"
mydivs[4]="inject"
mydivs[5]="additionalinfo"
mydivs[6]="tips"
mydivs[7]="traveling"
mydivs[8]="videos"



   // for( var i = 0; i<9; i++)
   // {
        if (document.all) { //IS IE 4 or 5 (or 6 beta)
            eval( "state = document.all." + mydivs[i] + ".style.display");
            }
        if (document.layers) { //IS NETSCAPE 4 or below
            state = document.layers[mydivs[i]].display;
        }
        if (document.getElementById && !document.all) {
            maxwell_smart = document.getElementById(mydivs[i]);
            state = maxwell_smart.style.display ;
        }
        
    
        if(state == 'none')
            {state = 'block';}
        else 
            {state = 'none';}

        if (document.all) { //IS IE 4 or 5 (or 6 beta)
            eval( "document.all." + mydivs[i] + ".style.display = state");
            }
        if (document.layers) { //IS NETSCAPE 4 or below
            document.layers[mydivs[i]].display = state;
        }
        if (document.getElementById && !document.all) {
            maxwell_smart = document.getElementById(mydivs[i]);
            maxwell_smart.style.display = state;
        }
    //}
}

    function openClose(layer_ref, task)
    {
    var state ="block";
        if (task == 'open')
        {state='block';}
        else{state = 'none';}
    
    if (document.all) { //IS IE 4 or 5 (or 6 beta)
    eval( "document.all." + layer_ref + ".style.display = state");
    }
    if (document.layers) { //IS NETSCAPE 4 or below
    document.layers[layer_ref ].display = state;
    }
    if (document.getElementById && !document.all) {
    maxwell_smart = document.getElementById(layer_ref );
    maxwell_smart.style.display = state;
    }
    }
