<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1 ;


function FSI(cmd){
    doFSICommand("FSICMD", cmd);
}

function FSIgotoPage(nPage) {
	url = location.search;
	if(url.search('ROBINETTERIE/RFH') != -1 || url.search('AEP/ALPINAL') != -1 || url.search('VOIRIE/KANALGUSS') != -1 || url.search('ASSAINISSEMENT/ABWASSER_KATALOG') != -1 || url.search('SOLUTIONS/ECOLECLIENTS') != -1 || url.search('BATIMENT/BATIMENT') != -1) {
		nPage = 4;
	} 
    doFSICommand("newImageIndex", nPage);
    doFSICommand("FSICMD", "GotoPage");
}

function FSInoCommand() {
    doFSICommand("FSICMD", "");
}

function FSIReset() {
    doFSICommand("RESET", "");
}

function doFSICommand(cmd, arg) {
    var fsiviewerObj = InternetExplorer ? fsiviewer : document.fsiviewer;
    try {
        fsiviewerObj.SetVariable(cmd, arg);
    }
    catch(e) {
    }
}

function FSIautoPlay(nPage) {
    var i;
    for (i = 1; i < nPage; i++)
        setTimeout("doFSICommand('FSICMD','NextPage')", 1000);
}

function goToChapter() {
    var pageindex = document.getElementById('erezchapter').options[document.getElementById('erezchapter').selectedIndex].value;
    FSIgotoPage(pageindex);
}


function closeVideo(){
	$("#video").hide();
}


	$(function() {
		$("#cVideo").dialog({
			autoOpen: false,
			height: 540,
			width: 920,
			resizable: false,
			draggable: false,
			position: 'center',
			modal: false,
			open: function() { },
			close: function() {
				document.getElementById("videoDiv").SetVariable("player:jsStop", "");
          	}
		});
	});		
	
	
function openVideo() {
	$('#cVideo').dialog('open');
}


function playVideo() {
	document.getElementById("videoDiv").SetVariable("player:jsPlay", "");
}



//-->

