/* ---- Start http://elsevier-apps.sciverse.com/MatlabWeb/javascript/jquery.iframetracker.js ---- */ /** * jQuery iframe click tracking plugin demo * Version 1.0 (2013-03-30) * Copyright © 2013 Vincent Paré, www.finalclap.com */ (function($){ // Registering new tracking handler $.fn.iframeTracker = function(handler){ // Storing the new handler into handler list $.iframeTracker.handlersList.push(handler); // Binding boundary listener $(this) .bind('mouseover', {handler: handler}, function(e){ e.data.handler.over = true; try{ e.data.handler.overCallback(this); } catch(ex){} }) .bind('mouseout', {handler: handler}, function(e){ e.data.handler.over = false; try{ e.data.handler.outCallback(this); } catch(ex){} }); }; // Iframe tracker common object $.iframeTracker = { // Attributes focusRetriever: null, // Element used for restoring focus on window (element) focusRetrieved: false, // Says if the focus was retrived on the current page (bool) handlersList: [], // Store a list of every trakers (created by calling $(selector).iframeTracker...) isIE8AndOlder: false, // true for Internet Explorer 8 and older // Init (called once on document ready) init: function(){ // Determine browser version (IE8-) ($.browser.msie is deprecated since jQuery 1.9) try{ if( $.browser.msie == true && $.browser.version < 9 ){ this.isIE8AndOlder = true; } } catch(ex){ try{ var matches = navigator.userAgent.match(/(msie) ([\w.]+)/i); if( matches[2] < 9 ){ this.isIE8AndOlder = true; } } catch(ex2){} } // Listening window blur $(window).focus(); $(window).blur(function(e){ $.iframeTracker.windowLoseFocus(e); }); // Focus retriever $('body').append('
'); this.focusRetriever = $('#focus_retriever'); this.focusRetrieved = false; $(document).mousemove(function(e){ // Focus back to page if( document.activeElement.tagName == 'IFRAME' ){ $.iframeTracker.focusRetriever.focus(); $.iframeTracker.focusRetrieved = true; } }); // Blur doesn't works correctly on IE8-, so we need to trigger it manually if( this.isIE8AndOlder ){ this.focusRetriever.blur(function(e){ e.stopPropagation(); e.preventDefault(); $.iframeTracker.windowLoseFocus(e); }); } // Keep focus on window (fix bug IE8- elements focusables) if( this.isIE8AndOlder ){ $('body').click(function(e){ $(window).focus(); }); $('form').click(function(e){ e.stopPropagation(); }); } }, // Blur on window => calling blurCallback for every handler with over=true windowLoseFocus: function(event){ for(var i in this.handlersList){ if( this.handlersList[i].over == true ){ try{ this.handlersList[i].blurCallback(); } catch(ex){} } } } }; // Init the iframeTracker on document ready $(document).ready(function(){ $.iframeTracker.init(); }); })(jQuery);/* ---- End http://elsevier-apps.sciverse.com/MatlabWeb/javascript/jquery.iframetracker.js ---- */ /* ---- Start http://cdn.els-cdn.com/gadgets/prod/js/v2/s_code_1.js ---- */ var scPlatform = ""; var scGadgetName = ""; var scGadgetClickEvent = ""; var scIssnNumber = ""; var scRepositoryName; var scPiiValue =""; var newImpression = 0; function logSCDisplay(){ s.linkTrackVars='events,eVar44,eVar45,eVar5'; s.linkTrackEvents='event24'; s.events = 'event24'; s.eVar44 = scPlatform; s.eVar45 = scGadgetName; if (typeof scRepositoryName != 'undefined') { if (scRepositoryName != "") { s.linkTrackVars=s.linkTrackVars + ",eVar47"; s.eVar47 = scRepositoryName; } } if (typeof scIssnNumber != 'undefined') { if (scIssnNumber != "") { s.linkTrackVars=s.linkTrackVars + ",eVar14"; s.eVar14 = scIssnNumber; } } s.tl(this, 'o', "Gadget load"); s.linkTrackVars="None"; s.linkTrackEvents="None"; newImpression = 1; } function logSCUsage(detail){ var s = s_gi(s_account); s.linkTrackVars='events,eVar44,eVar45,eVar5'; s.linkTrackEvents='event25'; s.events = 'event25'; s.eVar44 = scPlatform; if (typeof scIssnNumber != 'undefined') { if (scIssnNumber != "") { s.linkTrackVars=s.linkTrackVars + ",eVar14"; s.eVar14 = scIssnNumber; } } if (typeof scRepositoryName != 'undefined') { if (scRepositoryName != "") { s.linkTrackVars=s.linkTrackVars + ",eVar47"; s.eVar47 = scRepositoryName; } } s.eVar45 = scGadgetName; if (detail === undefined) { if ( typeof scGadgetClickEvent != 'undefined') { if (scGadgetClickEvent != "") { s.eVar48 = scGadgetClickEvent; s.linkTrackVars=s.linkTrackVars + ",eVar48"; } else { s.linkTrackVars=s.linkTrackVars + ",eVar46"; } } } else { s.eVar48 = detail; s.linkTrackVars=s.linkTrackVars + ",eVar48"; } s.tl(this, 'o', "Gadget Click"); if (newImpression == 1) { newImpression = 0; s.linkTrackEvents='event69'; s.events = 'event69'; s.tl(this, 'o', "First Click Count"); } s.linkTrackVars="None"; s.linkTrackEvents="None"; } function logSCWorkspaceClick(detail){ var s = s_gi(s_account); s.linkTrackVars='events,eVar44,eVar45,eVar5'; s.linkTrackEvents='event70'; s.events = 'event70'; s.eVar44 = scPlatform; if (typeof scIssnNumber != 'undefined') { if (scIssnNumber != "") { s.linkTrackVars=s.linkTrackVars + ",eVar14"; s.eVar14 = scIssnNumber; } } if (typeof scRepositoryName != 'undefined') { if (scRepositoryName != "") { s.linkTrackVars=s.linkTrackVars + ",eVar47"; s.eVar47 = scRepositoryName; } } s.eVar45 = scGadgetName; if (detail === undefined) { if ( typeof scGadgetClickEvent != 'undefined') { if (scGadgetClickEvent != "") { s.eVar48 = scGadgetClickEvent; s.linkTrackVars=s.linkTrackVars + ",eVar48"; } else { s.linkTrackVars=s.linkTrackVars + ",eVar46"; } } } else { s.eVar48 = detail; s.linkTrackVars=s.linkTrackVars + ",eVar48"; } s.tl(this, 'o', "Gadget Workspace Click"); s.linkTrackVars="None"; s.linkTrackEvents="None"; } /* Adobe Tag Container Loader version: 1.0.7 Copyright 1996-2013 Adobe, Inc. All Rights Reserved More info available at http://www.omniture.com */ var s=new TagContainerLoader(); s.tagContainerDC="d1"; s.tagContainerNamespace="elsevier"; s.tagContainerName="elseviergadget"; var pp = decodeURIComponent(window.location.search); var scGadProm = false; if (pp.indexOf("pre/private") === -1) scGadProm = true; if ((window.location.host.indexOf("sciverse-shindig") === 0 || window.location.host.indexOf("elsevier-apps.sciverse.com") === 0) && scGadProm === true) { //s.tagContainerEnv="prod"; //this line commented out on purpose }else { s.tagContainerEnv="dev"; } s.loadTagContainer(); /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/ function TagContainerLoader(){var t=this,w=t.w=window;t.d=w.document;t._c='s_l';if(!w.s_c_il){w.s_c_il=[];w.s_c_in=0}t._il=w.s_c_il;t._in=w.s_c_in;t._il[t._in]=t;w.s_c_in++;t.timeout=5000;t.to= new Function('var t=s_c_il['+t._in+'];if(t.mt)t.mt(0)');t.loadTagContainer=function(){var t=this,l,p=t.d.body,n,a=t.tagContainerServer?t.tagContainerServer:'www.adobetag.com',b= t.tagContainerServerSecure?t.tagContainerServerSecure:a,c=t.d.cookie,d=t.tagContainerEnv?t.tagContainerEnv:(c?(c.indexOf('s_tagEnv=dev')>=0?'dev':(c.indexOf('s_tagEnv=stage')>=0?'stage':'live')): 'live'),u=(t.w.location.protocol.toLowerCase().indexOf('https')>=0?'https://'+b:'http://'+a)+'/'+(t.tagContainerDC?t.tagContainerDC+'/':'')+t.tagContainerNamespace+'/'+d+'/'+t.tagContainerName+'.js' if(t.tagContainerURL)u=t.tagContainerURL;if(t.timeout)t.ti=setTimeout(t.to,t.timeout);if(t.d.getElementsByTagName){l=t.d.getElementsByTagName('HEAD');if(l&&l[0])p=l[0]}else p=0;if( p&&!t.tagContainerSynchronous){n=t.d.createElement('SCRIPT');if(n){n.type='text/javascript';n.setAttribute('async','async');n.src=u;if(p.firstChild)p.insertBefore(n,p.firstChild);else p.appendChild(n) }}else t.d.write('