var isNS = false;
var isIE = false;
var isW3C = false;

if (navigator.appName.indexOf('Netscape')>-1) {isNS=true; isIE=false; isW3C=false;}
if (document.getElementById) {isNS=false; isIE=false; isW3C=true;}
if (document.all) {isNS=false; isIE=true; isW3C=false;}

function zl_lref(l) {
if (isIE) return document.all[l];
if (isW3C) return document.getElementById(l);
}

function setImg(imgName, srcFile)
	{
	imgName.src=srcFile;
	}

function changeContent(obj,content) {
	zl_lref(obj).innerHTML=content;
	}

function popUp(src,name,x,y,w,h)
	{
	window.open(src,name,"left="+x+",top="+y+",height="+h+",width="+w+",scrollbars=0,status=0,location=0,menubar=0,resizable=0");
	}

function popUpStat(src,name,x,y,w,h)
	{
	window.open(src,name,"left="+x+",top="+y+",height="+h+",width="+w+",scrollbars=0,status=1,location=0,menubar=0,resizable=0");
	}

function popUpScroll(src,name,x,y,w,h)
	{
	window.open(src,name,"left="+x+",top="+y+",height="+h+",width="+w+",scrollbars=1,status=0,location=0,menubar=0,resizable=0");
	}

// insertion d'un lecteur quicktime
function InsertSampleMovie(src,w,h,bg,auto)
{
	document.write("<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\" height=\""+h+"\" width=\""+w+"\">\n"); 
	document.write("<param name=\"src\" value=\""+src+"\">\n");
	document.write("<param name=\"autoplay\" value=\""+auto+"\">\n");
	document.write("<param name=\"bgcolor\" value=\""+bg+"\">\n");
	document.write("<param name=\"type\" value=\"video/quicktime\">\n");
	document.write("<embed src=\"../dyn/societe/videos/video_1.mov\" height=\""+h+"\" width=\""+w+"\" autoplay=\""+auto+"\" type=\"video/quicktime\" pluginspage=\"http://www.apple.com/quicktime/download/\" bgcolor=\""+bg+"\">\n");
	document.write("</object>\n");
}