//Popup Function
var newWin = null;
function popUp(strU,strW,strH){
x = (640 - strW)/2, y = (480 - strH)/2;
if(screen){ x = (screen.availWidth - strW)/2; y = (screen.availHeight - strH)/2; }
if(newWin != null && !newWin.closed){ newWin.close(); }
var newOpt = '';
newOpt = 'status,scrollbars=1,width='+strW+',height='+strH+',screenX='+x+',screenY='+y+',top='+y+',left='+x;
newWin = window.open(strU,'newWin',newOpt);
}


//fQuicktime Function
function fQuicktime(hold, path, w, h, autoplay, loop, controller, volume)
{

//Variable Data
var output					= '';

//Create Code
output						= '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="' + path + '" width="' + w + '" height="' + h + '">';
output					   += '<param name="pluginspage" value="http://www.apple.com/quicktime/download/" />';
output					   += '<param name="src" value="' + path + '" />';
output 					   += '<param name="autoplay" value="' + autoplay + '" />';
output					   += '<param name="loop" value="' + loop + '" />';
output					   += '<param name="target" value="view" />';
output					   += '<param name="controller" value="' + controller + '" />';
output					   += '<param name="volume" value="' + volume + '" />';
output					   += '<param name="scale" value="tofit" />';
output					   += '<embed width="' + w + '" height="' + h + '" controller="' + controller + '" scale="tofit" autoplay="' + autoplay + '" volume="' + volume + '" loop="' + loop;
output					   += '" target="view" src="' + path + '" pluginspage="http://www.apple.com/quicktime/download/" bgcolor="#333431" border="0"></embed>';
output					   += '</object>';

//Output Data
document.getElementById(hold).innerHTML = output;

}