function hideSec(n) { 
    document.getElementById(n).style.visibility = "hidden";
}

function showSec(n) {
    hideFV(n)
    document.getElementById(n).style.visibility = "visible";
}

function hideAll(n) {
    for (i=1;i < s;i++) {
       eval("hideSec('LR"+i+"');")
    }
}
function hideFV(n)
    {
        hideSec('airstreamLay');
        hideSec('factionLay');
        hideSec('gmustangLay');
        hideSec('interceptorLay');
        //hideSec('lincContinentalLay');
        //hideSec('lincNavicrossLay');
        hideSec('modeluLay');
        hideSec('shelbyLay');
        hideSec('superchiefLay');
        hideSec('synusLay');
        hideSec('tonkaLay');
        hideSec('MKRLay');
        //hideSec('FlexLay');
        hideSec('ExplorerAmericaLay');
        hideSec('VerveLay');
        //hideSec('Fusion2010Lay');
        hideSec('Taurus2010Lay');
        //hideSec('Focus2012Lay');
        //hideSec('SuperDuty2011Lay');
       // hideSec('Mustang2010Lay');
    }


function imgSwop(source,fromwhat,towhat){
   eval("var regexp=/"+fromwhat+"/;")
   document[source].src=document[source].src.replace(regexp,towhat);
}

//enlarge('carFolderName','total#OfImages','imaageSelected')
function enlarge(car,total,at){
window.open(root+"/includes/future_vehicles/"+lang+"/enlarge_vehicle.jsp?car="+car+"&total="+total+"&at="+at+"","enlarge","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,top=10,left=10,width=775,height=500");
}

function press(vehicle){
window.open("press.asp?vehicle="+vehicle+"","press","toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,top=10,left=10,width=775,height=580");
}

function popUp(page){
window.open(page,"popUp","toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,top=10,left=10,width=480,height=500");
}

function wallpaper(sizeStr,itemNumber,vehicle){
    parameters="size="+sizeStr+"&image=wall"+itemNumber+"&vehicle="+vehicle
    window.open(root+'/includes/future_vehicles/'+lang+'/wallpaper.jsp?'+parameters,'popups','resize=no,top=0,left=0');
}
//+'&name=gt'
function switchLayer(change){
hideSec('photo');
hideSec('wallpaper');
eval("showSec('"+change+"');")
}
