/*  location */

var depth1 = "";
var depth2 = "";
var depth3 = "";
var urlpath = "/global/business/rotary";

function setDepthVar( firVar, secVar, thrVar ) {
        depth1 = firVar;
        depth2 = secVar;
        depth3 = thrVar;        
}

function locationCheck( depth1, depth2, depth3 ){
       
        var returnPram = "";
        var oneDepthName = new Array();
        var twoDepthName = new Array();
        var threeDepthName = new Array();
        var home = "<a href='"+urlpath+"/Rotary_Compressor.html'>home</a>";
        
        oneDepthName[1] = "<a href='"+urlpath+"/products/Products_39frame.html'>products</a>";
        oneDepthName[2] = "<a href='"+urlpath+"/technologylicense/TechnologyLicense_NewTechnology.html'>technology &amp; license</a>";
        oneDepthName[3] = "<a href='"+urlpath+"/technicalinformation/TechnicalInformation_ModelIdentification.html'>technical information</a>";
        oneDepthName[4] = "<strong>about us</strong>";
        oneDepthName[5] = "<strong>privacy</strong>";
		oneDepthName[6] = "<strong>legal</strong>";
		oneDepthName[7] = "<strong>sitemap</strong>";
		oneDepthName[8] = "<strong>contact us</strong>";
        
        returnPram = home+" &gt; "+oneDepthName[depth1];

        if(depth1 =="1"){
                twoDepthName[1] = "<a href='"+urlpath+"/products/Products_39frame.html'>R22</a>"; 
                twoDepthName[2] = "<a href='"+urlpath+"/products/Products_R410A.html'>R410A &amp; R407C</a>"; 
                twoDepthName[3] = "<a href='"+urlpath+"/products/Products_Single.html'>BLDC</a>"; 
                twoDepthName[4] = "<strong>ultra tropical</strong>"; 
                twoDepthName[5] = "<strong>turbo twin (63Frame)</strong>"; 
				twoDepthName[6] = "<strong>digital</strong>"; 
                
                returnPram = home+" &gt; "+oneDepthName[depth1]+" &gt; "+twoDepthName[depth2];
                
        }else if(depth1 =="2"){
                twoDepthName[1] = "<strong>new technology</strong>";
                twoDepthName[2] = "<strong>approved licenses</strong>";
                
                returnPram = home+" &gt; "+oneDepthName[depth1]+" &gt; "+twoDepthName[depth2];
                
         }else if(depth1 =="3"){
                twoDepthName[1] = "<strong>model identification</strong>";
                twoDepthName[2] = "<strong>cooling capacity range</strong>";
                twoDepthName[3] = "<strong>export packing &amp; accessory parts</strong>";
                twoDepthName[4] = "<strong>operational standards &amp; limitation</strong>";
				
              returnPram = home+" &gt; "+oneDepthName[depth1]+" &gt; "+twoDepthName[depth2];
              
        }
        
       // Products
        if((depth1=="1") && (depth2=="1")){
                threeDepthName[1] = "<strong>39frame</strong>";              
                threeDepthName[2] = "<strong>44frame</strong>";              
                threeDepthName[3] = "<strong>48frame</strong>";              
				threeDepthName[4] = "<strong>55frame</strong>";              
                
                returnPram = home+" &gt; "+oneDepthName[depth1]+" &gt; "+twoDepthName[depth2]+" &gt; "+threeDepthName[depth3];
                
        }else if((depth1=="1") && (depth2=="2")){
                threeDepthName[1] = "<strong>R410A</strong>";
                threeDepthName[2] = "<strong>R407C</strong>";
                
                returnPram = home+" &gt; "+oneDepthName[depth1]+" &gt; "+twoDepthName[depth2]+" &gt; "+threeDepthName[depth3];
        
        }else if((depth1=="1") && (depth2=="3")){
                threeDepthName[1] = "<strong>single</strong>";
                threeDepthName[2] = "<strong>twin</strong>";
                
                returnPram = home+" &gt; "+oneDepthName[depth1]+" &gt; "+twoDepthName[depth2]+" &gt; "+threeDepthName[depth3];
        
        }
        return returnPram ;
}

// VIEW
function pathindicator(){

        var zoneFront ="";
        var zoneBack ="";
        zoneFront="";
        zoneBack="";
        
        document.write(zoneFront + locationCheck( depth1, depth2, depth3 ) + zoneBack);
}