/**************************************************/
/**  Copyright 2006 Black Diamond Services, Inc. **/
/**  Don Smith - 856-678-3073                    **/
/**  djlsmith@bdsvc.com                          **/
/**************************************************/

/**************************************************/
/**  Function2 to show/hide Detail viewer div     **/
/**  set mode = '' to hide the layer             **/
/**  set mode = 'block' to display the layer     **/
/**************************************************/
function toggleViewer(mode)
	{
	modeDisp = (mode == 'block')? 'none' : 'block';
	if (document.getElementById)
		{
		// this is the way the standards work
		var style2 = document.getElementById('details').style;
		style2.display = mode;
		}
	else if (document.all)
		{
		// this is the way old msie versions work
		var style2 = document.all['details'].style;
		style2.display = mode;
		}
	else if (document.layers)
		{
		// this is the way nn4 works
		var style2 = document.layers['details'].style;
		style2.display = mode;
		}
	}
	
function toggleViewer2(mode)
	{
	modeDisp = (mode == 'block')? 'none' : 'block';
	if (document.getElementById)
		{
		// this is the way the standards work
		var style2 = document.getElementById('details2').style;
		style2.display = mode;
		}
	else if (document.all)
		{
		// this is the way old msie versions work
		var style2 = document.all['details2'].style;
		style2.display = mode;
		}
	else if (document.layers)
		{
		// this is the way nn4 works
		var style2 = document.layers['details2'].style;
		style2.display = mode;
		}
	}
	
function toggleViewer3(mode)
	{
	modeDisp = (mode == 'block')? 'none' : 'block';
	if (document.getElementById)
		{
		// this is the way the standards work
		var style2 = document.getElementById('details3').style;
		style2.display = mode;
		}
	else if (document.all)
		{
		// this is the way old msie versions work
		var style2 = document.all['details3'].style;
		style2.display = mode;
		}
	else if (document.layers)
		{
		// this is the way nn4 works
		var style2 = document.layers['details3'].style;
		style2.display = mode;
		}
	}
	
function toggleViewer4(mode)
	{
	modeDisp = (mode == 'block')? 'none' : 'block';
	if (document.getElementById)
		{
		// this is the way the standards work
		var style2 = document.getElementById('details4').style;
		style2.display = mode;
		}
	else if (document.all)
		{
		// this is the way old msie versions work
		var style2 = document.all['details4'].style;
		style2.display = mode;
		}
	else if (document.layers)
		{
		// this is the way nn4 works
		var style2 = document.layers['details4'].style;
		style2.display = mode;
		}
	}
	
function loadAudio(theURL)
 {
 document.toggler.action = theURL;
 document.toggler.submit();
 toggleViewer('block');
 }
	
function loadAudio1(theURL)
 {
 document.toggler.action = theURL;
 document.toggler.submit();
 toggleViewer2('block');
 }
	
function loadAudio2(theURL)
 {
 document.toggler3.action = 'empty.html';
 document.toggler3.submit();
 toggleViewer4('none');
 document.toggler2.action = 'empty.html';
 document.toggler2.submit();
 toggleViewer3('none');
 document.toggler.action = theURL;
 document.toggler.submit();
 toggleViewer2('block');
 }
	
function loadTrailer(theURL)
 {
 document.toggler3.action = 'empty.html';
 document.toggler3.submit();
 toggleViewer4('none');
 document.toggler.action = 'empty.html';
 document.toggler.submit();
 toggleViewer2('none');
 document.toggler2.action = theURL;
 document.toggler2.submit();
 toggleViewer3('block');
 }
	
function loadDVD(theURL)
 {
 document.toggler.action = 'empty.html';
 document.toggler.submit();
 toggleViewer2('none');
 document.toggler2.action = 'empty.html';
 document.toggler2.submit();
 toggleViewer3('none');
 document.toggler3.action = theURL;
 document.toggler3.submit();
 toggleViewer4('block');
 }