function showTab(activeTabName) {	swapTab(activeTabName,tabArray);}function swapTab(activeTabName,inputArray) {	for (n=0; n<inputArray.length; n++) {		if(activeTabName == inputArray[n][0]) {			document.getElementById(inputArray[n][0]).style.visibility = "visible";			document.getElementById(inputArray[n][0] + "ActiveTab").style.visibility = "visible"; 			document.getElementById(inputArray[n][0] + "InActiveTab").style.visibility = "hidden";		} else { 			document.getElementById(inputArray[n][0]).style.visibility = "hidden";			document.getElementById(inputArray[n][0] + "ActiveTab").style.visibility = "hidden"; 			document.getElementById(inputArray[n][0] + "InActiveTab").style.visibility = "visible";		}	}	}function buildTab(inputArray) {	var tabTableStart = '<table cellpadding=0 cellspacing=0 border=0><tr>';	var tabActiveTableInner = ''	var tabInActiveTableInner = ''		for (n=0; n<inputArray.length; n++) {		tabActiveTableInner += '<td><div id="' + inputArray[n][0] + 'ActiveTab"><table cellpadding=0 cellspacing=0 border=0><tr>' +			'<td><img src="core/graphics/rtab/small/active_left_20x25px.gif" width=20 height=25></td>' +			'<td background="core/graphics/rtab/small/active_bg_20x25px.gif"><b>' + inputArray[n][1] + '</b></td>' +			'<td><img src="core/graphics/rtab/small/active_right_20x25px.gif" width=20 height=25></td>' + 			'</tr></table></div></td>';	}	for (n=0; n<inputArray.length; n++) {		tabInActiveTableInner += '<td><div id="' + inputArray[n][0] + 'InActiveTab"><table cellpadding=0 cellspacing=0 border=0><tr>' +			'<td><img src="core/graphics/rtab/small/inactive_left_20x25px.gif" width=20 he ight=25></td>' +			'<td background="core/graphics/rtab/small/inactive_bg_20x25px.gif"><a href="" onClick=\'' + inputArray[n][2] + '\' onMouseOver=\'' + inputArray[n][3] + '\' onMouseOut=\'' + inputArray[n][4] + '\'><b>' + inputArray[n][1] + '</b></a></td>' +			'<td><img src="core/graphics/rtab/small/inactive_right_20x25px.gif" width=20 height=25></td>' + 			'</tr></table></div></td>';	}		var tabTableEnd = '</tr></table>';		var tabTable = '<div class="tabActive">' + tabTableStart + tabActiveTableInner + tabTableEnd + '</div>' + 		'<div class="tabInActive">' + tabTableStart + tabInActiveTableInner + tabTableEnd + '</div>';		return tabTable;	}function localizeContent() { 	for (n1=1; n1<localizedArray[localizedLang].length; n1++) {		var localizedItem = document.getElementById("localizedContent_"+n1);		if (localizedItem != null) {			localizedItem.innerHTML = localizedArray[localizedLang][n1];		}	}}function writeTab() {	document.getElementById("tab").innerHTML = buildTab(tabArray);}function writeStatus(id) {	document.getElementById("statusBox").innerHTML = statusArray[id];}function writeWarning(id) {	document.getElementById("warningBox").innerHTML = statusArray[id];}function clearWarning() {	document.getElementById("warningBox").innerHTML = "";}function writeTrace(textinput) {	document.getElementById("statusBox").innerHTML = textinput;}function clearStatus() {	document.getElementById("statusBox").innerHTML = "";}function hideForBrowser() {	if (!exportStatus) {		document.getElementById("exportLink").style.display = "none";		//document.getElementById("exportButton").style.display = "none";	}		if (!importStatus) {		document.getElementById("importActiveTab").style.display = "none";		document.getElementById("importInActiveTab").style.display = "none";		}		if ((IE && WIN && videoAvaible) || (!WIN && MOZILLA && videoAvaible)) {		} else {		document.getElementById("localizedContent_118").style.display = "none";		document.getElementById("localizedContent_119").style.display = "none";		document.getElementById("localizedContent_120").style.display = "none";	}}function goToHome(lang) {	if (lang == "en") {		document.location.href = "index.htm";	} else {		document.location.href = "index."+lang+".htm";	}}function goToHelp(lang) {	if (lang == "en") {		document.location.href = "users_guide.htm";	} else {		document.location.href = "users_guide."+lang+".htm";	}}function goToCalculator(lang) {	if (lang == "en") {		document.location.href = "calculator.htm";	} else {		document.location.href = "calculator."+lang+".htm";	}}function printProject(lang) {	window.open("print.htm","print","toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=750,height=768,left=0,top=0");}function goToDemo(lang) {	window.open("core/html/design_tool_1024x768.htm","demo","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=960,height=768,left=0,top=0");}function showExampleVideo(index,duplicate) {	var windowIndex = windowArray[index].length;		windowArray[index][windowIndex] = new Array();	windowArray[index][windowIndex][0] = "videoWindow_"+getTimeStamp(); // window name	windowArray[index][windowIndex][1] = 0; // top name	windowArray[index][windowIndex][2] = windowIndex*20; // left name		if (localizedLang == "en") {		var insertLang = "";	} else {		//var insertLang = "."+localizedLang;		var insertLang = "";	}		if (duplicate) {		windowArray[index][windowIndex][3] = window.open("video_popup_"+index+insertLang+".html",windowArray[index][windowIndex][0],"toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=704,height=704,left="+windowArray[index][windowIndex][2]+",top="+windowArray[index][windowIndex][1]);	//popup function	} else {		windowArray[index][windowIndex][3] = window.open("core/video/video_popup_"+index+insertLang+".html",windowArray[index][windowIndex][0],"toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=704,height=704,left="+windowArray[index][windowIndex][2]+",top="+windowArray[index][windowIndex][1]);	//popup function	}}function closeExampleVideo(index) {	for (var i=0;i<windowArray[index].length;i++) {		windowArray[index][i][3].close();	}	windowArray[index] = new Array();		}function getTimeStamp() {var curDateTime = new Date()var curHour = curDateTime.getHours()var curMin = curDateTime.getMinutes()var curSec = curDateTime.getSeconds()var curTime =     ((curHour < 10) ? "0" : "") + curHour      + ((curMin < 10) ? "0" : "") + curMin      + ((curSec < 10) ? "0" : "") + curSec return curTime;}function showModelSelection() {		//if (networkStatus) {			for (n=0; n<cameraList.length; n++) {						if ('AXIS '+cameraList[n][1] == videoArray[1][2]) {								var modelURL =	cameraList[n][2];						}		}			window.open(modelURL,"model","toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=800,left=0,top=0");	//popup function	//} else {	//	alert(localizedArray[localizedLang][130]);	//}	}function showComplexityVideo() {	//if (localizedLang == "en") {		popUpVideo("core/html/popup_complexity_selection.htm","viewVideoWindow",videoArray[0][12],videoArray[0][13]);	//} else {		//	popUpVideo("core/html/popup_complexity_selection."+localizedLang+".htm","viewVideoWindow",videoArray[0][12],videoArray[0][13]);	//}}function showFramrateSelection() {	//if (localizedLang == "en") {		popUpVideo("core/html/popup_framerate_selection.htm","viewVideoWindow",640,480);	//} else {	//	popUpVideo("core/html/popup_framerate_selection."+localizedLang+".htm","viewVideoWindow",640,480);	//}}function showResolutionSelection() {	//if (localizedLang == "en") {		popUpNoVideo("core/html/popup_resolution_selection.htm","viewVideoWindow",640,480);	//} else {		//	popUpNoVideo("core/html/popup_resolution_selection."+localizedLang+".htm","viewVideoWindow",640,480);	//}}function showCompressiontypeSelection() {	//if (localizedLang == "en") {		popUpNoVideo("core/html/popup_compressiontype_selection.htm","viewVideoWindow",640,480);	//} else {			//	popUpNoVideo("core/html/popup_compressiontype_selection."+localizedLang+".htm","viewVideoWindow",640,480);	//}	}function showCompressionSelection() {	//if (localizedLang == "en") {		popUpNoVideo("core/html/popup_compressiontype_selection.htm","viewVideoWindow",640,480);	//} else {				//	popUpNoVideo("core/html/popup_compressiontype_selection."+localizedLang+".htm","viewVideoWindow",640,480);	//}}function showAudioSelection() {	popUpNoVideo("core/html/popup_audio_selection.htm","viewVideoWindow",640,480);}function popUpVideo(URL,ID,width,height) {	if (videoAvaible) {		window.open(URL,ID,'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+width+',height='+height+',left=0,top=0');	} else {		alert(localizedArray[localizedLang][131]);	}}function popUpNoVideo(URL,ID,width,height) {		window.open(URL,ID,'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+width+',height='+height+',left=0,top=0');}loaded["interface.js"] = true;