// JavaScript Document
// copyright 2008 Instant Effects

////////////////////////////////////////////
var themes = new Array();
themes[0] = "Video Cell Phone";
themes[1] = "Video HD TV";
themes[2] = "Video Laptop";
themes[3] = "Video Media Player";
themes[4] = "Video PDA";
themes[5] = "Video E PC";
themes[6] = "Video Wide from Left";
themes[7] = "Video Wide from Bottom";
themes[8] = "Video Std from Top";
themes[9] = "Video Std from Right";

var zipFiles = new Array();
zipFiles[0] = "Located in: Tech Video Inserts";
zipFiles[1] = "Located in: Tech Video Inserts";
zipFiles[2] = "Located in: Tech Video Inserts";
zipFiles[3] = "Located in: Tech Video Inserts";
zipFiles[4] = "Located in: Tech Video Inserts";
zipFiles[5] = "Located in: Tech Video Inserts";
zipFiles[6] = "Located in: Expanding Screens";
zipFiles[7] = "Located in: Expanding Screens";
zipFiles[8] = "Located in: Expanding Screens";
zipFiles[9] = "Located in: Expanding Screens";

var desc = new Array();
desc[0] = "The flip style cell phone animates open on display. Screen image can be customized with video.";
desc[1] = "High definition television. Plays Video. Good for wide format images.";
desc[2] = "Laptop opens on display. Desktop image is a video clip";
desc[3] = "Portable media player with customizable video screen image";
desc[4] = "Personal digital assistant with customizable video screen image";
desc[5] = "Deskside type 'tower' PC with customizable video screen image.";
desc[6] = "Video insert screens that fade in and and scale up from all 4 slide edges.";
desc[7] = "Both standard (4:3) and widescreen (16:9) versions included.";
desc[8] = "Chrome rounded corner frame adds a distinctive design element.";
desc[9] = "All video inserts can be oriented arbitrarily by the user.";
////////////////////////////////////////////
var currentImg = null;
function populateList()
{	
	var thumbstr = "";
	for (var i = 0; i < themes.length; i++) {
		thumbstr += '<a href="javascript:setTheme(' + i + ')">';
		thumbstr += '<img class="galleryThumb" id="img' + i + '" src="http://www.officefxonline.com/gallery_assets/' + themes[i] + '.jpg" title="'+themes[i]+'"/>';
	}
	//thumbstr += "</tr></table>";
	var thumbs = document.getElementById('themethumbs');
	thumbs.innerHTML = thumbstr;
}
function setTheme( n )
{
	if (currentImg) {
			currentImg.className="galleryThumb"
	}
	document.getElementById('img'+n).className = "galleryThumbActive";
	currentImg = document.getElementById('img'+n);
	var swfwrap = document.getElementById('swfmovie');
    swfwrap.innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="320" height="240" id="swfobj" align="middle" border=0><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://www.officefxonline.com/gallery_assets/' + themes[n] + '.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><embed id="emb" src="http://www.officefxonline.com/gallery_assets/' + themes[n] + '.swf" quality="high" bgcolor="#000000" width="320" height="240" name="thecore" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';

	document.getElementById('themeTitle').innerHTML =  themes[n];
	document.getElementById('themePack').innerHTML =  '<a href=downloads_addons.html>' + zipFiles[n] + '</a>';
	document.getElementById('themeDesc').innerHTML = desc[n];
}
// ON LOAD

populateList();
setTheme(0);





