
function video( videoId, videoWidth, videoHeight, site)
{
	//vars
	var randomnumber = Math.floor(Math.random()*999999999);
	var flashvars = new Array();
	var params =  new Array();
	var attributes = new Array();
	params.allowfullscreen = "true";
	//default values
	if ( !videoId ) exit;
	if ( !videoWidth ) videoWidth = 440;
	if ( !videoHeight ) videoHeight = 330;
	if ( !site ) site = "gv";
	//container
	document.write("<div id='myVideo_" + String(randomnumber) + "'></div>");
	//flash player with video
	swfobject.embedSWF("swf/O3FE_videoplayer.swf?idRecord=" + String(videoId) + "&stream=withControls&site=" + site, "myVideo_" + String(randomnumber), String(videoWidth), String(videoHeight), "9.0.0", "", flashvars, params, attributes);
}


/*
// admin popup start 
var itemId = "";
var itemLabel = "";
var action = "";
var objectId = "";
var preassignedRelations = "";
var preassignedProperties = "";
function openAdminPopup( id_item, label_object, id_object,  action, preassignedRelations, preassignedProperties )
{
	this.itemId = String(id_item);
	this.itemLabel = label_object;
	this.objectId = String(id_object);
	this.action = action;
	this.preassignedRelations = preassignedRelations;
	this.preassignedProperties = preassignedProperties;
	//alert (this.preassignedProperties);
	//this.preassignedProperties = "ciao";
	window.open("main.php", 'adminPanel', 'width=1015, height=500, resizable, status, scrollbars=1, location');
}
// admin popup end 


// login module start 
function submitLogin(field)
{
	document.getElementById("loginForm").submit();
}		
// login module end 	
*/
