﻿// Sniffers = = = = = = = = = =
function sniff_MacOSX() {
	if(!VMP_Mac) return false;
	if(navigator.userAgent.indexOf("mac os x") != -1) return true;
	for(var i=0;i<navigator.plugins.length;i++) {
		if(navigator.plugins[i].name.toLowerCase()=="default plugin carbon.cfm") return true;
	}
	return false;
}
VMP_IE=navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion.substring(0,1))>=4;
VMP_IE5=navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion.substring(0,1))==5;
VMP_IE6=navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion.substring(0,1))>=6;
VMP_NN4=navigator.appName.indexOf("Netscape")!=-1&&parseInt(navigator.appVersion.substring(0,1))==4;
VMP_Gecko=navigator.userAgent.toLowerCase().indexOf('gecko')!=-1;
VMP_Mac=navigator.userAgent.toLowerCase().indexOf('mac')!=-1;
VMP_Win=navigator.userAgent.toLowerCase().indexOf('win')!=-1;
VMP_Safari=navigator.userAgent.toLowerCase().indexOf('safari')!=-1;
VMP_MacOSX=sniff_MacOSX();

// Globals = = = = = = = = = = 
var arrowDown = new Image; arrowDown.src = "images/clickArrowDown.gif";
var	arrowUp = new Image; arrowUp.src = "images/clickArrowUp.gif";

var infoVis = false;
var showArray = [false,false,false,false,false];

// Functions = = = = = = = = = 
function moreInfo(theLayer) {
	if (theLayer.indexOf('0') > -1) { 
		showArray[0] = !showArray[0]; 
		thisArray = showArray[0];
		if(showArray[0] == true) document.l0arrow.src = arrowDown.src;
		else document.l0arrow.src = arrowUp.src;
	} else if (theLayer.indexOf('1') > -1) { 
		showArray[1] = !showArray[1]; 
		thisArray = showArray[1];
		if(showArray[1] == true) document.l1arrow.src = arrowDown.src;
		else document.l1arrow.src = arrowUp.src;
	} else if (theLayer.indexOf('2') > -1) { 
		showArray[2] = !showArray[2]; 
		thisArray = showArray[2];
		if(showArray[2] == true) document.l2arrow.src = arrowDown.src;
		else document.l2arrow.src = arrowUp.src;
	} else if (theLayer.indexOf('3') > -1) { 
		showArray[3] = !showArray[3]; 
		thisArray = showArray[3]; 
		if(showArray[3] == true) document.l3arrow.src = arrowDown.src;
		else document.l3arrow.src = arrowUp.src;
	} else if (theLayer.indexOf('4') > -1) { 
		showArray[4] = !showArray[4]; 
		thisArray = showArray[4];
		if(showArray[4] == true) document.l4arrow.src = arrowDown.src;
		else document.l4arrow.src = arrowUp.src;
	} else { 
		showArray = [false,false,false,false,false];
		document.l0arrow.src = arrowUp.src;
		document.l1arrow.src = arrowUp.src;
		document.l2arrow.src = arrowUp.src;
		document.l3arrow.src = arrowUp.src;
		document.l4arrow.src = arrowUp.src;
	}

	// switch layer visibility	
	thisArray ? visStatus = "block" : visStatus = "none";
	
	if (document.all) { 
		document.all[theLayer].style.display = visStatus;
	} else {
		document.getElementById(theLayer).style.display = visStatus;
	}	
}


// Help system = = = = = = = = = =
var visibility = false;
var hTitle = new Array(); // help title array
var hBody = new Array(); // help body content array

// Help Array =====
hTitle[0] = "ZoomView Builder <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[0] = "Create high resolution zoomable images that can be viewed at any bandwidth.";

hTitle[1] = "Adobe Photoshop Templates <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[1] = "Adobe Photoshop templates for exported ZoomView images.";

hTitle[2] = "Narrator <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[2] = "Add visual narration, at specific locations, to your ZoomView images.";

hTitle[3] = "Enliven <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[3] = "Create hot spots for the user to zoom into your ZoomView images.";

hTitle[4] = "Scene Builder <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[4] = "An essential application for assembling a scene and publishing it in .html/.mtx/.mts format.";

hTitle[5] = "TalkNow Converter <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[5] = "A software utility designed to convert .wav files to TalkNow files.";

hTitle[6] = "Media Publisher <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[6] = "Enables you to quickly create VET web applications from Viewpoint media files (.mtx/.mtz) by embedding them in web (HTML) pages or running transformations on .mtx (XML) files through built-in XSLT support.";

hTitle[7] = "Control Panel <img src=\"images/icon_macos_small.gif\" class=\"button\" style=\"margin-right: 3px\"> <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[7] = "A utility for checking, installing, and removing Viewpoint Media Player.";

hTitle[8] = "Viewpoint Stream Tuning Studio <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[8] = "An application for reducing .mts file sizes, enabling optimized 3D scenes rendered on a web page to stream quickly and retain visual integrity.";

hTitle[9] = "Viewpoint HTML Embed Constructor Line Generator <img src=\"images/icon_macos_small.gif\" class=\"button\" style=\"margin-right: 3px\"> <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[9] = "Create a Viewpoint Media Player Constructor Line for your HTML files with user-defined options.";

hTitle[10] = "Viewpoint MTS3Interface.js <img src=\"images/icon_macos_small.gif\" class=\"button\" style=\"margin-right: 3px\"> <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[10] = "A JavaScript class that handles the syntax and conventions required for different operating systems and browsers, and provides 2-way scripting to Viewpoint Media Player. The MTS3Interface.js file is also included in Viewpoint Media Publisher.";

hTitle[11] = "Viewpoint Video Conversion for Demos <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[11] = "Convert up to 2 movies into the new Viewpoint video format for use as a demo, absolutely free!";

hTitle[12] = "Viewpoint Media Exporter for Maya 3 and 4 <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[12] = "Viewpoint Media Exporter for Maya 3 and 4 is a plug-in to Alias|Wavefront’s Maya modeling and animation software. The Maya exporter will enable Maya users the ability to export Viewpoint media files (.mtx/.mtz/.mts) directly.";

hTitle[13] = "Viewpoint Media Exporter for LightWave 6.5 <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[13] = "Viewpoint Media Exporter for LightWave 6.5 is a plug-in to Newtek’s 3D modeling and animation software. The LightWave exporter will enable LightWave users the ability to export Viewpoint media files (.mtx/.mtz/.mts) directly.";

hTitle[14] = "Adobe Atmosphere <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[14] = "Atmosphere is a new professional web tool for authoring, viewing, and interacting with immersive, virtual 3D worlds.";

hTitle[15] = "Adobe Photoshop 7 and above <img src=\"images/icon_macos_small.gif\" class=\"button\" style=\"margin-right: 3px\"> <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[15] = "Photoshop 7 includes native support for creating and publishing images in ZoomView. Quickly use high-resolution digital assets to merchandise, inform, and collaborate online to all users regardless of bandwidth.";

hTitle[16] = "Caligari trueSpace for Atmosphere <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[16] = "trueSpace for Atmosphere is an ideal tool for you to create rich and realistic models, avatars, even community spaces like buildings for your Atmosphere world.";

hTitle[17] = "Caligari trueSpace 5 or above w/ Conversion Pack <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[17] = "trueSpace is used widely by 3D artists and animators and has gained industry recognition for advanced capabilities, such as hybrid radiosity rendering and direct manipulation user interface.";

hTitle[18] = "Curious Labs Avatar Lab <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[18] = "Avatar Lab is used to create 3D avatars for Adobe Atmosphere worlds using mix-and-match parts. Use your photos to model custom faces, add animations, and bring your avatars to life!";

hTitle[19] = "Curious Labs Poser 4 with Pro Pack or Poser 5 or above <img src=\"images/icon_macos_small.gif\" class=\"button\" style=\"margin-right: 3px\"> <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[19] = "Poser 5 is the ultimate 3D character design and animation tool for artists and animators. Create 3D figures using a diverse collection of ready-to-use 3D human and animal models.";

hTitle[20] = "Eovia Carrara 3D Basics <img src=\"images/icon_macos_small.gif\" class=\"button\" style=\"margin-right: 3px\"> <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[20] = "Carrara 3D Basics is designed for users with little or no 3D experience. It offers several standard modeling features, as well as the ability to modify any of the 900 figure and primitive models that ship with the software.";

hTitle[21] = "Eovia Carrara Studio 1.1 - 2.0 w/ webXport or 3.0 and above <img src=\"images/icon_macos_small.gif\" class=\"button\" style=\"margin-right: 3px\"> <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[21] = "Carrara Studio is the best 3D productivity tool for the beginner and advanced user alike. Export Viewpoint scenes with interactors, animators, state machines, and animations. A comprehensive cross-platform tool for Viewpoint authoring. Viewpoint authoring currently not Available on Mac OS X, but is available on Mac OS 9.";

hTitle[22] = "Right Hemisphere Deep Exploration w/ VMI <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[22] = "Deep Exploration is an easy-to-use tool for web searching, viewing, rendering, and 3D web publishing with a Windows Explorer like interface. Use Viewpoint Media Integrator with Deep Exploration to export Viewpoint content.";

hTitle[23] = "Alias Maya <img src=\"images/icon_macos_small.gif\" class=\"button\" style=\"margin-right: 3px\"> <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[23] = "You may use the direct exporter for Maya 3.0 to 4.5.  For other versions of Maya we recommend using either of the following file translation applications, both of which export to VET:  Deep Exploration w/ VMI (Right Hemisphere) or PolyTrans (Okino).";

hTitle[24] = "Ashlar-Vellum Argon <img src=\"images/icon_macos_small.gif\" class=\"button\" style=\"margin-right: 3px\"> <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[24] = "Based on the award-winning technology of Ashlar Vellum Solids, Argon offers incredibly powerful and easy to use free-form wireframe, surfacing, and solid modeling.";

hTitle[25] = "Ashlar-Vellum Cobalt <img src=\"images/icon_macos_small.gif\" class=\"button\" style=\"margin-right: 3px\"> <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[25] = "Powerfully integrates advanced parametric free-form wireframe, organic Class-A NURBS surfacing, and advanced ACIS feature-based solid modeling.";

hTitle[26] = "Ashlar-Vellum Neon <img src=\"images/icon_macos_small.gif\" class=\"button\" style=\"margin-right: 3px\"> <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[26] = "This new and exciting product is the perfect, affordable 3D publishing tool for print and the web. Import 3D models through an extensive list of quality 3D translators or create simple 3D models right within Neon.";

hTitle[27] = "Ashlar-Vellum Xeon <img src=\"images/icon_macos_small.gif\" class=\"button\" style=\"margin-right: 3px\"> <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[27] = "Created specifically for the needs of 3D professionals. Integrating associative and history-based modeling, free-form wireframes, class-A NURBS surfacing, and ACIS solid modeling.";

hTitle[28] = "auto-des-sys form&#149;Z <img src=\"images/icon_macos_small.gif\" class=\"button\" style=\"margin-right: 3px\"> <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[28] = "A hybrid solid and surface 3D modeling application. It includes drafting, photorealistic rendering, and animation.";

hTitle[29] = "chUmbaLum sOft MilkShape 3D <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[29] = "A low-polygon modeler, which was initially designed for Half-Life. During the development, many file formats have been added, including the ability to export to VET.";

hTitle[30] = "Digital Immersion Presenter 3D <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[30] = "Presenter 3D plugs directly into Autodesk Inventor and is aimed squarely at simplicity of operation to increase the design engineer's productivity to create animated VET content.";

hTitle[31] = "Discreet 3ds max <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[31] = "We recommend using either of the following file translation applications, both of which export to VET:  Deep Exploration w/ VMI (Right Hemisphere) or PolyTrans (Okino).";

hTitle[32] = "GESTEL solidThinking <img src=\"images/icon_macos_small.gif\" class=\"button\" style=\"margin-right: 3px\"> <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[32] = "Composed of three different versions offering advanced VET support: solidThinking LT, solidThinking DESIGN, solidThinking VANTAGE.";

hTitle[33] = "IMSI TurboCAD Professional <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[33] = "Offers an unbeatable integration of CAD's most valuable 2D and 3D tools, plus advanced architectural and mechanical design tools.";

hTitle[34] = "INUS Technology RapidForm <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[34] = "Allows you to build 3D models of defect-free and high quality polygon or freeform surfaces from 3D point cloud or polygon meshes.";

hTitle[35] = "Maxon Cinema 4D w/ Bola <img src=\"images/icon_macos_small.gif\" class=\"button\" style=\"margin-right: 3px\"> <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[35] = "Provides professional quality modeling and animation tools combined with an extremely fast and high-quality renderer.";

hTitle[36] = "Newtek Lightwave <img src=\"images/icon_macos_small.gif\" class=\"button\" style=\"margin-right: 3px\"> <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[36] = "You may use the direct exporter for Lightwave 6.5.  For other versions of Lightwave we recommend using either of the following file translation applications, both of which export to VET:  Deep Exploration w/ VMI (Right Hemisphere) or PolyTrans (Okino).";

hTitle[37] = "Okino PolyTrans <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[37] = "One of the most acclaimed and respected 3D geometry translators. PolyTrans is unique in its ability to convert every aspect of a 3D model file";

hTitle[38] = "Raindrop Geomagic Studio 3.1 or greater <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[38] = "The first product to provide precise dimensional (geometry) and photometric (color) information in one process. The result is true-to-life 3D models that can be created in minutes by anyone.";

hTitle[39] = "Robert McNeel & Associates Rhino 2.0 or greater <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[39] = "Rhino can create, edit, analyze, and translate NURBS curves, surfaces, and solids in Windows. There are no limits on complexity, degree, or size. Rhino also supports polygon meshes.";

hTitle[40] = "SolidWorks <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[40] = "A powerful, easy to use, and innovative; it is the leading mainstream CAD solution.";

hTitle[41] = "ZoomView Tool Bundle <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[41] = "9.78 MB zip file. Windows 98 or greater.";

hTitle[42] = "Rich Media Tool Bundle <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[42] = "9.78 MB zip file. Windows 98 or greater.";

hTitle[43] = "FinalCheck <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[43] = "Viewpoint FinalCheck provides an interactive way of ensuring that the VET content is correct.";

hTitle[44] = "Media Compressor <img src=\"images/icon_macos_small.gif\" class=\"button\" style=\"margin-right: 3px\"> <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[44] = "Viewpoint Media Compressor is a quick and convenient tool for compressing .mtx files up to 85% while supporting decompression.";

hTitle[45] = "Template <img src=\"images/icon_windows_small.gif\" class=\"button\">";
hBody[45] = "Description.";


// help functions =====
function help(cX, cY, hArray, side) {
	visibility = !visibility;
	visibility ? visStatus = "visible" : visStatus = "hidden";
	
	// Always keep contextual layer next to the help icon it's associated to.
	if (!VMP_Safari) {
		scrollOffsetLeft = 0; scrollOffsetTop = 0;
		if (VMP_IE) {
			scrollOffsetLeft = document.body.scrollLeft;
			scrollOffsetTop = document.body.scrollTop;
		} else {
			scrollOffsetLeft = window.pageXOffset;
			scrollOffsetTop = window.pageYOffset;
		}
		cX = cX + scrollOffsetLeft;
		cY = cY + scrollOffsetTop;
	}
	
	if ((VMP_IE) && (VMP_Mac)) { 
		if (side == "right") {
			hLeft = cX + 5; 
			hTop = cY - 65; 
		} else {
			hLeft = cX - 245; 
			hTop = cY - 65; 
		}
	} else { 
		if (side == "right") {
			hLeft = cX + 15; 
			hTop = cY - 15;
		} else {
			hLeft = cX - 225; 
			hTop = cY - 30;	
		}
	}
	
	if (hLeft < 5) hLeft = 5;
	hLeft = hLeft + "px"; hTop = hTop + "px";
	
	if (document.all) {
		document.all['helpLayer'].style.left = hLeft;
		document.all['helpLayer'].style.top = hTop;
		document.all['helpTitle'].innerHTML = hTitle[hArray];
		document.all['helpBody'].innerHTML = hBody[hArray];
		document.all['helpLayer'].style.visibility = visStatus;
	} else {
		document.getElementById('helpLayer').style.left = hLeft;
		document.getElementById('helpLayer').style.top = hTop;
		document.getElementById('helpTitle').innerHTML = hTitle[hArray];
		document.getElementById('helpBody').innerHTML = hBody[hArray];
		document.getElementById('helpLayer').style.visibility = visStatus;
	}
}

