Nokia World 2013 Live Webcast.

Nokia World 2013 Live Webcast.

this.getStartPosition = function ()
{
return this.start_position;
}

this.setStartPosition = function (pos)
{
this.start_position = pos;
}

this.getVolume = function ()
{
if (this.player) {
this.volume = this.player.settings.volume;
}
return this.volume;
}

this.setVolume = function (vol)
{
if (this.player && this.player.settings && vol >= 0 && vol <= 100) { this.volume = vol; this.player.settings.volume = vol; } } this.getSound = function () { if (this.player) { this.sound_on = !this.player.settings.mute; } return this.sound_on; } this.setSound = function (sound_on) { if (this.player && this.player.settings) { this.sound_on = sound_on; this.player.settings.mute = !sound_on; } } this.setFullscreen = function (fullscreen) { if (this.player) { this.fullscreen = fullscreen; this.player.fullScreen = fullscreen; } } this.show = function (show) { var wme_div = document.getElementById("wmv_cnt_outer"); if (wme_div) { //wme_div.style.visibility = show? "visible" : "hidden"; wme_div.style.display = show? "block" : "none"; } } } /* displays a third party content on top of flash */ function ThirdPartyOverlay() { this.visible = false; this.display = function (task, url) { if (task == "hide" && !this.visible) return; //var tpc = document.getElementById("third_party_content"); var tpci = document.getElementById("third_party_content_iframe"); if (tpci) { tpci.src = url; this.visible = task == "show" && url != ""; tpci.style.display = this.visible ? "block" : "none"; } } // set position of overlay this.setXY = function (left, top) { var tpci = document.getElementById("third_party_content_iframe"); if (tpci) { tpci.style.left = left + "px"; tpci.style.top = top + "px"; } } // set size of overlay this.setSize = function(width, height) { var tpci = document.getElementById("third_party_content_iframe"); width = (width > 0)? width : 0;
height = (height > 0)? height : 0;
if (tpci) {
tpci.style.width = width + “px”;
tpci.style.height = height + “px”;
tpci.width = width + “px”;
tpci.height = height + “px”;
}
}
}

/**
* called by flash to load custom tracking page
*/
function loadCustomReporting(url)
{
document.getElementById(“reporting_frame”).src = url;
}

/*
* called by flash to announce that it’s ready
*/
function flashReady()
{
flash_player = document.getElementById(“swf_player”);
}

/*
* called by flash to trigger a redirect to a different url
*/
function redirectTo(url)
{
document.location = url;
}

var resizeTimeout = null;

/**
* resizes flash to a certain size
*
* @param size:Object {width, height}
* @param retries:int number of tries to resize window
*/
function resizeFlash(size, retries)
{
retries = retries || 0;

if (resizeTimeout != null) {
window.clearTimeout(resizeTimeout);
resizeTimeout = null;
}

if (parent.location == document.location) { // only scale window if this is not an iframe
try {
if (browserCheck.browser_type == “gecko”) {
window.innerHeight = size.height;
window.innerWidth = size.width;
} else if (browserCheck.browser_type == “safari”) {
var innerWidth = window.innerWidth, innerHeight = window.innerHeight;
if (innerWidth == size.width + 2 && innerHeight == size.height + 2) return;
top.window.resizeTo(size.width, size.height);
var innerWidth = window.innerWidth;
var innerHeight = window.innerHeight;
var disWidth = size.width – innerWidth;
var disHeight = size.height – innerHeight;
window.resizeTo(size.width + disWidth + 2, size.height + disHeight + 2);
} else if (browserCheck.browser_type == “ie” || browserCheck.browser_type == “opera”) {
var innerWidth = document.body.clientWidth, innerHeight = document.body.clientHeight;
if (innerWidth == size.width && innerHeight == size.height) return;
document.body.style.overflow = “hidden”; // Prevent scrollbars from spoiling sizing calculation
top.window.resizeTo(size.width, size.height);
var fn = function() {
var innerWidth = document.body.clientWidth, innerHeight = document.body.clientHeight;
top.window.resizeTo(size.width + (size.width – innerWidth), size.height + (size.height – innerHeight));
document.body.style.overflow = “auto”; // Reset to original value;
};
browserCheck.browser_version > 8 ? resizeTimeout = window.setTimeout(fn, 1000) : fn(); // Delay correctional run for IE9 since “resizeTo()” seems to be handled asynchronously, leading to miscalculation of correctional offsets
} else if (browserCheck.browser_type == “chrome”) {
// make it slightly too small first and then to the right size as going from bigger to small would show srollbars
top.window.resizeTo(size.width + 8, size.height + 56);
top.window.resizeTo(size.width + 10, size.height + 58);
} else {
top.window.resizeTo(size.width, size.height);
}
} catch(e) {
if (retries <= 1) { retries++; resizeTimeout = window.setTimeout("resizeFlash({width:" + size.width + ", height: " + size.height + "}, " + retries + ")", 2000); } } } document.getElementById("fla_cnt").style.width = size.width + "px"; document.getElementById("fla_cnt").style.height = size.height + "px"; document.getElementById("outer_cnt").style.width = size.width + "px"; document.getElementById("outer_cnt").style.height = size.height + "px";