function MoveToCenter(LayerName,cor) {
var xPos = 0;
var offset = 0;
var w=0;
var name = navigator.appName;

if (name == "Microsoft Internet Explorer") {
xPos = document.body.clientWidth;
w=document.all[LayerName].style.width;
ww=parseFloat(w);

}
else {
xPos = window.innerWidth;
w=document.layers[LayerName].width;
ww=parseFloat(w);
}

 if (document.layers)
           document.layers[LayerName].left=((xPos/2)-(ww/2))+cor;
        else
		
		   document.all[LayerName].style.left=((xPos/2)-(ww/2))+cor; }


function move(i) {
t=document.getElementById("image").offsetTop;
if (document.layers)
         
           document.layers["text"].top=t+i;
        else
           document.all["text"].style.top=t+i; 
		   
}

function ShowHideDiv (value) {

    if (value==0) {
	document.images.carImg.src='parameters/loading.gif'; 
        if (document.layers)
           document.layers["carDiv"].visibility='hide';
        else
           document.all["carDiv"].style.visibility='hidden';
   }
   else if (value==1) {
       if (document.layers)
          document.layers["carDiv"].visibility='show';
       else
          document.all["carDiv"].style.visibility='visible';
   }
}



function updateDiv(carImgPath) {

document.images.carImg.src=carImgPath;
ShowHideDiv(1);

}


function MoveDiv(link_obj)
{
		obj_root=document.getElementById('marker');
		obj=document.getElementById('carDiv');
		obj.style.top=(obj_root.offsetTop+link_obj.offsetTop)-61;
}
// extra div functions for consigned inventory embedded into all invenory
//
function ShowHideDiv2 (value) {

    if (value==0) {
	document.images.carImg2.src='parameters/loading.gif'; 
        if (document.layers)
           document.layers["carDiv2"].visibility='hide';
        else
           document.all["carDiv2"].style.visibility='hidden';
   }
   else if (value==1) {
       if (document.layers)
          document.layers["carDiv2"].visibility='show';
       else
          document.all["carDiv2"].style.visibility='visible';
   }
}



function updateDiv2(carImgPath) {

document.images.carImg2.src=carImgPath;
ShowHideDiv2(1);

}


function MoveDiv2(link_obj)
{
		obj_root=document.getElementById('marker2');
		obj=document.getElementById('carDiv2');
		obj.style.top=(obj_root.offsetTop+link_obj.offsetTop)-61;
}
