function addbookmark(){msindex=navigator.appVersion.indexOf("MSIE ");if(msindex>0)if(navigator.userAgent.indexOf("Win")>-1){version=parseFloat(navigator.appVersion.substring(msindex+5,msindex+10));version>=4?window.external.AddFavorite(document.location.href,document.title):alert("To add Electronics 2000 to your MSIE Favorites click Add to Favorites on the Favorites menu")}else alert("To add Electronics 2000 to your MSIE Favorites click Add to Favorites on the Favorites menu");else alert("To add Electronics 2000 to your bookmarks click 'Add Bookmark' or 'Bookmark this page' on the Bookmarks menu")}
var clickmessage="Sorry, right-clicking is disabled on images.";function disableclick(a){if(document.all){if(event.button==2||event.button==3)if(event.srcElement.tagName=="IMG"){alert(clickmessage);return false}}else if(document.layers){if(a.which==3){alert(clickmessage);return false}}else if(document.getElementById)if(a.which==3&&a.target.tagName=="IMG"){alert(clickmessage);return false}}function associateimages(){for(i=0;i<document.images.length;i++)document.images[i].onmousedown=disableclick}
if(document.all)document.onmousedown=disableclick;else if(document.getElementById)document.onmouseup=disableclick;else document.layers&&associateimages();var days=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"),months=new Array("January","February","March","April","May","June","July","August","September","October","November","December"),dateObj=new Date,day=days[dateObj.getDay()],month=months[dateObj.getMonth()],date=dateObj.getDate(),year=dateObj.getFullYear();
ending=date==1||date==21||date==31?"st":date==2||date==22?"nd":date==3||date==23?"rd":"th";todaysdate=day+", "+date+ending+" "+month+" "+year;var tickercontent=[];tickercontent[0]='<a class="sbaritem" href="http://www.electronics2000.co.uk/download.php#epeindex">EPE Index 1992-2009 now available</a>';tickercontent[1]='<a class="sbaritem" href="http://www.electronics2000.co.uk/links/">Web links updated</a>';tickercontent[2]='<a class="sbaritem" href="http://www.electronics2000.co.uk/calc/">All online calculators updated</a>';
tickercontent[3]='<a class="sbaritem" href="http://www.electronics2000.co.uk/calc/resistor-code-calculator.php">New resistor colour code calculator</a>';tickercontent[4]="Look out for more updates coming soon...";
function domticker(a,c,b,d,e){this.content=a;this.tickerid=c;this.delay=d;this.mouseoverBol=0;this.pointer=1;this.opacitystring=typeof e!="undefined"?"width: 100%; filter:progid:DXImageTransform.Microsoft.alpha(opacity=100); -moz-opacity: 1":"";if(this.opacitystring!="")this.delay+=500;this.opacitysetting=0.2;document.write('<div id="'+c+'" class="'+b+'"><div style="'+this.opacitystring+'">'+a[0]+"</div></div>");var h=this;setTimeout(function(){h.initialize()},d)}
domticker.prototype.initialize=function(){var a=this;this.contentdiv=document.getElementById(this.tickerid).firstChild;document.getElementById(this.tickerid).onmouseover=function(){a.mouseoverBol=1};document.getElementById(this.tickerid).onmouseout=function(){a.mouseoverBol=0};this.rotatemsg()};
domticker.prototype.rotatemsg=function(){var a=this;if(this.mouseoverBol==1)setTimeout(function(){a.rotatemsg()},100);else{this.fadetransition("reset");this.contentdiv.innerHTML=this.content[this.pointer];this.fadetimer1=setInterval(function(){a.fadetransition("up","fadetimer1")},100);this.pointer=this.pointer<this.content.length-1?this.pointer+1:0;setTimeout(function(){a.rotatemsg()},this.delay)}};
domticker.prototype.fadetransition=function(a,c){var b=this.contentdiv;if(a=="reset")this.opacitysetting=0.2;if(b.filters&&b.filters[0])if(typeof b.filters[0].opacity=="number")b.filters[0].opacity=this.opacitysetting*100;else b.style.filter="alpha(opacity="+this.opacitysetting*100+")";else if(typeof b.style.MozOpacity!="undefined"&&this.opacitystring!="")b.style.MozOpacity=this.opacitysetting;else this.opacitysetting=1;if(a=="up")this.opacitysetting+=0.2;a=="up"&&this.opacitysetting>=1&&clearInterval(this[c])};
var PageURL=encodeURIComponent(document.location.href),PageTitle=encodeURIComponent(document.title);function AddItem(a,c,b){return"<a href='"+b+"' target='_blank'><img class='bmarks' src='/images/bookmarks/"+c+"' border='0' width='18' height='18' title='Add to "+a+"' alt='Add to "+a+"'></a>"}
function ShowBookmarks(){var a="<div class='bmarks'><b>Like this page?</b> Bookmark &amp; share it: &nbsp;";a+=AddItem("StumbleUpon","stumbleupon.png","http://www.stumbleupon.com/submit.php?url="+PageURL+"&amp;title="+PageTitle)+"&nbsp;&nbsp;";a+=AddItem("Del.icio.us","delicious.png","http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url="+PageURL+"&amp;title="+PageTitle)+"&nbsp;&nbsp;";a+=AddItem("Digg","digg.png","http://digg.com/submit?phase=2&amp;url="+PageURL+"&amp;title="+PageTitle)+
"&nbsp;&nbsp;";a+=AddItem("Technorati","technorati.png","http://technorati.com/faves?add="+PageURL)+"&nbsp;&nbsp;";a+=AddItem("Furl","furl.png","http://www.furl.net/storeIt.jsp?t="+PageTitle+"&amp;u="+PageURL)+"&nbsp;&nbsp;";a+="<a href='javascript:addbookmark()'><img class='bmarks' src='/images/bookmarks/favorites.png' border='0' width='18' title='Add to browser Bookmarks or Favorites' height='18' alt='Add to Browser Bookmarks / Favorites'></a> &nbsp;&nbsp;";a+="Tell a friend: &nbsp;<a href='/sendlink.php?url="+
PageURL+"&amp;title="+PageTitle+"'><img class='bmarks' src='/images/bookmarks/sendlink.png' border='0' width='18' height='18' title='E-mail this page to a friend or colleague' alt='E-mail this page to a friend or colleague'></a>";a+="</div>";document.write(a)}
function ShowSmallBookmarks(){var a="<div class='centeredDiv'>";a+="<a href='javascript:addbookmark()'><img class='bmarks' src='/images/bookmarks/favorites.png' border='0' width='18' title='Add to browser Bookmarks or Favorites' height='18' alt='Add to Browser Bookmarks / Favorites'></a>&nbsp;&nbsp;";a+=AddItem("StumbleUpon","stumbleupon.png","http://www.stumbleupon.com/submit.php?url="+PageURL+"&amp;title="+PageTitle)+"&nbsp;&nbsp;";a+=AddItem("Del.icio.us","delicious.png","http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url="+
PageURL+"&amp;title="+PageTitle)+"&nbsp;&nbsp;";a+=AddItem("Digg","digg.png","http://digg.com/submit?phase=2&amp;url="+PageURL+"&amp;title="+PageTitle)+"&nbsp;&nbsp;";a+=AddItem("Technorati","technorati.png","http://technorati.com/faves?add="+PageURL)+"&nbsp;&nbsp;";a+=AddItem("Furl","furl.png","http://www.furl.net/storeIt.jsp?t="+PageTitle+"&amp;u="+PageURL)+"&nbsp;&nbsp;";a+="<a href='/sendlink.php?url="+PageURL+"&amp;title="+PageTitle+"'><img class='bmarks' src='/images/bookmarks/sendlink.png' border='0' width='18' height='18' title='E-mail this page to a friend or colleague' alt='E-mail this page to a friend or colleague'></a>";
a+="</div>";document.write(a)}var qm_si,qm_li,qm_lo,qm_tt,qm_th,qm_ts,qm_la,qm_ic,qm_ib,qp="parentNode",qc="className",qm_t=navigator.userAgent,qm_o=qm_t.indexOf("Opera")+1,qm_s=qm_t.indexOf("afari")+1,qm_s2=qm_s&&qm_t.indexOf("ersion/2")+1,qm_s3=qm_s&&qm_t.indexOf("ersion/3")+1,qm_n=qm_t.indexOf("Netscape")+1,qm_v=parseFloat(navigator.vendorSub);
function qm_create(a,c,b,d,e,h,f,j,q,r,l){var m="onmouseover",k=m,o="onclick";if(e){if(e=="all"||e=="lev2"&&l>=2){m=o;b=0}if(e=="all"||e=="main"){k=o;d=0}}if(l){if(f)a.ch=1}else{l=1;qm_th=d;a=document.getElementById("qm"+a);if(window.qm_pure)a=qm_pure(a);a[m]=function(n){qm_kille(n)};document[k]=qm_bo;if(e=="main"){qm_ib=true;a[o]=function(n){qm_ic=true;qm_oo({},qm_la,1);qm_kille(n)};document.onmouseover=function(){qm_la=null;clearTimeout(qm_tt);qm_tt=null}}a.style.zoom=1;f&&x2("qmsh",a,1);if(!c)a.ch=
1}if(e)a.oc=e;if(f)a.sh=1;if(j)a.fl=1;if(q)a.ft=1;if(h)a.rl=1;a.style.zIndex=l+"1";var p;a=a.childNodes;for(k=0;k<a.length;k++){var g=a[k];if(g.tagName=="A"){p=g;g[m]=qm_oo;if(m==o)g.onmouseover=function(n){clearTimeout(qm_tt);qm_la=qm_tt=null;qm_kille(n)};g.qmts=b;if(l==1&&c){g.style.styleFloat="none";g.style.cssFloat="none"}}else if(g.tagName=="DIV"){window.showHelp&&!window.XMLHttpRequest&&a[k].insertAdjacentHTML("afterBegin","<span class='qmclear'> </span>");x2("qmparent",p,1);p.cdiv=g;g.idiv=
p;if(qm_n&&qm_v<8&&!g.style.width)g.style.width=g.offsetWidth+"px";new qm_create(g,null,b,d,e,h,f,j,q,r,l+1)}}}function qm_bo(a){qm_ic=false;qm_la=null;clearTimeout(qm_tt);qm_tt=null;if(qm_li)qm_tt=setTimeout("x0()",qm_th)}function x0(){var a;if(a=qm_li){do qm_uo(a);while((a=a[qp])&&!qm_a(a))}qm_li=null}function qm_a(a){if(a[qc].indexOf("qmmc")+1)return 1}function qm_uo(a,c){if(!(!c&&a.qmtree)){window.qmad&&qmad.bhide&&eval(qmad.bhide);a.style.visibility="";x2("qmactive",a.idiv)}}
function qa(a,c){return String.fromCharCode(a.charCodeAt(0)-(c-parseInt(c/2)*2))}
function qm_oo(a,c,b){c||(c=this);if(!(qm_la==c&&!b)){window.qmv_a&&!b&&qmv_a(c);if(window.qmwait)qm_kille(a);else{clearTimeout(qm_tt);qm_tt=null;qm_la=c;if(!b&&c.qmts){qm_si=c;qm_tt=setTimeout("qm_oo(new Object(),qm_si,1)",c.qmts)}else{b=c;if(b[qp].isrun)qm_kille(a);else if(!(qm_ib&&!qm_ic)){for(var d=true;(b=b[qp])&&!qm_a(b);)if(b==qm_li)d=false;if(qm_li&&d){b=c;if(!b.cdiv||b.cdiv&&b.cdiv!=qm_li)qm_uo(qm_li);for(b=qm_li;(b=b[qp])&&!qm_a(b);)if(b!=c[qp]&&b!=c.cdiv)qm_uo(b);else break}b=c;d=c.cdiv;
if(b.cdiv){var e=b.offsetWidth,h=b.offsetHeight,f=b.offsetLeft,j=b.offsetTop;if(d[qp].ch){e=0;if(d.fl)f=0}else{if(d.ft)j=0;if(d.rl){f-=d.offsetWidth;e=0}h=0}if(qm_o){f-=b[qp].clientLeft;j-=b[qp].clientTop}if(qm_s2&&!qm_s3){f-=qm_gcs(b[qp],"border-left-width","borderLeftWidth");j-=qm_gcs(b[qp],"border-top-width","borderTopWidth")}if(!d.ismove){d.style.left=f+e+"px";d.style.top=j+h+"px"}x2("qmactive",c,1);window.qmad&&qmad.bvis&&eval(qmad.bvis);d.style.visibility="inherit";qm_li=d}else qm_li=qm_a(b[qp])?
null:b[qp];qm_kille(a)}}}}}function qm_gcs(a,c,b){var d;if(document.defaultView&&document.defaultView.getComputedStyle)d=document.defaultView.getComputedStyle(a,null).getPropertyValue(c);else if(a.currentStyle)d=a.currentStyle[b];return d&&!isNaN(d=parseInt(d))?d:0}function x2(a,c,b){var d=c[qc];if(b){if(d.indexOf(a)==-1)c[qc]+=(d?" ":"")+a}else{c[qc]=d.replace(" "+a,"");c[qc]=c[qc].replace(a,"")}}
function qm_kille(a){a||(a=event);a.cancelBubble=true;a.stopPropagation&&!(qm_s&&a.type=="click")&&a.stopPropagation()}function qm_pure(a){if(a.tagName=="UL"){var c=document.createElement("DIV");c.qmpure=1;var b;if(b=a.style.cssText)c.style.cssText=b;qm_convert(a,c);b=document.createElement("SPAN");b.className="qmclear";b.innerHTML=" ";c.appendChild(b);a=a[qp].replaceChild(c,a);a=c}return a}
function qm_convert(a,c,b){b||(c[qc]=a[qc]);c.id=a.id;a=a.childNodes;for(b=0;b<a.length;b++)if(a[b].tagName=="LI")for(var d=a[b].childNodes,e=0;e<d.length;e++){if(d[e]&&(d[e].tagName=="A"||d[e].tagName=="SPAN"))c.appendChild(a[b].removeChild(d[e]));if(d[e]&&d[e].tagName=="UL"){var h=document.createElement("DIV"),f;if(f=d[e].style.cssText)h.style.cssText=f;if(f=d[e].className)h.className=f;h=c.appendChild(h);new qm_convert(d[e],h,1)}}};