/* 2007 VOLVO D'AVIGNON | DW





*/
function ow (url)
{
	window.open(url);
}

function writeFL (id,src,W,H,WM,pathrp,idr,ids)
{
	document.write("<object id='"+id+"' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,19,0' width='"+W+"' height='"+H+"' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always'>");
	document.write("<param name='wmode' value='"+WM+"'>");
	document.write("<param name='movie' value="+src+">");
	document.write("<param name='movie' value="+src+">");
	document.write("<param name='flashvars' value='idR="+idr+"&idS="+ids+"&pathRP="+pathrp+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<embed name='"+id+"' src="+src+" flashvars='idR="+idr+"&idS="+ids+"&pathRP="+pathrp+"' allowScriptAccess='always' width='"+W+"' height='"+H+"' wmode='"+WM+"' align='middle' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed>");
	document.write("</object>");
}

function writeFooter ()
{
	document.write("<a href='#'>^ haut de page</a> | D'Avignon Automobiles 2007"
				   +"<br />35-37-39, quai Claude Bernard 38200 Vienne"
				   +" | T : 04 74 53 48 25 | F : 04 37 02 00 47 | mail : <a href='mailto:info@vienne-auto.com'>info@vienne-auto.com</a>");
}


function preloadImageSystem (nm,source)
{
	if(document.getElementById(nm).complete)
	{
		document.getElementById(nm).src = source;
		clearInterval(up[document.getElementById(nm).curID]);
	}
}

up = new Array();
var curentId = 0;

function preloadImage (traceur,nm)
{
	source = document.getElementById(nm).src;
	document.getElementById(nm).src = traceur+"images/loader2.gif";
	
	curentId++;
	document.getElementById(nm).curID = Number(curentId);
	
	up[document.getElementById(nm).curID] = setInterval("preloadImageSystem('"+nm+"','"+source+"')",500);
}

function toggleSource (id,src)
{
	document.getElementById(id).src = src;
}

function show(id)
{
	document.getElementById(id).style.display = "block";
}

function hide(id)
{
	document.getElementById(id).style.display = "none";
}
