if ("https:" == document.location.protocol) {
	document.write('<script type="text/javascript" src="https://secure.acscorp.com/din/javascript/prototype.js"></script>');
	document.write('<script type="text/javascript" src="https://secure.acscorp.com/din/javascript/effects.js"></script>');
	document.write('<script type="text/javascript" src="https://secure.acscorp.com/din/javascript/lightwindow.js"></script>');
	document.write('<link rel="stylesheet" type="text/css" href="https://secure.acscorp.com/din/css/lightwindow.css" media="screen" />');
} else {
	document.write('<script type="text/javascript" src="http://www.driveitnow.net/din/javascript/prototype2.js"></script>');
	document.write('<script type="text/javascript" src="http://www.driveitnow.net/din/javascript/effects2.js"></script>');
	document.write('<script type="text/javascript" src="http://www.driveitnow.net/din/javascript/lightwindow2.js"></script>');
	document.write('<link rel="stylesheet" type="text/css" href="http://www.driveitnow.net/din/css/lightwindow.css" media="screen" />');	
}


var button_id = '5';
if (!vehicleMSRP) var vehicleMSRP = 0;
if (!ebayItemNumber) var ebayItemNumber = '';
if (!eBaySellerID) var eBaySellerID = '';

function lease_it_now() {
	myLightWindow.activateWindow({
		href: 'http://www.driveitnow.net/din/driveitnow.php?hide_header=1&DealerID=' + DealerID + '&vehicleVIN=' + vehicleVIN + '&vehicleStyle=' + vehicleStyle + '&vehiclePhoto=' + vehiclePhoto + '&vehicleZipCode=' + vehicleZipCode + '&vehiclePrice=' + vehiclePrice +'&vehicleMSRP=' + vehicleMSRP + '&vehicleOptions=' + vehicleOptions + '&vehicleTransmission=' + vehicleTransmission + '&vehicleOdometer=' + vehicleOdometer + '&vehicleExtColor=' + vehicleExtColor + '&vehicleIntColor=' + vehicleIntColor + '&vehicleCondition=' + vehicleCondition,
		width: 670,
		height: 525,
		title: ' '
		
	})			
}

function drive_it_now() {
	if ("https:" == document.location.protocol) {
		myLightWindow.activateWindow({
			href: 'https://secure.acscorp.com/din/driveitnow.php?hide_header=1&DealerID=' + DealerID + '&vehicleVIN=' + vehicleVIN + '&vehicleStyle=' + vehicleStyle + '&vehiclePhoto=' + vehiclePhoto + '&vehicleZipCode=' + vehicleZipCode + '&vehiclePrice=' + vehiclePrice +'&vehicleMSRP=' + vehicleMSRP + '&vehicleOptions=' + vehicleOptions + '&vehicleTransmission=' + vehicleTransmission + '&vehicleOdometer=' + vehicleOdometer + '&vehicleExtColor=' + vehicleExtColor + '&vehicleIntColor=' + vehicleIntColor + '&vehicleCondition=' + vehicleCondition + '&ebayItemNumber=' + ebayItemNumber + '&ebaySellerID=' + eBaySellerID,
			width: 670,
			height: 525,
			title: ' '
			
		})			
	} else {
		myLightWindow.activateWindow({
			href: 'http://www.driveitnow.net/din/driveitnow.php?hide_header=1&DealerID=' + DealerID + '&vehicleVIN=' + vehicleVIN + '&vehicleStyle=' + vehicleStyle + '&vehiclePhoto=' + vehiclePhoto + '&vehicleZipCode=' + vehicleZipCode + '&vehiclePrice=' + vehiclePrice +'&vehicleMSRP=' + vehicleMSRP + '&vehicleOptions=' + vehicleOptions + '&vehicleTransmission=' + vehicleTransmission + '&vehicleOdometer=' + vehicleOdometer + '&vehicleExtColor=' + vehicleExtColor + '&vehicleIntColor=' + vehicleIntColor + '&vehicleCondition=' + vehicleCondition + '&ebayItemNumber=' + ebayItemNumber + '&ebaySellerID=' + eBaySellerID,
			width: 670,
			height: 525,
			title: ' '
			
		})					
	}
}

function lease_it_now_button() {
	if (button_id == 2) {
		document.write('<a href="#" onClick="lease_it_now();return false;"><img src="http://www.driveitnow.net/din/driveitnow_button.php?DealerID=' + DealerID + '&vehicleVIN=' + vehicleVIN + '&vehicleStyle=' + vehicleStyle + '&vehicleZipCode=' + vehicleZipCode + '&vehiclePrice=' + vehiclePrice +'&vehicleMSRP=' + vehicleMSRP + '&vehicleOptions=' + vehicleOptions + '&vehicleTransmission=' + vehicleTransmission + '&vehicleOdometer=' + vehicleOdometer + '&button_id=' + button_id + '" border="0" onmouseover="this.src=\'http://www.driveitnow.net/din/driveitnow_button.php?DealerID=' + DealerID + '&vehicleVIN=' + vehicleVIN + '&vehicleStyle=' + vehicleStyle + '&vehicleZipCode=' + vehicleZipCode + '&vehiclePrice=' + vehiclePrice +'&vehicleMSRP=' + vehicleMSRP + '&vehicleOptions=' + vehicleOptions + '&vehicleTransmission=' + vehicleTransmission + '&vehicleOdometer=' + vehicleOdometer + '&button_id=3\'" onmouseout="this.src=\'http://www.driveitnow.net/din/driveitnow_button.php?DealerID=' + DealerID + '&vehicleVIN=' + vehicleVIN + '&vehicleStyle=' + vehicleStyle + '&vehicleZipCode=' + vehicleZipCode + '&vehiclePrice=' + vehiclePrice +'&vehicleMSRP=' + vehicleMSRP + '&vehicleOptions=' + vehicleOptions + '&vehicleTransmission=' + vehicleTransmission + '&vehicleOdometer=' + vehicleOdometer + '&button_id=2\'"></a>');		
	} else {
		document.write('<a href="#" onClick="lease_it_now();return false;"><img src="http://www.driveitnow.net/din/driveitnow_button.php?DealerID=' + DealerID + '&vehicleVIN=' + vehicleVIN + '&vehicleStyle=' + vehicleStyle + '&vehicleZipCode=' + vehicleZipCode + '&vehiclePrice=' + vehiclePrice +'&vehicleMSRP=' + vehicleMSRP + '&vehicleOptions=' + vehicleOptions + '&vehicleTransmission=' + vehicleTransmission + '&vehicleOdometer=' + vehicleOdometer + '&button_id=' + button_id + '" border="0"></a>');
	}
}


function drive_it_now_button() {
	if (button_id == 2) {
		document.write('<a href="#" onClick="lease_it_now();return false;"><img src="http://www.driveitnow.net/din/driveitnow_button.php?DealerID=' + DealerID + '&vehicleVIN=' + vehicleVIN + '&vehicleStyle=' + vehicleStyle + '&vehicleZipCode=' + vehicleZipCode + '&vehiclePrice=' + vehiclePrice +'&vehicleMSRP=' + vehicleMSRP + '&vehicleOptions=' + vehicleOptions + '&vehicleTransmission=' + vehicleTransmission + '&vehicleOdometer=' + vehicleOdometer + '&button_id=' + button_id + '" border="0" onmouseover="this.src=\'http://www.driveitnow.net/din/driveitnow_button.php?DealerID=' + DealerID + '&vehicleVIN=' + vehicleVIN + '&vehicleStyle=' + vehicleStyle + '&vehicleZipCode=' + vehicleZipCode + '&vehiclePrice=' + vehiclePrice +'&vehicleMSRP=' + vehicleMSRP + '&vehicleOptions=' + vehicleOptions + '&vehicleTransmission=' + vehicleTransmission + '&vehicleOdometer=' + vehicleOdometer + '&button_id=3\'" onmouseout="this.src=\'http://www.driveitnow.net/din/driveitnow_button.php?DealerID=' + DealerID + '&vehicleVIN=' + vehicleVIN + '&vehicleStyle=' + vehicleStyle + '&vehicleZipCode=' + vehicleZipCode + '&vehiclePrice=' + vehiclePrice +'&vehicleMSRP=' + vehicleMSRP + '&vehicleOptions=' + vehicleOptions + '&vehicleTransmission=' + vehicleTransmission + '&vehicleOdometer=' + vehicleOdometer + '&button_id=2\'"></a>');		
	} else {
		if ("https:" == document.location.protocol) {
	    	document.write('<a href="#" onClick="drive_it_now();return false;"><img src="https://secure.acscorp.com/din/driveitnow_button.php?DealerID=' + DealerID + '&vehicleVIN=' + vehicleVIN + '&vehicleStyle=' + vehicleStyle + '&vehicleZipCode=' + vehicleZipCode + '&vehiclePrice=' + vehiclePrice +'&vehicleMSRP=' + vehicleMSRP + '&vehicleOptions=' + vehicleOptions + '&vehicleTransmission=' + vehicleTransmission + '&vehicleOdometer=' + vehicleOdometer + '&button_id=' + button_id + '" border="0"></a>');
		} else {
			document.write('<a href="#" onClick="drive_it_now();return false;"><img src="http://www.driveitnow.net/din/driveitnow_button.php?DealerID=' + DealerID + '&vehicleVIN=' + vehicleVIN + '&vehicleStyle=' + vehicleStyle + '&vehicleZipCode=' + vehicleZipCode + '&vehiclePrice=' + vehiclePrice +'&vehicleMSRP=' + vehicleMSRP + '&vehicleOptions=' + vehicleOptions + '&vehicleTransmission=' + vehicleTransmission + '&vehicleOdometer=' + vehicleOdometer + '&button_id=' + button_id + '" border="0"></a>');
		}		
		
	}
}
