<!--

function Add_A_Favorite() 
{
  if (window.sidebar) { // Mozilla Firefox Bookmark
    window.sidebar.addPanel(document.title, location.href,"");
  } else if( window.external ) { // IE Favorite
    window.external.AddFavorite( location.href, document.title); }
  else if(window.opera && window.print) { // Opera Hotlist
    return true; }
}
 
function clipme2(image)
{
    var Hauteur;
    var Largeur;
    var Letop;
    var Leleft;
    
    window.open('http://www.jnauto.com/'+document.getElementById("THEIMG").title, "", "width=800,height=600,resizable=no,scrollbars=no,location=no,statut=no");
}

function ouvrecalc(page)
{
   window.open(page,"Calc","width=650,height=750,left=1,top=1,fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,directories=no,location=no");
}

function ouvre_popup2(page3) {
   window.open(page3,"Popupvideo","menubar=no,status=no,scrollbars=yes,width=1100,height=750");
}

function ouvre_popuphd(page3) {
   window.open(page3,"Popupvideohd","menubar=no,status=no,scrollbars=yes,width=1500,height=1000");
}

function rand()
{
  var now=new Date();
  var num=(now.getSeconds())%10;
  var num=num+1;
  return num;
}

function ouvre(page)
{
   window.open(page,"","width=830,height=600,left=1,top=1,resizable=yes,scrollbars=yes,statusbar=no,toolbars=no");
}

function Image_onclick(Image) {
    window.open(Image,"Véhicule","height=0,width=0,scrollbars");
}

function Retour_onclick() {
    history.back(-1);
}


function clipme(ID)
{
clipwin = window.open("addcompare.asp?ID="+ID, "clipwindow", "width=350,height=240");
}

function OpenCity()
{
    curpage = document.location;
    Imgwin2 = window.open("http://www.cvautos.com/ville.asp?PAGE=" + curpage,"ville","width=320 height=120");
}


function carproof(page)
{
   window.open(page,"","width=700,height=750,left=1,top=1,resizable=no,scrollbars=yes,statusbar=no,toolbars=no");
}

function envoyerami(page)
{
   window.open(page,"","width=600,height=650,left=1,top=1,resizable=yes,scrollbars=yes,statusbar=no,toolbars=no");
}

function changeimgg(x,y)
{
    var LINK1;
    var LINK2;


    LINK1 = "/images_vehicules/F_img_detail_";
    LINK2 = "/images_vehicules/G_img_detail_";
    if (y == '0')
    {
        LINK2 = LINK2 + x  + ".jpg";
        document.getElementById("THEIMG").src = LINK2 ;
        document.getElementById("THEIMG").title = "G_img_detail_" + x + ".jpg";
    }
    else
    {
        LINK1 = LINK1 + x + "_" + y + ".jpg";
        document.getElementById("THEIMG").src = LINK1;
        document.getElementById("THEIMG").title = "F_img_detail_" + x + "_" + y + ".jpg";
    }
}

function changeimggz(x,y)
{
    var LINK1;
    var LINK2;


    LINK1 = "/images_vehicules/F_img_detail_";
    LINK2 = "/images_vehicules/G_img_detail_";
    if (y == '0')
    {
        LINK2 = LINK2 + x  + ".jpg";
        document.getElementById("THEIMG").src = LINK2  ;
        document.getElementById("THEIMG").title = "G_img_detail_" + x + ".jpg";
        document.getElementById("THEIMG").src = LINK2  ;
        MojoZoom.makeZoomable(document.getElementById("THEIMG"), LINK2);
    }
    else
    {
        LINK1 = LINK1 + x + "_" + y + ".jpg";
        document.getElementById("THEIMG").src = LINK1;
        document.getElementById("THEIMG").title = "F_img_detail_" + x + "_" + y + ".jpg";
        document.getElementById("THEIMG").src = LINK1;
        MojoZoom.makeZoomable(document.getElementById("THEIMG"), LINK1);
    }
}
function changeimggm(x,y)
{
    var LINK1;
    var LINK2;


    LINK1 = "/images_vehicules/F_img_detail_";
    LINK2 = "/images_vehicules/G_img_detail_";
    if (y == '0')
    {
        LINK2 = LINK2 + x  + ".jpg";
        document.getElementById("THEIMG").src = LINK2  ;
        document.getElementById("THEIMG").title = "G_img_detail_" + x + ".jpg";
        document.getElementById("THEIMG").src = LINK2  ;
        MojoMagnify.makeMagnifiable(document.getElementById("THEIMG"), LINK2);
    }
    else
    {
        LINK1 = LINK1 + x + "_" + y + ".jpg";
        document.getElementById("THEIMG").src = LINK1;
        document.getElementById("THEIMG").title = "F_img_detail_" + x + "_" + y + ".jpg";
        document.getElementById("THEIMG").src = LINK1;
        MojoMagnify.makeMagnifiable(document.getElementById("THEIMG"), LINK1);
    }
}

//-->
