<!--
var xChildWindow = null;
function popUp(sUrl)
{
	var features = "left=30,top=0,width=400,height=400,location=0,menubar=0,resizable=1,scrollbars=1,statusbar=1,status=1,toolbar=0";
	xChildWindow = window.open("/v7/photosdisplay.html?cat="+sUrl, "PhotosView", features);
	xChildWindow.focus();
}

var xPopUpChildWindow = null;
function popUpWindow(sUrl)
{
	var features = "left=30,top=0,width=550,height=500,location=0,menubar=0,resizable=1,scrollbars=1,statusbar=1,status=1,toolbar=0";
	if (xPopUpChildWindow && !xPopUpChildWindow.closed) 
	{
		xPopUpChildWindow.location.href = sUrl;
	}
	else 
	{
		xPopUpChildWindow = window.open(sUrl, "AudioDisplay", features);
	}
	xPopUpChildWindow.focus();
}

function MM_findObj(n, d) 
{
	var p,i,x;  
	if (!d) d=document; 
	if ((p=n.indexOf("?"))>0&&parent.frames.length) 
	{
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
	}
	if (!(x=d[n])&&d.all) x=d.all[n]; 
	for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for (i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if (!x && d.getElementById) x=d.getElementById(n); 
	return x;
}

function MM_swapImgRestore() 
{
	var i,x,a=document.MM_sr; 
	for (i=0; a&&i<a.length&&(x=a[i])&&x.oSrc; i++)
	{ 
		x.src=x.oSrc;
	}
}

function MM_swapImage() 
{
	var i,j=0,x,a=MM_swapImage.arguments; 
	document.MM_sr=new Array; 
	for (i=0;i<(a.length-2);i+=3)
	{
		if ((x=MM_findObj(a[i]))!=null)
		{
			document.MM_sr[j++]=x; 
			if(!x.oSrc)
			{
				x.oSrc=x.src;
			}
			x.src=a[i+2];
		}
	}
}

function MM_newImage(arg) 
{
	if (document.images) 
	{
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function MM_hideAllids(ids, n) 
{
	for (var i=0; i<n; i++)
	{
		if (document.getElementById) 
		{ // DOM3 = IE5, NS6
			document.getElementById(ids[i]).style.display = 'none';
		}
		else 
		{
			if (document.layers) 
			{ // Netscape 4
				document.ids[i].display = 'none';
			}
			else 
			{ // IE 4
				document.all.ids[i].style.display = 'none';
			}
		}
	}
}

function MM_showHide() 
{
	var i,p,v,obj,args=MM_showHide.arguments;
	for (i=0; i<(args.length-2); i+=3)
	{ 
		if ((obj=MM_findObj(args[i]))!=null) 
		{ 
			v=args[i+2];
			if (obj.style) 
			{ 
				obj=obj.style; 
				v=(v=='block')?'visible':(v=='hide')?'none':v; 
			}
			obj.display=v; 
		}
	}
}

function MM_showSub(name) 
{
	var sub = document.getElementById(name).style;
	if (sub.display=="block")
	{
		sub.display="none";
	}
	else
	{
		sub.display="block";
	}
}

function MM_switchId(ids, n, name) 
{
	MM_hideAllids(ids, n);
	MM_showSub(name);
}

function MM_writedata(imglink, id)
{
	document.getElementById(id).value = imglink;
}

function MM_calculatorpostage(amount, id1, id2, type) 
{
	var subtotal = 0.0;
	if (type == "U10")
	{
		subtotal = 0.1 * amount;
		if (subtotal < 5)
		{
			subtotal = 5;
		}
	}
	else if (type == "U11")
	{
		subtotal = 0.25 * amount;
		if (subtotal < 10)
		{
			subtotal = 10;
		}
	}
	else
	{
		subtotal = 0.3 * amount;
		if (subtotal < 10)
		{
			subtotal = 10;
		}
	}
	
	document.getElementById(id1).value = subtotal;
	
	var totalamount = (amount * 1.0) + subtotal;
	document.getElementById(id2).value = totalamount;
}

function MM_setHtmlText(id, text)
{
	document.getElementById(id).innerHTML = text;
}

function MM_setHtmlBgColor(id, colors)
{
	var sel = document.getElementById(id);
	if (sel.currentStyle)
	{
		sel.style.backgroundColor = colors;
	}
	else
	{
		sel.style.setProperty("background-color", "colors");
	}
}

function MM_setCookie( name, value, exp_y, exp_m, exp_d, path, domain, secure )
{
	var cookie_string = name + "=" + escape ( value );

	if ( exp_y )
	{
		var expires = new Date ( exp_y, exp_m, exp_d );
		cookie_string += "& expires=" + expires.toGMTString();
	}
	if ( path )
	{
		cookie_string += "& path=" + escape ( path );
	}
	if ( domain )
	{
		cookie_string += "& domain=" + escape ( domain );
	}
	if ( secure )
	{
		cookie_string += "& secure";
	}
	
	document.cookie = cookie_string;
}

function MM_getCookie(name) 
{
	var nameEQ = name + "=";
	var ca = document.cookie.split('&');
	for(var i=0; i<ca.length; i++) 
	{
		var c = ca[i];
		while (c.charAt(0)==' ')
		{ 
			c = c.substring(1,c.length);
		}
		if (c.indexOf(nameEQ) == 0)
		{ 
			return c.substring(nameEQ.length,c.length);
		}
	}
	return null;
}

function MM_limitText(limitField, limitCount, limitNum) 
{
	if (limitField.value.length > limitNum) 
	{
		limitField.value = limitField.value.substring(0, limitNum);
	} 
	else 
	{
		limitCount.value = limitNum - limitField.value.length;
	}
}

function MM_windowLocation(userLocation)
{
	window.location = userLocation;
}

function MM_resizeIframe(iframeName)
{
	var iframe = document.getElementsByName(iframeName);
	if(iframe[0].contentDocument) 
	{
		iframe[0].height = iframe[0].contentDocument.documentElement.scrollHeight; //FF 3.0.11, Opera 9.63, and Chrome
	}
	else
	{
		iframe[0].height = iframe[0].contentWindow.document.body.scrollHeight; //IE6, IE7
		iframe[0].Document.body.style.overflowY = "hidden";
	}
}
//-->