/******************************************************************************
Program: PopUp Window Data
Version: 1.0 Alpha
JavaScript Version: 1.3
Description; Display a full size image from an image thumbnail in a PopUp Window.
Display full size image by passing the image name and location through a querystring
variable. If Javascript is not active then link can be set to display full image or html document.

Browser Versions Tested: 
Windows: NS 4.75+, IE 5.5+, Mozilla, Opera
Mac: NS 4.75+, IE 5.2+, Safari, Chimera, Mozilla

Programmer: Scott Norman, scott@scottnorman.com

Date: 
******************************************************************************/

// Define PopUp Window

var intPageCounter = 0;
var intPopUpWindowCounter = 0;

var aryPageData = new Array();
var aryPopUpWindowData = new Array();


function addPageData() {
	
	aryPageData[intPageCounter]=aryPageElements;
	intPageCounter++;
	//document.write("aryPageData[" + intPageCounter + "]=" + aryPageData[intPageCounter] + "<br />");
};

function addPopUpWindowData() {
	
	aryPopUpWindowData[intPopUpWindowCounter]=aryPopUpWindowElements;
	intPopUpWindowCounter++;
	//document.write("aryPopUpWindowData[" + intPopUpWindowCounter + "]=" + aryPopUpWindowData[intPopUpWindowCounter] + "<br />");
};

/**** Page Data ****/
// Add Page Data
addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"EclipseII8x8-1", // Page Name - Unique Name
"../images/partdetails/eclipse2leg.gif", // Image File
"Eclipse II", //Image Caption/Title
"Outer Leg", //Image Sub Caption/Title
"Enlargement: Outer Leg Detail" // Image Description
]
);

// Add Page Data
addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"EclipseII8x8-2", // Page Name
"../images/partdetails/eclipse2_innerleg.jpg", // Image File
"Eclipse II", //Image Caption/Title
"Inner Leg", //Image Sub Caption/Title
"Enlargement: Inner Leg Detail" // Image Description
]
);

// Add Page Data
// 8x10 and 10x10
strDescription = "<p>(3) Peak Beam Assembly: Made up of Peak Beam (into which the Peak Pole is inserted)</p>"
strDescription += "<p>(4) Peak Pole Assembly: Made up of Peak Pole and the Peak Dome Cap</p>"
strDescription += "<p>(5) 4-Prong Peak Slider: This part connects the 4 Inner Trusses to the Peak Beam Assembly.</p>"
strDescription += "<p>(6) Peak Trusses (2 trusses): Made up of 2 separate trusses. Please note that the inner and outer trusses are not the same size. Does not include the hardware. Order a Nut &amp; Bolt Kit for the hardware.</p>"

addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"EclipseII8x8-3-4-5-6", // Page Name
"../images/partdetails/eclipse2_8x8_Center_Pole_r2_c1.jpg", // Image File
"Eclipse II", //Image Caption/Title
"Slider Pole &amp; Beam", //Image Sub Caption/Title
strDescription // Image Description
]
);

// Add Page Data
// 8x10 and 10x10 Outer Truss
addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"EclipseII8x8-7", // Page Name
"../images/partdetails/eclipse2_8x8_outertruss.jpg", // Image File
"Eclipse II", //Image Caption/Title
"Outer Truss", //Image Sub Caption/Title
"" // Image Description
]
);



// Add Page Data
// 10x15 and 10x20 Peak Assembly
strDescription = "<p>(4) Peak Beam Assembly: Made up of Peak Beam (into which the Peak Pole is inserted)</p>"
strDescription += "<p>(5) Peak Pole Assembly: Made up of Peak Pole and the Peak Dome Cap</p>"
strDescription += "<p>(6) 4-Prong Peak Slider: This part connects the 4 Inner Trusses to the Peak Beam Assembly.</p>"
strDescription += "<p>(7) Peak Trusses (2 trusses): Made up of 2 separate trusses. Please note that the inner and outer trusses are not the same size. Does not include the hardware. Order a Nut &amp; Bolt Kit for the hardware.</p>"

addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"EclipseII10x20-4-7", // Page Name
"../images/partdetails/eclipse2_center_pole.jpg", // Image File
"Eclipse II", //Image Caption/Title
"Slider Pole &amp; Beam", //Image Sub Caption/Title
strDescription // Image Description
]
);

// Add Page Data
addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"EclipseII8x8-8", // Page Name
"../images/partdetails/eclipse2_slider.jpg", // Image File
"Eclipse II", //Image Caption/Title
"Slider", //Image Sub Caption/Title
"" // Image Description
]
);

// Add Page Data
// (8) 10x15 Center Outer Truss
addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"EclipseII10x15-8", // Page Name
"../images/partdetails/eclipse2_10x15_center_outer_truss.jpg", // Image File
"Eclipse II", //Image Caption/Title
"Center Outer Truss Assembly (2 trusses)", //Image Sub Caption/Title
"" // Image Description
]
);


// Add Page Data
addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"EclipseII8x8-9", // Page Name
"../images/partdetails/eclipse2leg.gif", // Image File
"Eclipse II", //Image Caption/Title
"Snap Buttons", //Image Sub Caption/Title
"" // Image Description
]
);

// Add Page Data
// (9) 10x15 Middle Truss Assembly
addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"EclipseII10x15-9", // Page Name
"../images/partdetails/eclipse2_10x15_middletruss.jpg", // Image File
"Eclipse II", //Image Caption/Title
"Middle Truss Assembly (2 trusses)", //Image Sub Caption/Title
"" // Image Description
]
);

// Add Page Data
// (9) 10x20 Middle Truss Assembly
addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"EclipseII10x20-9", // Page Name
"../images/partdetails/eclipse2_10x20_middletruss.jpg", // Image File
"Eclipse II", //Image Caption/Title
"Middle Truss Assembly (2 trusses)", //Image Sub Caption/Title
"" // Image Description
]
);

// Add Page Data
// (11) 10x20 Slider, Middle Leg
addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"EclipseII10x20-11", // Page Name
"../images/partdetails/eclipse2_10X20_middlelegslider.jpg", // Image File
"Eclipse II", //Image Caption/Title
"Slider, Middle Leg", //Image Sub Caption/Title
"" // Image Description
]
);

// Add Page Data
// Express II and Enterprise II Slider Pole and Beam

strDescription = "<p>(1) Peak Beam Assembly: Made up of Peak Beam (into which the Peak Pole is inserted)</p>"
strDescription += "<p>(2) 4-Prong Peak Slider: This part connects the 4 Inner Trusses to the Peak Beam Assembly. Does not include Prong Cover.</p>"
strDescription += "<p>(3) Peak Pole Assembly: Made up of Peak Pole and the Peak Dome Cap</p>"
strDescription += "<p>(4) Prong Cover</p>"
strDescription += "<p>(6) Inner Trusses (2 trusses): Made up of 2 separate trusses. Please note that the inner and outer trusses are not the same size. Does not include the hardware. Order a Nut & Bolt Kit for the hardware.</p>"

addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"ExpressII1-6", // Page Name
"../images/partdetails/express2_CenterPole.jpg", // Image File
"Express II and Enterprise II", //Image Caption/Title
"Slider Pole and Beam", //Image Sub Caption/Title
strDescription // Image Description
]
);

// Express II and Enterprise II Outer Truss
addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"ExpressII5", // Page Name
"../images/partdetails/eclipse2_8x8_outertruss.jpg", // Image File
"Express II and Enterprise II", //Image Caption/Title
"Outer Truss", //Image Sub Caption/Title
"(5) Outer Truss" // Image Description
]
);

// Express II and Enterprise II Slider
addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"ExpressII9", // Page Name
"../images/partdetails/express2_SliderDetail.jpg", // Image File
"Express II and Enterprise II", //Image Caption/Title
"Slider Detail", //Image Sub Caption/Title
"(9) Slider" // Image Description
]
);

// Express II and Enterprise II Inner and Outer Leg
addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"ExpressII7-8", // Page Name
"../images/partdetails/eclipse2_innerleg.jpg", // Image File
"Express II and Enterprise II", //Image Caption/Title
"Outer and Inner Leg", //Image Sub Caption/Title
"" // Image Description
]
);


// Express III Peak Truss Assembly
addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"ExpressIII1", // Page Name
"../images/partdetails/express3-peak-truss-assembly.jpg", // Image File
"Express III", //Image Caption/Title
"Peak Truss Assembly", //Image Sub Caption/Title
"(1) Peak Truss Assembly: Made up of 3 separate trusses, including the cross-member truss that attached to the Slider Assembly. Does not include the hardware. Order a Nut &amp; Bolt Kit for the hardware" // Image Description
]
);

strDescription = "<p>(2) Center Peak Hub</p>" 
strDescription += "<p>(3) Outer Trusses: Made up of 2 separate trusses. Please note that the inner and outer trusses are not the same size. Does not include the hardware. Order a Nut &amp; Bolt Kit for the hardware.</p>"
strDescription += "<p>(4) Inner Trusses: Made up of 2 separate trusses. Please note that the inner and outer trusses are not the same size. Does not include the hardware. Order a Nut &amp; Bolt Kit for the hardware.</p>"

// Express III Center Peak Hub, Outer and Inner Trusses
addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"ExpressIII2", // Page Name
"../images/partdetails/express3_top.jpg", // Image File
"Express III", //Image Caption/Title
"Center Peak Hub, Outer and Inner Trusses", //Image Sub Caption/Title
strDescription // Image Description
]
);

// Express III Outer and Inner Leg and Snap Buttons
addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"ExpressIII5-6", // Page Name
"../images/partdetails/legdetail2.jpg", // Image File
"Express III", //Image Caption/Title
"Outer and Inner Leg and Snap Buttons", //Image Sub Caption/Title
"(5) Outer Leg and (6) Inner Leg and Snap Buttons" // Image Description
]
);

// Express III Slider Assembly
addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"ExpressIII7", // Page Name
"../images/partdetails/lockdetail.jpg", // Image File
"Express III", //Image Caption/Title
"(7) Slider Assembly (incl. Pull pin)", //Image Sub Caption/Title
"" // Image Description
]
);

// Dome II Truss Assembly (2 bars)
addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"DomeII3", // Page Name
"../images/partdetails/dome2_truss.jpg", // Image File
"Dome II", //Image Caption/Title
"Truss Assembly (2 bars)", //Image Sub Caption/Title
"" // Image Description
]
);

strDescription = "<p>(4) Flex Rod Assembly - Consists of 1 Flex Rod. Does not include the Extension Peak (metal tube) or the Center Hub.</p>"
strDescription += "<p>(5)  Center Hub</p>"
strDescription += "<p>(6)  Extension Peak (metal tube)</p>"

// Dome II Flex Rod, Center Hub, and Extension Peak
addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"DomeII4-6", // Page Name
"../images/partdetails/dome2-flex-rod-blowup.jpg", // Image File
"Dome II", //Image Caption/Title
"Flex Rod Assembly, Center Hub, and Extension Peak", //Image Sub Caption/Title
strDescription // Image Description
]
);

// Dome II Outer leg slider
addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"DomeII8", // Page Name
"../images/partdetails/dome2_2prong.jpg", // Image File
"Dome II", //Image Caption/Title
"Outer Leg Slider", //Image Sub Caption/Title
"2 Prong" // Image Description
]
);

// Dome II Outer leg slider- 3 prong
addPageData (
aryPageElements = [
intPageCounter, // PageArray Index - Do not modify, delete or move!
"DomeII83", // Page Name
"../images/partdetails/dome2_3prong.jpg", // Image File
"Dome II", //Image Caption/Title
"Outer Leg Slider", //Image Sub Caption/Title
"3 Prong" // Image Description
]
);

/**** Window Data ****/

// Add Window Data
addPopUpWindowData (
aryPopUpWindowElements = [
intPopUpWindowCounter, // Window Array Index - Do not modify to delete!
"PopUp1", // PopUp Window name
"popup_window.html", // PopUp Window File
500, // Width
420, // Height
"no", // Display ToolBar
"no", // Display MenuBar
"yes", // Display ScrollBars
"yes", // Make Window Resizable
"no", // Show StatusBar
"no", // Show LocationBar
5, // Window Position Left
50 // Window Postion Top
]
);

// Add Window Data
addPopUpWindowData (
aryPopUpWindowElements = [
intPopUpWindowCounter, // Window Array Index - Do not modify to delete!
"PopUp2", // PopUp Window name
"popup_window2.html", // PopUp Window File
520, // Width
400, // Height
"no", // Display ToolBar
"no", // Display MenuBar
"yes", // Display ScrollBars
"yes", // Make Window Resizable
"no", // Show StatusBar
"no", // Show LocationBar
5, // Window Position Left
50 // Window Postion Top
]
);