function MM_findObj(f,e){var c,b,a;if(!e){e=document}if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=MM_findObj(f,e.layers[b].document)}if(!a&&e.getElementById){a=e.getElementById(f)}return a}function MM_swapImage(){var e,d=0,b,c=MM_swapImage.arguments;document.MM_sr=new Array;for(e=0;e<(c.length-2);e+=3){if((b=MM_findObj(c[e]))!=null){document.MM_sr[d++]=b;if(!b.oSrc){b.oSrc=b.src}b.src=c[e+2]}}}function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d<c.length&&(b=c[d])&&b.oSrc;d++){b.src=b.oSrc}}function MM_preloadImages(){var f=document;if(f.images){if(!f.MM_p){f.MM_p=new Array()}var e,c=f.MM_p.length,b=MM_preloadImages.arguments;for(e=0;e<b.length;e++){if(b[e].indexOf("#")!=0){f.MM_p[c]=new Image;f.MM_p[c++].src=b[e]}}}}function at_show_aux(a,g){var e=document.getElementById(a);var f=document.getElementById(g);var d=(f.at_position=="y")?e.offsetHeight+2:-24;var b=(f.at_position=="x")?e.offsetWidth+2:0;for(;e;e=e.offsetParent){d+=e.offsetTop;b+=e.offsetLeft}f.style.position="absolute";f.style.top=d+"px";f.style.left=b+"px";f.style.visibility="visible"}function at_show(){var a=document.getElementById(this["at_parent"]);var b=document.getElementById(this["at_child"]);at_show_aux(a.id,b.id);clearTimeout(b.at_timeout)}function at_hide(){var a=document.getElementById(this["at_parent"]);var b=document.getElementById(this["at_child"]);b.at_timeout=setTimeout("document.getElementById('"+b.id+"').style.visibility = 'hidden'",500)}function at_click(){var a=document.getElementById(this["at_parent"]);var b=document.getElementById(this["at_child"]);if(b.style.visibility!="visible"){at_show_aux(a.id,b.id)}else{b.style.visibility="hidden"}return false}function at_attach(d,h,b,a,f){var e=document.getElementById(d);var g=document.getElementById(h);e.at_parent=e.id;g.at_parent=e.id;e.at_child=g.id;g.at_child=g.id;e.at_position=a;g.at_position=a;g.style.position="absolute";g.style.visibility="hidden";if(f!=undefined){e.style.cursor=f}switch(b){case"click":e.onclick=at_click;e.onmouseout=at_hide;g.onmouseover=at_show;g.onmouseout=at_hide;break;case"hover":e.onmouseover=at_show;e.onmouseout=at_hide;g.onmouseover=at_show;g.onmouseout=at_hide;break}}var fadeimages=new Array();fadeimages[0]=["/portals/0/feature/1c.jpg","http://www.ergotron.com/tabid/65/default.aspx?FID=73",""];fadeimages[1]=["/portals/0/feature/2b.jpg","http://www.ergotron.com/tabid/65/PRDID/241/default.aspx",""];fadeimages[2]=["/portals/0/feature/3b.jpg","http://www.ergotron.com/tabid/65/PRDID/351/default.aspx",""];fadeimages[3]=["/portals/0/feature/4b.jpg","http://www.ergotron.com/tabid/65/PRDID/247/default.aspx",""];fadeimages[4]=["/portals/0/feature/5c.jpg","http://www.ergotron.com/tabid/65/PRDID/404/default.aspx",""];fadeimages[5]=["/portals/0/feature/6c.jpg","http://www.ergotron.com/tabid/65/default.aspx?FID=94",""];fadeimages[6]=["/portals/0/Feature/7b.jpg","http://www.ergotron.com/tabid/65/PRDID/128/default.aspx",""];fadeimages[7]=["/portals/0/feature/8b.jpg","http://www.ergotron.com/tabid/65/default.aspx?FID=58,61,6",""];fadeimages[8]=["/portals/0/feature/9b.jpg","http://www.ergotron.com/tabid/65/PRDID/56/default.aspx",""];fadeimages[9]=["/portals/0/feature/10b.jpg","http://www.ergotron.com/tabid/65/default.aspx?FID=78",""];var fadebgcolor="white";var fadearray=new Array();var fadeclear=new Array();var dom=(document.getElementById);var iebrowser=document.all;function fadeshow(b,e,a,f,d,g,c){this.pausecheck=g;this.mouseovercheck=0;this.delay=d;this.degree=10;this.curimageindex=0;this.nextimageindex=1;fadearray[fadearray.length]=this;this.slideshowid=fadearray.length-1;this.canvasbase="canvas"+this.slideshowid;this.curcanvas=this.canvasbase+"_0";if(typeof c!="undefined"){b.sort(function(){return 0.5-Math.random()})}this.theimages=b;this.imageborder=parseInt(f);this.postimages=new Array();for(p=0;p<b.length;p++){this.postimages[p]=new Image();this.postimages[p].src=b[p][0]}var e=e+this.imageborder*2;var a=a+this.imageborder*2;if(iebrowser&&dom||dom){document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+e+"px;height:"+a+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+e+"px;height:"+a+"px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:"+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+e+"px;height:"+a+"px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:"+fadebgcolor+'"></div></div>')}else{document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')}if(iebrowser&&dom||dom){this.startit()}else{this.curimageindex++;setInterval("fadearray["+this.slideshowid+"].rotateimage()",this.delay)}}function fadepic(a){if(a.degree<100){a.degree+=10;if(a.tempobj.filters&&a.tempobj.filters[0]){if(typeof a.tempobj.filters[0].opacity=="number"){a.tempobj.filters[0].opacity=a.degree}else{a.tempobj.style.filter="alpha(opacity="+a.degree+")"}}else{if(a.tempobj.style.MozOpacity){a.tempobj.style.MozOpacity=a.degree/101}else{if(a.tempobj.style.KhtmlOpacity){a.tempobj.style.KhtmlOpacity=a.degree/100}else{if(a.tempobj.style.opacity&&!a.tempobj.filters){a.tempobj.style.opacity=a.degree/101}}}}}else{clearInterval(fadeclear[a.slideshowid]);a.nextcanvas=(a.curcanvas==a.canvasbase+"_0")?a.canvasbase+"_0":a.canvasbase+"_1";a.tempobj=iebrowser?iebrowser[a.nextcanvas]:document.getElementById(a.nextcanvas);a.populateslide(a.tempobj,a.nextimageindex);a.nextimageindex=(a.nextimageindex<a.postimages.length-1)?a.nextimageindex+1:0;setTimeout("fadearray["+a.slideshowid+"].rotateimage()",a.delay)}}fadeshow.prototype.populateslide=function(a,c){var b="";if(this.theimages[c][1]!=""){b='<a href="'+this.theimages[c][1]+'" target="'+this.theimages[c][2]+'">'}b+='<img src="'+this.postimages[c].src+'" border="'+this.imageborder+'px">';if(this.theimages[c][1]!=""){b+="</a>"}a.innerHTML=b};fadeshow.prototype.rotateimage=function(){if(this.pausecheck==1){var c=this}if(this.mouseovercheck==1){setTimeout(function(){c.rotateimage()},100)}else{if(iebrowser&&dom||dom){this.resetit();var a=this.tempobj=iebrowser?iebrowser[this.curcanvas]:document.getElementById(this.curcanvas);a.style.zIndex++;fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50);this.curcanvas=(this.curcanvas==this.canvasbase+"_0")?this.canvasbase+"_1":this.canvasbase+"_0"}else{var b=document.images["defaultslide"+this.slideshowid];b.src=this.postimages[this.curimageindex].src}}this.curimageindex=(this.curimageindex<this.postimages.length-1)?this.curimageindex+1:0};fadeshow.prototype.resetit=function(){this.degree=10;var a=iebrowser?iebrowser[this.curcanvas]:document.getElementById(this.curcanvas);if(a.filters&&a.filters[0]){if(typeof a.filters[0].opacity=="number"){a.filters(0).opacity=this.degree}else{a.style.filter="alpha(opacity="+this.degree+")"}}else{if(a.style.MozOpacity){a.style.MozOpacity=this.degree/101}else{if(a.style.KhtmlOpacity){a.style.KhtmlOpacity=this.degree/100}else{if(a.style.opacity&&!a.filters){a.style.opacity=this.degree/101}}}}};fadeshow.prototype.startit=function(){var a=iebrowser?iebrowser[this.curcanvas]:document.getElementById(this.curcanvas);this.populateslide(a,this.curimageindex);if(this.pausecheck==1){var c=this;var b=iebrowser?iebrowser["master"+this.slideshowid]:document.getElementById("master"+this.slideshowid);b.onmouseover=function(){c.mouseovercheck=1};b.onmouseout=function(){c.mouseovercheck=0}}this.rotateimage()};var dropdowncontent={disableanchorlink:true,hidedivmouseout:[false,200],ajaxloadingmsg:"Loading content. Please wait...",ajaxbustcache:true,getposOffset:function(b,a){return(b.offsetParent)?b[a]+this.getposOffset(b.offsetParent,a):b[a]},isContained:function(a,b){var b=window.event||b;var d=b.relatedTarget||((b.type=="mouseover")?b.fromElement:b.toElement);while(d&&d!=a){try{d=d.parentNode}catch(b){d=a}}if(d==a){return true}else{return false}},show:function(b,d,f){if(!this.isContained(b,f)||(f&&f.type=="click")){var f=window.event||f;if(f.type=="click"&&d.style.visibility=="visible"){d.style.visibility="hidden";return}var c=(d.dropposition[0]=="left")?-(d.offsetWidth-b.offsetWidth):0;var a=(d.dropposition[1]=="top")?-d.offsetHeight:b.offsetHeight;d.style.left=this.getposOffset(b,"offsetLeft")+c+"px";d.style.top=this.getposOffset(b,"offsetTop")+a+"px";d.style.clip=(d.dropposition[1]=="top")?"rect(auto auto auto 0)":"rect(0 auto 0 0)";d.style.visibility="visible";d.startTime=new Date().getTime();d.contentheight=parseInt(d.offsetHeight);if(typeof window["hidetimer_"+d.id]!="undefined"){clearTimeout(window["hidetimer_"+d.id])}this.slideengine(d,(d.dropposition[1]=="top")?"up":"down")}},curveincrement:function(a){return(1-Math.cos(a*Math.PI))/2},slideengine:function(e,d){var b=new Date().getTime()-e.startTime;if(b<e.glidetime){var a=(d=="down")?this.curveincrement(b/e.glidetime):1-this.curveincrement(b/e.glidetime);var c=(a*e.contentheight)+"px";e.style.clip=(d=="down")?"rect(0 auto "+c+" 0)":"rect("+c+" auto auto 0)";window["glidetimer_"+e.id]=setTimeout(function(){dropdowncontent.slideengine(e,d)},10)}else{e.style.clip="rect(0 auto auto 0)"}},hide:function(b,a,c){if(!dropdowncontent.isContained(b,c)){window["hidetimer_"+a.id]=setTimeout(function(){a.style.visibility="hidden";a.style.left=a.style.top=0;clearTimeout(window["glidetimer_"+a.id])},dropdowncontent.hidedivmouseout[1])}},hidediv:function(a){document.getElementById(a).style.visibility="hidden"},ajaxconnect:function(a,b){var f=false;var d="";if(window.XMLHttpRequest){f=new XMLHttpRequest()}else{if(window.ActiveXObject){try{f=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{f=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){}}}else{return false}}document.getElementById(b).innerHTML=this.ajaxloadingmsg;f.onreadystatechange=function(){dropdowncontent.loadpage(f,b)};if(this.ajaxbustcache){d=(a.indexOf("?")!=-1)?"&"+new Date().getTime():"?"+new Date().getTime()}f.open("GET",a+d,true);f.send(null)},loadpage:function(b,a){if(b.readyState==4&&(b.status==200||window.location.href.indexOf("http")==-1)){document.getElementById(a).innerHTML=b.responseText}},init:function(a,g,f,e){var c=document.getElementById(a);var d=document.getElementById(c.getAttribute("rel"));var b=c.getAttribute("rev");if(b!=null&&b!=""){this.ajaxconnect(b,c.getAttribute("rel"))}d.dropposition=g.split("-");d.glidetime=f||1000;d.style.left=d.style.top=0;if(typeof e=="undefined"||e=="mouseover"){c.onmouseover=function(h){dropdowncontent.show(this,d,h)};c.onmouseout=function(h){dropdowncontent.hide(d,d,h)};if(this.disableanchorlink){c.onclick=function(){return false}}}else{c.onclick=function(h){dropdowncontent.show(this,d,h);return false}}if(this.hidedivmouseout[0]==true){d.onmouseout=function(h){dropdowncontent.hide(this,d,h)}}}};var gfeedfetcher_loading_image="http://www.ergotron.com/Portals/0/HomPagbtmNav/indicator.gif";google.load("feeds","1");function gfeedfetcher(c,a,b){this.linktarget=b||"";this.feedlabels=[];this.feedurls=[];this.feeds=[];this.feedsfetched=0;this.feedlimit=5;this.showoptions="";this.sortstring="date";document.write('<div id="'+c+'" class="'+a+'"></div>');this.feedcontainer=document.getElementById(c);this.itemcontainer="<li>"}gfeedfetcher.prototype.addFeed=function(b,a){this.feedlabels[this.feedlabels.length]=b;this.feedurls[this.feedurls.length]=a};gfeedfetcher.prototype.filterfeed=function(b,a){this.feedlimit=b;if(typeof a!="undefined"){this.sortstring=a}};gfeedfetcher.prototype.displayoptions=function(a){this.showoptions=a};gfeedfetcher.prototype.setentrycontainer=function(a){this.itemcontainer="<"+a.toLowerCase()+">"};gfeedfetcher.prototype.init=function(){this.feedsfetched=0;this.feeds=[];this.feedcontainer.innerHTML='<img src="'+gfeedfetcher_loading_image+'" /> Retrieving RSS feed(s)';var a=this;for(var b=0;b<this.feedurls.length;b++){var c=new google.feeds.Feed(this.feedurls[b]);var d=(this.feedlimit<=this.feedurls.length)?1:Math.floor(this.feedlimit/this.feedurls.length);if(this.feedlimit%this.feedurls.length>0&&this.feedlimit>this.feedurls.length&&b==this.feedurls.length-1){d+=(this.feedlimit%this.feedurls.length)}c.setNumEntries(d);c.load(function(e){a._fetch_data_as_array(e)})}};gfeedfetcher._formatdate=function(a,c){var d=new Date(a);var b=(c.indexOf("datetime")!=-1)?d.toLocaleString():(c.indexOf("date")!=-1)?d.toLocaleDateString():(c.indexOf("time")!=-1)?d.toLocaleTimeString():"";return"<span class='datefield'>"+b+"</span>"};gfeedfetcher._sortarray=function(a,b){var b=(b=="label")?"ddlabel":b;if(b=="title"||b=="ddlabel"){a.sort(function(e,d){var g=e[b].toLowerCase();var f=d[b].toLowerCase();return(g<f)?-1:(g>f)?1:0})}else{try{a.sort(function(e,d){return new Date(d.publishedDate)-new Date(e.publishedDate)})}catch(c){}}};gfeedfetcher.prototype._fetch_data_as_array=function(a){var c=(!a.error)?a.feed.entries:"";if(c==""){alert("Google Feed API Error: "+a.error.message)}for(var b=0;b<c.length;b++){a.feed.entries[b].ddlabel=this.feedlabels[this.feedsfetched]}this.feeds=this.feeds.concat(c);this._signaldownloadcomplete()};gfeedfetcher.prototype._signaldownloadcomplete=function(){this.feedsfetched+=1;if(this.feedsfetched==this.feedurls.length){this._displayresult(this.feeds)}};gfeedfetcher.prototype._displayresult=function(a){var e=(this.itemcontainer=="<li>")?"<ul>\n":"";gfeedfetcher._sortarray(a,this.sortstring);for(var c=0;c<a.length;c++){var d='<a href="'+a[c].link+'" target="'+this.linktarget+'" class="titlefield">'+a[c].title+"</a>";var b=/label/i.test(this.showoptions)?'<span class="labelfield">['+this.feeds[c].ddlabel+"]</span>":" ";var g=gfeedfetcher._formatdate(a[c].publishedDate,this.showoptions);var f=/description/i.test(this.showoptions)?"<br />"+a[c].content:/snippet/i.test(this.showoptions)?"<br />"+a[c].contentSnippet:"";e+=this.itemcontainer+g+d+" "+b+" \n"+f+this.itemcontainer.replace("<","</")+"\n\n"}e+=(this.itemcontainer=="<li>")?"</ul>":"";this.feedcontainer.innerHTML=e};
