/*********** Misc Functions ***********/
function openPopUp(inURL,inWidth,inHeight)
{
	windowOptions = 'toolbar=no,location=no,resizable=yes,scrollbars=yes,menubar=no,width=' + inWidth + ',height=' + inHeight;
	newWindow = window.open(inURL,'newWin',windowOptions);
}

function printMe()
{
	window.print();
}

/*
window.onbeforeprint = function(e)
{
	document.getElementById("scroll_content").style.height = "auto";
	document.getElementById("slide_down").style.display = 'none';
}

window.onafterprint = function(e)
{
	document.getElementById("slide_up").style.display = 'inline';
}
*/


function setPage(inPage)
{
	if(inPage != "Welcome")
	{
		document.getElementById(inPage).style.fontWeight = "bold";
		document.getElementById(inPage).style.color = "black";
	}
}


/*** swap product images ***/
function showProduct(in_product)
{
	var content_hide_divs = document.getElementsByTagName("DIV");
	
	for(var i=0; i < content_hide_divs.length; i++)
	{
		if(content_hide_divs[i].className.match("content_hide"))
			content_hide_divs[i].style.display = "none";
	}
	
	document.getElementById(in_product).style.display = "block";	
	
}


/*** swap eu videos ***/
function showEUVideo(in_video)
{
	/*
	var match_class = "eu_video";
	var kids = document.getElementsByTagName("SPAN");
	
	for(var i=0; i < kids.length; i++)
	{
		if(kids[i].className.match(match_class))
			kids[i].innerHTML = '';
	}
	*/
	
	var this_id = document.getElementById(in_video + '_a');
	var video_dims = this_id.rel.split('x');
	// var in_video_html = '<br>';

	var flashvars = {};
	flashvars.flv =  "/resources/videos/floseal/" + in_video + ".flv";

	var params = {};
	params.scale = "noscale";

	var attributes = {};
	swfobject.embedSWF("/resources/videos/VideoPlayer.swf", in_video, video_dims[0], video_dims[1], "9.0.0", false, flashvars, params, attributes);

	/*
	in_video_html += '<object width="' + video_dims[0] + '" height="' + video_dims[1] + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0">';
	in_video_html += '<param name="quality" value="high">';
	in_video_html += '<param name="scale" value="noscale">';
	in_video_html += '<param name="wmode" value="transparent">';
	in_video_html += '<param name="movie" value="/resources/videos/flvplay.swf">';
	in_video_html += '<param name="FlashVars" value="&streamName=/resources/videos/floseal/' + in_video + '.flv&skinName=/resources/videos/flvskin&autoPlay=true&autoRewind=true">';
	in_video_html += '<embed width="' + video_dims[0] + '" height="' + video_dims[1] + '" flashvars="&streamName=/resources/videos/floseal/' + in_video + '.flv&autoPlay=true&autoRewind=true&skinName=/resources/videos/flvskin" quality="high" scale="noscale" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="/resources/videos/flvplay.swf" wmode="transparent"></embed>';
	in_video_html += '</object>';

	document.getElementById(in_video).innerHTML = in_video_html;
	*/
}

/*
function showEUVideo(in_video)
{
	var match_class = "eu_video";
	var kids = document.getElementsByTagName("SPAN");
	
	for(var i=0; i < kids.length; i++)
	{
		if(kids[i].className.match(match_class))
			kids[i].innerHTML = '';
	}

	var this_id = document.getElementById(in_video + '_a');
	var video_dims = this_id.rel.split('x');
	var in_video_html = '<br>';

	in_video_html += '<object width="' + video_dims[0] + '" height="' + video_dims[1] + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0">';
	in_video_html += '<param name="quality" value="high">';
	in_video_html += '<param name="scale" value="noscale">';
	in_video_html += '<param name="wmode" value="transparent">';
	in_video_html += '<param name="movie" value="/resources/videos/flvplay.swf">';
	in_video_html += '<param name="FlashVars" value="&streamName=/resources/videos/floseal/' + in_video + '.flv&skinName=/resources/videos/flvskin&autoPlay=true&autoRewind=true">';
	in_video_html += '<embed width="' + video_dims[0] + '" height="' + video_dims[1] + '" flashvars="&streamName=/resources/videos/floseal/' + in_video + '.flv&autoPlay=true&autoRewind=true&skinName=/resources/videos/flvskin" quality="high" scale="noscale" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="/resources/videos/flvplay.swf" wmode="transparent"></embed>';
	in_video_html += '</object>';

	document.getElementById(in_video).innerHTML = in_video_html;
}
*/









