// JavaScript Document
function changeImage(imageName, toImagename)
	{
		if (imageName != '')
			if (document.images)
				document.images[toImagename].src = imageName;
	}
	


function CenteredPopupGallery(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'

	win = window.open(mypage, myname, winprops);
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

	


/*
Combo-Box Viewer script- Created by and © Dynamicdrive.com
Visit http://www.dynamicdrive.com/ for this script and more
This notice MUST stay intact for legal use
*/

if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('.dropcontent{display:none;}\n')
document.write('</style>\n')
}

function contractall(){
if (document.getElementById){
var inc=1
while (document.getElementById(inc)){
document.getElementById(inc).style.display="none"
inc++
}
}
}

function expandone(){
if (document.getElementById){

var selectedItem  = document.forms[0].dropmsgoption.selectedIndex;
var selectedValue = document.forms[0].dropmsgoption.options[selectedItem].value;

showDealer('dealerdetails');

contractall()
document.getElementById(selectedValue).style.display="block"



}
}


function redirect(object)
{
	var dropdown = document.getElementById(object);
	var url = dropdown.value;
	window.location = url;
}



