<!--
function swapimage(imageid, highlight){
	document.getElementById('listingimage').src='/showimage.php?width=300&height=225&crop=1&imageid='+imageid;
	//document.getElementById(highlight).className='current';
}

function toggle( targetId){
	if (document.getElementById){
		target = document.getElementById( targetId );
				target.style.display = "block";
	}
}

function toggleOff( targetId ){
	if (document.getElementById){
		target = document.getElementById( targetId );
				target.style.display = "none";
	}

}

function setClass(targetId, value){
	if (document.getElementById){
		target = document.getElementById(targetId);
			target.className = value;
	}
}


function switchTab(show, hide, tabon, taboff){
	toggle(show);
	toggleOff(hide);
	setClass(tabon, 'current');
	setClass(taboff, '');
	//tabon = document.getElementById(tabon);
	//taboff = document.getElementById(taboff);
		
}


var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height, menubar, scrollbars, resizable)
{
	if(popUpWin)
	{
		if(!popUpWin.closed) popUpWin.close();
	}
	popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar='+menubar+',scrollbars='+scrollbars+',resizable='+resizable+',copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function GetXmlHttpObject()
{
  var xmlHttp=null;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
  return xmlHttp;
}

function stateChanged() 
{ 
	if (xmlHttp.readyState==4)
	{ 
		document.getElementById("listNewModels").innerHTML=xmlHttp.responseText;
	}
}


function stateChanged2() 
{ 
	if (xmlHttp.readyState==4)
	{ 
		document.getElementById("listUsedModels").innerHTML=xmlHttp.responseText;
	}
}
// set to Listing Type
function stateChanged3() 
{ 
	if (xmlHttp.readyState==4)
	{ 
		document.getElementById("listUsedMakes").innerHTML=xmlHttp.responseText;
	}
}
// admin featured vehicle
function stateChanged4() 
{ 
	if (xmlHttp.readyState==4)
	{ 
		document.getElementById("searchResults").innerHTML=xmlHttp.responseText;
	}
}



/*
var gal = {
    init : function() {
        if (!document.getElementById || !document.createElement || !document.appendChild) return false;
        if (document.getElementById('gallery')) document.getElementById('gallery').id = 'jgal';
        var li = document.getElementById('jgal').getElementsByTagName('li');
        li[0].className = 'active';
        for (i=0; i<li.length; i++) {
            li[i].style.backgroundImage = 'url(' + li[i].getElementsByTagName('img')[0].src + ')';
            li[i].style.backgroundRepeat = 'no-repeat';
            li[i].title = li[i].getElementsByTagName('img')[0].alt;
            gal.addEvent(li[i],'click',function() {
                var im = document.getElementById('jgal').getElementsByTagName('li');
                for (j=0; j<im.length; j++) {
                    im[j].className = '';
                }
                this.className = 'active';
            });
        }
    },
    addEvent : function(obj, type, fn) {
        if (obj.addEventListener) {
            obj.addEventListener(type, fn, false);
        }
        else if (obj.attachEvent) {
            obj["e"+type+fn] = fn;
            obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }
            obj.attachEvent("on"+type, obj[type+fn]);
        }
    }
}

gal.addEvent(window,'load', function() {
    gal.init();
});*/


//-->

