// p11 javascript - feel free to use

function create(FO) {
	document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"' +
								'width="' + FO.width + '" height="' + FO.height + '" wmode="transparent" id="' + FO.name + '">' +
								'<param name="allowScriptAccess" value="sameDomain" />' +
            		'<param name="movie" value="' + FO.movie + '" />' +
            		'<param name="quality" value="high" />' +
            		'<param name="wmode" value="transparent">' +
            		'<embed src="' + FO.movie + '" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"' + 
								'width="' + FO.width + '"' +
								'height="' + FO.height + '"' +
								'name="' + FO.name + '"' +
								'wmode="transparent" swliveconnect="true" allowScriptAccess="sameDomain"></embed></object>');
};


//function create(FO) {
	//document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="'
					//+ FO.width + '" height="' + FO.height + '" wmode="transparent">'+'<PARAM NAME=movie VALUE="' + FO.movie + '">'+
					//'<PARAM NAME="quality" value="high"><param name="wmode" value="transparent">'+'<EMBED src="' + FO.movie + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'
					//+ FO.width +'" height="' + FO.height + '" swliveconnect="true" wmode="transparent">'+'</embed></object>');
//};

// Call Example - javascript:p11pop('http://www.google.com','testWindow','scrollbars=yes,resizable=yes','500','500','yes')
// What that means - p11pop('location','windowName','features','width','height','centered')
// Feature Options - toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes

var win = null;
function p11pop(theURL,winName,features,w,h,centered) { //v2.0
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	if (centered == 'yes') {
	realFeatures = (features+',top='+TopPosition+',left='+LeftPosition+',width='+w+',height='+h);
	}
	else {
	realFeatures = (features+',width='+w+',height='+h+'left=0,top=0');
	}
	win = window.open(theURL,winName,realFeatures);
}

// lighwindow flash call
// getURL("javascript:openLightWindow('lightwindow/redirect.html?goto=http://www.livestonegate.com/interestlist.html','','950','570');");

function openLightWindow(myURL,myTitle,myWidth,myHeight) {    
	myLightWindow.activateWindow({href:myURL,title: myTitle, width: myWidth, height: myHeight}); 
} 