
function popWin(target,wd,ht) {
	
	xPos = (screen.width - wd)/2;
	yPos = (screen.height - ht)/2;
	
	tmpStr = "location=no,menubar=no,directories=no,toolbar=no,status=no,personalbar=no,titlebar=no,scrollbars=yes,dependent=yes,resizable=yes,width="+wd+",height="+ht+",top="+yPos+",left="+xPos+"";
	
	newWindow=window.open(target,'newWin',tmpStr);
	
	newWindow.document.close();
	newWindow.focus();
}

function showPop(id) {
	var popScrn = top.document.getElementById('popScrn');
	var popDiv = top.document.getElementById(id);
	
	var winWidth = top.document.documentElement.clientWidth;
	var winHeight = top.document.documentElement.clientHeight;
	var scrHeight = top.document.documentElement.scrollTop;
	var scrollHeight = top.document.documentElement.scrollHeight;
	
	popScrn.style.display = 'block';
	popScrn.style.height = scrollHeight+'px';
	popDiv.style.display = 'block';
	
	xPos = (winWidth - popDiv.offsetWidth)/2;
	yPos = (winHeight - popDiv.offsetHeight)/2 + scrHeight;

	popDiv.style.left = xPos + 'px';
	popDiv.style.top = yPos + 'px';
}

function hidePop(id) {
	document.getElementById('popScrn').style.display='none';
	document.getElementById(id).style.display = 'none';
}

/*
//this fix circumvents the "click to view" hotfix implements for Windows XP and Windows 2003 server users with IE6
function flash_write(file, width, height, trackID) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="movie" ><param name="movie" value="'+file+'" /><param name="wmode" value="transparent" /><param name="menu" value="false" /><param name="bgcolor" value="#FFFFFF" /><param name="wmode" value="transparent" /><param name="menu" value="false" /><embed width="'+width+'" height="'+height+'" align="middle" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#ffffff" quality="high" src="'+file+'"/></object>');
}
*/
