/* 

VFLI 2006 | © DELTA WEB http://www.delta-web.com



*/
movieid = "fl";

function resizeH (newH)
{
	//document[movieid].setAttribute('height',newH);
	document.getElementById("fl").style.height = newH+"px";
	document.getElementById("fl").childNodes[0].style.height = newH+"px";
}

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

function opLink (url)
{
	window.open(url);
}

hideId = "";
btSelect = "";

function vfShow (id,bt)
{
	document.getElementById(id).style.display = "block";
	if(hideId)
	{
		document.getElementById(hideId).style.display = "none";
	}
	if(hideId != id)
	{
		hideId = id;
		btSelect = bt;
		switch (bt)
		{
			case 'bt01' :
			document.getElementById(bt).src = 'images/bt_contact_01_r.gif';
			document.getElementById('bt02').src = 'images/bt_contact_02.gif';
			break;
			case 'bt02' :
			document.getElementById(bt).src = 'images/bt_contact_02_r.gif';
			document.getElementById('bt01').src = 'images/bt_contact_01.gif';
			break;
		}
	} else {
		hideId = "";
		btSelect = "";
		document.getElementById('bt01').src = 'images/bt_contact_01.gif';
		document.getElementById('bt02').src = 'images/bt_contact_02.gif';
	}
}

function rollIt (id,source)
{
	if(btSelect!=id)
	{
		document.getElementById(id).src = source;
	}
}

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

function writeNav (traceur, selectItem)
{
	var nb_bt = tab_nav.length;
	var listNav = "";
	for(i=0;i<nb_bt;i++)
	{
		if(i!=selectItem)
		{
			listNav = listNav+"<li id='bt"+i+"'><a href="+traceur+tab_nav[i]+"></a></li>";
		} else {
			listNav = listNav+"<li id='bt"+i+"' class='selected'><a href="+traceur+tab_nav[i]+"></a></li>";
		}
	}
	document.write("<ul id='menu'>"+listNav+"</ul>");
}
