function open_win(target, wdth, hght)
{
	var targetfile = "";
	targetfile = target + ".html";
	var winprop = "width=" + wdth + ",height=" + hght + ",location=no,resizable=no,status=no,scrollbars=yes,menubar=no";
	win = window.open(targetfile,"", winprop);
}

function open_video_win(target, wdth, hght)
{
	var targetfile= "http://www.stottpilates.com/videos/streaming/"+target+"/"+target+".swf";
	var winprop = "width=" + wdth + ",height=" + hght + ",location=no,resizable=no,status=no,scrollbars=auto,menubar=no,toolbar=no,directories=no";
	window.open(targetfile,'STOTTPILATES', winprop);
}


function open_video_flv(target, wdth, hght)
{
	var targetfile= "http://www.stottpilates.com/videos/flvplayer.swf?strparam=" + target;
	var winprop = "width=" + wdth + ",height=" + hght + ",location=no,resizable=yes,status=no,scrollbars=auto,menubar=no,toolbar=no,directories=no";
	window.open(targetfile,'STOTTPILATES', winprop);
}

function launchWS(winName) {

//window height and width
myHeight = screen.height*.80;
myWidth = 784;

//widow height bounds
if ( myHeight < 556 ) {
myHeight = 556;
} else if (myHeight>700) {
myHeight = 700;
}

//get screen size, and cacl center screen positioning
var height = screen.height;
var width = screen.width;
var leftpos = width / 2 - myWidth / 2;
var toppos = (height / 2 - myHeight / 2) - 40;

//open window
msgWindow=window.open(winName,"ws_window","toolbar=no,location=no,directories=no,resizable=yes,menubar=no,scrollbars=no,status=yes,width=" + myWidth + ",height="+ myHeight + ", left=" + leftpos + ",top=" + toppos);

//focus window
setTimeout('msgWindow.focus()',1);
}


 function open_frame_win(fname, target, wdth, hght)
	{
		if(fname == '')
		{
			var targetfile= "/videos/streaming/"+target+"/"+target+".swf";
		}
		else
		{
			var targetfile= "/videos/streaming/"+fname+"/"+target+"/"+target+".swf";
		}
		var winprop = "width=" + wdth + ",height=" + hght + ",location=no,resizable=no,status=no,scrollbars=auto,menubar=no,toolbar=no,directories=no";
		window.open(targetfile,'STOTTPILATES', winprop);
	}