/* base clientside functions used*/var nsOverlay;function returnHome(){	document.location = base_url;}function launchMedia(sPath, sParams){		var aInfo = (null != sParams)? sParams.split(','): [];// resource url, width, height, params							if(nsOverlay != null) nsOverlay.closeOverlay();				//console.log('[BASE] launchOverlay(w:'+aInfo[1]+', h:'+aInfo[2]+') ');		//contentWidth:aInfo[1], contentHeight:aInfo[2],initialWidth:aInfo[1], initialHeight:aInfo[2],		var tmpObj = {content:sPath, 									baseURL:'',			onClosed: closeMedia.bind()		};				if(sPath != ''){			var ext = sPath.substr(sPath.lastIndexOf(".")+1,3).toLowerCase();			if (ext == "htm" || ext == "php" || ext == "html"){				tmpObj.displayType = 'webpage';			};		}else{			tmpObj.displayType = 'webpage';		};				if (null != aInfo[3]){			var params =  [aInfo[3]];			if (aInfo[3].indexOf('&') != -1){				params = aInfo[3].split('&');			};			for (var i=0; i < params.length; i++){				var option = params[i].split("=");				//alert("option name=" + option[0]);				//alert("option value=" + option[1]);				if(option[1] == "true"){					tmpObj[option[0]] = true;				}else if (option[1] == "false"){					tmpObj[option[0]] = false;				}else{					tmpObj[option[0]] = option[1];				};			};		};				nsOverlay = new LG_overlay(tmpObj);		nsOverlay.openOverlay();		}function closeMedia(){	nsOverlay = null;}
