0){debug=true}var gadgetPrefs={};var sciverseObj;var isUserEntitledtoGadgets;var isScopusIE7=false;var isExtendedAreaEnabled;var showMoreApps;var g_toolbarState;var gadgetIconPath;var gadgetJSPath;var releaseNumber="v8";var userPrefs;var browserVersion=navigator.appVersion;var MSIE7Flag;if(browserVersion.indexOf("MSIE 7.0")>0){MSIE7Flag=true}var MSIE10Flag;if(browserVersion.indexOf("MSIE 10.0")>0){MSIE10Flag=true}else{MSIE10Flag=false}var sgftoggleState=0;var truncateURL;if(browserVersion.indexOf("IE")>0){truncateURL=true}var browser="";if(navigator.userAgent.indexOf("Firefox")>-1){browser="FF"}if(navigator.userAgent.indexOf("MSIE")>-1){browser="IE"}if(navigator.userAgent.indexOf("Chrome")>-1){browser="Chrome"}var sgf=sgf||{};sgf.labels={aboutApp:"About This App",close:"Close",closeApp:"Close This Application",editPrefs:"Edit Preferences",hideRightColum:"Hide Right Column",moveApp:"Move Application",moveDown:"Move DOWN",moveUp:"Move UP",noApps:"You currently have no applications",openApp:"Open This Application",openCanvas:"Open Application To Full-Screen Mode",openOptions:"Open Options",pin:"Pin",showFew:"Show fewer applications",showMore:"Show more applications",showRightColumn:"Show Right Column",turnOff:"Turn Off",turnOn:"Turn On",unpin:"Unpin"};var homePageToolbarHtml=new Array();homePageToolbarHtml.push('");var homePageToolbarHtmlStr=homePageToolbarHtml.join("");var toolbarHtml=new Array();toolbarHtml.push('');toolbarHtml.push(' ");toolbarHtml.push("
");toolbarHtml.push('");var toolbarHtmlStr=toolbarHtml.join("");var eventSubscriptionList=new Array();sgf.renderGadgetsHome=function(m){if(jQuery("#column0").length==0||jQuery("#column1").length==0||jQuery("#column2").length==0){return false}sgf.isUserEntitled();sgf.isKeyEventURLAvailable();var c;if(!isUserEntitledtoGadgets){var i=jQuery("#ErrormessageDiv");i.css("display","block");i.html(sgf.labels.noApps);return}gadgets.pubsub2router.init({onSubscribe:function(o,n){return true},onUnsubscribe:function(o,n){log(n.getClientID()+" unsubscribes from topic '"+o+"'")},onPublish:function(o,p,n,q){return true}});var l=-1;shindig.container.layoutManager=new shindig.FloatLeftLayoutManager();var d=new Array();var f=sciverseObj.locationsOnPage[m].gadgets;var a={};var h=jQuery("#"+m);if(h!=undefined&&h!=null&&h.attr("class")!=undefined&&h.attr("class")!=null){a=h.attr("class").split(" ")}var b=null;for(var j=0;j-1){var e=a[j];b=e.split("=",2)[1]}}var g=false;if(h.hasClass("sgfShowChromeOnHover")){g=true}jQuery.each(f,function(x,o){var u=sciverseObj.gadgetInfos[o];if(u==""||u==null||u=="undefined"){l=l+1;if(l%3==0){l=0}}else{var v=false;var n=false;var q=false;var t=false;for(var r in u.views){if(r=="canvas"){q=true}if(r=="hover"){v=true}if(b!=null&&r==b){t=true}}l=l+1;if(l%3==0){l=0}if(m=="sgfGhost"){shindig.container.layoutManager.layoutRootId_="sgfGhost"}else{shindig.container.layoutManager.layoutRootId_="column"+l}c=(typeof(u.height)!="undefined"&&u.height!=null&&u.height!=0)?u.height:null;if(debug){debugArea=shindig.container.layoutManager.getGadgetDebugChrome(u.gadgetId,m)}userPrefs=u.userPreferences;if(userPrefs!=null){var s=gadgets.json.stringify(userPrefs);s=convertFromHtmlEntities(s);userPrefs=gadgets.json.parse(s)}if(typeof(userPrefs)!="undefined"&&userPrefs!=null&&typeof(userPrefs.startMeInvisible)!="undefined"&&userPrefs.startMeInvisible!=null){if(userPrefs.startMeInvisible.value=="y"){n=true}}var p=shindig.container.createGadget({specUrl:u.url,title:u.gadgetName,userPrefs:userPrefs,height:c,requiresPubSub2:u.requiresPubSub2});p.sciverseId_=u.gadgetId;p.open=u.open[m];p.location=m;p.iconURL=(u.gadgetIcon==null||u.gadgetIcon=="")?gadgetIconPath+"/netbase.gif":u.gadgetIcon;p.removable=u.removable;p.hasUserPrefs=u.hasUserPrefs;p.isHoverViewAvailable=v;p.isStartMeInvisible=n;p.isCanvasViewAvailable=q;p.isOnhoverChromeRequired=g;if(t){p.preferredView=b}else{p.preferredView=null}shindig.container.addGadget(p);shindig.container.renderGadget(p);var w=(p.open==="N")?"close":"open";if(n){w+="|invisible"}else{w+="|visible"}if(p.open!="N"){}}});jQuery("div.AppHeaders").css("padding","7px 5px 4px 5px")};var visibleAppCount;var temptoolbarState=true;sgf.renderGadgets=function(q,w,a,p,f,d){sgf.isUserEntitled();sgf.isKeyEventURLAvailable();var e;var u;var m=jQuery("#"+q);if(p){u=(p=="showMoreLess")?true:false}if((toolbarOrientation=="vertical"&&!m.hasClass("sgfIsGadgeGator"))&&(!p)&&(!u)&&m.hasClass("sgfVertToolbar")){onLoadToolbarStateVertical(q)}if(!isUserEntitledtoGadgets){var r=jQuery("#toolbar_"+q);r.css("text-align","center");r.html(sgf.labels.noApps);return}gadgets.pubsub2router.init({onSubscribe:function(y,x){return true},onUnsubscribe:function(y,x){log(x.getClientID()+" unsubscribes from topic '"+y+"'")},onPublish:function(y,z,x,A){return true}});if(m.hasClass("sgfShowMyApps")&&m.hasClass("sgfVertToolbar")&&!temptoolbarState){return}shindig.container.layoutManager=new shindig.FloatLeftLayoutManager();var h="";var v=jQuery("#"+q+" > #sgfTabsBody > ul");var t=sciverseObj.locationsOnPage[q].gadgets;var b=(u)?visibleAppCount:0;var l=false;var o=(u)?t.length:visibleAppCount;var g={};if(m!=undefined&&m!=null&&m.attr("class")!=undefined&&m.attr("class")!=null){g=m.attr("class").split(" ")}var n=null;for(var i=0;i-1){var s=g[i];n=s.split("=",2)[1]}}jQuery.each(t,function(I,y){var F=sciverseObj.gadgetInfos[y];if(u&&I0)?"N":"Y");z.includeTitle=w;z.isExtendedAreaApp=l;z.includeBorder=a;z.location=q;z.isCanvasViewAvailable=A;z.isHoverViewAvailable=G;z.isStartMeInvisible=x;if(E){z.preferredView=n}else{z.preferredView=null}z.removable=F.removable;z.iconURL=(F.gadgetIcon==null||F.gadgetIcon=="")?gadgetIconPath+"/netbase.gif":F.gadgetIcon;z.hasUserPrefs=F.hasUserPrefs;log(z.sciverseId_,z.location,"gadget created");shindig.container.addGadget(z);log(z.sciverseId_,z.location,"gadget added");shindig.container.renderGadget(z);var H=(z.open==="N")?"close":"open";if(x){H+="|invisible"}else{H+="|visible"}if(f!=true||(f==true&&I==0)){if(z.open!="N"){if(H==="open|visible"){sgf.saveEventData(F.gadgetId,sgfEvents.DISPLAY_GADGET,q,d,"")}}}jQuery('"+F.gadgetName+"").appendTo(v)});if(m.hasClass("sgfPrivilegedLocation")){var j=jQuery("#"+q).children();var c=jQuery("#"+q).children(".invisible");if(j.length>c.length){m.css("display","block");if(showLibAppCol){showLibAppCol(q)}}}sgf.setToolBarWidth()};sgf.openTabbedGadget=function(a){if(a==0){jQuery("#tab_"+a).removeAttr("onclick");return}var c=shindig.container.getGadget(a);if(c!=null){jQuery("#tab_"+a).removeAttr("onclick");var b="";if(c.requiresPubSub2){b=c.oaaIframeId}else{b=c.getIframeId()}var d=document.getElementById(b);if(d){var e=jQuery("#maincont"+b).css("display");if(e=="none"&&jQuery("#"+b).attr("src")==""){jQuery("#"+b).attr("src",c.getIframeUrl());jQuery("#maincont"+b).show()}}}};function setGlobalToolbarStateVars(){g_toolbarState=(sciverseObj.contextInfo.toolbarState.length>1)?sciverseObj.contextInfo.toolbarState:"Open";if(sciverseObj.contextInfo.toolbarState=="Close"){temptoolbarState=false}var a=jQuery(".sgfShowMoreLessApps").attr("id");if(sciverseObj.contextInfo.isViewMore=="Y"&&sciverseObj.locationsOnPage[a]!=undefined&&sciverseObj.locationsOnPage[a]!=null&&sciverseObj.locationsOnPage[a].gadgets!=undefined&&sciverseObj.locationsOnPage[a].gadgets!=null&&sciverseObj.locationsOnPage[a].gadgets.length>sciverseObj.smapiVars.visibleAppsCount){isExtendedAreaEnabled=true;showMoreApps="Y"}else{isExtendedAreaEnabled=false;showMoreApps="N"}visibleAppCount=sciverseObj.smapiVars.visibleAppsCount;if(sciverseObj.contextInfo.platform=="SC"&&sciverseObj.contextInfo.pageType=="resultslist"&&browser==="IE"&&MSIE7Flag===true){isScopusIE7=true}}function displayGadgets(){sciverseObj=gadgets.json.parse(sciverse);if(typeof(sciverseObj)=="undefined"||sciverseObj==false||sciverseObj==""){if(debug){alert("No data available to render the gadgets")}return false}if(typeof sciverseObj.smapiVars==="undefined"){return}if(typeof(setLibraryTab)!="undefined"){setLibraryTab()}sgf.processInterRefs("centerPane");sgf.setGadgetIHSURL();sgf.processMmcGadgets("centerPane");setGlobalToolbarStateVars();var f=[];for(var o in sciverseObj.locationsOnPage){var j=false;var d=true;var i=true;if(o=="sgfGhost"){if(!(jQuery("#sgfGhost").length>0)){jQuery('').appendTo(jQuery("body"))}}var a=jQuery("#"+o);if(a.length==0){continue}if(a.hasClass("sgfTabsToolbar")){i=false;d=false;var m=a.data("closeCallback");var l=sciverseObj.smapiVars.gsUrl+"/gadgets/"+releaseNumber+"/images/advqb_close-btn.png";jQuery('').appendTo(a);jQuery("#imageUrl").attr("src",l);jQuery('').appendTo(a);sgf.renderGadgets(o,i,d,"",true);jQuery("#"+o+" #sgfTabsBody").tabs();jQuery("#imageUrl").click(function(){m()});continue}if(a.hasClass("sgfHomePage")){var e=decodeURIComponent(sgf.labels.help);a.html(homePageToolbarHtmlStr);sgf.renderGadgetsHome(o);setTimeout("adjustColHeight()",10000);if(browser!=="FF"){applysortableForHomePage(o)}var n=(checkCompliance()=="Quirks")?true:false;if(n){jQuery(".Controls").css("position","")}else{jQuery(".Controls").css("position","relative")}continue}if(a.hasClass("sgfVertToolbar")||a.hasClass("sgfHorToolbar")||a.hasClass("sgfShowMyApps")){a.html(toolbarHtmlStr);var e=decodeURIComponent(sgf.labels.help);var b=decodeURIComponent(sgf.labels.showMore);var g=decodeURIComponent(sgf.labels.showFew);jQuery("#showMore").attr("title",b).html(b);jQuery("#showFew").attr("title",g).html(g);setTimeout("adjustColHeight()",10000);jQuery("#toolbar").attr("id","toolbar_"+o);if(a.hasClass("sgfVertToolbar")){toolbarOrientation="vertical";jQuery("#"+o).children("#toggleImg").css("display","block");toolbarWidth=VERTICAL_TOOLBAR_WIDTH;tbWidthwithoutImage=(toolbarWidth-toolbarImgWidth);toolbarWidth+="px";tbWidthwithoutImage+="px";a.find("#horiToolbarControls").show()}if(a.hasClass("sgfHorToolbar")){toolbarOrientation="horizontal";a.children(".sgfToolBarToggleImage").css("display","none");a.find("#toolbarBody").removeClass("toolbarBody");a.find("#toolbarBody").addClass("toolbarBodyHorizontal");a.children("#sciverse_toolbar").removeClass("sgfSciverseVertToolBar");a.children("#sciverse_toolbar").addClass("sgfSciverseHoriToolBar");a.find("#horiToolbarControls").show()}sgf.renderGadgets(o,i,d,null,false,f);if(jQuery("#showLessApps").css("display")=="none"&&isExtendedAreaEnabled&&a.hasClass("sgfShowMoreLessApps")){jQuery("#showLessApps").show()}if(browser!=="FF"){sgf.applySortable(o)}else{sgf.resetTitleStyles(o)}}else{if(toolbarOrientation=="vertical"){toolbarWidth="100%"}if(o!=undefined&&o!=null&&o=="SVH_SR2"){toolbarWidth=""}if(a.hasClass("sgfNoTitleBar")){i=false}if(a.hasClass("sgfNoGadgetBorder")){d=false}sgf.renderGadgets(o,i,d,null,false,f);if(browser!=="FF"){sgf.applySortable(o)}else{sgf.resetTitleStyles(o)}}}var c=checkCompliance();if(c=="Quirks"){jQuery(".Controls ul .submenu").css("left","-75px")}sgf.notifyEventSubscribers(sgfEvents.DISPLAY_GADGET,f)}sgf.resetTitleStyles=function(d){var a=jQuery("#"+d+" h3");if(a!==null){for(var c=0;c .sgfInnerToolbar").css("min-height","208px")}function toggleToolbarVertical(o){var d;if(sciverseObj.contextInfo.toolbarState=="Close"){temptoolbarState=true}jQuery("#toolbarBody").css("height",calculateToolBarHeight());var a=jQuery(o.target).parents().find(".sgfVertToolbar").attr("id");var h=jQuery("#"+a);var c;var r="SubmitAction";var f="";var u=false;var l=jQuery("#sciverse_toolbar").css("display");var e=jQuery("#sgfSlideBar");var p=jQuery("#colResults");var i=jQuery(window).scrollTop();var b=jQuery(window).height();var t=0;e.addClass("sgfSideExpand");e.removeClass("sgfSideCollapse");e.css("background-image","url("+gadgetIconPath+"/spriteImages.png)");var q=parseInt(jQuery(window).width());var m=jQuery(".sgfToolBarToggleImage");if(l=="block"){h.css("width",toolbarImgWidth);m.css({"border-right":"1px dashed #A5A5A5",height:jQuery("#colResults").height(),position:"fixed",right:"0px"});e.css("background-position","-162px -218px");e.removeClass("sgfRefinementBarNoImage");h.children("#sciverse_toolbar").css("display","none");e.attr("title",sgf.labels.showRightColumn);var j=parseInt(jQuery(window).width())-parseInt(e.position().left);if(parseInt(e.position().left)>parseInt(jQuery(window).width())/2){j=j+parseInt(e.position().left)-29}else{j=j-18}j+="px";q=q-toolbarImgWidth;q+="px";sgftoggleState=1;if(i>p.offset().top){t=b/2;e.css({top:"",position:"fixed"})}else{if(i0){for(var j=0;j1){n.push(e[g].substring(l))}else{n.push("")}}var b=new Array();b=sciverseObj.locationsOnPage[a].gadgets;var d=new Array();d=sgf.calculateArrayDifference(b,n);var h=gadgets.json.stringify(n).substring(0,gadgets.json.stringify(n).length-1);if(d!="[]"||d!=null){for(var m=0;m<=d.length-1;m++){h+=",";h+='"';h+=d[m];h+='"'}}h+="]";return h}sgf.applySortable=function(b){var a=(jQuery("#"+b).hasClass("sgfShowMyApps"))?"toolbar_"+b:b;jQuery("#"+a).sortable({handle:"h3",start:function(d,e){var f=jQuery(".ui-sortable-placeholder");if(typeof(placeholderGadgegators)!="undefined"&&placeholderGadgegators!=null&&jQuery("#"+a).hasClass("sgfIsGadgeGator")){f.css(placeholderGadgegators)}else{f.css({border:"1px solid #FED22F ",margin:"2px",visibility:"visible",background:"#FED22F"})}var c=jQuery('
');jQuery("body").prepend(c[0]);c[0].id="temp_OverLayDiv";c.css({position:"absolute",cursor:"move"});c.css({top:0,left:0});c.css("z-index","1009");c.height(2*(jQuery(document).height()));c.width("100%")},stop:function(g,i){jQuery("#temp_OverLayDiv").remove();var h=jQuery("#"+a).sortable("toArray");for(var d=0;dvisibleAppCount){for(var j=visibleAppCount;j0){for(var c=0;c1){c.push(g[e].substring(h))}else{c.push("")}}return gadgets.json.stringify(c)}sgf.calculateArrayDifference=function(e,d){var c=new Array();for(var b=0;b .sgfInnerToolbar").children().length>0){jQuery("#toolbarBody").css("height",calculateToolBarHeight())}else{setTimeout('jQuery("#toolbarBody").css("height",calculateToolBarHeight())',22000)}}jQuery(document).ready(function(){jQuery(window).trigger("hashchange");jQuery(document).on("mouseover mouseout",".sgfHiddenChrome",function(a){if(a.type=="mouseover"){var b=jQuery(this).find(".showTitleBarOnHover");if(b.hasClass("sgfOpen")){b.addClass("ActiveGadget")}else{b.addClass("InactiveGadget")}jQuery(this).find(".showBorderOnHover").css({"border-style":"solid","border-top":""})}else{var b=jQuery(this).find(".showTitleBarOnHover");if(b.hasClass("sgfClose")){b.removeClass("InActiveGadget")}else{b.removeClass("ActiveGadget")}jQuery(this).find(".showBorderOnHover").css({"border-style":"none","border-top":""})}});jQuery(document).on("mouseover mouseout",".containerApplOver",function(a){if(a.type=="mouseover"){if(isScopusIE7){var b=jQuery(".sgfSciverseHoriToolBar ");b.css({position:"relative","z-index":"10"})}if(jQuery(this).find(".Controls_close").css("display")=="none"){jQuery(this).find(".Controls").show()}}else{jQuery(this).find(".Controls").hide()}})});jQuery(window).bind("hashchange",function(b){var a=jQuery.param.fragment();removeCanvas(a)});function removeCanvas(b){var a;if(b.indexOf("dialogId")!=-1){jQuery("#canvas").dialog("open")}else{jQuery("#canvas").remove();jQuery("body").css("overflow","auto")}}function sgfToggleToolBarOver(){}function sgfToggleToolBarOut(){if(sgftoggleState==1){jQuery("#sgfSlideBar").css("background-position","-162px -218px")}}function isSDArticlesPage(){var a=false;if(sciverseObj.contextInfo.platform=="SD"&&sciverseObj.contextInfo.pageType=="article"){a=true}return a}function isSDResultsPage(){var a=false;if(sciverseObj.contextInfo.platform=="SD"&&sciverseObj.contextInfo.pageType=="resultsList"){a=true}return a}sgf.setToolBarWidth=function(){if(sciverseObj.contextInfo.platform=="SC"&&(sciverseObj.contextInfo.pageType=="AuthorProfile"||sciverseObj.contextInfo.pageType=="recordpage")){var a=jQuery("#toolbarBody > .sgfInnerToolbar");a.css({margin:"0",width:"100%"})}};sgf.processMmcGadgets=function(h){var l=jQuery("#"+h+" dl.ecomponent");if(l!=null&&l!=undefined&&l.length>0){for(var f=0;f0){for(var e=0;e #"+c);if(d!=undefined&&d!=null){var l=d.attr("data-ext");var b=d.attr("data-eid");var f=sciverseObj.mmcGadgets[l][0];if(f!=undefined&&f!=null){var h="";h=sciverseObj.gadgetInfos[f];d.children().hide();shindig.container.layoutManager=new shindig.FloatLeftLayoutManager();shindig.container.layoutManager.layoutRootId_=i+" > #"+c;var e=shindig.container.createGadget({specUrl:h.url,title:h.gadgetName,userPrefs:h.userPreferences,requiresPubSub2:h.requiresPubSub2});e.sciverseId_=h.gadgetId;e.isMmcRendering=true;e.open="Y";e.includeTitle=false;e.isExtendedAreaApp="N";e.includeBorder=false;e.location=i+"_"+c;e.isCanvasViewAvailable="N";e.isHoverViewAvailable="N";e.isStartMeInvisible=false;e.removable=h.removable;e.iconURL=(h.gadgetIcon==null||h.gadgetIcon=="")?gadgetIconPath+"/netbase.gif":h.gadgetIcon;e.hasUserPrefs=h.hasUserPrefs;shindig.container.addGadget(e);var j={mmcType:l,eid:b};e.prepareGadgetForView("mmc",d,j)}var a=sgf.constructKeyEventStrForMMC(l,"inline",h.gadgetId,"requestmmfile","a")}};sgf.constructKeyEventStrForMMC=function(d,e,b,f,a){var c="MMCType="+d+"&playerType="+e+"&gadgetId="+b+"&eventName="+f+"&location="+a;if(sciverseObj.contextInfo.issn!=undefined&&sciverseObj.contextInfo.issn!=null&&sciverseObj.contextInfo.issn!=""){c+="&issn=";c+=sciverseObj.contextInfo.issn}if(sciverseObj.contextInfo.isbn!=undefined&&sciverseObj.contextInfo.isbn!=null&&sciverseObj.contextInfo.isbn!=""){c+="&isbn=";c+=sciverseObj.contextInfo.isbn}if(sciverseObj.contextInfo.pii!=undefined&&sciverseObj.contextInfo.pii!=null&&sciverseObj.contextInfo.pii!=""){c+="&pii=";c+=sciverseObj.contextInfo.pii}if(sciverseObj.contextInfo.eid!=undefined&&sciverseObj.contextInfo.eid!=null&&sciverseObj.contextInfo.eid!=""){c+="&eid=";c+=sciverseObj.contextInfo.eid}if(sciverseObj.contextInfo.fmt!=undefined&&sciverseObj.contextInfo.fmt!=null&&sciverseObj.contextInfo.fmt!=""){c+="&fmt=";c+=sciverseObj.contextInfo.fmt}return c};sgf.ajaxKeyEventNonGadgetLog=function(a){var b=new Array();b.push(sciverseObj.smapiVars.gsUrl);b.push("/rest/usagekeyevent/create");b.push("?clientToken=");b.push(sciverseObj.contextInfo.secureAuthtoken);b.push("&sessionId=");b.push(sciverseObj.contextInfo.sessionId);jQuery.ajax({type:"POST",url:b.join(""),data:a})};sgf.processInterRefs=function(a){var d=jQuery("#"+a+" span.interref");if(d!=null&&d!=undefined&&d.length>0){for(var e=0;e0){var b=jQuery(g).text();g.unbind("click");g.removeAttr("onclick");g.bind("click",{interRefType:h,displayTerm:b},function(i){sgf.notifyInterRefGadgets(i)});if(!g.hasClass("svDoNotLink")){g.addClass("svDoNotLink")}var f=jQuery(g).find("a");if(f!=undefined&&f!=null&&f.length>0){f.removeAttr("onclick");f.click(function(i){i.preventDefault()})}}}}};sgf.notifyInterRefGadgets=function(h){var m=getMouseClickCoordinates(h);var e=listeners.interRef;if(e!=undefined&&e!=null){for(var d=0,g=e.length;d ');jQuery("body").prepend(b[0]);b[0].id="temp_OverLayDiv";b.css({position:"absolute",cursor:"move"});b.css({top:0,left:0});b.css("z-index","1009");b.height(2*(jQuery(document).height()));b.width("100%")},stop:function(d,e){jQuery("#temp_OverLayDiv").remove();var c=(checkCompliance()=="Quirks")?true:false;if(c){jQuery(".Controls").css("position","")}else{jQuery(".Controls").css("position","relative")}var b=getGadgetOrderHomePage(a);saveToolBarState(g_toolbarState,"gadgetReorder","SubmitActionUsage",false,a,b,showMoreApps)},update:function(b,c){resetHomePageColumnHeights();adjustHomePageColumnHeights()}}).disableSelection()}function calculateToolBarHeight(){var a=jQuery("#colResults").height();if(parseInt(jQuery("#toolbarBody > .sgfInnerToolbar").height())>parseInt(jQuery("#colResults").height())){a=jQuery("#sgfInnerToolbar").height()}return a}sgf.subscribeForEvents=function(a,b){if(eventSubscriptionList[a]!=undefined&&eventSubscribtionList[a]!=null){var c=eventSubscribtionList[a];c.push(b);eventSubscriptionList[a]=c}else{var c=[];c.push(b);eventSubscriptionList[a]=c}};sgf.saveEventData=function(a,e,i,d,h){if(d!=undefined&&d!=null){var g="profile";if(h!=undefined&&h!=null&&h!=""){g=h}var c=sciverseObj.gadgetInfos[a]["entTyp"];var f=sciverseObj.gadgetInfos[a]["privFlag"];if(d[e]!=undefined&&d[e]!=null){var b=d[e];b.push('{"gId":"'+a+'","privFlag":"'+f+'","entType":"'+c+'","locationId":"'+i+'","view":"'+g+'"}');d[e]=b}else{var b=[];b.push('{"gId":"'+a+'","privFlag":"'+f+'","entType":"'+c+'","locationId":"'+i+'","view":"'+g+'"}');d[e]=b}}};sgf.notifyEventSubscribers=function(b,e){if(e!=undefined&&e!=null&&e[b]){var c=[];if(eventSubscriptionList[b]){c=eventSubscriptionList[b];for(var d=0;d0&&e.width()>f.width()){h=h.substr(0,h.length-1);e.html(h+"...")}f.html(e.html());e.remove();if(b==true){var g=f.width();setInterval(function(){if(f.width()!=g){g=f.width();f.html(i);f.ellipsis()}},200)}}})}else{return this}}})(jQuery);(function(I,X){var aj,ad=Array.prototype.slice,T=decodeURIComponent,aq=I.param,ah,ao,ae,K,ap=I.bbq=I.bbq||{},V,L,ag,am=I.event.special,an="hashchange",Z="querystring",R="fragment",J="elemUrlAttr",af="href",N="src",ab=/^.*\?|#.*$/g,Q,M,ak,ai,W,S={};function P(a){return typeof a==="string"}function U(a){var b=ad.call(arguments,1);return function(){return a.apply(this,b.concat(ad.call(arguments)))}}function ac(a){return a.replace(M,"$2")}function Y(a){return a.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function al(h,c,j,g,i){var a,d,e,b,f;if(g!==aj){e=j.match(h?M:/^([^#?]*)\??([^#]*)(#?.*)/);f=e[3]||"";if(i===2&&P(g)){d=g.replace(h?Q:ab,"")}else{b=ae(e[2]);g=P(g)?ae[h?R:Z](g):g;d=i===2?g:i===1?I.extend({},g,b):I.extend({},b,g);d=ah(d);if(h){d=d.replace(ak,T)}}a=e[1]+(h?W:d||!e[1]?"?":"")+d+f}else{a=c(j!==aj?j:location.href)}return a}aq[Z]=U(al,0,Y);aq[R]=ao=U(al,1,ac);aq.sorted=ah=function(c,b){var d=[],a={};I.each(aq(c,b).split("&"),function(e,h){var f=h.replace(/(?:%5B|=).*$/,""),g=a[f];if(!g){g=a[f]=[];d.push(f)}g.push(h)});return I.map(d.sort(),function(e){return a[e]}).join("&")};ao.noEscape=function(a){a=a||"";var b=I.map(a.split(""),encodeURIComponent);ak=new RegExp(b.join("|"),"g")};ao.noEscape(",/");ao.ajaxCrawlable=function(a){if(a!==aj){if(a){Q=/^.*(?:#!|#)/;M=/^([^#]*)(?:#!|#)?(.*)$/;W="#!"}else{Q=/^.*#/;M=/^([^#]*)#?(.*)$/;W="#"}ai=!!a}return ai};ao.ajaxCrawlable(0);I.deparam=ae=function(a,d){var b={},c={"true":!0,"false":!1,"null":null};I.each(a.replace(/\+/g," ").split("&"),function(l,f){var m=f.split("="),g=T(m[0]),n,h=b,j=0,e=g.split("]["),i=e.length-1;if(/\[/.test(e[0])&&/\]$/.test(e[i])){e[i]=e[i].replace(/\]$/,"");e=e.shift().split("[").concat(e);i=e.length-1}else{i=0}if(m.length===2){n=T(m[1]);if(d){n=n&&!isNaN(n)?+n:n==="undefined"?aj:c[n]!==aj?c[n]:n}if(i){for(;j<=i;j++){g=e[j]===""?h.length:e[j];h=h[g]=j7);function t(a){a=a||location.href;return"#"+a.replace(/^[^#]*#?(.*)$/,"$1")}j.fn[r]=function(a){return a?this.bind(r,a):this.trigger(r)};j.fn[r].delay=50;n[r]=j.extend(n[r],{setup:function(){if(q){return false}j(o.start)},teardown:function(){if(q){return false}j(o.stop)}});o=(function(){var d={},e,a=t(),c=function(h){return h},b=c,f=c;d.start=function(){e||g()};d.stop=function(){e&&clearTimeout(e);e=s};function g(){var h=t(),i=f(a);if(h!==a){b(a=h,i);j(p).trigger(r)}else{if(i!==a){location.href=location.href.replace(/#.*/,"")+i}}e=setTimeout(g,j.fn[r].delay)}j.browser.msie&&!q&&(function(){var i,h;d.start=function(){if(!i){h=j.fn[r].src;h=h&&h+t();i=j('').hide().one("load",function(){h||b(t());g()}).attr("src",h||"javascript:0").insertAfter("body")[0].contentWindow;m.onpropertychange=function(){try{if(event.propertyName==="title"){i.document.title=m.title}}catch(u){}}}};d.stop=c;f=function(){return t(i.location.href)};b=function(w,z){var x=i.document,y=j.fn[r].domain;if(w!==z){x.title=m.title;x.open();y&&x.write('