function flashobject(sourceURL,width,height)
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width=' + width + ' height=' + height + ' id="deptsensors" align="middle">\n');
document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
document.write('<param name="movie" value=' + sourceURL + ' />\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="wmode" value="transparent" />\n');
document.write('<param name="menu" value="false" />\n');
document.write('<param name="bgcolor" value="#ffffff" />\n');
document.write('<embed src=' + sourceURL + ' quality="high" wmode="transparent" menu="false" bgcolor="#000000" width=' + width + ' height=' + height + ' name="Texas Dream Designs" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
document.write('</object>\n');
}

function flashobject_main(sourceURL,width,height)
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width=' + width + ' height=' + height + ' id="new_flash" align="middle">\n');
document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
document.write('<param name="movie" value=' + sourceURL + ' />\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="wmode" value="transparent" />\n');
document.write('<param name="menu" value="false" />\n');
document.write('<param name="bgcolor" value="#ffffff" />\n');
document.write('<embed src=' + sourceURL + ' quality="high" wmode="transparent" menu="false" swliveconnect="true" bgcolor="#000000" width=' + width + ' height=' + height + ' name="new_flash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
document.write('</object>\n');
}

function logo(){
	setTimeout("showlogo()",300)
}
function showlogo(){
	document.getElementById("dealerlogo").style.display="block";
}

function spot(){
	setTimeout("showspot()",300)
}
function showspot(){
	document.getElementById("homespotspls").style.display="block";
}
function chat(){
	setTimeout("showchat()",300)
}
function showchat(){
	document.getElementById("chat").style.display="block";
}

function msg2(){
	setTimeout("showmsg2()",300)
}
function showmsg2(){
	document.getElementById('servicemsg').style.display="block";
}
function msg1(){
	setTimeout("showmsg1()",300)
}
function showmsg1(){
	document.getElementById('preownedmsg').style.display="block";
}


function flashobjecthome(sourceURL,width,height)
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width=' + width + ' height=' + height + ' id="menu_01" align="middle">\n');
document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
document.write('<param name="movie" value=' + sourceURL + ' />\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="wmode" value="transparent" />\n');
document.write('<param name="menu" value="false" />\n');
document.write('<embed src=' + sourceURL + ' quality="high" name="menu_01" wmode="transparent" menu="false"  width=' + width + ' height=' + height + ' align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
document.write('</object>\n');
}

function chatwin() {
	window.open('http://dm2.contactatonce.com/CallOutClientContainer.aspx?MerchantId=19118&ProviderId=2301&OriginationUrl='+encodeURIComponent(location.href),'','resizable=yes,toolbar=no,menubar=no,location=no,scrollbars=no,status=no,height=400,width=600');
}

function servicemsg() {
	document.write('<iframe src="http:\/\/cpanel.tkcarsites.com\/cp\/document.aspx?uDid=570&amp;uSid=1028&amp;uPgId=185" width="485" height="149" frameborder="0" scrolling="yes" style="overflow:auto; overflow-x:hidden;" allowtransparency="yes"><\/iframe>');
}

function premsg() {
	document.write('<iframe src="http:\/\/cpanel.tkcarsites.com\/cp\/document.aspx?uDid=570&amp;uSid=1028&amp;uPgId=183" width="510" height="144" frameborder="0" scrolling="yes" style="overflow:auto; overflow-x:hidden; allowtransparency="yes"><\/iframe>');
}