function showPholiot(p) {
	rgb = '0x' + p.bgcolor.substr(1);
	str  = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" wmode="transparent"';
	str += ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"';
	str += ' width="' + p.width + '"  height="' + p.height + '" id="pholiot">' + "\n";
	str += '<param name=movie value="' + p.url + '" />';
	str += '<param name=quality value="high" />';
	str += '<param name=menu value="' + p.menu + '">';
	str += '<param name=bgcolor value="' + p.bgcolor + '" />';
	str += '<param name="flashvars" value="xmluri=' + p.data_url + '&rgb=' + rgb + '&sw='+p.width+'&sh='+p.height+'" />' + "\n";
	str += '<param name="wmode" value="transparent" />' + "\n";
	str += '<embed src="' + p.url + '"';
	str += ' wmode="transparent" quality="high" menu="' + p.menu + '" bgcolor="' + p.bgcolor + '" width="' + p.width + '" height="' + p.height + '" name="pholiot"';
	str += ' pluginspage="http://www.macromedia.com/go/getflashplayer"';
	str += ' flashvars="xmluri=' + p.data_url + '&rgb=' + rgb + '&sw='+p.width+'&sh='+p.height+'"></embed>' + "\n";
	str += '</object>';
	document.write(str);
}

function pholiotImageOpen(uri,width,height,close){
	newwin = window.open("", "pholiotimg", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,width="+width+",height="+height);
	newwin.window.focus();
	newwin.document.open();
	newwin.document.write('<html><head><title>Pholiot</title></head><body style="margin:0px;padding:0px">');
	if (close) {
		newwin.document.write('<a href="javascript:window.close()">');
	}
	newwin.document.write('<img src="'+uri+'" width="'+width+'" height="'+height+'" style="border:none" />');
	if (close) {
		newwin.document.write('</a>');
	}
	newwin.document.write('</body></html>');
	newwin.document.close();
}

