// JavaScript Document
//GLOBALS
var igblvid_ID = 0;
var igblvid_TITLE = 1;
var igblvid_DURATION = 2;
var igblvid_SYNOPSIS = 3;
var igblvid_LINK = 4;
var igblvid_LINKTEXT = 5;
var igblvid_DATE = 6;

var arygblGallery = [
					 /*** note: insert the most recent entry at the top of the array.  **/

['asa-overview-albert','ACCESS Company Introduction','2:10',
'An introduction to ACCESS and its technologies',
'http://www.access-company.com/home.html',
'Learn more about ACCESS &raquo;', 'November 25, 2009'],

['dlna-racecar-overview','NetFront Living Connect','3:34',
'DLNA solution for multimedia home networks.',
'http://www.access-company.com/products/internet_appliances/livingconnect/index.html',
'Learn more about NetFront Living<br/> Connect &raquo;', 'March 18, 2009'],

/*
['alp-didier-overview','ACCESS Linux Platform - Overview','2:35',
'Find out about the key features of ALP.',
'http://www.access-company.com/products/platforms/linux/alp.html',
'Learn more about ALP &raquo;', 'February 3, 2009'],
*/


['adn-larry-overview','ACCESS Developer Network - Overview','2:24',
'Find out what the ACCESS Developer Network is all about.',
'http://www.accessdevnet.com/',
'Learn more about ADN &raquo;', 'February 2, 2009'],

/*
['alp-board-overview','ACCESS Linux Platform - Overview','4:13',
'Learn what ALP is all about.',
'http://www.access-company.com/products/platforms/linux/alp.html',
'Learn more about ALP &raquo;', 'January 28, 2009'],


['alp-board-widget','ACCESS Linux Platform - Widgets','1:11',
'See how to use widgets on ALP.',
'http://www.access-company.com/products/platforms/linux/alp.html',
'Learn more about ALP &raquo;', 'January 23, 2009'],

['alp-board-browser','ACCESS Linux Platform - Browser','3:04',
'See how to use the browser on ALP.',
'http://www.access-company.com/products/platforms/linux/alp.html',
'Learn more about ALP &raquo;', 'January 23, 2009'],

['alp-board-photos','ACCESS Linux Platform - Photos','3:10',
'See how to use view photos on ALP.',
'http://www.access-company.com/products/platforms/linux/alp.html',
'Learn more about ALP &raquo;', 'January 23, 2009'],
*/

['nfb-mgd-start','NetFront Browser on a Gaming Device','1:49',
'Access NetFront Browser on a popular gaming device.',
'http://www.access-company.com/products/mobile_solutions/netfrontmobile/browser/index.html',
'Learn more about NetFront Browser &raquo;', 'January 22, 2009'],

['corp-profile','ACCESS - Corporate Profile','6:46',
'ACCESS history and technologies',
'http://www.access-company.com/about/index.html',
'Learn more about ACCESS &raquo;', 'January 21, 2009'],

['nfw-htctf','NetFront Widgets','1:22<br /><br />',
'See NetFront Widgets on an HTC TouchFlow.',
'http://www.access-company.com/products/mobile_solutions/netfrontmobile/browser/widgets.html',
'Learn more about NetFront Widgets &raquo;', 'January 9, 2009'],		
					
['nfb-sne-start','Accessing the NetFront Browser','0:34',
'Start NetFront Browser on a Sony Ericsson Walkman phone.',
'http://www.access-company.com/products/mobile_solutions/netfrontmobile/browser/index.html',
'Learn more about NetFront Browser &raquo;', 'December 23, 2008'],

['nfb-sne-bookmarks','NetFront Browser Bookmarks','0:36',
'Use Bookmarks on a Sony Ericsson Walkman phone.',
'http://www.access-company.com/products/mobile_solutions/netfrontmobile/browser/index.html',
'Learn more about NetFront Browser &raquo;', 'December 23, 2008'],
		
['nfb-sne-fullscreen','NetFront Browser in Full Screen Mode','0:30',
'Use Full Screen Mode on a Sony Ericsson Walkman phone.',
'http://www.access-company.com/products/mobile_solutions/netfrontmobile/browser/index.html',
'Learn more about NetFront Browser &raquo;', 'December 23, 2008'],
						
['nfb-stb-dtvprofilebml','NetFront Browser BML Profile','0:41',
'Enhance  television with NetFront Browser BML Profile.',
'http://www.access-company.com/products/internet_appliances/netfrontdtv/dtv_profile.html',
'Learn more about NetFront Browser BML Profile &raquo;', 'December 22, 2008']							


				 	];

//create associative arry
for(var iIndex = 0; iIndex < arygblGallery.length; iIndex++) 
{
	arygblGallery [arygblGallery[iIndex][igblvid_ID]] = arygblGallery[iIndex];
}//end for


//**************************

function vidCopyright()
{
	document.write('&copy; 2009 ACCESS CO., LTD. All rights reserved.');
}

//**************************

function vidFooterRight()
{
	document.write('<a class="footer" href="http://www.access-company.com/about/legal.html">Legal</a> | <a class="footer" href="http://www.access-company.com/about/contact/index.html">Contact ACCESS</a>');
}

//****************************

function vidGallery(iGalleryIndex)
{
	var strThumbnailCode = '<span class="view-all-clip-block">';
	
	strThumbnailCode += '<img src="accordion/images/' + arygblGallery[iGalleryIndex][igblvid_ID] + '.jpg" class="view-all-thumb" alt="" onclick="accordionPlay(\'' + arygblGallery[iGalleryIndex][igblvid_ID] + '\');"/>';
	
	strThumbnailCode += '<a onclick="accordionPlay(\'' + arygblGallery[iGalleryIndex][igblvid_ID] + '\');">';
	strThumbnailCode += '<span class="view-all-title">' + arygblGallery[iGalleryIndex][igblvid_TITLE] + '</span></a>';
	strThumbnailCode += '<span class="view-all-duration">Duration: ' + arygblGallery[iGalleryIndex][igblvid_DURATION] + '</span>';
	strThumbnailCode += '<span class="view-all-clip-divider"></span></span>';
	strThumbnailCode += '<!---*********-->';
	
	document.write(strThumbnailCode);
}//end function

//*************************

function vidGo()
{
	alert('Go - Search All Videos');	
}// end function

//**************************

//**************************

function vidNowPlaying()
{
	document.getElementById('video_title').innerHTML = arygblGallery[0][igblvid_TITLE];
	document.getElementById('video_synopsis').innerHTML = arygblGallery[0][igblvid_SYNOPSIS];
	document.getElementById('video_duration').innerHTML = 'Duration: ' + arygblGallery[0][igblvid_DURATION];
	document.getElementById('video_link').innerHTML = '<a class="footer" href="' + arygblGallery[0][igblvid_LINK] + '">' +  arygblGallery[0][igblvid_LINKTEXT] + '</a>';	
	document.getElementById('video_date').innerHTML = arygblGallery[0][igblvid_DATE];	
	
	
	document.getElementById('video_embed').innerHTML = '<input type="text" id="text-url" name="text-url" class="text-url" value="http://video.access-company.com/video/swf/' + arygblGallery[0][igblvid_ID] + '-574-auto.swf" />';
	
	var strEmail = 'mailto:?subject=' + arygblGallery[0][igblvid_TITLE] + '&body=http://www.access-company.com/video/swf/' + arygblGallery[0][igblvid_ID] + '-574-auto.swf';
	document.getElementById('video_email').innerHTML = '<a href="' + strEmail + '" class="video_email">&nbsp;</a>';		
	
	var strObjectSwfText = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="574" height="363"  align="middle">';
		
	strObjectSwfText += '<param name="allowScriptAccess" value="sameDomain" />';
	strObjectSwfText += '<param name="allowFullScreen" value="false" />';
	strObjectSwfText += ('<param name="movie" value="swf/' + arygblGallery[0][igblvid_ID] + '-574.swf" />');
	strObjectSwfText += '<param name="quality" value="high" />';
	strObjectSwfText += '<param name="bgcolor" value="#ffffff" />';
	strObjectSwfText += ('<embed src="swf/' + arygblGallery[0][igblvid_ID] +'-574.swf" quality="high" bgcolor="#ffffff" width="574" height="363" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');   
	strObjectSwfText += '</object>';
	
	document.getElementById('object-swf').innerHTML = strObjectSwfText;

}//end function


//***********************
function vidWebsites()
{
	document.write('ACCESS Websites: <a class="footer" href="http://www.access-company.com">ACCESS</a> | <a class="footer" href="http://alp.access-company.com/">ACCESS Linux Platform</a> | <a class="footer" href="http://www.accessdevnet.com/">ACCESS Developer Network</a> | <a class="footer" href="http://www.ipinfusion.com/">IP Infusion</a>');
}

//*********************