var in_client = navigator.userAgent.indexOf("(R1")>=0?"yes":"no";var statusPlyrObj = in_client?top.parent.window.external:null;if( in_client=="no" || statusPlyrObj.ComponentVersion("mnetplg:1.0")<=0 ) 	document.cookie="mnplugged=no;domain=.real.com.au;path=/;";/*--------------------------------------*/function readCookie(){        var cookies = document.cookie.split('; ');        for (var i=0; i<cookies.length; i++) {            cookies[i] = cookies[i].split('=');            var cookieName = cookies[i][0];	    if ((cookieName.indexOf('R1EuropeAuth_') ==0 && cookies[i][1]) || (cookieName.indexOf('RNPlayer') ==0 && cookies[i][1]))		return cookieName;	}	return null;}/*---------------------------------------*/function showSignOut() {     document.write("<div id=signOutLink></div>");    updateSignOut();} function updateSignOut() {     if( !document.getElementById("signOutLink") ) { 	setTimeout("updateSignOut()",200);	return;    }     var showLink = false;    var uselink = "javascript:logout()";    var uselink1 = "javascript:loginOpen()";    /* In Browser */    if(in_client == "no") {         if(readCookie())            showLink = true;    /* In Player */    } else {	if(readCookie())            showLink = true;    }     /* same logout page for real uds and 3 party user*/    if (showLink)            document.getElementById("signOutLink").innerHTML = "<a style=\"font-family:verdana,arial;font-size:11px;text-decoration:none; color:#666666;\" href=\"javascript:"+uselink+";\" title=\"Sign Out\" onmouseover=\"this.style.textDecoration='underline'\" onmouseout=\"this.style.textDecoration='none'\"><b>Sign Out</b></a>&nbsp;<br>";    /* ask to login */    else            document.getElementById("signOutLink").innerHTML = "<a style=\"font-family:verdana,arial; font-size:11px; text-decoration:none; color:#666666;\" href=\"javascript:"+uselink1+";\" title=\"Please Sign In\" onmouseover=\"this.style.textDecoration='underline'\" onmouseout=\"this.style.textDecoration='none'\"><font color=e86401><b>Please Sign In</b></font></a>&nbsp;<br>";} function getValue(c,v) {     if(c.indexOf(v) < 0) return "";    var cV = new RegExp(".*" + v +"=([^&]*)(&|$).*");    return c.replace(cV,"$1");} function getUserCookieValue( cookieName ) {     var cookieArray = new Array();    var cRE = new RegExp("(\;|^)[^;]*("+cookieName+")\=([^;]*)(;|$)");    cookieArray = cRE.exec(document.cookie);    if( cookieArray != null )     { 	return cookieArray[3];    }     return "";} function getCookieValue( cookieName ) {     var cookieArray = new Array();var cRE = new RegExp("(\;|^)[^;]*("+cookieName+")\=([^;]*)(;|$)");    cookieArray = cRE.exec(document.cookie);    if( cookieArray != null )     { 	return cookieArray[3];    }     return "";}  
