// JavaScript Document
// Omedia Interactive, Feb 2010.


//when we have migrated the HTTP files to RSA.com (at the end of March), substitute "http://media.omediaweb.com/rsa2010/" with wherever you are hosting the HTTP files

var keynoteWebcastPath = "http://media.omediaweb.com/rsa2010/"
var sessionWebcastPath = "http://media.omediaweb.com/rsa2010/sessions/"
var expertsWebcastPath = "http://media.omediaweb.com/rsa2010/experts/"

var keynoteMediaPath = "http://rsa.edgeboss.net/download/rsa/rsaconference/2010/us/keynotes/"
var sessionMediaPath = "http://rsa.edgeboss.net/download/rsa/rsaconference/2010/us/track-sessions/"
var expertsMediaPath = "http://rsa.edgeboss.net/download/rsa/rsaconference/2010/us/industry-experts/"


function launchWebcast(path, speaker){
		width = 943;
		height = 672;
		var str = "height=" + height;
		str += ",width=" + width;
		if (window.screen) {
		    var ah = screen.availHeight - 30;
		    var aw = screen.availWidth - 10;

		    var xc = (aw - width) / 2;
		    var yc = (ah - height) / 2;

		    str += ",left=" + xc + ",screenX=" + xc;
		    str += ",top=" + yc + ",screenY=" + yc;
		}

		
		callableWindow = window.open(path + 'webcast.htm?id='+speaker,'RSA_2010_Webcast_UI',str);

}

function launchExclusiveWebcast(path, speaker){
		width = 943;
		height = 672;
		var str = "height=" + height;
		str += ",width=" + width;
		if (window.screen) {
		    var ah = screen.availHeight - 30;
		    var aw = screen.availWidth - 10;

		    var xc = (aw - width) / 2;
		    var yc = (ah - height) / 2;

		    str += ",left=" + xc + ",screenX=" + xc;
		    str += ",top=" + yc + ",screenY=" + yc;
		}

		
		callableWindow = window.open(path + 'webcast-exclusive.htm?id='+speaker,'RSA_2010_Webcast_UI',str);

}

function launchVideoOnly(path, speaker){
		width = 524;
		height = 620;
		var str = "height=" + height + ",innerHeight=" + height;
		str += ",width=" + width + ",innerWidth=" + width;
		if (window.screen) {
		    var ah = screen.availHeight - 30;
		    var aw = screen.availWidth - 10;

		    var xc = (aw - width) / 2;
		    var yc = (ah - height) / 2;

		    str += ",left=" + xc + ",screenX=" + xc;
		    str += ",top=" + yc + ",screenY=" + yc;
		}
		

		callableWindow = window.open(path + 'video-only.htm?id='+speaker,'RSA_Video_Only',str);
}

function launchMP3(path, speaker){
		width = 350;
		height = 150;
		var str = "height=" + height;
		str += ",width=" + width;
		if (window.screen) {
		    var ah = screen.availHeight - 30;
		    var aw = screen.availWidth - 10;

		    var xc = (aw - width) / 2;
		    var yc = (ah - height) / 2;

		    str += ",left=" + xc + ",screenX=" + xc;
		    str += ",top=" + yc + ",screenY=" + yc;
		}
		
		callableWindow = window.open(path + speaker +'.mp3','RSA_2010_MP3',str);

}

function downloadMP3(path, speaker){
		width = 350;
		height = 150;
		var str = "height=" + height;
		str += ",width=" + width;
		if (window.screen) {
		    var ah = screen.availHeight - 30;
		    var aw = screen.availWidth - 10;

		    var xc = (aw - width) / 2;
		    var yc = (ah - height) / 2;

		    str += ",left=" + xc + ",screenX=" + xc;
		    str += ",top=" + yc + ",screenY=" + yc;
		}
		
		callableWindow = window.open(path + speaker +'.zip','RSA_2010_PODCAST',str);

}

