
// demonstrations.js (arainia.com)
// Copyright © 1995-2005 Logan Mueller, All rights reserved.
// This code is only permitted to be used by Arainia Solutions

var nTotal = 0; 
var nPos = 0; 
var nIndex = 0; 
var bIsMSIE = (navigator.userAgent.toLowerCase().indexOf("msie") != -1); 
var imgLoader1 = new Image(); 
var imgLoader2 = new Image(); 
var imgLoader3 = new Image(); 
var imgLoader4 = new Image(); 
var aryImage = new Array(); 
var aryTitle = new Array(); 
var aryCaption = new Array(); 
var arySizeX = new Array(); 
var arySizeY = new Array(); 
var nHeighest = 0;

// Image list GIZMO VILLAGE

aryImage[nIndex] = "shotgroup-toolbar.jpg"; aryTitle[nIndex] = "Gizmo Toolbar"; aryCaption[nIndex] = "<B>Gizmo Toolbar</B> is a customizable, quick launch bar for the Windows Shell"; arySizeX[nIndex] = "450"; arySizeY[nIndex++] = "337"; 
aryImage[nIndex] = "shotgroup-editor.jpg"; aryTitle[nIndex] = "Gizmo Editor"; aryCaption[nIndex] = "<B>Gizmo Editor</B> is a colorizing text editor and hex/binary editor"; arySizeX[nIndex] = "450"; arySizeY[nIndex++] = "338"; 
aryImage[nIndex] = "shotgroup-hasher.jpg"; aryTitle[nIndex] = "Gizmo Hasher"; aryCaption[nIndex] = "<B>Gizmo Hasher</B> allows you to calculate hash values for files, folders, and drives"; arySizeX[nIndex] = "450"; arySizeY[nIndex++] = "338"; 
aryImage[nIndex] = "shotgroup-database.jpg"; aryTitle[nIndex] = "Gizmo Database"; aryCaption[nIndex] = "<B>Gizmo Database</B> includes a Query Analyzer and stored procedure analyzer"; arySizeX[nIndex] = "450"; arySizeY[nIndex++] = "338"; 
aryImage[nIndex] = "shotgroup-drive.jpg"; aryTitle[nIndex] = "Gizmo Drive"; aryCaption[nIndex] = "<B>Gizmo Drive</B> allows you to mount ISOs, encrypted hard drive images to a virtual drive"; arySizeX[nIndex] = "450"; arySizeY[nIndex++] = "338"; 
aryImage[nIndex] = "shotgroup-script.jpg"; aryTitle[nIndex] = "Gizmo Script"; aryCaption[nIndex] = "<B>Gizmo Script</B> allows you to automate your PC and execute functions using script"; arySizeX[nIndex] = "450"; arySizeY[nIndex++] = "338"; 
aryImage[nIndex] = "shot-themes.jpg"; aryTitle[nIndex] = "Theme Manager"; aryCaption[nIndex] = "Customize the colors and fonts used in various parts of Gizmo with the <B>Theme Manager</B>"; arySizeX[nIndex] = "433"; arySizeY[nIndex++] = "338"; 
aryImage[nIndex] = "g33.png"; aryTitle[nIndex] = "Progression Monitor"; aryCaption[nIndex] = "The <B>Progression Monitor</B> is Gizmo's auto-update engine. See what features and fixes have been made before downloading them."; arySizeX[nIndex] = "450"; arySizeY[nIndex++] = "337"; 
aryImage[nIndex] = "shot-shadow.jpg"; aryTitle[nIndex] = "Desktop Shadow Console"; aryCaption[nIndex] = "The <B>Desktop Shadow Console</B> allows Gizmo to send notifications to the interactive user, silently, without obstructing focus from their current work."; arySizeX[nIndex] = "445"; arySizeY[nIndex++] = "235"; 
aryImage[nIndex] = "shot-shadowscript.jpg"; aryTitle[nIndex] = "Sample Script Code"; aryCaption[nIndex] = "With <B>Gizmo Script</B>, you have the ability to automate Gizmo and use it to its full potential, revealing the internal features."; arySizeX[nIndex] = "309"; arySizeY[nIndex++] = "338"; 
aryImage[nIndex] = "shot-help.jpg"; aryTitle[nIndex] = "Documentation"; aryCaption[nIndex] = "When help is needed, take advantage of the documentation included with each module you install."; arySizeX[nIndex] = "414"; arySizeY[nIndex++] = "338"; 
aryImage[nIndex] = "shot-shell.jpg"; aryTitle[nIndex] = "Shell Integration"; aryCaption[nIndex] = "<B>Gizmo Village</B> allows you to configure which document types are integrated with Windows (if any) and how they are handled. If you like, you can make Gizmo your default editor for opening PERL source code."; arySizeX[nIndex] = "450"; arySizeY[nIndex++] = "302"; 
aryImage[nIndex] = "shot-drive.jpg"; aryTitle[nIndex] = "Mount Virtual Drive"; aryCaption[nIndex] = "Mount ISO files, RAW images, or create a virtual hard drive, encrypted and copressed, with <B>Gizmo Drive</B>."; arySizeX[nIndex] = "412"; arySizeY[nIndex++] = "338"; 
aryImage[nIndex] = "shot-carousel.jpg"; aryTitle[nIndex] = "Toolbar Orientation - Carousel"; aryCaption[nIndex] = "Change the toolbar orientation. Here the toolbar is using the Carousel orientation."; arySizeX[nIndex] = "441"; arySizeY[nIndex++] = "338"; 
aryImage[nIndex] = "shot-toolbar-windows.jpg"; aryTitle[nIndex] = "Toolbar Theme - Gizmo Windows Theme"; aryCaption[nIndex] = "Toolbar using the <B>Gizmo Windows Theme</B> theme"; arySizeX[nIndex] = "152"; arySizeY[nIndex++] = "338"; 
aryImage[nIndex] = "shot-toolbar-gloom.jpg"; aryTitle[nIndex] = "Toolbar Theme - Gizmo Gloom"; aryCaption[nIndex] = "Toolbar using the <B>Gizmo Gloom</B> theme"; arySizeX[nIndex] = "152"; arySizeY[nIndex++] = "338"; 
aryImage[nIndex] = "shot-toolbar-midnight.jpg"; aryTitle[nIndex] = "Toolbar Theme - Gizmo Midnight"; aryCaption[nIndex] = "Toolbar using the <B>Gizmo Midnight</B> theme"; arySizeX[nIndex] = "152"; arySizeY[nIndex++] = "338"; 
aryImage[nIndex] = "shot-toolbar-silver.jpg"; aryTitle[nIndex] = "Toolbar Theme - Gizmo Silver"; aryCaption[nIndex] = "Toolbar using the <B>Gizmo Silver</B> theme"; arySizeX[nIndex] = "152"; arySizeY[nIndex++] = "338"; 
aryImage[nIndex] = "shot-toolbar-professional.jpg"; aryTitle[nIndex] = "Toolbar Theme - Gizmo Professional"; aryCaption[nIndex] = "Toolbar using the <B>Gizmo Professional</B> theme"; arySizeX[nIndex] = "152"; arySizeY[nIndex++] = "338"; 
aryImage[nIndex] = "shot-toolbar-ocean.jpg"; aryTitle[nIndex] = "Toolbar Theme - Gizmo Ocean"; aryCaption[nIndex] = "Toolbar using the <B>Gizmo Ocean</B> theme"; arySizeX[nIndex] = "152"; arySizeY[nIndex++] = "338"; 
aryImage[nIndex] = "shot-toolbar-babe.jpg"; aryTitle[nIndex] = "Toolbar Theme - Gizmo Babe"; aryCaption[nIndex] = "Toolbar using the <B>Gizmo Babe</B> theme"; arySizeX[nIndex] = "152"; arySizeY[nIndex++] = "338"; 

nTotal = nIndex; 

// Find largest height

for (iCheck = 0; iCheck < nTotal; iCheck++)
	if (arySizeY > nHeighest) nHeighest = arySizeY;

function qaShow(nNewPos) 
{
	document.getElementById("qaImageArea").innerHTML =  
		"<DIV CLASS=picturespot><IMG CLASS=pictureframe " + 
		" SRC=\"" + aryImage[nNewPos] + "\" HEIGHT=" + arySizeY[nNewPos] +  
		" WIDTH=" + arySizeX[nNewPos] + "></DIV>"; 
		
	// Update index
	
	var szNewIndex = "[" + (nNewPos + 1) + "/" + nTotal + "]";
	
	document.getElementById("qaIndexArea").innerHTML = 'Viewing image ' +
		szNewIndex;
		
	// Update caption
		
	document.getElementById("qaCaptionArea").innerHTML = 
		'<FONT COLOR=888888>Image ' + szNewIndex + '</FONT> - ' + 
		aryCaption[nNewPos]; 
	
	// Update selection box

	SelectionBox = document.qaForm.qaList; 
	SelectionBox.options[nNewPos].selected = true; nPos = nNewPos; 
}

function qaWrap(nAdjust) 
{ 
	if (nAdjust >= nTotal) 
		return nAdjust - nTotal; 
	else if (nAdjust < 0) 
		return nTotal + nAdjust; 
		
	return nAdjust; 
} 

function qaPrevious(bDblClick) 
{ 
	if (bDblClick && !bIsMSIE) 
		return; nTotal = document.qaForm.qaList.options.length; 

	nPos = qaWrap(nPos - 1); 
	
	imgLoader1.src = aryImage[qaWrap(nPos - 1)]; 
	imgLoader2.src = aryImage[qaWrap(nPos - 2)]; 
	imgLoader3.src = aryImage[qaWrap(nPos - 3)]; 
	imgLoader4.src = aryImage[qaWrap(nPos - 4)]; 
	
	qaShow(nPos); 
} 

function qaNext(bDblClick) 
{ 
	if (bDblClick && !bIsMSIE) 
		return; 
		
	nTotal = document.qaForm.qaList.options.length; 
	nPos = qaWrap(nPos + 1); 
	
	imgLoader1.src = aryImage[qaWrap(nPos + 1)]; 
	imgLoader2.src = aryImage[qaWrap(nPos + 2)]; 
	imgLoader3.src = aryImage[qaWrap(nPos + 3)];  
	imgLoader4.src = aryImage[qaWrap(nPos + 4)]; 
	
	qaShow(nPos); 
} 

