function vodPlayerCreate(inWin,inWidth,inHeight,inTop,inLeft) {
  try{
	var thisObj = this;
	var e="",c=",",fTop="top=",fLeft="left=";
	this.n = inWin;
	if (document.layers) { fTop = "screenY"; fLeft = "screenX"; }

	//this.f = "toolbar=no,address=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=0" + c + (inWidth ? "width=" + inWidth + c : e) + (inHeight ? "height=" + inHeight + c : e) + (inTop >=0 ? fTop + inTop + c : e) + (inLeft >=0 ? fLeft + inLeft + c : e);
	this.f = "toolbar=no,address=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no" + c + (inWidth ? "width=" + inWidth + c : e) + (inHeight ? "height=" + inHeight + c : e) + (inTop >=0 ? fTop + inTop + c : e) + (inLeft >=0 ? fLeft + inLeft + c : e);

	this.opened = function() { return this.w && !this.w.closed }
	this.close = function() { if (this.opened()) this.w.close(); }
	this.focus = function() { if (this.opened()) { this.w.resizeTo(inWidth,defaultHeight); this.w.focus(); } }
	this.load = function(inURL) {
		if (this.opened()) {
			this.w.location.href = inURL;
		} else {
			//alert('open window with params ..... ' + this.f);
			this.w = window.open(inURL,this.n,this.f);
		}
		this.focus();
		return false;
	}
  }catch(x){};
}

var agt = navigator.userAgent.toLowerCase();
var appVer = navigator.appVersion.toLowerCase();

//alert(appVer);
var defaultHeight = 485;
var inHeight = 485;
if(appVer.indexOf("msie 7.0")!=-1) {
	defaultHeight = 510;
	inHeight = 510;
}

var inWidth = 768;
var inTop = (screen.availHeight-inHeight)/2;
var inLeft = (screen.availWidth-inWidth)/2;
var vod_popupWin = new vodPlayerCreate("vod_popupWin",inWidth,inHeight,inTop,inLeft);

var vodplayer_params = "?playerSide=vod";
