<!--#if expr="<X-FC-URL-PARAMETER CONFIG exists>=1"--><X-FC-WHITESPACE [STRIP]>
<!--#rem Generator metadata --> <!--#set var="FMAGENERATOR" value="FirstMagic Today 2.0"-->
<!--#rem Copyright metadata --> <!--#set var="FMACOPYRIGHT" value="$FMAGENERATOR - Copyright Runar Thorvaldsen, 2018 - all rights reserved. See www.webtrait.com"--><!--#set var="FMPUBLISHERURL" value="http://www.webtrait.com"-->
<!--#rem System --> <!--#if expr="`$HTTPS`=`off`"--><!--#set var="HTPREFIX" value="http://"--><!--#else--><!--#set var="HTPREFIX" value="https://"--><!--#endif-->
<!--#set var="DOM1" expr="@lower('$DOCUMENT_URI')"--><!--#set var="DOM2" expr="@split ('$DOM1', '/setup')" --><!--#set var="DOM3" expr="@indexof ('$DOM2', '://')+3" -->
<!--#set var="THISDOMAIN" expr="@substr('$DOM2',$DOM3)"--><!--#set var="APPDOMAIN" value="$HTPREFIX$THISDOMAIN"-->
<!--#if expr="<X-FC-FIELD 1942 NUMBER>=1"--><!--#set var="HTML5" value="true"--><!--#else--><!--#set var="HTML5" value="false"--><!--#endif-->
<!--#set var="USEMINIMOO" value="true"--><!--#set var="USEAPPINCLUDE" value="false"-->
<!--#rem APP Default Path --> <!--#if expr="@length('<X-FC-FIELD 1327 STRING>')>1"--><!--#set var="FMROOTAPPTITLE" value="<X-FC-FIELD 1327 STRING>"--><!--#else--><!--#set var="FMROOTAPPTITLE" value="Today"--><!--#endif-->
<!--#set var="FMROOTAPP" expr="@lower('$FMROOTAPPTITLE')"--><!--#set var="FMROOTLIBRARYTITLE" value="<X-FC-FIELD 1884 STRING>"-->
<!--#set var="FMROOTLIBRARY" expr="@lower('$FMROOTLIBRARYTITLE')"-->
<!--#set var="GENERICBYLINE" value="/Setup?templates=app&formid=2657"-->
<!--#set var="XLOGIN" value="/"--><!--#set var="LOOKUPID" value="&formid=160"--><!--#set var="POLLID" value="&formid=164"-->
<!--#if expr="<X-FC-FIELD 1328 NUMBER>==1"--><!--#set var="HASBANNERS" value="true"--><!--#else--><!--#set var="HASBANNERS" value="false"--><!--#endif-->
<!--#set var="BANNERPATH" expr="@lower('<X-FC-FIELD 1329 STRING>')"--><!--#set var="BANNERFILENAME" expr="@lower('<X-FC-FIELD 1335 STRING>')"-->
<!--#rem Softer text --> <!--#if expr="<X-FC-FIELD 1561 NUMBER>=1"--><!--#set var="DOANTIALIAS" value="true"--><!--#else--><!--#set var="DOANTIALIAS" value="false"--><!--#endif-->
<!--#rem Dates --> <!--#if expr="<X-FC-FIELD 1771 NUMBER>=1"--><!--#set var="SHOWDATES" value="true"--><!--#else--><!--#set var="SHOWDATES" value="false"--><!--#endif--><!--#if expr="<X-FC-FIELD 1056 NUMBER>==0"-->
<!--#set var="USECLOCK" value="USHOURMIN"--><!--#set var="USFORMAT" value="true"--><!--#elif expr="<X-FC-FIELD 1056 NUMBER>==1"--><!--#set var="USECLOCK" value="USHOURMINSEC"-->
<!--#set var="USFORMAT" value="true"--><!--#elif expr="<X-FC-FIELD 1056 NUMBER>==2"--><!--#set var="USECLOCK" value="EUHOURMIN"--><!--#set var="USFORMAT" value="false"-->
<!--#elif expr="<X-FC-FIELD 1056 NUMBER>==3"--><!--#set var="USECLOCK" value="EUHOURMINSEC"--><!--#set var="USFORMAT" value="false"--><!--#endif-->
<!--#rem Bylines --> <!--#if expr="<X-FC-FIELD 1300 NUMBER>==1"--><!--#set var="APPBYLINE" value="true"--><!--#else--><!--#set var="APPBYLINE" value="false"--><!--#endif-->
<!--#if expr="<X-FC-FIELD 1337 NUMBER>==1"--><!--#set var="PUBLICPROFILES" value="true"--><!--#else--><!--#set var="PUBLICPROFILES" value="false"--><!--#endif-->
<!--#rem Owner Panel --> <!--#if expr="@length('<X-FC-FIELD 1074 STRING>') >3"--><!--#set var="LOGOEXIST" value="true"--><!--#set var="LOGOPATH" value="<X-FC-FIELD 1074 STRING>"--><!--#else-->
<!--#set var="LOGOEXIST" value="false"--><!--#endif--><!--#set var="WTAUTHOR" value="<X-FC-FIELD 1030 STRING>"--><!--#set var="WTDESCRIPTION" value="<X-FC-FIELD 8021 STRING>"-->
<!--#set var="FBLONGITUDE" value="<X-FC-FIELD 1142 STRING>"--><!--#set var="FBLATITUDE" value="<X-FC-FIELD 1144 STRING>"--><!--#set var="CONTACTLINK" value="<X-FC-FIELD 1026 STRING>"-->
<!--#set var="CONTACTSTREET" value="<X-FC-FIELD 1132 STRING>"--><!--#set var="CONTACTPOSTCODE" value="<X-FC-FIELD 1128 STRING>"-->
<!--#set var="CONTACTCITY" value="<X-FC-FIELD 1130 STRING>"--><!--#set var="CONTACTCOUNTRY" value="<X-FC-FIELD 1138 STRING>"-->
<!--#set var="CONTACTPHONE" value="<X-FC-FIELD 1134 STRING>"--><!--#set var="CONTACTFAX" value="<X-FC-FIELD 1136 STRING>"-->
<!--#rem Media Extras --> <!--#if expr="<X-FC-FIELD 1006 NUMBER>=1"--><!--#set var="ENABLEFVM" value="true"--><!--#else--><!--#set var="ENABLEFVM" value="false"--><!--#endif-->
<!--#if expr="<X-FC-FIELD 1355 NUMBER>==1"--><!--#set var="DOAPPSOCIAL" value="true"--><!--#else--><!--#set var="DOAPPSOCIAL" value="false"--><!--#endif-->
<!--#if expr="<X-FC-FIELD 1302 NUMBER>==1"--><!--#set var="STATICGMAPS" value="true"--><!--#else--><!--#set var="STATICGMAPS" value="false"--><!--#endif-->
<!--#set var="MAPAPIKEY" value="<X-FC-FIELD 1303 STRING>"--><!--#set var="APPWEBSITELINK" value="<X-FC-FIELD 1304 STRING>"-->
<!--#set var="APPBLOGLINK" value="<X-FC-FIELD 1305 STRING>"--><!--#set var="APPFACEBOOKLINK" value="<X-FC-FIELD 1306 STRING>"-->
<!--#set var="APPGPLUSLINK" value="<X-FC-FIELD 1307 STRING>"--><!--#set var="APPLINKEDINLINK" value="<X-FC-FIELD 1308 STRING>"--><!--#set var="APPTWITTERLINK" value="<X-FC-FIELD 1309 STRING>"-->
<!--#set var="APPEXTRA1LABEL" value="<X-FC-FIELD 1313 STRING>"--><!--#set var="APPEXTRA1LINK" value="<X-FC-FIELD 1310 STRING>"-->
<!--#set var="APPEXTRA2LABEL" value="<X-FC-FIELD 1311 STRING>"--><!--#set var="APPEXTRA2LINK" value="<X-FC-FIELD 1312 STRING>"--><!--#if expr="<X-FC-FIELD 1338 NUMBER>==1"-->
<!--#set var="GOTAGFIX" value="true"--><!--#else--><!--#set var="GOTAGFIX" value="false"--><!--#endif-->
<!--#if expr="<X-FC-FIELD 1684 NUMBER>=1"--><!--#set var="ENABLEINAPPNAV" value="true"--><!--#else--><!--#set var="ENABLEINAPPNAV" value="false"--><!--#endif-->
<!--#rem Registry Terms --> <!--#rem MYRESUME --><!--#set var="FMARESUME" value="<X-FC-FIELD LANG.144.3 STRING>"--><!--#rem PHONE --><!--#set var="FMAPHONE" value="<X-FC-FIELD LANG.7536.10 STRING>"-->
<!--#rem MOBILE --><!--#set var="FMAMOBILE" value="<X-FC-FIELD LANG.7536.2 STRING>"--><!--#rem DIRECTORY --><!--#set var="FMADIRECTORY" value="<X-FC-FIELD LANG.290.1 STRING>"-->
<!--#rem FAX --><!--#set var="FMAFAX" value="<X-FC-FIELD LANG.243.7 STRING>"--><!--#rem RECENTACTIVITY --><!--#set var="FMARECENTACTIVITY" value="<X-FC-FIELD LANG.6050.27 STRING>"-->
<!--#rem DOWNLOAD --><!--#set var="FMADOWNLOAD" value="<X-FC-FIELD LANG.1106.1 STRING>"--><!--#rem NOTVIEWABLE --><!--#set var="FMANOTVIEWABLE" value="<X-FC-FIELD LANG.400.39 STRING>"-->
<!--#rem MORE --><!--#set var="FMAMORE" value="<X-FC-FIELD LANG.6006.14 STRING>"--><!--#rem LESS --><!--#set var="FMALESS" value="<X-FC-FIELD LANG.6044.1 STRING>"-->
<!--#rem SETUP --><!--#set var="FMASETUP" value="<X-FC-FIELD LANG.1119.1 STRING>"--><!--#set var="FMASETUP" value="<X-FC-FIELD LANG.6048.1 STRING> $WTAUTHOR"-->
<!--#rem NOCONNECTION --><!--#set var="FMANOCONNECTION" expr="@escape('<X-FC-FIELD LANG.100.72 STRING>')"--><!--#set var="FMAPERMALINK" value="<X-FC-FIELD LANG.6050.23 STRING>"-->
<!--#rem NOSTREAM --><!--#set var="FMANOSTREAMFOUND" expr="@escape('<X-FC-FIELD LANG.7511.5 STRING>')"--><!--#rem NOSERVICE -->
<!--#set var="FMANOSERVICE" expr="@escape('<X-FC-FIELD LANG.7514.4 STRING>')"--><!--#set var="FMAMYACCOUNTSETTINGS" value="<X-FC-FIELD LANG.6061.4 STRING>"-->
<!--#rem Custom Terms --> <!--#set var="FMGETAPP" value="Tap here to get our App"--><!--#set var="FMAGETURAPP" value="Get our App"--><!--#set var="FMATAP" value="Tap"-->
<!--#set var="FMAHOME" value="Back to the Homepage"--><!--#set var="FVMINACTIVE" value="FirstVirtualMeeting is not active"-->
<!--#set var="FMANDROIDADDTOHOME" value="on the top right of your screen, and then tap <strong>Add to Home Screen</strong> from the Options Menu. Done!"-->
<!--#set var="FMAGENERICTAP" value="Install our App by tapping <strong>Pin to Home Screen</strong> in your device´s Browser Menu."--><!--#set var="FMAMESSAGE" value=""-->
<!--#set var="FMAIOSADDTOHOME" value="and then tap <strong>Add to Home Screen</strong>. Done!"--><!--#set var="FMALINKTOSITE" value="App Feed:"--><!--#set var="FMANAVDATES" value="Pick a date"-->
<!--#rem Enabling the App --> <!--#if expr="<X-FC-FIELD 1390 NUMBER>==1"--><!--#set var="ENABLEAPP" value="true"--><!--#else--><!--#set var="ENABLEAPP" value="false"--><!--#endif-->
<!--#rem App Setup --> <!--#set var="PRECOMPOSEDICONS" value="false"--><!--#set var="APPWIDTHFIX" value="false"--><!--#set var="INSTALLERPROMPT" value="true"-->
<!--#if expr="@indexof ('$HTTP_USER_AGENT', 'Mobile')>0 || @indexof ('$HTTP_USER_AGENT', 'iPad')>0 || @indexof ('$HTTP_USER_AGENT', 'iPhone')>0 || @indexof ('$HTTP_USER_AGENT', 'Android')>0 || @indexof ('$HTTP_USER_AGENT', 'Windows Phone')>0"--><!--#set var="ACTIONEVENT" value="touchend"--><!--#else--><!--#set var="ACTIONEVENT" value="click"--><!--#endif-->
<!--#if expr="@length('<X-FC-FIELD 1618 STRING>') >1"--><!--#set var="APPDIRECTORY" value="<X-FC-FIELD 1618 STRING>"--><!--#else--><!--#set var="APPDIRECTORY" value="Owner"--><!--#endif-->
<!--#rem App default path --> <!--#set var="APPROOT" value="$APPDOMAIN/$FMROOTAPP"--><!--#set var="TITLELINK" value="$APPDOMAIN/$FMROOTAPP"--><!--#set var="APPCANONICAL" value=""-->
<!--#set var="APPCANONICALBACK" value="/"-->
<X-FC-WHITESPACE [RETAIN]><!--#else--><html lang="en">
<head>
<meta charset="utf-8" /><!--#include virtual="//Setup?templates=app&CONFIG&formid=2658" --><!--#if expr="@indexof ('$QUERY_STRING', '@')>0"--><!--#set var="PERSONALAPP" value="true"--><!--#set var="THISAUTH" expr="@indexof ('$QUERY_STRING', '@')+1" --><!--#set var="FMROOTAPPAUTHOR" expr="@substr('$QUERY_STRING',$THISAUTH)"--><!--#if expr="@indexof ('$FMROOTAPPAUTHOR', '&')>0"--><!--#set var="FMROOTAPPAUTHOR" expr="@split ('$FMROOTAPPAUTHOR', '&')" --><!--#endif--><!--#set var="FMROOTAPP"
value="__open-user/$FMROOTAPPAUTHOR/calendar/?templates=app&formid=160"--><!--#include virtual="/__Open-User/$FMROOTAPPAUTHOR/__resume?templates=app&formid=1002" --><!--#set var="WTAUTHOR" value="$MYNAME"--><!--#set var="APPROOT" value="$APPDOMAIN/$FMROOTAPP"--><!--#else--><!--#set var="PERSONALAPP" value="false"--><!--#endif--><!--#include virtual="/$FMROOTLIBRARY/appterms.inc" --><title><!--#echo var="WTAUTHOR"--></title>
<meta name="robots" content="noindex"/>
<meta name="generator" content="<!--#echo var="FMAGENERATOR"-->"/>
<!--#if expr="$APPWIDTHFIX=true"-->-<meta name="viewport" content="initial-scale=1.0"><!--#else--><meta name="viewport" content="width=device-width" /><!--#endif-->
<meta name="application-name" content="<!--#echo var="WTAUTHOR"-->"/>
<meta name="apple-mobile-web-app-title" content="<!--#echo var="WTAUTHOR"-->"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<!--#if expr="`$USEMINIMOO`=`false`"--><script src="/.templates/lib_mootools.js"></script><!--#else--><script src="/.templates/app/assets/moo.js"></script><!--#endif-->
<link rel="stylesheet" href="/.templates/app/assets/appformat.css"/>
<link rel="stylesheet" href="/<!--#echo var="FMROOTLIBRARY"-->/apptheme.css"-->
<link rel="manifest" href="/<!--#echo var="FMROOTLIBRARY"-->/manifest.json">
<link rel="shortcut icon" href="/<!--#echo var="FMROOTLIBRARY"-->/favicon.ico"/>
<link rel="icon" sizes="128x128" href="/<!--#echo var="FMROOTLIBRARY"-->/icon_128.png">
<link rel="shortcut icon" sizes="192x192" href="/<!--#echo var="FMROOTLIBRARY"-->/icon_192.png">
<link rel="icon" sizes="144x144" href="/<!--#echo var="FMROOTLIBRARY"-->/icon_144.png">
<link rel="apple-touch-icon<!--#if expr="$PRECOMPOSEDICONS=true"-->-precomposed<!--#endif-->" sizes="144x144" href="/<!--#echo var="FMROOTLIBRARY"-->/icon_ios144.png" />
<link rel="apple-touch-icon<!--#if expr="$PRECOMPOSEDICONS=true"-->-precomposed<!--#endif-->" sizes="180x180" href="/<!--#echo var="FMROOTLIBRARY"-->/icon_ios180.png" />
<meta name="msapplication-square150x150logo" content="/<!--#echo var="FMROOTLIBRARY"-->/icon_150.png"/>
</head>
<body><!--#if expr="`$ENABLEAPP`=`true`"-->
<div class="appwrapper" id="fmapp">
<div id="appheader">
<div id="appbtnrow" class="spin">
<input type="button" class="appbtn appreturnmenu" id="btnsreturnbtn"/>
<input type="button" class="appbtn appmyprefs localized" id="apprefsbtn" value=""/>
<input type="button" class="appbtn appabout" value="" id="appaboutbtn"/>
<input type="button" class="appbtn appoll" value="" id="appollbtn"/>
<input type="button" class="appbtn apphome" value="" id="apphomebtn"/>
<div id="apptitle" class="panelheader fctext"></div>
</div>
</div>
<div id="appview" class="appbody" style="opacity:0;visibility:hidden;"></div>
<div id="appoverlay" class="appfaded"></div>
<div id="appcanvas"><input type="button" id="reloadbtn" style="visibility:hidden;opacity:0;"/></div>
<div id="setupguide" class="appanels" style="visibility:hidden;opacity:0;z-index:0;">
<div class="appanelprofile">
<div class="panelheader fctext"><!--#echo var="FMASETUP"--></div>
<div class="mediaitem mediafull sticky<!--#if expr="$HTML5=false" --> xhtmlmedia<!--#else--> html5media<!--#endif-->">
<div class="contentbox appcard fullcard">
<div class="appcardcontent nothumb" style="position:relative;">
<h2><!--#echo var="FMAGETURAPP"--></h2>
<br>
<!--#if expr="@indexof ('$HTTP_USER_AGENT', 'iPhone')>1" -->
<div id="iosnote" class="fctable fctext devicenote">
<br>
<!--#echo var="FMATAP"--> <div class="iosicon"></div> <!--#echo var="FMAIOSADDTOHOME"-->
</div>
<!--#elif expr="@indexof ('$HTTP_USER_AGENT', 'Android')>1" -->
<div id="androidnote" class="fctable fctext devicenote">
<br><!--#echo var="FMATAP"--> <div class="androidicon"></div> <!--#echo var="FMANDROIDADDTOHOME"-->
</div>
<!--#else-->
<div id="genericnote" class="fctable fctext devicenote">
<br><!--#echo var="FMAGENERICTAP"-->
</div>
<!--#endif-->
<div class="fctable fctext devicenote appmessage">
<!--#if expr="@length('$FMAMESSAGE')>0"--><br>
<!--#echo var="FMAMESSAGE"-->
<br><!--#endif-->
<br><br>
<a href="<!--#echo var="APPCANONICALBACK"-->" style="font-weight:700;text-decoration:underline;"><!--#echo var="FMAHOME"--></a>
<br><br>
</div>
<div class="clear"></div>
</div>
</div>
</div>
</div>
</div>
<div id="preferences" class="appanels">
<div class="appanelprofile">
<div class="panelheader fctext"><!--#echo var="FMAMYACCOUNTSETTINGS"--></div>
<a href="javascript:void(0);" class="movepanel moveleft"></a>
<div class="mediaitem mediafull sticky<!--#if expr="$HTML5=false" --> xhtmlmedia<!--#else--> html5media<!--#endif-->">
<div class="contentbox appcard fullcard">
<div class="appcardcontent nothumb" style="position:relative;">
<h2><!--#echo var="FMALINKTOSITE"--></h2>
<div class="fctable fctext" style="position:relative;">
<input id="setstreamlink" type="text" value="" placeholder="Server URL" class="apptxtfield"/>
<div class="smallfctext" id="errornotice"> </div>
<input type="button" id="saveapplink" value="" title="Save" class="appformbtn"/>
</div>
<div class="clear"></div>
</div>
</div>
</div>
</div>
</div>
<div id="publisher" class="appanels">
<a href="javascript:void(0);" class="movepanel moveright"></a>
<div id="publishercontent"></div>
</div>
<div id="appbyline" class="appanels">
<a href="javascript:void(0);" class="movepanel moveright"></a>
<div id="appbylinecontent"></div>
</div>
</div>
<script>
loaddefault=1;
window.addEvent('domready', function(){
defaultappstreamlink='<!--#echo var="APPROOT"-->';
titlelink='<!--#echo var="TITLELINK"-->';
lookupid='<!--#echo var="LOOKUPID"-->';
pollid='<!--#echo var="POLLID"-->';
genericbyline='<!--#echo var="GENERICBYLINE"-->';
apptitle='<!--#echo var="WTAUTHOR"-->';if (apptitle.length >1) defaultapptitle=apptitle; else defaultapptitle='<!--#echo var="FMAGENERATOR"-->';
offlinemsg='<!--#echo var="FMANOCONNECTION"-->';
wrongpathmsg='<!--#echo var="FMANOSTREAMFOUND"--> ';
nopathheader='<!--#echo var="FMANOSERVICE"-->';
var targetTime = new Date();var now = targetTime.getTime();targetTime.setHours(00,00,01,01);var time = targetTime.getTime() - now;if (time > 0) setTimeout(function(){reLoad();},time);
isonline='false';
applookup='';approot='';appstreamlink='';
pingfrequency=3600000;
timeoutdelay=10000;oldstamp=0;newstamp=0;connecterror=0;
document.addEvent('scroll', function(event){doBtnrow();});
$('btnsreturnbtn').addEvent('<!--#echo var="ACTIONEVENT"-->', function(event){$('appheader').set('tween', {duration:600,transition:Fx.Transitions.Expo.easeOut});$('appheader').tween('width',window.scrollWidth),$('btnsreturnbtn').setStyle('display','none');});
$('fmapp').getElements('.movepanel').addEvent('<!--#echo var="ACTIONEVENT"-->', function(event){closePanels();});
$('appoverlay').addEvent('<!--#echo var="ACTIONEVENT"-->', function(event){closePanels();});
$('setstreamlink').addEvent('<!--#echo var="ACTIONEVENT"-->', function(event){showSaveStream();});
$('appollbtn').addEvent('<!--#echo var="ACTIONEVENT"-->', function(event){getFeed();});
$('apphomebtn').addEvent('<!--#echo var="ACTIONEVENT"-->', function(event){refreshHome();});
$('apprefsbtn').addEvent('<!--#echo var="ACTIONEVENT"-->', function(event){doPrefs();});
$('appaboutbtn').addEvent('<!--#echo var="ACTIONEVENT"-->', function(event){<!--#if expr="$PERSONALAPP=true"-->doAppByline();<!--#else-->doPublisher();<!--#endif-->});
$('saveapplink').addEvent('<!--#echo var="ACTIONEVENT"-->', function(){serverLink();});
$('reloadbtn').addEvent('<!--#echo var="ACTIONEVENT"-->', function(){reLoad();});
<!--#if expr="$INSTALLERPROMPT=true && <X-FC-URL-PARAMETER mobilepreview exists>=0"-->
<!--#if expr="@indexof ('$HTTP_USER_AGENT', 'Android')>0"-->if (window.matchMedia('(display-mode:standalone)').matches){doLaunch();}else {$('appheader').setStyle('display','none'),$('setupguide').set('tween', {duration:150}).fade('1');}<!--#else-->if (window.navigator.standalone == true){doLaunch();}else {$('appheader').setStyle('display','none'),$('setupguide').set('tween', {duration:150}).fade('1');}<!--#endif--><!--#else-->doLaunch();<!--#endif--><!--#if expr="`$HASBANNERS`=`true`" -->
var bannerinterval;timeoutdelay=5000;var countBanners = new Request ({url:'<!--#echo var="BANNERPATH"-->?templates=fmlibrary&render',method: 'get',onSuccess: function(response){itemstamp = response,doFirstBanner();if(itemstamp>1) bannerinterval = setInterval("doBanner()", 30000);},timeout:timeoutdelay,onTimeout:function(){itemstamp=1,doFirstBanner();},onFailure: function(){$('appbannerbox').setStyle('display','none'),clearInterval(bannerinterval);}});countBanners.send(); <!--#endif-->});
function refreshHome(){}
function reLoad(){
window.location.reload(true);
}
function GetLinks(){
allLinks = $(document.body).getElements('a');for (var i=0; i<allLinks.length; i++){allLinks[i].target='popnew';}
}
function serverLink(){
newstamp=0,oldstamp=0,myapplink = $('setstreamlink').value;localStorage.setItem('storedLink', myapplink),$('setstreamlink').addClass('spin'),$('saveapplink').set('tween', {duration:150}).fade('0'),doLaunch();
}
function showSaveStream(){
editvalue=($('setstreamlink').value);if (editvalue.indexOf('://')>3)$('saveapplink').set('tween', {duration:300}).fade('1');
}
function doLaunch(){
if (localStorage['storedLink']){appstreamlink = localStorage.getItem('storedLink'),$('setstreamlink').value=(appstreamlink);if (appstreamlink.indexOf('://')>3) applookup=(appstreamlink+'?templates=app'),bits = appstreamlink.split('/'),troot = bits[0],bits2 = bits[2].split(':'),appdom = bits2[0],approot=(troot+'//'+appdom),$('apptitle').innerHTML=('<a class="apptitlelink" id="publishername" href="'+(titlelink)+'" target="browserwin">'+defaultapptitle)+'</a>'; else approot='',$('apptitle').innerHTML=(nopathheader),$('appbtnrow').removeClass('spin'),doPrefs();} else
if (defaultappstreamlink.length >8) appstreamlink=defaultappstreamlink,$('setstreamlink').value=(appstreamlink),approot='<!--#echo var="APPDOMAIN"-->',applookup=(appstreamlink+'?templates=app'),$('apptitle').innerHTML=('<a class="apptitlelink" id="publishername" href="'+(titlelink)+'" target="browserwin">'+defaultapptitle)+'</a>',$('appbtnrow').removeClass('spin');else approot='',$('appbtnrow').removeClass('spin');var pingstamp = new Request ({url:applookup+pollid+'&poll&'+appstreamlink,method: 'get',onSuccess: function(response){isonline='true';newstamp = response; if(oldstamp==0) getFeed(); else if(newstamp>oldstamp) $('appview').getElements('.notification').set('tween',
{duration:2000}).fade('1');oldstamp=newstamp;},timeout:timeoutdelay,onTimeout:function(){errormsg=offlinemsg,feedFailure();},onFailure: function(errornote){if(isonline=='true')errormsg = errornote.responseText;else errormsg = offlinemsg;feedFailure();}});pingstamp.send(); var pingIt = function(){pingstamp.send();if(connecterror==1){clearTimeout(theping);}};var theping = pingIt.periodical(pingfrequency);if (document.getElementsByClassName('smooth').length>0)$('apptitle').addClass('smooth');
}
function doPrefs(){
if (document.getElementsByClassName('smooth').length>0)$('preferences').addClass('smooth');movedirection='-90';$('preferences').set('morph',{duration:300,unit: '%',transition:Fx.Transitions.Quad.easeIn,link:'chain'}),$('preferences').morph({'left':0});$('appoverlay').set('tween', {duration:300}).fade('0.5');$('preferences').addClass('openpanel');
}
function doAppByline(){<!--#if expr="$PERSONALAPP=true"-->
thisname='<!--#echo var="FMROOTAPPAUTHOR"-->';<!--#endif-->
movedirection='100';thisname=(thisname);if(thisname=='generic')openbyline=genericbyline;else openbyline=(approot+'/__Open-User/'+(thisname)+'/__resume?templates=app&formid=20502&@'+(thisname));var req = new Request.HTML({url:openbyline,method: 'get',onSuccess: function(){$('appbyline').set('morph',{duration:300,unit:
'%',transition:Fx.Transitions.Quad.easeIn,link:'chain'}),$('appbyline').morph({'left':10});$('appoverlay').set('tween', {duration:300}).fade('0.5');$('appbyline').addClass('openpanel'),GetLinks();},timeout:timeoutdelay,onTimeout:function(){errormsg=offlinemsg,feedFailure();},onFailure: function(errornote){errormsg = errornote.responseText,feedFailure();},update: $('appbylinecontent')}).send();
}
function doPublisher(){
movedirection='100';var req = new Request.HTML({url:approot+'/Setup?templates=app&formid=2657',method: 'get',onSuccess: function(){$('publisher').set('morph',{duration:300,unit: '%',transition:Fx.Transitions.Quad.easeIn,link:'chain'}),$('publisher').morph({'left':10});$('appoverlay').set('tween', {duration:300}).fade('0.5');$('publisher').addClass('openpanel'),GetLinks();},timeout:timeoutdelay,onTimeout:function(){errormsg=offlinemsg,feedFailure();},onFailure: function(errornote){errormsg = errornote.responseText,feedFailure();},update: $('publishercontent')}).send();
}
function txtxpand(){
thiscardID=(thiscard);thispic=('pic'+thiscardID);thisprev=('i'+thiscardID);$(thisprev).setStyle('display','none');if ($(thispic)){currheight=$(thiscardID).scrollHeight/3*2+30;} else currheight=$(thiscardID).scrollHeight+30;thismore=('more'+thiscardID);thisless=('less'+thiscardID);thiscard=('card'+thiscardID);origheight=$(thiscardID).offsetHeight;$(thiscardID).set('morph',{duration:300,onComplete: function(){$(thismore).setStyle('display','none'),$(thisless).setStyle('display','block'),$(thiscard).removeClass('collapsedcard').addClass('fullcard');},transition:Fx.Transitions.Quad.easeOut,link:'chain'}),$(thiscardID).morph({'height':currheight});
}
function txtcontract(){
xthiscardID=(xthiscard);xthispic=('pic'+xthiscardID);xthisprev=('i'+xthiscardID);$(xthisprev).setStyle('display','block');if ($(xthispic)){currheight=$(xthiscardID).scrollHeight/3*2+30;} else currheight=$(xthiscardID).scrollHeight+30;thismore=('more'+xthiscardID);thisless=('less'+xthiscardID);thiscard=('card'+xthiscardID);$(xthiscardID).set('morph',{duration:200,onComplete: function(){$(thismore).setStyle('display','block'),$(thisless).setStyle('display','none'),$(thiscard).removeClass('fullcard').addClass('collapsedcard');},transition:Fx.Transitions.Quad.easeIn,link:'chain'}), $(xthiscardID).morph({'height':origheight});
}
function feedFailure(){
$('appview').innerHTML='<div class="smallfctext msgtxt">'+(errormsg)+'</div>',$('appbtnrow').removeClass('spin'),$('appview').set('tween', {duration:2000}).fade('1'),connecterror=1,$('errornotice').set('tween', {duration:150}).fade('1').innerHTML=(errormsg),$('setstreamlink').addClass('errorlink');$('reloadbtn').set('tween', {duration:500}).fade('1');
}
function noFailure(){
$('setstreamlink').removeClass('errorlink'),$('errornotice').set('tween', {duration:150}).fade('0').innerHTML=' ',$('setstreamlink').removeClass('spin');
}
function closePanels(){$('appoverlay').set('tween', {duration:50}).fade('0');var mypanel=($('fmapp').getElements('.openpanel'));mypanel.set('morph',{duration:300,unit: '%',transition:Fx.Transitions.Quad.easeOut,link:'chain'}),mypanel.morph({'left':movedirection});mypanel.removeClass('openpanel');
}
function doBtnrow(){
if(window.getScroll().y<60)$('appheader').setStyle('width',window.scrollWidth),$('btnsreturnbtn').setStyle('display','none');else $('appheader').setStyle('width','26px'),$('btnsreturnbtn').setStyle('display','block');
}
function getFeed(){if(loaddefault==1)
setFeedLink=applookup+'&pull'+lookupid; noFailure();var req = new Request.HTML({url:setFeedLink,method: 'get',onSuccess: function(){if(newstamp==10) errormsg=(wrongpathmsg+appstreamlink),feedFailure();$('appview').set('tween', {duration:300}).fade('1'),$('appbtnrow').removeClass('spin'),$('appview').getElements('.notification').addEvent('<!--#echo var="ACTIONEVENT"-->', function(event){$('appbtnrow').addClass('spin'),getFeed();}),$('appview').getElements('.expandbtn').addEvent('<!--#echo var="ACTIONEVENT"-->', function(event){thiscard = this.getAttribute('rel'),txtxpand();}),$('appview').getElements('.contractbtn').addEvent('<!--#echo var="ACTIONEVENT"-->', function(event){xthiscard = this.getAttribute('rel'),txtcontract();}),$('appview').getElements('.bylinebtn').addEvent('<!--#echo
var="ACTIONEVENT"-->', function(event){thisname = this.getAttribute('rel'),doAppByline(),GetLinks();$('reloadbtn').set('tween', {duration:100}).fade('0');});},timeout:timeoutdelay,onTimeout:function(){errormsg=offlinemsg,feedFailure();},onFailure: function(errornote){errormsg = errornote.responseText,feedFailure();},update: $('appview')}).send();
}
function doFirstBanner(){
var rand0 = Number.random(1, itemstamp);var req = new Request.HTML({url:'<!--#echo var="$BANNERPATH$BANNERFILENAME"-->'+rand0+'?templates=app&formid=1001&html5<!--#echo var="html5"-->',method: 'get', onFailure: function(){$('appbanner').innerHTML='<a title="FirstMagic Web Publishing" href="https://firstmagic.net/adlanding" target="newwin"><img src="/.templates/fmlibrary/defaultbanner.jpg" style="width:320px;height:50px;border:none;" border="0" alt="Get a beautiful and easy to use website"/></a>';},update: $('appbanner')}).send();
}
function doBanner() {var rand = Number.random(1, itemstamp); var req = new Request.HTML({url:'<!--#echo var="$BANNERPATH$BANNERFILENAME"-->'+rand+'?templates=app&formid=1001&html5<!--#echo var="html5"-->',method: 'get', onRequest: function(){$('appbanner').set('morph',{duration:300,transition:Fx.Transitions.Quad.easeIn,link:'chain'}),$('appbanner').morph({'height':0});}, onComplete: function(){$('appbanner').set('morph',{duration:300,transition:Fx.Transitions.Quad.easeOut,link:'chain'}),$('appbanner').morph({'height':50});},update: $('appbanner')}).send();
}
</script>
<!-- <!--#echo var="FMACOPYRIGHT"--> --><!--#else--><div class="fctext" style="text-align:center;margin-top:50px;"><a href="<!--#echo var="APPDOMAIN"-->"><!--#echo var="APPDOMAIN"--></a></div><!--#endif-->
<!--#if expr="`$HASBANNERS`=`true`" --><div id="appbannerbox"><div id="appbanner"></div></div><!--#endif-->
</body>
</html><!--#endif-->
|