"use strict";window.onerror=function(d,c,a){var b=new Image();b.src="Images/Spacer.GIF?msg="+encodeURIComponent(d)+";url="+encodeURIComponent(c)+";line="+a;b=null};var _gaq=[["_setAccount","UA-99745-1"],["_trackPageview"]],_qoptions={qacct:"p-acpWpszny_8go"},google_ad_client,google_ad_slot,google_ad_width,google_ad_height;var Ptable=new function(){var di="en",cv="day",au=false,dn="Unknown",cZ="Solid",aQ="Liquid",aV="Gas",q="Stable",w=0,db=(di=="zh")?2:4,c2=2,U=6,c8=au?1:0,cJ=au?0:1,bJ={selected:0,neutrons:1,isomass:2,binding:3,masscontrib:4,halflife:5,decaymode:6,width:7,wiki:8},bO=(cv==="night"?"000000":"FFFFFF"),cD=(cv==="night"?"FFFFFF":"000000"),i=false,cP=false,aI=false,cQ=false,a1,by,l=[],p=[],aw=[],af=false,y,df,cN="WriteupTab",de,m="series",b4="isomass",am=[],dl=[],aW=[],cF=false,aB=false,ag=[{Unknown:"#667766",Gas:"#AA0000",Liquid:"#0000DD",Solid:"#000000"},{Unknown:"#667766",Gas:"#AA0000",Liquid:"#0000DD",Solid:"#000000"}],D,c4=[],cH,G="landscape",aq={PropertyTab:["melt","boil","electroneg","discover","affinity","heat","radius","abundance","ionize","valence","density","hardness","modulus","conductivity"],IsotopeTab:["isomass","binding","masscontrib","halflife","width","neutrons"]},ch={series:{units:[" K"],slidermin:0,slidermax:6000,tab:"Weight",subset:0},chemical:{units:[null],legends:["Series","Series"],tab:"Series",values:["Wikipedia","IUPAC"],subset:1,help:"Select either [http://en.wikipedia.org/wiki/Collective_names_of_groups_of_like_elements Wikipedia's element classifications] or the [http://old.iupac.org/publications/books/rbook/Red_Book_2005.pdf IUPAC Red Book]'s groupings (IR-3.5, page 51)."},state:{units:[" K"],slidermin:0,slidermax:6000,legends:["State"],tab:"State",help:"Select a temperature to see the state of matter of all elements at that temperature."},melt:{units:[" K"],startcolor:"6666FF",endcolor:"FF0000",defaultcolor:"CCCCCC",slidermin:0,slidermax:6000,legends:["Kelvin"],tab:"Melting Point",subset:0,help:"Darker colors indicate an element's melting point is colder (blue) or hotter (red) than the selected temperature."},boil:{units:[" K"],startcolor:"6666FF",endcolor:"FF0000",defaultcolor:"CCCCCC",slidermin:0,slidermax:6000,legends:["Kelvin"],tab:"Boiling Point",subset:0,help:"Darker colors indicate an element's boiling point is colder (blue) or hotter (red) than the selected temperature."},electroneg:{units:[null],startcolor:"FFFF66",endcolor:"BB0000",defaultcolor:bO,legends:["Pauling"],tab:"Electronegativity",scales:["lin"],subset:0,help:"Electronegativity values range from a low of 0.7 (yellow) to 3.98 (red)."},affinity:{units:[" kJ/mol"],startcolor:"009900",endcolor:"FFFF00",defaultcolor:bO,legends:["kJ/mol"],tab:"Affinity",scales:["log"],subset:0,help:"Electron affinity values range from a low of 0 (green) to 349 (yellow)."},valence:{units:[null],startcolor:"FFFF00",endcolor:"0088FF",defaultcolor:bO,legends:["Valence"],tab:"Valence",scales:["lin"],subset:0,help:"Valences for the majority of elements are based on the highest known fluoride."},ionize:{units:[" kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"," kJ/mol"],startcolor:"66FF44",endcolor:"8844FF",defaultcolor:bO,legends:["kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol","kJ/mol"],tab:"Ionization",dbnames:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],values:["1\u02e2\u1d57","2\u207f\u1d48","3\u02b3\u1d48","4\u1d57\u02b0","5\u1d57\u02b0","6\u1d57\u02b0","7\u1d57\u02b0","8\u1d57\u02b0","9\u1d57\u02b0","10\u1d57\u02b0","11\u1d57\u02b0","12\u1d57\u02b0","13\u1d57\u02b0","14\u1d57\u02b0","15\u1d57\u02b0","16\u1d57\u02b0","17\u1d57\u02b0","18\u1d57\u02b0","19\u1d57\u02b0","20\u1d57\u02b0","21\u02e2\u1d57","22\u207f\u1d48","23\u02b3\u1d48","24\u1d57\u02b0","25\u1d57\u02b0","26\u1d57\u02b0","27\u1d57\u02b0","28\u1d57\u02b0","29\u1d57\u02b0","30\u1d57\u02b0"],scales:["log","log","log","log","log","log","log","log","log","log","log","log","log","log","log","log","log","log","log","log","log","log","log","log","log","log","log","log","log","log"],subset:0},radius:{units:[" pm"," pm"," pm"," pm"],startcolor:bO,endcolor:"446600",defaultcolor:"CCCCCC",legends:["pm","pm","pm","pm"],tab:"Radius",dbnames:["calculated","empirical","covalent","van_der_waals"],values:["Calculated","Empirical","Covalent","Van der Waals"],scales:["lin","lin","lin","lin"],subset:0},hardness:{units:[" MPa",null," MPa"],startcolor:"FFCCEE",endcolor:"008866",defaultcolor:bO,legends:["MPa",null,"MPa"],tab:"Hardness",dbnames:["brinell","mohs","vickers"],values:["Brinell","Mohs","Vickers"],scales:["lin","lin","log"],subset:0},modulus:{units:[" GPa"," GPa"," GPa"],startcolor:"BBFFDD",endcolor:"7700AA",defaultcolor:bO,legends:["GPa","GPa","GPa"],tab:"Modulus",dbnames:["bulk","shear","young"],values:["Bulk","Shear","Young"],scales:["lin","lin","lin"],subset:0},density:{units:[" kg/m\u00b3"," kg/m\u00b3"],startcolor:"DDDDFF",endcolor:"666600",defaultcolor:bO,legends:["kg/m\u00b3","kg/m\u00b3"],tab:"Density",dbnames:["stp","liquid"],values:["STP","Liquid"],scales:["lin","lin"],subset:0},conductivity:{units:[" W/mK"," MS/m"],startcolor:bO,endcolor:"008800",defaultcolor:"CCCCCC",legends:["W/mK","MS/m"],tab:"Conductivity",dbnames:["thermal","electric"],values:["Thermal","Electric"],scales:["lin","lin"],subset:0},heat:{units:[" J/kgK"," kJ/mol"," kJ/mol"],startcolor:bO,endcolor:"FF0000",defaultcolor:"CCCCCC",legends:["J/kgK","kJ/mol","kJ/mol"],tab:"Heat",dbnames:["specific","vaporization","fusion"],values:["Specific","Vaporization","Fusion"],scales:["log","lin","log"],subset:0},abundance:{units:["%","%","%","%","%","%"],startcolor:bO,endcolor:"4444FF",defaultcolor:"CCCCCC",legends:["Percent","Percent","Percent","Percent","Percent","Percent"],tab:"Abundance",dbnames:["universe","solar","meteor","crust","ocean","human"],values:["Universe","Solar","Meteor","Crust","Ocean","Human"],scales:["log","log","log","log","log","log"],subset:0,help:"Abundance percentages for elements in each context are by mass, not number of atoms."},discover:{units:[null],slidermin:1730,slidermax:2011,"default":2011,startcolor:"FFFFFF",endcolor:"666600",defaultcolor:"FFFFFF",legends:["Year"],tab:"Discovered",subset:0,help:"Select a year to dim elements discovered after that year."},orbital:{units:[null],legends:["Oxidation"],tab:"Oxidation",subset:0,help:"Common oxidation states are shown in bold beneath the element closeup."},isotope:{units:[null],legends:["Isotopes","Isotopes"],tab:"Isotopes",values:["Selected","All"],subset:0,help:"Choose whether to display all of an element's isotopes or only a select few when clicked."},isoname:{tab:"Mass"},isomass:{tab:"Mass",units:[null],startcolor:"FFFFFF",endcolor:"0095B6",defaultcolor:"FFFFFF",scale:"lin",subset:0},binding:{tab:"Binding Energy",units:[" MeV"],startcolor:"FFFFFF",endcolor:"009900",defaultcolor:"FFFFFF",scale:"lin",subset:0},masscontrib:{tab:"Abundance",units:["%"],startcolor:"FFFFFF",endcolor:"DAA520",defaultcolor:"FFFFFF",legends:["%"],scale:"log",subset:0},halflife:{tab:"Half-Life",units:["Time"],startcolor:"FFFFFF",endcolor:"B88600",defaultcolor:"A87600",scale:"log",subset:0},width:{tab:"Decay Width",units:[" MeV"],startcolor:"FFFFFF",endcolor:"008888",defaultcolor:"FFFFFF",scale:"log",subset:0}},bT={series:[[]],chemical:[[],[]],orbital:[["","-1,1","","1","2","3","-4,4","-3,3,5","-2","-1","","1","2","3","-4,4","-3,3,5","-2,2,4,6","-1,1,3,5,7","","1","2","3","4","5","3,6","2,4,7","2,3","2,3","2","2","2","3","-4,2,4","-3,3,5","-2,2,4,6","-1,1,3,5,7","2","1","2","3","4","5","4,6","4,7","3,4","3","2,4","1","2","3","-4,2,4","-3,3,5","-2,2,4,6","-1,1,3,5,7","2,4,6","1","2","3","3,4","3","3","3","3","2,3","3","3","3","3","3","3","3","3","4","5","4,6","4","4","3,4","2,4","3","1,2","1,3","2,4","3","-2,2,4","-1,1","","1","2","3","4","5","6","5","4","3","3","3","3","3","3","3","3","3","4","","","","","","","","","","","","","",""]],oxidation:["","-1c,1c","","-1,1c","2c","1,2,3c","-4c,-3,-2,-1,1,2,3,4c","-3c,-2,-1,1,2,3c,4,5c","-2c,-1,1,2","-1c","","-1,1c","1,2c","1,3c","-4c,-3,-2,-1,1,2,3,4c","-3c,-2,-1,1,2,3c,4,5c","-2c,-1,1,2c,3,4c,5,6c","-1c,1c,2,3c,4,5c,6,7c","","1c","2c","1,2,3c","-1,2,3,4c","-1,1,2,3,4,5c","-2,-1,1,2,3c,4,5,6c","-3,-2,-1,1,2c,3,4c,5,6,7c","-2,-1,1,2c,3c,4,5,6","-1,1,2c,3c,4,5","-1,1,2c,3,4","1,2c,3,4","2c","1,2,3c","-4c,1,2c,3,4c","-3c,2,3c,5c","-2c,2c,4c,6c","-1c,1c,3c,4,5c,7c","2c","1c","2c","1,2,3c","1,2,3,4c","-1,2,3,4,5c","-2,-1,1,2,3,4c,5,6c","-3,-1,1,2,3,4c,5,6,7c","-2,1,2,3c,4c,5,6,7,8","-1,1,2,3c,4,5,6","2c,4c","1c,2,3","2c","1,2,3c","-4c,2c,4c","-3c,3c,5c","-2c,2c,4c,5,6c","-1c,1c,3c,5c,7c","2c,4c,6c,8","1c","2c","2,3c","2,3c,4c","2,3c,4","2,3c","3c","2,3c","2c,3c","1,2,3c","1,3c,4","2,3c","3c","3c","2,3c","2,3c","3c","2,3,4c","-1,2,3,4,5c","-2,-1,1,2,3,4c,5,6c","-3,-1,1,2,3,4c,5,6,7","-2,1,2,3,4c,5,6,7,8","-3,-1,1,2,3c,4c,5,6","2c,4c,5,6","-1,1,2,3c,5","1c,2c,4","1c,3c","-4,2c,4c","-3,3c,5","-2c,2c,4c,6","-1c,1c,3,5,7","2","1c","2c","3c","2,3,4c","3,4,5c","3,4,5,6c","3,4,5c,6,7","3,4c,5,6,7","2,3c,4,5,6","3c,4","3c,4","2,3c,4","2,3c","2,3c","2,3c","2,3c","3c","4c","","","","","","","","","","","","","",""],electronstring:["","1s1","1s2","[He]2s1","[He]2s2","[He]2s22p1","[He]2s22p2","[He]2s22p3","[He]2s22p4","[He]2s22p5","[He]2s22p6","[Ne]3s1","[Ne]3s2","[Ne]3s23p1","[Ne]3s23p2","[Ne]3s23p3","[Ne]3s23p4","[Ne]3s23p5","[Ne]3s23p6","[Ar]4s1","[Ar]4s2","[Ar]4s23d1","[Ar]4s23d2","[Ar]4s23d3","[Ar]4s13d5","[Ar]4s23d5","[Ar]4s23d6","[Ar]4s23d7","[Ar]4s23d8","[Ar]4s13d10","[Ar]4s23d10","[Ar]4s23d104p1","[Ar]4s23d104p2","[Ar]4s23d104p3","[Ar]4s23d104p4","[Ar]4s23d104p5","[Ar]4s23d104p6","[Kr]5s1","[Kr]5s2","[Kr]5s24d1","[Kr]5s24d2","[Kr]5s14d4","[Kr]5s14d5","[Kr]5s24d5","[Kr]5s14d7","[Kr]5s14d8","[Kr]4d10","[Kr]5s14d10","[Kr]5s24d10","[Kr]5s24d105p1","[Kr]5s24d105p2","[Kr]5s24d105p3","[Kr]5s24d105p4","[Kr]5s24d105p5","[Kr]5s24d105p6","[Xe]6s1","[Xe]6s2","[Xe]6s25d1","[Xe]6s24f15d1","[Xe]6s24f3","[Xe]6s24f4","[Xe]6s24f5","[Xe]6s24f6","[Xe]6s24f7","[Xe]6s24f75d1","[Xe]6s24f9","[Xe]6s24f10","[Xe]6s24f11","[Xe]6s24f12","[Xe]6s24f13","[Xe]6s24f14","[Xe]6s24f145d1","[Xe]6s24f145d2","[Xe]6s24f145d3","[Xe]6s24f145d4","[Xe]6s24f145d5","[Xe]6s24f145d6","[Xe]6s24f145d7","[Xe]6s14f145d9","[Xe]6s14f145d10","[Xe]6s24f145d10","[Xe]6s24f145d106p1","[Xe]6s24f145d106p2","[Xe]6s24f145d106p3","[Xe]6s24f145d106p4","[Xe]6s24f145d106p5","[Xe]6s24f145d106p6","[Rn]7s1","[Rn]7s2","[Rn]7s26d1","[Rn]7s26d2","[Rn]7s25f26d1","[Rn]7s25f36d1","[Rn]7s25f46d1","[Rn]7s25f6","[Rn]7s25f7","[Rn]7s25f76d1","[Rn]7s25f9","[Rn]7s25f10","[Rn]7s25f11","[Rn]7s25f12","[Rn]7s25f13","[Rn]7s25f14","[Rn]7s25f147p1","[Rn]7s25f146d2","[Rn]7s25f146d3","[Rn]7s25f146d4","[Rn]7s25f146d5","[Rn]7s25f146d6","[Rn]7s25f146d7","[Rn]7s15f146d9","[Rn]7s15f146d10","[Rn]7s25f146d10","[Rn]7s25f146d107p1","[Rn]7s25f146d107p2","[Rn]7s25f146d107p3","[Rn]7s25f146d107p4","[Rn]7s25f146d107p5","[Rn]7s25f146d107p6"],melt:[[3848,14.01,0,453.69,1560,2348,3823,63.05,54.8,53.5,24.56,370.87,923,933.47,1687,317.3,388.36,171.6,83.8,336.53,1115,1814,1941,2183,2180,1519,1811,1768,1728,1357.77,692.68,302.91,1211.4,1090,494,265.8,115.79,312.46,1050,1799,2128,2750,2896,2430,2607,2237,1828.05,1234.93,594.22,429.75,505.08,903.78,722.66,386.85,161.3,301.59,1000,1193,1071,1204,1294,1373,1345,1095,1586,1629,1685,1747,1770,1818,1092,1936,2506,3290,3695,3459,3306,2739,2041.4,1337.33,234.32,577,600.61,544.4,527,575,202,300,973,1323,2023,1845,1408,917,913,1449,1618,1323,1173,1133,1800,1100,1100,1900]],boil:[[5894,20.28,4.22,1615,2743,4273,4300,77.36,90.2,85.03,27.07,1156,1363,2792,3173,553.6,717.87,239.11,87.3,1032,1757,3103,3560,3680,2944,2334,3134,3200,3186,3200,1180,2477,3093,887,958,332,119.93,961,1655,3618,4682,5017,4912,4538,4423,3968,3236,2435,1040,2345,2875,1860,1261,457.4,165.1,944,2143,3737,3633,3563,3373,3273,2076,1800,3523,3503,2840,2973,3141,2223,1469,3675,4876,5731,5828,5869,5285,4701,4098,3129,629.88,1746,2022,1837,1235,610,211.3,950,2010,3473,5093,4273,4200,4273,3503,2284,3383]],isotope:[[0,3,2,2,3,2,3,3,3,2,3,2,3,2,4,3,5,3,7,3,9,5,6,4,5,4,7,5,8,2,7,2,7,3,9,2,9,5,9,5,8,5,9,5,10,5,9,6,11,2,11,3,11,3,13,4,8,3,8,3,7,3,8,4,7,3,8,5,11,5,11,4,8,7,7,2,11,7,9,5,11,3,6,3,3,1,2,3,4,3,6,6,6,3,6,3,8,5,7,4,4,3,3,1,1,1,1,2,2,1,1,1,1,1,1,1,1,1,1],[1,7,9,10,12,14,15,16,17,18,19,20,22,22,23,23,24,24,24,24,24,25,26,26,26,26,28,29,31,29,30,31,32,33,30,31,32,32,33,33,33,33,33,34,34,34,34,38,38,39,39,37,38,37,38,40,40,39,39,39,38,38,38,38,36,36,36,36,35,35,35,35,36,36,35,35,35,36,37,37,40,37,38,36,33,31,34,34,33,31,30,29,26,20,20,19,20,20,20,19,19,18,17,16,16,16,16,16,15,15,15,12,9,5,5,5,4,2,1]]},v=false,dg=false,ac=false,ai=false,b=false,cu=0,bp,bs=true,av=100,aA=35,bG=10,cL=50,an=20,L=250,cY=13,dr=27,c9=38,ap=40,ba=37,bm=39,dm=36,aP=35,B=33,bj=34,bu=48,ak=57,du,bQ=true,b9=false,aY,a5,a2,az,t,E,al,br,cK,bC,cO,cA,dx,b3,bN=true,bP,aX,ab,bw,ct,C=[],z=[],ds=[],bU=[],dc=[],c1=[];if(cv==="night"){ag=[{Unknown:"#99AA99",Gas:"#FFAAAA",Liquid:"#AAAAFF",Solid:"#FFFFFF"},{Unknown:"#667766",Gas:"#AA0000",Liquid:"#0000DD",Solid:"#222222"}]}var ci=function(){aY=document.getElementById("Temperature").rows[0].cells[0];a5=document.getElementById("Temperature").rows[1].cells[0];a2=document.getElementById("Temperature").rows[2].cells[0];az=document.getElementById("l_state").getElementsByTagName("span")[0];t=document.getElementById("wide");E=document.getElementById("Main");al=document.getElementById("CloseupElement");br=document.getElementById("SliderDisplay");cK=document.getElementById("SliderSelect");bC=document.getElementById("SliderBar");cO=document.getElementById("SearchInput");ct=document.getElementById("SeriesChoice");cA=document.getElementById("WikiBox");dx=document.getElementById("WikiTitle");ab=document.getElementById("Properties");bw=document.getElementById("MatterState");bw.show="block";var dF=ab.getElementsByTagName("td"),dE=document.getElementById("Series").getElementsByTagName("td"),dD=document.getElementById("Block").getElementsByTagName("th"),dA=document.getElementsByTagName("td"),dB,dz,dC;for(dB=0;dB<dA.length;dB++){if(V(dA[dB],"Element")){dC=dA[dB].firstChild.childNodes[c8].childNodes[w].getAttribute("an")*1;aw[dC]=dA[dB];aw[dC].idx=dC}}for(dz=0;dz<dF.length;dz++){if(dF[dz].id===dF[dz].id.toUpperCase()&&dF[dz].id.length){C[dF[dz].id.toLowerCase()]=dF[dz]}}for(dz=0;dz<dE.length;dz++){if(dE[dz].id){bU[dE[dz].id]=dE[dz]}}for(dz=0;dz<dD.length;dz++){ds[dD[dz].id]=dD[dz]}C.electronstring=document.getElementById("ELECTRONSTRING");z.lmn=document.getElementById("lmn");z.Hund=document.getElementById("Hund");ds.Orbital=document.getElementById("Orbital");cH=document.documentElement.offsetWidth};var b2=function(){var dB=document.getElementById("Hund").tBodies[0].rows[0].cells,dz,dC;for(dz=0;dz<dB.length;dz++){p.push(dB[dz].getElementsByTagName("table")[0].getElementsByTagName("th"))}for(dz in bT.electronstring){if(bT.electronstring[dz]){dc[dz]=bT.electronstring[dz].replace(/(\d+)(\d[spdf]|$)/g,"<sup>$1</sup> $2")}}ch.series.legends=[document.getElementById("Legend").firstChild.childNodes[U].innerHTML];ch.series.help=document.getElementById("Paren").innerHTML;for(var dC=1,dA=aw.length;dC<dA;dC++){bT.series[0][dC]=aw[dC].firstChild.childNodes[c8].childNodes[U].innerHTML;dl[dC]=aw[dC].className.slice(-1);dB=/^Element\s(.+)\s[spdf\s]$/.exec(aw[dC].className)[1];if(dB.indexOf(" ")===-1){bT.chemical[0][dC]=bT.chemical[1][dC]=dB}else{bT.chemical[0][dC]=dB.substring(0,dB.indexOf(" "));bT.chemical[1][dC]=dB.substring(dB.indexOf(" ")+1)}}a1=E.className;by=document.getElementById("DecayModes").className;cO.def=cO.value;E.inverted=false};var cn=function(){var dA=document.getElementById("Views").getElementsByTagName("input");for(var dz=0;dz<dA.length;dz++){dA[dz].onclick=c0}document.getElementById("Close").onclick=O;document.getElementById("Tearoff").onclick=bc;document.getElementById("WikiFrame").onreadystatechange=document.getElementById("WikiFrame").onload=cM;ct.onclick=bA;document.getElementById("Reset").onclick=cg;document.forms.visualize.onclick=document.forms.isotopes.onclick=b1;cA.onmouseover=a6;dx.ondblclick=ck;ct.onkeydown=document.forms.visualize.onkeydown=document.forms.isotopes.onkeydown=document.getElementById("langswitch").onkeydown=cO.onkeydown=cA.getElementsByTagName("button")[0].onmousedown=cA.getElementsByTagName("button")[1].onmousedown=function(dC){dC=dC||event;dC.cancelBubble=true};cO.onkeyup=function(){cR(this.value)};cO.onfocus=ah;cO.onblur=aH;document.onkeydown=dt;document.onkeypress=bV;window.onorientationchange=Q;window.onresize=bl;var dB=document.getElementsByTagName("td");for(var dz=0;dz<dB.length;dz++){if(V(dB[dz],"InnerBorder")){dB[dz].onmouseover=function(){S(document.body,"InnerHover");t.parentNode.style.backgroundColor="yellow";t.nextSibling.style.color="black"};dB[dz].onmouseout=function(){bZ(document.body,"InnerHover");t.parentNode.style.backgroundColor="";t.nextSibling.style.color=""};dB[dz].onclick=function(){t.checked=true;t.onclick({type:"click"})}}}if(typeof E.onmouseleave!=="undefined"){E.onmouseleave=cU}else{E.onmouseout=function(dD){for(var dC=dD.relatedTarget;dC&&dC!=E;dC=dC.parentNode){}if(!dC){cU()}}}};var b6=function(){var dA=cb();for(var dz in dA){var dB=dz.split("_");if(dB[0]==="subset"||dB[0]==="default"){ch[dB[1]][dB[0]]=dA[dz]*1}}if(document.cookie.indexOf("Weight")!==-1||document.cookie.indexOf("wide")!==-1){da(false,false)}if(document.getElementById("Electrons").checked){document.getElementById("Electrons").onclick()}if(document.getElementById("Name").checked){document.getElementById("Name").onclick()}if(document.getElementById("Weight").checked){document.getElementById("Weight").onclick()}if(t.checked){t.onclick()}if(dA.dataset){document.getElementById("t_"+dA.dataset).checked=true}if(dA.isoset){document.getElementById("t_"+dA.isoset).checked=true}de=dA.Series||"Wikipedia";if(!document.getElementById(de)){de="Wikipedia"}document.getElementById(de).className="Selected";if(dA.tab&&dA.tab!=="WriteupTab"&&dA.tab!=="SeriesTab"){bt({srcElement:document.getElementById(dA.tab)})}else{bA({srcElement:document.getElementById(de)})}};var cb=function(){var dC=document.cookie.split("; "),dA=[],dz,dB;for(dz in dC){dB=dC[dz].split("=");dA[dB[0]]=dB[1]}return dA};var aZ=function(){var dA=document.styleSheets[0].cssRules||document.styleSheets[0].rules,dD=cb(),dC=a1.split(" "),dB,dz;for(dB in dC){if(dD[dC[dB]]){for(dz=0;dz<dA.length;dz++){if(dA[dz].selectorText.indexOf(dC[dB])!==-1&&dD[dC[dB]]){dA[dz].style.backgroundColor="#"+dD[dC[dB]]}}}}};var bA=function(dE){dE=dE||event;var dB,dD,dA,dF;dF=(dE.target||dE.srcElement).id;if(cN!=="WriteupTab"){bt({srcElement:document.getElementById("WriteupTab")})}document.getElementById(de).className="";bZ(cA,de);de=dF;S(cA,de);document.getElementById(de).className="Selected";document.getElementById("WriteupTab").innerHTML=document.getElementById(de).innerHTML;x("Series",dF);E.tBodies[0].className=dF==="Wikipedia"?"":dF;for(var dC=1,dz=aw.length;dC<dz;dC++){switch(dF){case"Wikipedia":dA=aw[dC].firstChild.childNodes[c8].childNodes[db];if(dA.getAttribute("wiki")){dD=dA.getAttribute("wiki")}else{dD=dA.innerHTML}dB="http://"+di+".wikipedia.org/wiki/"+encodeURIComponent(dD);break;case"Videos":dB="http://www.periodicvideos.com/videos/"+String("00"+aw[dC].idx).slice(-3)+".htm";break;case"WebElements":dB="http://www.webelements.com/"+aw[dC].firstChild.childNodes[c8].childNodes[db].innerHTML.toLowerCase()+"/";break;case"Photos":dB="http://www.periodictable.com/Elements/"+String("00"+aw[dC].idx).slice(-3)+"/";break;case"Podcasts":dB="/syndicate/chemistryworld.php?atomic="+aw[dC].idx;break}aw[dC].firstChild.href=dB}};var cg=function(){var dA=cb();x("Weight","");x("Name","");x("Electrons","");x("wide","");x("Series","");x("dataset","");for(var dz in dA){var dB=dz.split("_");if(dB[0]==="subset"||dB[0]==="default"){x(dz,"")}}du=273;bA({srcElement:document.getElementById("Wikipedia")});if(cN==="WriteupTab"){bF("bottom")}cU();if(t.checked){t.checked=false;t.onclick()}else{cH=0;bs=true;window.onresize()}_gaq.push(["_trackEvent",di,"Reset","true"]);return false};var bl=function(){if(cH!=document.documentElement.offsetWidth&&document.cookie.indexOf("Weight")===-1){clearTimeout(this.timer);this.timer=setTimeout(N,200)}cH=document.documentElement.offsetWidth};var N=function(){var dA=["Borders","Weight","Name","Electrons"],dB=-1,dC=[];for(var dz in dA){dC[dz]=document.getElementById(dA[dz]).checked}while(document.documentElement.offsetWidth>=document.documentElement.scrollWidth&&dB<dA.length-1){if(!document.getElementById(dA[++dB]).checked){document.getElementById(dA[dB]).checked=true;document.getElementById(dA[dB]).onclick()}}dB=dA.length;while(document.documentElement.offsetWidth<document.documentElement.scrollWidth&&dB>0){if(document.getElementById(dA[--dB]).checked){document.getElementById(dA[dB]).checked=false;document.getElementById(dA[dB]).onclick()}}for(var dz in dA){if(dC[dz]!==document.getElementById(dA[dz]).checked){document.getElementById(dA[dz]).parentNode.className="Highlight";var dD=document.getElementById(dA[dz]).parentNode.offsetWidth;document.getElementById(dA[dz]).parentNode.className=document.getElementById(dA[dz]).checked?"Selected":"Unselected"}}if(bs){bs=false;if(cN==="WriteupTab"&&de==="Wikipedia"){setTimeout(be,250)}}};var M=function(){var dC=document.getElementById("Series").tBodies[0].rows;var dA=[];dA.push(dC[2].cells[0].className);for(var dz=0;dz<5;dz++){dA.push(dC[1].cells[dz].className)}dC[0].cells[0].classes=dA.join(" ");dA.length=0;for(var dz=6;dz<9;dz++){dA.push(dC[1].cells[dz].className)}dC[0].cells[1].classes=dA.join(" ");dC[0].cells[0].firstChild.onmouseover=dC[0].cells[1].firstChild.onmouseover=dC[0].cells[0].firstChild.onfocus=dC[0].cells[1].firstChild.onfocus=P;dC[0].cells[0].firstChild.onblur=dC[0].cells[1].firstChild.onblur=bh;for(var dz=0;dz<=2;dz++){for(var dD=0;dD<dC[dz].cells.length;dD++){if(dC[dz].cells[dD].className){dC[dz].cells[dD].firstChild.onmouseover=dC[dz].cells[dD].firstChild.onfocus=a0;dC[dz].cells[dD].firstChild.onblur=bh}}}if(typeof document.getElementById("Series").onmouseleave!=="undefined"){document.getElementById("Series").onmouseleave=document.getElementById("Block").onmouseleave=document.getElementById("DecayModes").onmouseleave=bh}else{document.getElementById("Series").onmouseout=document.getElementById("Block").onmouseout=document.getElementById("DecayModes").onmouseout=function(dF){for(var dE=dF.relatedTarget;dE&&(dE!=document.getElementById("Series")&&dE!=document.getElementById("Block")&&dE!=document.getElementById("DecayModes"));dE=dE.parentNode){}if(!dE){bh()}}}var dB=[];dB.push(document.getElementById("Series").getElementsByTagName("a"));dB.push(document.getElementById("DecayModes").getElementsByTagName("a"));dB.push(document.getElementById("Block").getElementsByTagName("a"));for(var dz=0;dz<dB.length;dz++){for(var dD=0;dD<dB[dz].length;dD++){dB[dz][dD].onclick=bD}}dC=document.getElementById("Block").tBodies[0].rows;for(var dz=0;dz<dC.length;dz++){dC[dz].cells[0].onmouseover=function(){ay();E.className=this.className}}dC=bw.tBodies[0].rows;for(var dz=0;dz<dC.length;dz++){dC[dz].cells[0].onmouseover=bo}if(typeof bw.onmouseleave!=="undefined"){bw.onmouseleave=cj}else{bw.onmouseout=function(dF){for(var dE=dF.relatedTarget;dE&&(dE!==bw);dE=dE.parentNode){}if(!dE){cj()}}}dC=document.getElementById("DecayModes").getElementsByTagName("th");for(dz in dC){dC[dz].onmouseover=function(){if(document.getElementById("isotopeholder").childNodes.length){document.getElementById("DecayModes").className=document.getElementById("isotopeholder").className=this.className}}}};var bo=function(){var dB=this||srcElement,dA;br.style.backgroundColor=D;if(ai!==dB.className&&ch[m]["units"][0]==" K"){if(ai){cj(dB)}if(dB.className!=="SliderBar"){ai=dB.getAttribute("state")}a7();if(ai&&(cN!=="PropertyTab"||m==="chemical")){dB.parentNode.className="InvertState";for(var dA=1,dz=aw.length;dA<dz;dA++){if(aW[dA]===ai){aw[dA].style.backgroundColor=ag[1][aW[dA]];aw[dA].firstChild.childNodes[c8].childNodes[c2].style.color=aw[dA].firstChild.style.color="white"}}}}};var cj=function(){var dz,dB,dC=bw.tBodies[0].rows;br.style.backgroundColor="";for(dz=0;dz<dC.length;dz++){dC[dz].className=""}if(m!=="state"&&m!=="melt"&&m!=="boil"){dd()}if(ai&&(cN!=="PropertyTab"||m==="chemical")){for(var dB=1,dA=aw.length;dB<dA;dB++){if(aW[dB]===ai){aw[dB].firstChild.childNodes[c8].childNodes[c2].style.color=ag[0][aW[dB]];aw[dB].firstChild.style.color=""}}aO([])}ai=false};var ay=function(){if(i){i.style.backgroundColor="";i.style.color=""}if(dg){cl(bT.chemical[0][dg],dl[dg],false)}i=false};var P=function(){if(cN!=="PropertyTab"||m==="chemical"){ay();this.parentNode.style.backgroundColor="#999";this.parentNode.style.color="white";E.className=this.parentNode.classes;i=this.parentNode}};var a0=function(){if(cN!=="PropertyTab"||m==="chemical"){ay();E.className=(this||srcElement).parentNode.className}};var bh=function(){if(cN==="IsotopeTab"){document.getElementById("DecayModes").className=document.getElementById("isotopeholder").className=by}if(cN!=="PropertyTab"||m==="chemical"){ay();E.className=a1+(cN==="OrbitalTab"?" s p d f":"");if(dg){cl(bT.chemical[0][dg],dl[dg],true)}}};var b1=function(dC,dB){dB=dB||this||srcElement;var dD=dB.name==="visualize"?u:c6;var dA=dB.getElementsByTagName("input");for(var dz=0;dz<dA.length;dz++){if(dA[dz].checked&&dA[dz].value!=m){dD(dA[dz].value)}}};var aT=function(dB){var dA=document.forms.AltSlider,dz;for(dz=0;dz<dA.length;dz++){if(dA[dz].checked&&dA[dz].value!=ch[m]["subset"]){H(dA[dz].value)}}};var ar=function(){var dz=cK.selectedIndex,dA=ch[m]["subset"];cC(dz-dA,dz-dA);aR(true)};var H=function(dA){var dz=ch[m]["values"];if(dz.length<=6){bI(dz[ch[m]["subset"]],false);bI(dz[dA],true)}ch[m]["subset"]=dA;x("subset_"+m,dA);_gaq.push(["_trackEvent",di,"Subset",dA]);if(m!=="isotope"){document.getElementById("l_"+m).getElementsByTagName("span")[0].innerHTML=" "+dz[dA]+" ";b8(dg,m)}else{if(v){cX()}}bE(true)};var cX=function(){bn(dg);cs(dg)};var u=function(dB){if(m==="state"&&E.inverted){aK()}if(m==="melt"||m==="boil"){dd()}var dA=cy(m,dB),dz=ch[dB];m=dB;if(cN==="PropertyTab"){x("dataset",m);_gaq.push(["_trackEvent",di,"Dataset",m])}if(cN==="PropertyTab"&&m!=="chemical"&&m!=="state"&&m!=="discover"){E.tBodies[0].className="NoGradient"}else{E.tBodies[0].className=""}(t.checked?E.tBodies[0].rows[4].cells[3]:document.getElementById("Paren")).innerHTML=dz.help?dz.help.replace(/\[([^\s\]]+)\s([^\]]+)\]/g,"<a href='$1'>$2</a>"):"\xa0";if(cN==="PropertyTab"){a8(m)}else{document.getElementById("Weight").nextSibling.innerHTML=dz.tab}bF(dA)};var cy=function(dC,dD){var dz={series:1,other:2,orbital:3,isotope:4},dB,dA;if(dz[dC]||dz[dD]){if(!dz[dC]){dz[dC]=2}else{if(!dz[dD]){dz[dD]=2}}if(dz[dD]>dz[dC]){return"left"}else{return"right"}}else{dB=document.getElementById("t_"+dC).parentNode.parentNode;dA=document.getElementById("t_"+dD).parentNode.parentNode;if(dB.parentNode==dA.parentNode){if(dA.rowIndex>dB.rowIndex){return"top"}else{return"bottom"}}else{if(dB.parentNode.parentNode==dB.parentNode.parentNode.parentNode.getElementsByTagName("table")[0]){return"right"}else{return"left"}}}};var c6=function(dC){b4=dC;x("isoset",b4);_gaq.push(["_trackEvent",di,"Isoset",b4]);bE(false);a8(b4);var dz=document.getElementById("isotopeholder").childNodes,dB;for(dB=0;dB<dz.length;dB++){var dA=bT[b4==="isoname"?"isomass":b4][dz[dB].idx];dz[dB].firstChild.childNodes[5].innerHTML=dA!==""?dA:"\xa0"}if(b4==="isoname"){for(dB=0;dB<dz.length;dB++){dz[dB].style.backgroundColor=""}}else{bz(bT[b4].concat(),ch[b4])}};var a8=function(dz){if(b){document.getElementById(b.toUpperCase()).parentNode.className=""}document.getElementById(dz.toUpperCase()).parentNode.className="Highlight";if(cN==="IsotopeTab"){document.getElementById("Weight").nextSibling.innerHTML=ch[b4]["tab"]}else{document.getElementById("Weight").nextSibling.innerHTML=document.getElementById("l_"+dz).innerHTML}b=dz};var bI=function(dA,dz){document.getElementById("r_"+dA).parentNode.className=(dz?"Highlight ":"")+"Radio"};var bM=function(dB,dD){var dC=dy(dB,dD.scales[dD.subset],false),dA;for(var dA=1,dz=aw.length;dA<dz;dA++){if(!isNaN(dB[dA])){aw[dA].style.backgroundColor=f(dB[dA]==-Infinity?dC[0]:dB[dA],dD.startcolor,dD.endcolor,dC[0],dC[1])}else{aw[dA].style.backgroundColor="#"+dD.defaultcolor}}};var bz=function(dA,dC){var dB=dy(dA,dC.scale,0),dz;for(dz=1;dz<dA.length;dz++){if(!isNaN(dA[dz])&&dB[0]!=dB[1]&&dA[dz]){document.getElementById("isotopeholder").childNodes[dz-1].style.backgroundColor=f(dA[dz]==-Infinity?dB[0]:dA[dz],dC.startcolor,dC.endcolor,dB[0],dB[1])}else{document.getElementById("isotopeholder").childNodes[dz-1].style.backgroundColor="#"+dC.defaultcolor}}};var dy=function(dB,dD,dA){var dC=[Number.MAX_VALUE,0],dz;for(dz in dB){if(dB[dz]!==""){dB[dz]*=1}if(dB[dz]!==dA){switch(dD){case"log":dB[dz]=Math.log(dB[dz]);break;case"inv":dB[dz]=1/dB[dz];break}}if(dB[dz]<dC[0]&&dB[dz]!=-Infinity&&!isNaN(dB[dz])&&dB[dz]!==""){dC[0]=dB[dz]}if(dB[dz]>dC[1]&&dB[dz]!=-Infinity&&!isNaN(dB[dz])&&dB[dz]!==""){dC[1]=dB[dz]}}return dC};var c0=function(dE){var dD=(typeof event!=="undefined"&&event!==null&&event.type==="click")||(typeof dE!=="undefined"&&dE.type==="click");dE=this||srcElement||dE;if(dE.id==="wide"){if(cu!==0&&cu!==15){return false}if(cN==="IsotopeTab"){document.getElementById("isotopeholder").innerHTML=""}ao(dE.checked,dD)}else{var dA={Electrons:0,Name:1,Weight:2,Borders:3},dF=["Electrons","Name","Weight","Borders"];for(var dB=dA[dE.id];dB>=0&&dB<dF.length;dB+=(dE.checked-0.5)*2){document.styleSheets[dB+1].disabled=document.getElementById(dF[dB]).checked=dE.checked}br.parentNode.parentNode.parentNode.style.height=aw[32].offsetHeight-6+"px"}if(cN==="PropertyTab"){o()}else{bQ=true}var dC=["Borders","Weight","Name","Electrons","wide"];for(var dz in dC){document.getElementById(dC[dz]).parentNode.className=(document.getElementById(dC[dz]).checked)?"Selected":""}if(dD){da(true,dE.id)}};var da=function(dC,dD){var dB=["Borders","Weight","Name","Electrons","wide"];if(dC){if(dD==="wide"){x(dD,document.getElementById(dD).checked)}else{for(var dz in dB){x(dB[dz],document.getElementById(dB[dz]).checked)}}_gaq.push(["_trackEvent",di,dD,String(document.getElementById(dD).checked)])}else{var dA=cb();for(var dz in dB){if(dA[dB[dz]]){document.getElementById(dB[dz]).checked=dA[dB[dz]]=="true"?true:false}}}};var cx=function(dB){for(var dA=1,dz=aw.length;dA<dz;dA++){dB[dA]=cz(aw[dA])}};var aO=function(dB){for(var dA=1,dz=aw.length;dA<dz;dA++){aw[dA].style.backgroundColor=(dB.length?"#"+dB[dA]:"")}};var aa=function(dB,dA){for(var dz in dB){document.getElementById(dB[dz]).style.display=dA;if(dB[dz]==="IsotopeForm"){document.getElementById("CloseupHolder").style.width=(dA==="block"?"auto":"");document.getElementById("CloseupHolder").style.position=(dA==="block"?"relative":"")}}};var bt=function(dA){aO([]);ca();dA=dA||event;var dz=(dA.srcElement||dA.target).id;if(dz.indexOf("Tab")===-1){dz="WriteupTab"}j(cN);if(cN==="OrbitalTab"){cc(false)}if(dz==="WriteupTab"&&dg){A()}cp(cN=dz);if(cN!=="WriteupTab"){dg=dg||1}C.electronstring.innerHTML="";C.electronstring.className="";x("tab",cN);_gaq.push(["_trackEvent",di,"Tab",cN]);switch(cN){case"WriteupTab":v=false;cF=["Properties","Block","Hund","DecayModes","isotopeholder"];aB=["Series"];u("series");bA({srcElement:document.getElementById(de)});break;case"PropertyTab":cF=["Block","Hund","DecayModes","isotopeholder"];aB=["Properties"];aa(["IsotopeForm"],"");if(!t.checked||G==="portrait"){cF.push("Series")}if(typeof bT.conductivity==="undefined"){cI(aq[cN])}else{b1(null,document.forms.visualize)}break;case"OrbitalTab":C.electronstring.innerHTML="<span>-4</span> <span>-3</span> <span>-2</span> <span>-1</span><span></span><br/><span>1</span> <span>2</span> <span>3</span> <span>4</span> <span>5</span> <span>6</span> <span>7</span> <span>8</span>";C.electronstring.className="OxidationStates";cF=["Properties","DecayModes","isotopeholder"];aB=["Block","Hund"];aa(["IsotopeForm"],"");if(!t.checked||G==="portrait"){cF.push("Series")}u("orbital");break;case"IsotopeTab":cF=["Properties","Block","Hund"];aB=["DecayModes"];if(!t.checked||G==="portrait"){cF.push("Series")}aa(["isotopeholder"],"");if(document.getElementById("isotopeholder").childNodes.length){aa(["Closeup","IsotopeForm"],"")}u("isotope");break}if(v&&dg&&cN!=="WriteupTab"&&cN!=="IsotopeTab"){aw[dg].onclick()}else{if(dg&&document.getElementById("IsotopeForm").style.display!=="block"){A(dg)}}k(dz);return false};var j=function(dA){var dz=document.getElementById(dA);bZ(dz,"Selected");dz.onclick=bt};var k=function(dA){var dz=document.getElementById(dA);S(dz,"Selected");dz.onclick=function(){return false}};var cV=function(dz,dA){return bT.electronstring[{He:2,Ne:10,Ar:18,Kr:36,Xe:54,Rn:86}[dA]]};var J=function(dE){var dC={s:0,p:1,d:2,f:3},dB={s:0,p:0.75,d:1.5,f:2.25},dH=[0,0],dI=[],dz=bT.electronstring[dE],dA,dJ,dG,dF,dD;while(dz.match(/\[.*\]/)){dz=dz.replace(/\[(.*)\]/,cV)}dA=dz.replace(/(\d+)(\d[spdf]|$)/g,"$1 $2").split(" ");z.OrbitalString.innerHTML=dz.replace(/(\d+)(\d[spdf]|$)/g,"<sup>$1</sup> $2");for(dJ=0;dJ<dA.length-1;dJ++){dI[dA[dJ].substr(0,2)]=dA[dJ].match(/[spdf](\d+)$/)[1];if(Number(dA[dJ].charAt(0))+dB[dA[dJ].charAt(1)]>dH[1]){dH=[dA[dJ].substr(0,2),Number(dA[dJ].charAt(0))+dB[dA[dJ].charAt(1)],dI[dA[dJ].substr(0,2)]]}}for(dJ=0;dJ<p.length;dJ++){for(dG=0;dG<p[dJ].length;dG++){dD=p[dJ][dG].parentNode.cells.length-1;for(dF=1;dF<=dD*2;dF++){p[dJ][dG].parentNode.cells[dF<=dD?dF:dF-dD].childNodes[dF<=dD?0:1].style.visibility=(dF<=(p[dJ][dG].innerHTML.substr(0,2) in dI?dI[p[dJ][dG].innerHTML.substr(0,2)]:0)?"visible":"hidden")}}}aC(dH[0].charAt(1),dH[2]-1,dH[0].charAt(0)-dC[dH[0].charAt(1)]-1);bB(dE)};var bB=function(dC){var dA=(bT.oxidation[dC]||"").split(","),dB=C.electronstring.getElementsByTagName("span"),dz=0,dD=0;for(dz=0;dz<13;dz++){if(dz-4==parseInt(dA[dD],10)){dB[dz].style.visibility="visible";if(dA[dD].slice(-1)==="c"){dB[dz].className="Common"}else{dB[dz].className=""}dD++}else{dB[dz].style.visibility="hidden";dB[dz].className=""}}};var aC=function(dB,dA,dE){var dC={s:0,p:1,d:2,f:3},dD=z.Hund.tBodies[0].rows[0].cells[dC[dB]].getElementsByTagName("table")[0].tBodies[0].rows,dz;if(cQ){cQ.className=""}ds.Orbital.style.backgroundImage='url("http://cdn.ptable.com/Images/orbitals-'+dB+(cv==="night"?"-night":"")+'.png")';ds.Orbital.style.backgroundPosition="-"+(cv==="night"?64:108)*dA+"px -"+(cv==="night"?64:108)*dE+"px";dz=dD[dD.length-dE-1].cells;cQ=dz[dA+1>=dz.length?dA-(dz.length-2):dA+1];z.lmn.tBodies[0].rows[0].cells[2].innerHTML=dC[dB];z.lmn.tBodies[0].rows[1].cells[2].innerHTML=(dA+1>=dz.length?dA-(dz.length-1):dA)-dC[dB];z.lmn.tBodies[0].rows[2].cells[2].innerHTML=dE+dC[dB]+1;cQ.className="HoverOrbital"};var cp=function(dF){var dD={s:0,p:1,d:2,f:3};switch(dF){case"OrbitalTab":var dG=z.Hund.tBodies[0].rows[0].cells;for(var dE=0;dE<dG.length;dE++){var dB=dG[dE].getElementsByTagName("table")[0].getElementsByTagName("td");for(var dC=0;dC<dB.length;dC++){dB[dC].l=dB[dC].parentNode.cells[0].innerHTML.charAt(1);dB[dC].n=dB[dC].parentNode.cells[0].innerHTML.charAt(0)-1-dD[dB[dC].l];dB[dC].m=dB[dC].cellIndex-1;dB[dC].onmouseover=function(){aC(this.l,this.m,this.n)}}}for(var dE=1,dA=aw.length;dE<dA;dE++){cS(dE);aw[dE].onclick=function(){cs(this.idx)};aw[dE].firstChild.removeAttribute("href");aw[dE].firstChild.onclick=aw[dE].firstChild.onmouseup=null}break;case"IsotopeTab":for(var dE=1,dA=aw.length;dE<dA;dE++){cS(dE);aw[dE].onclick=function(){bn(this.idx);cs(this.idx)};aw[dE].firstChild.removeAttribute("href");aw[dE].firstChild.onclick=aw[dE].firstChild.onmouseup=null}break;case"PropertyTab":for(var dE=1,dA=aw.length;dE<dA;dE++){cS(dE);aw[dE].onclick=function(){cs(this.idx)};aw[dE].firstChild.removeAttribute("href");aw[dE].firstChild.onclick=aw[dE].firstChild.onmouseup=null}break;case"WriteupTab":for(var dE=1,dA=aw.length;dE<dA;dE++){cS(dE);aw[dE].onclick=null;aw[dE].firstChild.onmouseup=bD;aw[dE].firstChild.onclick=h}break;case"Groups":var dz=E.tHead.rows[0].cells;for(var dE=1;dE<dz.length;dE++){dz[dE].firstChild.onmouseup=bD;dz[dE].firstChild.onclick=h;dz[dE].firstChild.onmouseover=dz[dE].firstChild.onmouseout=dz[dE].firstChild.onfocus=dz[dE].firstChild.onblur=ad}for(var dE=0;dE<7;dE++){E.tBodies[0].rows[dE].cells[0].firstChild.onmouseup=bD;E.tBodies[0].rows[dE].cells[0].firstChild.onclick=h;E.tBodies[0].rows[dE].cells[0].onmouseover=E.tBodies[0].rows[dE].cells[0].onmouseout=E.tBodies[0].rows[dE].cells[0].firstChild.onfocus=E.tBodies[0].rows[dE].cells[0].firstChild.onblur=n}break}};var h=function(){var dz=!aX;aX=false;return dz};var cS=function(dz){if(typeof aw[dz].onmouseenter!=="undefined"){aw[dz].onmouseenter=function(){A(this.idx)}}else{aw[dz].onmouseover=function(dB){for(var dA=dB.relatedTarget;dA&&dA!=aw[this.idx];dA=dA.parentNode){}if(!dA){A(this.idx)}}}};var cs=function(dB){if(cP){aw[cP].onclick=aw[dB].onclick;bZ(aw[cP],"Lock")}if(v&&document.getElementById("IsotopeForm").style.display!=="block"){A(dB)}S(aw[dB],"Lock");v=true;for(var dA=1,dz=aw.length;dA<dz;dA++){if(typeof aw[dA].onmouseenter!=="undefined"){aw[dA].onmouseenter=null}else{aw[dA].onmouseover=null}}aw[dB].onclick=function(){bZ(this,"Lock");v=false;document.getElementById("DecayModes").className=by;ca();aI=false;cP=false;cp(cN);A(dB)};cP=dB};var bq=function(dB,dz){var dA,dC=aw[dB].firstChild;al.replaceChild(dC.firstChild.cloneNode(true),al.firstChild);al.replaceChild(dC.childNodes[1].cloneNode(true),al.childNodes[1]);if(E.inverted){al.childNodes[c8].childNodes[c2].style.color=""}al.style.backgroundColor="#"+c1[dB];if(cN!=="WriteupTab"){al.childNodes[c8].childNodes[U].innerHTML=bT.series[0][dB]}if(bw.show==="block"&&(!t.checked||G==="portrait")){bw.style.display="none";bw.show="none"}document.getElementById("Closeup").style.display="block";if(dz){C.electronstring.innerHTML=dc[dB];C.chemical.innerHTML=bT.chemical[ch.chemical.subset][dB];C.state.innerHTML=aW[dB];for(dA in aq.PropertyTab){b8(dB,aq.PropertyTab[dA])}}};var b8=function(dC,dD){var dz=bT[dD],dA=ch[dD],dB=dA.subset;C[dD].innerHTML=(typeof dz[dB][dC]!=="undefined")?T(String(dz[dB][dC]))+(dA.units[dB]||""):dn};var o=function(){var dz=ab.getElementsByTagName("table");if(dz[1].offsetWidth){dz[0].style.position="absolute";dz[0].style.left=dz[1].offsetWidth+5+"px";bQ=false}};var bg=function(){for(var dA=1,dz=aw.length;dA<dz;dA++){aw[dA].firstChild.childNodes[c8].childNodes[c2].style.color=ag[0][cZ]}};var cd=function(dB,dA){var dE=du,dD,dC;for(var dC=1,dz=aw.length;dC<dz;dC++){dD=dB;if(!bT.boil[0][dC]&&(!bT.melt[0][dC]||dE>=bT.melt[0][dC])){if(aW[dC]!==dn){dD=true;aW[dC]=dn}}else{if(dE>=bT.boil[0][dC]){if(aW[dC]!==aV){dD=true;aW[dC]=aV}}else{if(dE>=bT.melt[0][dC]){if(aW[dC]!==aQ){dD=true;aW[dC]=aQ}}else{if(dE<bT.melt[0][dC]){if(aW[dC]!==cZ){dD=true;aW[dC]=cZ}}}}}if(dD){if(dA&&!E.inverted){aw[dC].firstChild.childNodes[c8].childNodes[c2].style.color=aw[dC].firstChild.style.color="white";setTimeout(b0(dC),500)}if(dA||E.inverted){aw[dC].style.backgroundColor=ag[1][aW[dC]]}else{aw[dC].firstChild.childNodes[c8].childNodes[c2].style.color=ag[0][aW[dC]]}}}};var b0=function(dz){return function(){if(!E.inverted){aw[dz].style.backgroundColor="";aw[dz].firstChild.childNodes[c8].childNodes[c2].style.color=ag[0][aW[dz]]}aw[dz].firstChild.style.color=""}};var f=function(dD,dF,dB,dC,dA){var dE=(dD-dC)/(dA-dC),dz;dB=parseInt(dB,16);dF=parseInt(dF,16);dz=dF+(((Math.round(((((dB&16711680)>>16)-((dF&16711680)>>16))*dE)))<<16)+((Math.round(((((dB&65280)>>8)-((dF&65280)>>8))*dE)))<<8)+((Math.round((((dB&255)-(dF&255))*dE)))));return"#"+((dz>=1048576)?"":(dz>=65536)?"0":(dz>=4096)?"00":(dz>=256)?"000":(dz>=16)?"0000":"00000")+dz.toString(16)};var R=function(dD,dG){var dF=du,dC=dG.startcolor,dA=dG.endcolor,dz=dD[0],dE;for(var dE=1,dB=aw.length;dE<dB;dE++){if(dD[dE]<dF){aw[dE].style.backgroundColor=f(dD[dE],dC,bO,0,dF)}else{if(dD[dE]>=dF){aw[dE].style.backgroundColor=f(dD[dE],bO,dA,dF,dz)}else{aw[dE].style.backgroundColor="#"+dG.defaultcolor}}}};var e=function(dC){var dB=br.value*1,dA;for(var dA=1,dz=aw.length;dA<dz;dA++){if(dC[dA]<dB||!dC[dA]){aw[dA].style.backgroundColor=""}else{aw[dA].style.backgroundColor="#"+bO}}};var ah=function(){ca();af=true;if(cO.value===cO.def){cO.value=""}cR(cO.value)};var aH=function(){cO.value=cO.def;af=false;for(var dA=1,dz=aw.length;dA<dz;dA++){aS(dA,true)}};var cR=function(dI){var dC=[],dK=0,dE,dA=Number.MAX_VALUE;var dD=dI.split("-");dI=dI||"MichaelDayah";cU();if(dI.charAt(0)==="~"){for(var dF=1,dz=aw.length;dF<dz;dF++){var dG=aN(dF);for(var dJ in dG){var dH=Math.abs(dG[dJ]-Number(dI.substring(1)));if(dH<dA){dA=dH}}}}for(var dF=1,dz=aw.length;dF<dz;dF++){var dG=aN(dF);switch(dI.charAt(0)){case"!":if(!dG[0]){dC.push(dF)}break;case"~":for(var dJ in dG){var dH=Math.abs(dG[dJ]-Number(dI.substring(1)));if(dH<=dA){dC.push(dF);break}}break;case"=":for(var dJ in dG){if(dG[dJ]==Number(dI.substring(1))){dC.push(dF);break}}break;case"<":for(var dJ in dG){if(dG[dJ]<Number(dI.substring(1))){dC.push(dF);break}}break;case">":for(var dJ in dG){if(dG[dJ]>Number(dI.substring(1))){dC.push(dF);break}}break;default:if(dD.length>1){for(var dJ in dG){if(dG[dJ]>=Number(dD[0]||Number.MIN_VALUE)&&dG[dJ]<=Number(dD[1]||Number.MAX_VALUE)){dC.push(dF);break}}}var dB=aw[dF].firstChild.childNodes[c8].childNodes;if(dI==dF||dI==dB[w].innerHTML||dI.toLowerCase()==dB[c2].innerHTML.toLowerCase()){dE=dF;dC.push(dF)}else{if(dB[db].innerHTML.toLowerCase().indexOf(dI.toLowerCase())!==-1){dC.push(dF)}}}aS(dF,dF===dC[dC.length-1])}if(dE||dC.length===1){A(dE||dC[0])}};var aN=function(dB){var dA=aw[dB].firstChild.childNodes[c8].childNodes[U].innerHTML.split(",");for(var dz in dA){dA[dz]=Number(dA[dz].replace(/[()]+/g,""))}return dA};var aS=function(dA,dz){if(dz){bZ(aw[dA],"DimText")}else{S(aw[dA],"DimText")}};var a7=function(){if((aB===false&&document.getElementById("Series").style.display!=="none")||(aB!==false&&aB[0]==="Series")){document.getElementById("Series").style.display="none";document.getElementById("Temperature").style.display="block"}if(!t.checked){aa(["Closeup"],"none")}bw.style.display="";bw.show="block"};var dd=function(){if(document.getElementById("Temperature").style.display==="block"){document.getElementById("Temperature").style.display="";document.getElementById("Series").style.display=""}};var aK=function(){bZ(E,"InvertState");E.inverted=false;cd(true,false);aO([]);dd()};var bX=function(){for(var dA=1,dz=aw.length;dA<dz;dA++){aw[dA].firstChild.childNodes[c8].childNodes[U].innerHTML=aW[dA]}};var bE=function(dD){var dz=bT[m],dB=ch[m],dC;if(dD){if(m==="state"){clearTimeout(c4.stateTimer);c4.stateTimer=setTimeout(bX,100)}else{for(var dC=1,dA=aw.length;dC<dA;dC++){aw[dC].firstChild.childNodes[c8].childNodes[U].innerHTML=(dz[dB.subset][dC]||"\xa0")}document.getElementById("Legend").firstChild.childNodes[U].innerHTML=dB.legends[dB.subset]||""}}if(m==="boil"||m==="melt"){clearTimeout(c4.colorTimer);c4.colorTimer=setTimeout(function(){return R(dz[0],dB)},30)}else{if(m==="discover"){e(dz[0])}else{if(m==="chemical"){X(dB.subset)}else{if(m!=="series"&&m!=="state"&&m!=="isotope"&&m!=="orbital"){bM(dz[dB.subset].concat(),dB)}}}}};var X=function(dz){aO([]);if(dz==0){document.getElementById("ExternalKey").className=E.className=E.className.replace("Boron Carbon Pnictogen Chalcogen","Poor Metalloid Nonmetal")}else{if(dz==1){document.getElementById("ExternalKey").className=E.className=E.className.replace("Poor Metalloid Nonmetal","Boron Carbon Pnictogen Chalcogen")}}};var A=function(dz){if(dg){cB(dg)}if(dz){ax(dz);bq(dz,(typeof bT.conductivity!=="undefined"&&cN==="PropertyTab"));if(cN==="OrbitalTab"){J(dz)}dg=dz}};var cU=function(){if(cN==="WriteupTab"){A();if(dg){aw[dg].firstChild.blur()}dg=false;aa(["Closeup"],"none");bw.style.display="";bw.show="block"}};var ca=function(){aH();for(var dz in l){clearInterval(l[dz])}l=[];document.getElementById("isotopeholder").innerHTML="";aa(["IsotopeForm"],"");document.getElementById("DecayModes").tBodies[0].className=""};var ax=function(dB,dz,dA){if(cN==="WriteupTab"&&!af&&dz!==true){aw[dB].firstChild.focus()}else{S(aw[dB],dA||"Hover")}if(dz!==true){cE(aw[dB],D);cl(bT.chemical[0][dB],dl[dB],true)}};var cB=function(dC,dz,dB){var dA=new RegExp(" "+(dB||"(Hover|Lock)"),"g");aw[dC].className=aw[dC].className.replace(dA,"");if(dz!==true){cE(aw[dC],"");cl(bT.chemical[0][dC],dl[dC],false)}};var cl=function(dz,dB,dA){if(dz&&dz!==" "&&dz!=="Undiscovered"){if(dA){S(bU[dz],"Highlight")}else{bZ(bU[dz],"Highlight")}}if(dB&&dB!==" "){if(dA){S(ds[dB],"Highlight")}else{bZ(ds[dB],"Highlight")}}};var bH=function(dz,dA){dz.style.opacity=dA;dz.style.filter=(dA!=1)?"alpha(Opacity="+dA*100+")":""};var cc=function(dz){if(dz){E.tBodies[0].rows[0].insertBefore(aw[2],E.tBodies[0].rows[0].cells[2]);E.tBodies[0].rows[0].cells[3].style.display="none";document.getElementById("SliderCell").colSpan++;document.getElementById("SliderCell").id="OrbitalString";E.className+=" s p d f"}else{E.tBodies[0].rows[0].cells[3].style.display="";document.getElementById("OrbitalString").colSpan--;document.getElementById("OrbitalString").id="SliderCell";E.tBodies[0].rows[0].insertBefore(E.tBodies[0].rows[0].cells[2],E.tBodies[0].rows[0].cells[E.tBodies[0].rows[0].cells.length-1]);E.className=E.className.replace(" s p d f","")}};var bd=function(dB){for(var dA=1,dz=aw.length;dA<dz;dA++){if(orbital[1][dA]){if(dB){var dC=document.createElement("sup");dC.innerHTML=orbital[1][dA];aw[dA].firstChild.childNodes[c8].childNodes[2].appendChild(dC)}else{aw[dA].firstChild.childNodes[c8].childNodes[2].removeChild(aw[dA].firstChild.childNodes[c8].childNodes[2].getElementsByTagName("sup")[0])}}}};var bV=function(dA){dA=dA||event;var dz=document.getElementById("isotopeholder").childNodes;switch(dA.keyCode){case cY:if((dA.srcElement||dA.target).nodeName.toUpperCase()!=="A"){if(dz.length&&aI!==false&&dz[aI].style.cursor==="pointer"){dz[aI].onclick()}else{if(dg&&aI===false){if(cN==="WriteupTab"){aw[dg].firstChild.onmouseup()}else{if(cN==="IsotopeTab"){aw[dg].onclick()}}}}}break;case dr:if(V(cA,"Expanded")){O()}else{if(dz.length){aw[dg].onclick()}}break}};var dt=function(dF){dF=dF||event;var dz=document.getElementById("isotopeholder").childNodes,dD;if(bW(ct)){if(dF.keyCode===c9){var dA=document.getElementById(de).parentNode.previousSibling}else{if(dF.keyCode===ap){var dA=document.getElementById(de).parentNode.nextSibling}}if(dA){bA({srcElement:dA.firstChild})}return}if(dF.keyCode>=35&&dF.keyCode<=40){if(dz.length){aI=0||aI;switch(dF.keyCode){case aP:case dm:dD=dF.keyCode===aP?dz.length-1:0;break;case ba:case c9:case bm:case ap:dD=Math.max(0,Math.min(dz.length-1,aI+(dF.keyCode>=39?+1:-1)));break}dz[dD].onmouseover()}else{A(dg||1);switch(dF.keyCode){case aP:dD=aw.length-1;break;case dm:dD=1;break;case ba:case bm:dD=Math.max(1,Math.min(aw.length-1,dg-38+dF.keyCode));break;case c9:case ap:var dE=0,dG=dg,dC=aw[dg].parentNode.rowIndex;if(dF.keyCode===ap){if(t.checked){if(dC==7){return}}else{if(dC==11||dG==39||dG==87||dG==88){return}if((dG>39&&dG<57)||(dG>71&&dG<89)){dG+=15}else{if(dC==10){dG+=17}else{if(dG>=104){dG-=47}}}}}else{if(dG<=2||(dG>=4&&dG<=9)||(dG>=21&&dG<=30)){return}if(t.checked){if(dG>=57&&dG<=70){return}}else{if((dG>71&&dG<=86)||dC==7){dG-=15}else{if(dC==11){dG-=17}else{if(dG>57&&dG<=71){dG+=62}else{if(dG==57){dG+=47}}}}}}var dH=E.tBodies[0].rows[dC-(20-dF.keyCode/2+(aw[dg].cellIndex<3?1:0))];for(var dB=0;dB<dH.cells.length;dB++){if(V(dH.cells[dB],"Element")){dE+=dF.keyCode-39}}dD=dG+dE;break}A(dD)}}};var cE=function(dA,dz){var dC=dA.parentNode.rowIndex-1,dB;E.tBodies[0].rows[dC>7?dC-4:dC].cells[0].style.backgroundColor=dz;if(dC>7){return}if(dA.cellIndex<3){dB=dA.cellIndex}else{dB=20-E.tBodies[0].rows[dC].cells.length+dA.cellIndex+t.checked+(E.tBodies[0].rows[dC].cells[3].cellIndex!==3);if(t.checked&&dB<=3){return}}E.tHead.rows[0].cells[dB].style.backgroundColor=dz};var ad=function(dE){if(af){return}dE=dE||event;var dC=this.parentNode.cellIndex,dB=0,dz=7,dD,dF,dA;if(dC>1+(cN==="OrbitalTab")&&dC<18+(cN==="OrbitalTab")+t.checked){dB++}if(dC>2&&dC<13+t.checked){dB+=2}if(!t.checked&&dC==3){dz-=2}for(dF=dB;dF<dz;dF++){if(dC<=3){dA=dC}else{dA=E.tBodies[0].rows[dF].cells.length-20+dC-t.checked;if(t.checked&&dA<3){break}}dD=E.tBodies[0].rows[dF].cells[dA].idx;if(dE.type=="mouseover"||dE.type=="focus"){ax(dD,true,"DimText")}else{if((dE.type=="mouseout"||dE.type=="blur")){cB(dD,true,"DimText")}}}};var n=function(dB){if(af){return}dB=dB||event;var dA,dC=(this.nodeName.toUpperCase()==="A"?this.parentNode.parentNode.rowIndex:this.parentNode.rowIndex),dD=E.rows[dC].cells[1].idx,dz=(cN==="OrbitalTab"&&dD===1?2:E.rows[dC].cells[E.rows[dC].cells.length-2].idx);for(dA=dD;dA<=dz;dA++){if(dB.type=="mouseover"||dB.type=="focus"){ax(dA,true,"DimText")}else{if((dB.type=="mouseout"||dB.type=="blur")){cB(dA,true,"DimText")}}}};var r=function(){var dA,dz=false;if(window.XMLHttpRequest){dA=new XMLHttpRequest()}else{if(window.ActiveXObject){dA=new ActiveXObject("Microsoft.XMLHTTP")}else{return null}}this.connect=function(dC,dB,dE){if(!dA){return false}dz=false;try{dA.open("GET",dC+dB,true);dA.onreadystatechange=function(){if(dA.readyState==4&&!dz){dz=true;dE(dA,dB)}};dA.send("")}catch(dD){return false}return true};return this};var cI=function(dB){if(!ac){ac=true;cT(document.getElementById("PropertyTab"));var dz=new r(),dA=[],dC;for(dC in dB){if(bT[dB[dC]]){continue}if("dbnames" in ch[dB[dC]]){dA.push(dB[dC]+"-"+ch[dB[dC]]["dbnames"].join(":"))}else{dA.push(dB[dC])}}dz.connect("Script/data.php?set=",dA.join(","),Z)}};var Z=function(dE){var dz=dE.responseText.split("\n"),dC,dA,dD,dB;if(dz.length>1){for(dC in dz){dA=[];dD=dz[dC].split("=")[1].split(":");for(dB in dD){dA.push(externalEval(dD[dB]))}bT[dz[dC].split("=")[0]]=dA}b1(null,document.forms.visualize);if(cN==="PropertyTab"&&dg){A(dg)}}ac=false;clearInterval(bp);bZ(document.getElementById("PropertyTab"),"Throb");document.getElementById("PropertyTab").style.backgroundColor=""};var bn=function(dA){aj(dA);if(am[dA]){bL(am[dA],dA)}else{var dz=new r();dz.connect("isotope.php?set=",dA,bL)}_gaq.push(["_trackEvent",di,"Isotope",dA])};var bL=function(dD,dC){if(dD.responseText.length){ah();cR(String(dC));am[dC]=dD;document.getElementById("Closeup").style.display="none";aa(["IsotopeForm"],"block");document.getElementById("DecayModes").tBodies[0].className="NoDecayText";var dB=0,dz=am[dC].responseText.split("\n");for(var dE in bJ){bT[dE]=[]}aG(false,true);for(var dA in dz){if(Number(dz[dA].split(",")[bJ.selected])<=Number(ch.isotope.subset)){cw(dC,++dB,dz[dA].split(","))}}document.getElementById("ISONAME").firstChild.innerHTML=aw[dC].firstChild.childNodes[c8].childNodes[db].innerHTML;document.getElementById("ISONAME").childNodes[1].innerHTML="";document.forms.isotopes.onclick();b5()}d(dC,bp)};var b5=function(){var dA=document.getElementById("isotopeholder").childNodes;for(var dz=0;dz<dA.length;dz++){setTimeout(F(dA,dz),cL*dz)}};var F=function(dA,dz){return function(){b7(dA[dz],1)}};var cw=function(dD,dC,dE){for(var dB in aq.IsotopeTab){if(!bT[aq.IsotopeTab[dB]]){bT[aq.IsotopeTab[dB]]=[]}bT[aq.IsotopeTab[dB]][dC]=dE[bJ[aq.IsotopeTab[dB]]]}var dA=document.createElement("div");dA.idx=dC;dA.onmouseover=function(){var dG=document.getElementById("isotopeholder").childNodes;if(aI<this.ordinal){for(var dF=aI;dF<this.ordinal;dF++){dG[dF].style.zIndex=dG[dF].ordinal+1}}else{if(this.ordinal<aI){for(var dF=this.ordinal;dF<aI;dF++){dG[dF].style.zIndex=100-dG[dF].ordinal}}}aI=this.ordinal;aG(dC,false);document.getElementById("DecayModes").className=this.decayMode};dA.decayMode=dE[bJ.decaymode]?dE[bJ.decaymode]:q;dA.className=aw[dD].className+" "+dA.decayMode;dA.appendChild(aw[dD].firstChild.childNodes[c8].cloneNode(true));dA.firstChild.childNodes[c2].innerHTML="<span class='Prefix'><span class='TopBottom' style='margin-top: -1.1em;'>"+dE[bJ.neutrons]+"</span><span class='TopBottom'>"+dD+"</span></span>"+aw[dD].firstChild.childNodes[c8].childNodes[c2].innerHTML;dA.firstChild.childNodes[4].innerHTML+="-"+dE[bJ.neutrons];dA.firstChild.removeChild(dA.firstChild.childNodes[w]);if(dE[bJ.wiki]==1){dA.style.cursor="pointer";dA.onclick=bD}dA.ordinal=aI=dC-1;document.getElementById("isotopeholder").appendChild(dA);var dz=aU(aw[dD],[-aU(dA,[0,0])[0],-aU(dA,[0,0])[1]]);dA.style.left=-dz[0]+20*dC+"px";dA.style.top=-dz[1]+20*dC+"px";dA.style.zIndex=dC+1;b7(dA,0)};var aG=function(dA,dz){if(!dz){document.getElementById("ISONAME").childNodes[1].innerHTML="-"+bT.neutrons[dA];document.getElementById("ISOMASS").innerHTML=bT.isomass[dA]!==""?bT.isomass[dA]:dn;document.getElementById("BINDING").innerHTML=bT.binding[dA]!==""?bT.binding[dA]+ch.binding.units[0]:dn;document.getElementById("MASSCONTRIB").innerHTML=bT.masscontrib[dA]!==""?bT.masscontrib[dA]+"%":dn;document.getElementById("HALFLIFE").innerHTML=bS(bT.halflife[dA]);document.getElementById("WIDTH").innerHTML=bT.width[dA]!==""?T(bT.width[dA])+ch.width.units[0]:dn}else{document.getElementById("ISONAME").childNodes[1].innerHTML=document.getElementById("ISOMASS").innerHTML=document.getElementById("BINDING").innerHTML=document.getElementById("MASSCONTRIB").innerHTML=document.getElementById("HALFLIFE").innerHTML=document.getElementById("WIDTH").innerHTML=""}};var aD=function(){var dz=document.getElementById("Series");S(dz,"WMfix");if(di==="zh"||di==="ja"||di==="ko"){return}dz=dz.tBodies[0];dz.insertRow(0).insertCell(-1).rowSpan=2;dz.rows[0].appendChild(dz.rows[2].cells[5]).rowSpan=2;dz.rows[0].cells[1].colSpan=1;dz.rows[0].cells[1].style.borderTopLeftRadius="1ex";dz.rows[0].appendChild(dz.rows[1].cells[1]);dz.insertRow(1).appendChild(dz.rows[3].cells[5]).rowSpan=1;dz.rows[1].appendChild(dz.rows[3].cells[5]).rowSpan=1;dz.rows[1].appendChild(dz.rows[3].cells[5]).rowSpan=1};var bv=function(dz){var dA=document.createElement("script");dA.src=dz;dA.setAttribute("async","true");dA.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(dA)};var dw=function(dz){var dA=document.createElement("link");dA.href=dz;dA.rel="stylesheet";dA.type="text/css";document.getElementsByTagName("head")[0].appendChild(dA)};var x=function(dz,dA){document.cookie=dz+"="+dA+"; expires="+(dA!==""?(new Date((new Date()).getTime()+1000*60*60*24*30)).toGMTString():new Date(1997,10,1).toGMTString())+"; path=/"};this.external_set_cookie=function(dz,dA){x(dz,dA)};this.lazy_load=function(){bv("https://apis.google.com/js/plusone.js");bv("http://edge.quantserve.com/quant.js");bv("http://www.google-analytics.com/ga.js");if("standalone" in navigator&&!navigator.standalone&&(/ipad/gi).test(navigator.platform)&&(/Safari/i).test(navigator.appVersion)){dw("../Library/add2home.css");bv("../Library/add2home.js")}};this.load_complete=function(){var dz=cb();D=f(1,bO,"FFFF00",0,2);ci();b2();cn();if(dz.temperature&&!isNaN(dz.temperature)){du=dz.temperature*1}else{du=273}M();if(!isIE||document.documentMode===8||document.documentMode===9){aD()}cp("WriteupTab");cp("Groups");cx(c1);k("WriteupTab");j("PropertyTab");j("IsotopeTab");j("OrbitalTab");document.getElementById("SliderCell").getElementsByTagName("div")[0].style.height=aw[32].offsetHeight-6+"px";bF("bottom");b6();if(document.cookie.indexOf("Weight")===-1){cH=0;window.onresize()}window.onorientationchange()};window.onunload=function(){x("temperature",du)};var be=function(){var dA,dz=[[1],[3],[4,11],[12,19],[20,37],[21,38,55],[22,39,56,87],[23,40,88],[24,41,72],[25,42,73,104],[26,43,74,105],[27,44,75,106,57],[28,45,76,107,58,89],[5,29,46,77,108,59,90],[6,13,30,47,78,109,60,91],[7,14,31,48,79,110,61,92],[8,15,32,49,80,111,62,93],[2,9,16,33,50,81,112,63,94],[10,17,34,51,82,113,64,95],[18,35,52,83,114,65,96],[36,53,84,115,66,97],[54,85,116,67,98],[86,117,68,99],[118,69,100],[70,101],[71,102],[103]];for(dA=0;dA<30;dA++){if(dz[dA]){setTimeout(s(dz[dA],1),aA*dA)}if(dz[dA-1]){setTimeout(s(dz[dA-1],2),aA*dA)}if(dz[dA-2]){setTimeout(s(dz[dA-2],1),aA*dA)}if(dz[dA-3]){setTimeout(s(dz[dA-3],0),aA*dA)}}};var s=function(dA,dz){return function(){I(dA,dz)}};var I=function(dB,dA){for(var dz in dB){aw[dB[dz]].style.backgroundColor=(dA!==0?f(dA,c1[dB[dz]],bO,0,3):"")}};var aj=function(dz){clearInterval(bp);S(aw[dz],"Throb");bp=setInterval(function(){Y(aw[dz],"FirstColor","#"+c1[dz],"#"+bO)},L)};var d=function(dz){clearInterval(bp);bZ(aw[dz],"Throb");aw[dz].style.backgroundColor=""};var cT=function(dz){S(dz,"Throb");bp=setInterval(function(){Y(dz,"FirstColor","white","#04336B")},L)};var Y=function(dB,dC,dA,dz){if(V(dB,dC)){dB.style.backgroundColor=dA;bZ(dB,dC)}else{dB.style.backgroundColor=dz;S(dB,dC)}};var bS=function(dC){var dA,dz=["y","d","h","min","s","ms","\u00b5s","ns","ps"],dB=[31556926,86400,3600,60,1,0.001,0.000001,1e-9,1e-12];if(dC==="0"){return q}else{if(dC===""){return dn}else{for(dA in dz){if(dC>=dB[dA]){return T((dC/dB[dA]).toPrecision(c3(dC)))+" "+dz[dA]}}}}return T((dC/dB.pop()).toPrecision(c3(dC)))+" "+dz.pop()};var c3=function(dz){return dz.replace(/^0\.0*/,"").replace(/\.|e.+$/g,"").length};var T=function(dz){return dz.replace(/e[+]*(-)*(\d*)$/,"\u00d710<sup>$1$2</sup>")};var aU=function(dA,dz){return(dA?aU(dA.offsetParent,[dz[0]-dA.offsetLeft,dz[1]-dA.offsetTop]):dz)};var cz=function(dz){if(dz.currentStyle){return(dz.currentStyle.backgroundColor.replace(/^#/,""))}else{if(window.getComputedStyle){return(co(getComputedStyle(dz,null).getPropertyValue("background-color")))}}};var bW=function(dz){if(dz.currentStyle){return(dz.currentStyle.display!=="none")}else{if(window.getComputedStyle){return(getComputedStyle(dz,null).getPropertyValue("display")!=="none")}}};var co=function(dC){var dz,dB="",dA=/(\d+)[, ]+(\d+)[, ]+(\d+)/.exec(dC);for(dz=1;dz<=3;dz++){dB+=(dA[dz]<16?"0":"")+parseInt(String(dA[dz])).toString(16)}return(dB)};var cm=function(){var dA,dz,dB;dA=(new Date()).getTime();for(dz=0;dz<5;dz++){for(dB=0;dB<=118;dB++){A(dB)}}alert((new Date()).getTime()-dA)};var S=function(dA,dz){if(!V(dA,dz)){dA.className+=(dA.className?" ":"")+dz}};var bZ=function(dA,dz){if(V(dA,dz)){dA.className=dA.className.replace(new RegExp("(\\s|^)"+dz+"(\\s|$)")," ").replace(/^\s+|\s+$/g,"")}};var V=function(dA,dz){return new RegExp("(\\s|^)"+dz+"(\\s|$)").test(dA.className)};var bF=function(dB){var dA=ch[m];aF(dB);if(dA.units[0]!==" K"){bg();bC.parentNode.getElementsByTagName("img")[0].style.display="none"}else{cd(true,false);bC.parentNode.getElementsByTagName("img")[0].style.display=""}if("slidermax" in dA){cK.style.display="none";br.style.display="";bC.parentNode.style.display="";c4.from=dA.slidermin;c4.to=dA.slidermax;ce();if(m==="state"&&!E.inverted){document.getElementById("Legend").firstChild.childNodes[U].innerHTML=dA.legends[0];a4()}if(m==="melt"||m==="boil"){a7()}bx(((dA.units[0]===" K")?du:dA["default"]-c4.from)*c4.scale,true,false,true)}else{if("values" in dA){if(dA.values.length>6){bC.parentNode.style.display="";br.style.display="none";cK.style.display="inline";while(cK.options.length){cK.options[cK.options.length-1]=null}for(var dz=0;dz<dA.values.length;dz++){cK.options[dz]=new Option(dA.values[dz],dz)}cK.selectedIndex=dA.subset;cK.onchange=ar;c4.from=0;c4.to=dA.values.length-1;ce();bx(dA.subset*c4.scale,true,false,true)}else{br.style.display=cK.style.display=bC.parentNode.style.display="none";cr(dA);H(dA.subset)}}else{br.style.display=cK.style.display=bC.parentNode.style.display="none";bx(0,true,false,true)}}if(m=="orbital"){cc(true);z.OrbitalString=br.parentNode.appendChild(document.createElement("span"))}if(cF!==false){aJ([cF,aB],1,0.5,dB)}else{cq(br.parentNode.parentNode,dB)}};var aF=function(dB){var dC=br.parentNode.cloneNode(true),dA=br.parentNode.getElementsByTagName("*");for(var dz=0;dz<dA.length;dz++){if(dA[dz].id){dA[dz].id=""}}dC.style.top=dC.style.bottom=dC.style.left=dC.style.right="";dC.style[dB]=(dB==="top"||dB==="bottom"?br.parentNode.offsetHeight:br.parentNode.offsetWidth)+"px";br.parentNode.parentNode.appendChild(dC);br=document.getElementById("SliderDisplay");bC=document.getElementById("SliderBar");cK=document.getElementById("SliderSelect");if(document.getElementById("AltSlider")){document.getElementById("AltSlider").parentNode.removeChild(document.getElementById("AltSlider"))}if(br.parentNode.getElementsByTagName("span")[0]){br.parentNode.removeChild(br.parentNode.getElementsByTagName("span")[0])}};var cq=function(dC,dB){if(dC.getElementsByTagName("div").length/3>2){bi(dC)}else{setTimeout(function(){return bi(dC,dB)},1000)}var dz=dC.getElementsByTagName("div")[0],dD=dC.lastChild;dz.style[dB]=0;var dA=dz.offsetWidth;dz.style[dB]="-"+dD.style[dB];dD.style[dB]=0;dh()};var bi=function(dA,dz){while(dA.firstChild&&dA.firstChild.nodeType!==1){dA.removeChild(dA.firstChild)}if(dA.firstChild){dA.removeChild(dA.firstChild)}if(dz){dA.lastChild.style[dz]=""}};var ce=function(){c4.xMax=document.getElementById("SliderSlit").offsetWidth;c4.scale=c4.xMax/(c4.to-c4.from)};var cW=function(dz){ce();dz=dz?(dz.touches?dz.touches[0]:dz):event;if(af||ai!==false){return}if(m==="series"||m==="chemical"){a4()}else{if(ch[m]["units"][0]===" K"){if(!t.checked){document.getElementById("Closeup").style.display="none"}bw.style.display="";bw.show="block"}}c4.startOffsetX=bC.offsetLeft-dz.screenX;document.onmouseup=bC.ontouchend=aR;if(document.addEventListener){document.addEventListener("mouseover",W,true);document.addEventListener("mouseout",W,true);document.addEventListener("mouseenter",W,true);document.addEventListener("mouseleave",W,true);document.onmousemove=bC.ontouchmove=bk}else{bC.onmousemove=bk;bC.setCapture(true)}bC.onmousedown=bC.ontouchstart=null;df=setInterval(function(){dp(bC.position,false,false)},1000/an);y=setInterval(aM,100)};var W=function(dz){dz.stopPropagation()};var c7=function(dz){ce();dz=dz||event;if(af||ai!==false){return}var dA=(dz.offsetX-bC.offsetLeft||aU(bC,[dz.pageX,0])[0])<0?-1:1;cC(dA,(c4.xMax/10)*dA)};var ae=function(dA){ce();dA=dA||event;var dz=(dA.detail)?dA.detail/Math.abs(dA.detail):dA.wheelDelta/Math.abs(dA.wheelDelta);if(dz){cC(dz,dz*3)}if(dA.preventDefault){dA.preventDefault()}return false};var bk=function(dz){dz=dz?(dz.touches?dz.touches[0]:dz):event;bx(Math.max(0,Math.min(c4.startOffsetX+dz.screenX,c4.xMax)),false,false,false);return false};var g=function(dA){var dz=dA?dA.which:event.keyCode;if(dz>31&&(dz<bu||dz>ak)){return false}};var aR=function(dA){dA=dA||event;var dz=ch[m];if(m!=="state"&&E.inverted){aK()}c(dz);document.onmouseup=bC.ontouchend=null;if(document.removeEventListener){document.removeEventListener("mouseover",W,true);document.removeEventListener("mouseout",W,true);document.removeEventListener("mouseenter",W,true);document.removeEventListener("mouseleave",W,true);document.onmousemove=bC.ontouchmove=null}else{bC.onmousemove=null;document.releaseCapture()}bC.onmousedown=bC.ontouchstart=cW;clearInterval(df);clearInterval(y)};var bb=function(dA){ce();var dz=ch[m];if((dA.keyCode===bm||dA.keyCode===ba)&&this.id!=="SliderBar"){return false}c(dz);if(!("values" in dz)){bx(Math.min(c4.xMax,Math.max(0,(br.value*1-c4.from)*c4.scale)),true,false,true)}};var c=function(dz){if("default" in dz){dz["default"]=br.value;x("default_"+m,dz["default"])}};var bx=function(dz,dD,dB,dF){var dA=ch[m],dE=Math.round(dz/c4.scale+c4.from);if("values" in dA){var dC=dE/c4.to}else{var dC=dz/c4.xMax}bC.style.left=0.92*dC*100+"%";bC.position=dE;if(dF){dp(dE,dD,dB)}};var dp=function(dC,dB,dA){var dz=ch[m];if("values" in dz){if(dz.subset!=dC||dB){cK.selectedIndex=dz.subset=dC;if(m==="ionize"){b8(dg,"ionize")}x("subset_"+m,dz.subset);if(m!=="isotope"){document.getElementById("l_"+m).getElementsByTagName("span")[0].innerHTML=" "+dz.values[dC]+" "}bE(true)}}else{br.value=dC;if(dz.units[0]===" K"){du=dC;cd(0,dA);if(dB){aM()}}if(dB||(m!=="series"&&m!=="chemical")){bE((dB&&m!=="isotope")||m==="state")}}};var aM=function(){du=br.value*1;aY.innerHTML=du;a5.innerHTML=Math.round(du-273.15);a2.innerHTML=Math.round(du*9/5-459.67);az.innerHTML=du+" K";if(dg){C.state.innerHTML=aW[dg]}};var at=function(dz){ce();dz=dz||event;switch(dz.keyCode){case ba:case bm:if(this.id==="SliderBar"){cC(dz.keyCode-38,dz.keyCode-38)}break;case c9:case ap:cC(39-dz.keyCode,39-dz.keyCode);break;case aP:case dm:cC(1000*(dz.keyCode-35.5),1000*(dz.keyCode-35.5));break;case B:case bj:var dA=(33.5-dz.keyCode)*2;cC(dA,(c4.xMax/10)*dA);break}if(dz.keyCode>=33&&dz.keyCode<=40){dz.cancelBubble=true;if(dz.stopPropagation){dz.stopPropagation()}if(!((dz.keyCode===bm||dz.keyCode===ba)&&this.id==="SliderDisplay")){return false}}};var cC=function(dz,dA){if("values" in ch[m]){bx(Math.min(c4.xMax,Math.max(0,bC.offsetLeft+c4.scale*dz)),false,false,true)}else{if(isNaN(br.value)){br.value=0}bx(Math.min(c4.xMax,Math.max(0,(br.value*1-c4.from)*c4.scale+1*dA)),true,m==="series",true)}};var cr=function(dB){var dD=document.createElement("form"),dz,dA,dC;dD.id="AltSlider";dD.onkeydown=function(dE){dE=dE||event;dE.cancelBubble=true};for(dz=0;dz<dB.values.length;dz++){dA=document.createElement("span");dA.className="Radio";dA.innerHTML+=' <input type="radio" name="SliderAlt" id="r_'+dB.values[dz]+'" value="'+dz+'"/>';dC=document.createElement("label");dC.htmlFor="r_"+dB.values[dz];dC.innerHTML=dB.values[dz];dA.appendChild(dC);dD.appendChild(dA)}dD.onclick=aT;br.parentNode.appendChild(dD);document.getElementById("r_"+dB.values[dB.subset]).checked=true};var b7=function(dz,dA){if(dz){dz.style.opacity=dA;if(dA==1){if("filters" in dz){dz.style.removeAttribute("filter")}}else{dz.style.filter="alpha(opacity="+dA*100+")"}}};var aJ=function(dB,dD,dA,dE){var dC=dB[dA==2?1:0],dz;for(dz in dC){if(bW(document.getElementById(dC[dz]))){b7(document.getElementById(dC[dz]),dD)}}if(dD==1&&dA==2){cq(br.parentNode.parentNode,dE);cF=aB=false;return}if(dD==0.125){dA=1/dA;dk(dB)}setTimeout(function(){return aJ(dB,dD*dA,dA,dE)},bG)};var dk=function(dA){var dz;for(dz in dA[0]){document.getElementById(dA[0][dz]).style.display="none";b7(document.getElementById(dA[0][dz]),1)}for(dz in dA[1]){document.getElementById(dA[1][dz]).style.display="block";if(bQ&&dA[1][dz]=="Properties"){o()}b7(document.getElementById(dA[1][dz]),0)}};var dh=function(){if("onmousewheel" in br){br.onmousewheel=document.getElementById("SliderTrack").onmousewheel=ae}else{document.getElementById("SliderTrack").addEventListener("DOMMouseScroll",ae,false);br.addEventListener("DOMMouseScroll",ae,false)}document.getElementById("SliderTrack").onclick=c7;bC.onclick=function(dz){dz=dz||event;dz.cancelBubble=true};bC.onmousedown=bC.ontouchstart=cW;cK.onkeydown=function(dz){dz=dz||event;dz.cancelBubble=true};br.onkeyup=br.oninput=document.getElementById("SliderBar").onkeyup=bb;br.onkeydown=document.getElementById("SliderBar").onkeydown=at;br.onkeypress=g;br.onfocus=document.getElementById("SliderBar").onfocus=bo;br.onblur=document.getElementById("SliderBar").onblur=cj};var a4=function(){a7();S(E,"InvertState");E.inverted=true;cd(true,false);for(var dA=1,dz=aw.length;dA<dz;dA++){aw[dA].firstChild.childNodes[c8].childNodes[c2].style.color=""}};var dq=function(dz){dz=dz||event;bZ(cA,"Expanding");document.getElementById("WikiFrameBox").style.display=cA.getElementsByTagName("h2")[0].style.display="none";bH(cA,0.8);a9(dz,cA);dz.cancelBubble=true;document.onmousemove=cf;document.onmouseup=cG;if(dz.preventDefault){dz.preventDefault()}};var a9=function(dA,dz){dz.startX=dz.offsetLeft;dz.startY=dz.offsetTop;dz.startWidth=dz.offsetWidth;dz.startHeight=dz.offsetHeight;dz.mouseStartX=dA.clientX;dz.mouseStartY=dA.clientY;dz.pageX=dA.pageX||dA.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;dz.pageY=dA.pageY||dA.clientY+document.body.scrollTop+document.documentElement.scrollTop};var cf=function(dA){dA=dA||event;var dB=10,dz;if(cA.dockSize&&cA.dockSize.indexOf("px")===-1){dz=cA.dockSize}else{dz="50%"}if(cA.saveHeight){a();dj(false)}else{if(dA.clientY<=dB){bK(0,0,0,0,"auto","auto");return}else{if(dA.clientX<=dB){if(bc(dA,false)!==true){bK(0,"auto",0,0,dz,"auto")}return}else{if(dA.clientX>=document.documentElement.clientWidth-dB){if(bc(dA,false)!==true){bK(0,0,0,"auto",dz,"auto")}return}else{if(dA.clientY>=document.documentElement.clientHeight-dB){if(bc(dA,false)!==true){bK("auto",0,0,0,"auto",dz)}return}}}}}cA.style.left=cA.startX+dA.clientX-cA.mouseStartX+"px";cA.style.top=cA.startY+dA.clientY-cA.mouseStartY+"px";return false};var bK=function(dF,dG,dA,dC,dB,dH){var dD=5;if(!cA.saveHeight){cA.saveHeight=cA.offsetHeight;cA.saveWidth=cA.offsetWidth;cA.saveTop=cA.offsetTop;cA.saveLeft=cA.offsetLeft}cA.style.top=dF;cA.style.right=dG;cA.style.bottom=dA;cA.style.left=dC;cA.style.width=dB;cA.style.height=dH;cA.style.borderRadius=dx.style.borderRadius=0;if(String(dF).charAt(0)==="0"){var dE=parseInt(dB,10)+dD*2/document.documentElement.clientWidth*100;if(dG==="auto"){document.documentElement.style.width="100%";document.documentElement.style.marginLeft=dE+"%";document.body.scrollLeft=document.documentElement.scrollLeft=0}else{if(dC==="auto"){cA.bodyWidth=document.documentElement.scrollWidth/document.documentElement.offsetWidth*100;document.documentElement.style.width=cA.bodyWidth+dE+"%";document.body.style.width=cA.bodyWidth/(cA.bodyWidth+dE)*100+"%";document.body.scrollLeft=document.documentElement.scrollLeft=document.documentElement.scrollWidth-document.documentElement.clientWidth}}}else{var dz=parseInt(dH,10)+dD*2/document.documentElement.clientHeight*100;cA.pageHeight=document.body.offsetHeight/document.documentElement.clientHeight*100;document.documentElement.style.height=cA.pageHeight+dz+"%";document.body.scrollTop=document.documentElement.scrollTop=document.documentElement.scrollHeight-document.documentElement.clientHeight}cG()};var a6=function(dA){if(cA.getElementsByTagName("h2")[0].style.display==="none"){dA=dA||event;var dz=20;b3="";if(cA.offsetTop+cA.offsetHeight/dz>dA.clientY){b3+="N"}else{if(cA.offsetTop+cA.offsetHeight*(dz-1)/dz<dA.clientY){b3+="S"}}if(cA.offsetLeft+cA.offsetWidth/dz>dA.clientX){b3+="W"}else{if(cA.offsetLeft+cA.offsetWidth*(dz-1)/dz<dA.clientX){b3+="E"}}if(b3!==""){cA.style.cursor=b3+"-resize"}}else{cA.style.cursor=""}};var bY=function(dz){dz=dz||event;document.getElementById("WikiFrameBox").style.display=cA.getElementsByTagName("h2")[0].style.display="none";bH(cA,0.8);a9(dz,cA);a6(dz);cA.onmouseover=null;document.onmousemove=dv;document.onmouseup=cG;if(dz.preventDefault){dz.preventDefault()}};var dv=function(dF){dF=dF||event;var dA={x:300,y:100},dG=10,dC=5,dB=cA.mouseStartX-dF.clientX,dz=cA.mouseStartY-dF.clientY;if(dF.clientY<=dG||dF.clientY>=document.documentElement.clientHeight-dG){if(cA.offsetTop){cA.saveTop=cA.offsetTop}cA.style.height="auto";cA.style.top=cA.style.bottom=0;cA.style.borderRadius=dx.style.borderRadius=0;return false}else{if(document.documentElement.style.height||document.documentElement.style.width){var dD=50;if(b3.indexOf("N")!==-1&&document.documentElement.style.height){cA.style.height=Math.max(dA.y,cA.startHeight+dz-dC*2)/document.documentElement.clientHeight*100+"%";document.documentElement.style.height=cA.pageHeight+cA.offsetHeight/document.documentElement.clientHeight*100+"%";if((document.documentElement.scrollHeight-document.documentElement.clientHeight)-(window.pageYOffset||document.documentElement.scrollTop)<dD){document.body.scrollTop=document.documentElement.scrollTop=document.documentElement.scrollHeight-document.documentElement.clientHeight}}else{if(b3.indexOf("E")!==-1&&cA.style.right==="auto"){cA.style.width=Math.max(dA.x,cA.startWidth-dB-dC*2)/document.documentElement.clientWidth*100+"%";document.documentElement.style.marginLeft=cA.offsetWidth/document.documentElement.clientWidth*100+"%"}else{if(b3.indexOf("W")!==-1&&cA.style.left==="auto"){cA.style.width=Math.max(dA.x,cA.startWidth+dB-dC*2)/document.documentElement.clientWidth*100+"%";var dE=cA.offsetWidth/document.documentElement.clientWidth*100;document.documentElement.style.width=cA.bodyWidth+dE+"%";document.body.style.width=cA.bodyWidth/(cA.bodyWidth+dE)*100+"%";if((document.documentElement.scrollWidth-document.documentElement.clientWidth)-(window.pageXOffset||document.documentElement.scrollLeft)<dD){document.body.scrollLeft=document.documentElement.scrollLeft=document.documentElement.scrollWidth-document.documentElement.clientWidth}}}}return false}else{if(cA.saveTop){cA.style.borderRadius=dx.style.borderRadius="";cA.style.top=cA.saveTop+"px";cA.saveTop=0;cA.style.bottom=""}}}if(b3.indexOf("N")!==-1){cA.style.top=cA.startY-dz+"px";cA.style.height=Math.max(dA.y,cA.startHeight+dz-dC*2)+"px"}else{if(b3.indexOf("S")!==-1){cA.style.height=Math.max(dA.y,cA.startHeight-dz-dC*2)+"px"}}if(b3.indexOf("W")!==-1){cA.style.left=cA.startX-dB+"px";cA.style.width=Math.max(dA.x,cA.startWidth+dB-dC*2)+"px"}else{if(b3.indexOf("E")!==-1){cA.style.width=Math.max(dA.x,cA.startWidth-dB-dC*2)+"px"}}return false};var bc=function(dC,dz){bZ(cA,"Expanding");dC=dC||event;a9(dC,cA);var dB=navigator.userAgent.indexOf("Chrome")!==-1;var dA=window.pageXOffset||document.documentElement.scrollLeft;var dD=window.pageYOffset||document.documentElement.scrollTop;if(!dB&&aE([dC.screenX-cA.pageX+cA.startX+dA,dC.screenY-cA.pageY+cA.startY+dD],[cA.offsetWidth,cA.offsetHeight])!=null){O();cA.style.left=cA.style.top=cA.style.height=cA.style.width="";bN=true;return true}else{if(dz!==false){bK(0,0,0,0,"auto","auto")}}};var cG=function(){document.onmousemove=null;document.onmouseup=null;cA.onmouseover=a6;bH(cA,1);document.getElementById("WikiFrameBox").style.display=""};var ck=function(dz){dz=dz||event;if(cA.saveHeight){a();dj(true)}else{bK(0,0,0,0,"auto","auto")}if(dz.stopPropagation){dz.stopPropagation()}};var aE=function(dB,dA){cG();for(var dz=0;dz<dB.length;dz++){dB[dz]=Math.max(0,dB[dz])}bP=window.open(cA.externalHref,"WikiWindow","width="+dA[0]+",height="+dA[1]+",left="+dB[0]+",top="+dB[1]+",resizable=yes,scrollbars=yes,location=yes");return bP};var bD=function(dF){dF=dF||event;var dB=this||srcElement,dH,dA;if(screen.width*screen.height<1024*600||typeof document.body.style.maxHeight==="undefined"||!navigator.onLine||dF.ctrlKey||dF.shiftKey||(dF.which&&(dF.which===2||dF.which===3))||(dF.button&&(dF.button===4||dF.button===2))){return}if(cN==="IsotopeTab"&&dB.parentNode.id==="isotopeholder"){dH=dB.getElementsByTagName("em")[0].innerHTML}else{if(V(dB.parentNode,"Element")){dH=dB.childNodes[c8].childNodes[db].innerHTML}else{dH=decodeURIComponent(dB.href.substring(dB.href.lastIndexOf("/")+1))}}document.getElementById("ElementName").innerHTML=dH;document.getElementById("ElementName").href=dB.href;document.getElementById("Source").innerHTML=document.getElementById(de).innerHTML;if(cN==="IsotopeTab"){dA="http://"+di+".wikipedia.org/w/index.php?title="+encodeURIComponent(dH)+"&printable=yes"}else{if(dB.href.indexOf(".wikipedia.org")!==-1){dA="http://"+di+".wikipedia.org/w/index.php?title="+dB.href.substring(dB.href.lastIndexOf("/")+1)+"&printable=yes"}else{dA=dB.href}}_gaq.push(["_trackEvent",di,de,dH]);if(bP&&!bP.closed){bP.location.href=dA;bP.focus()}else{document.getElementById("WikiFrameBox").style.display="none";window.frames.WikiFrame.location.replace(dA);cA.externalHref=dA;if(bN===true){dx.onmousedown=dq;cA.onmousedown=bY;var dC=aU(dB,[0,0]),dG=window.pageXOffset||document.documentElement.scrollLeft,dD=window.pageYOffset||document.documentElement.scrollTop,dE=document.styleSheets[0];if(dE.cssRules&&dE.cssRules[0].selectorText==="#WikiBox"){dE.deleteRule(0)}if(dE.insertRule){dE.insertRule("#WikiBox { left: "+(-dC[0]-dG)/document.documentElement.clientWidth*100+"%; top: "+(-dC[1]-dD)/document.documentElement.clientHeight*100+"%; width: "+dB.offsetWidth/document.documentElement.clientWidth*100+"%; height: "+dB.offsetHeight/document.documentElement.clientHeight*100+"%; }",0)}S(cA,"Expanding");var dz=cA.offsetWidth;S(cA,"Expanded");bN=false}else{if(!V(cA,"Expanded")&&(cA.style.height==="auto"||cA.style.width==="auto")){bK(cA.style.top,cA.style.right,cA.style.bottom,cA.style.left,cA.style.width,cA.style.height)}S(cA,"Expanded")}}aX=true;return false};var a=function(dz){document.documentElement.style.height=document.documentElement.style.width=document.documentElement.style.marginLeft=document.body.style.width="";cA.dockSize=cA.style.width==="auto"?cA.style.height:cA.style.width;cA.style.borderRadius=dx.style.borderRadius=""};var dj=function(dz){cA.style.height=cA.saveHeight+"px";if(cA.saveWidth){cA.style.width=cA.saveWidth+"px"}if(dz){cA.style.left=cA.saveLeft+"px";cA.style.top=cA.saveTop+"px"}cA.saveHeight=cA.saveTop=0};var O=function(){window.frames.WikiFrame.location.replace("about:blank");bZ(cA,"Expanded");bZ(cA,"Expanding");a()};var cM=function(dz){document.getElementById("WikiFrameBox").style.display="";cA.getElementsByTagName("h2")[0].style.display="none"};var ao=function(dB,dD){var dC=E.tBodies[0].rows;cu=0;if(dB){E.tHead.rows[0].insertCell(3);dC[3].insertCell(3);dC[4].insertCell(3);dC[0].insertCell(document.getElementById("KeyCell").cellIndex+1);b9=document.getElementById("KeyCell").nextSibling;while(b9.nodeType!=1){b9=b9.nextSibling}b9.rowSpan=3;b9.className="KeyRegion";dC[8].cells[1].getElementsByTagName("span")[0].style.display="none";K(!dD)}else{var dA=document.getElementById("KeyContainer").tBodies[0].rows[0].cells;if(G!=="portrait"){bf(dA);b9.innerHTML="";if(document.getElementById("Properties").style.display=="block"||document.getElementById("Hund").style.display=="block"||document.getElementById("DecayModes").style.display=="block"){document.getElementById("Series").style.display="none"}document.getElementById("Temperature").style.display="";if(document.getElementById("Closeup").style.display==="block"||document.getElementById("IsotopeForm").style.display==="block"){document.getElementById("MatterState").style.display="none"}document.getElementById("KeyContainer").className=""}dC[5].cells[3].style.display=dC[6].cells[3].style.display=dC[8].cells[1].style.display="";for(var dz=10;dz>=7;dz--){dC[dz].style.display=""}dC[4].cells[3].innerHTML="";bR(!dD)}};var bR=function(dz){var dA=E.tBodies[0].rows;dA[9].insertBefore(dA[5].cells[4],dA[9].cells[cu+1]);dA[10].appendChild(dA[6].cells[4]);if(cu===5){document.getElementById("KeyCell").rowSpan=3;dA[3].insertCell(3).colSpan=document.getElementById("KeyCell").colSpan}if(cu){dA[8].cells[1].colSpan++}if(cu++<14){if(cu-1){if(cu<6){document.getElementById("KeyCell").colSpan--}else{b9.colSpan--;dA[3].cells[3].colSpan--}E.tHead.rows[0].cells[3].colSpan--;dA[4].cells[3].colSpan--}if(dz===true){bR(dz)}else{setTimeout(bR,av)}}else{dA[8].cells[1].getElementsByTagName("span")[0].style.display="";E.tHead.rows[0].deleteCell(3);dA[3].deleteCell(3);dA[4].deleteCell(3);dA[0].deleteCell(b9.cellIndex);if(cN==="IsotopeTab"&&v){cX()}cH=0;window.onresize()}};var K=function(dA){var dD=E.tBodies[0].rows;dD[5].insertBefore(aw[71-cu],dD[5].cells[4]);dD[6].insertBefore(aw[103-cu],dD[6].cells[4]);if(dD[8].cells[1].colSpan>1){dD[8].cells[1].colSpan--}if(cu){dD[3].cells[3].colSpan++;dD[4].cells[3].colSpan++;E.tHead.rows[0].cells[3].colSpan++;if(cu>9){document.getElementById("KeyCell").colSpan++}else{b9.colSpan++}}if(cu++<14){if(dA===true){K(dA)}else{setTimeout(K,av)}}else{dD[3].deleteCell(3);document.getElementById("KeyCell").rowSpan=4;var dC=b9.appendChild(document.getElementById("KeyContainer").cloneNode(true));dC.id="NewContainer";var dz=dC.tBodies[0].rows[0].cells;dz[0].innerHTML="";dz[1].innerHTML="";if(G!=="portrait"){bf(dz);if(m==="state"||m==="melt"||m==="boil"){document.getElementById("Temperature").style.display="block"}else{document.getElementById("Series").style.display=""}document.getElementById("MatterState").style.display="";document.getElementById("KeyContainer").className="Upscale"}dD[4].cells[3].innerHTML=dD[7].cells[2].innerHTML;dD[4].cells[3].style.textAlign="center";dD[4].cells[3].style.width="1em";dD[4].cells[3].style.padding="0 1.5ex";dD[4].cells[3].className="Clean Paren";dD[5].cells[3].style.display=dD[6].cells[3].style.display="none";document.getElementById("KeyCell").colSpan--;dD[4].cells[3].colSpan--;E.tHead.rows[0].cells[3].colSpan--;for(var dB=10;dB>=7;dB--){dD[dB].style.display="none"}if(cN==="IsotopeTab"&&v){cX()}cH=0;window.onresize()}};var bf=function(dz){dz[0].appendChild(document.getElementById("Closeup"));dz[0].appendChild(document.getElementById("IsotopeForm"));dz[1].appendChild(ab);if(cN==="PropertyTab"){document.getElementById("t_"+m).checked=true}else{if(cN==="IsotopeTab"){document.getElementById("t_"+b4).checked=true}}dz[1].appendChild(document.getElementById("Hund"));dz[1].appendChild(document.getElementById("Block"));dz[1].appendChild(document.getElementById("DecayModes"))};var Q=function(){switch(window.orientation){case 0:case 180:if(G!=="portrait"){aL("portrait")}break;case -90:case 90:if(G!=="landscape"){aL("landscape")}break}};var aL=function(dz){var dA=c5(dz);switch(G=dz){case"portrait":document.getElementById("ExternalKey").className=E.className+" KeyRegion Clean";document.getElementById("ExternalKey").appendChild(document.getElementById("KeyContainer"));document.getElementById("KeyCell").appendChild(document.getElementById("SliderHolder"));break;case"landscape":(document.getElementById("SliderCell")||document.getElementById("OrbitalString")).appendChild(document.getElementById("SliderHolder"));document.getElementById("KeyCell").appendChild(document.getElementById("KeyContainer"));break}if(dA){a3()}};var c5=function(dz){if(t.checked){t.checked=false;t.onclick();return true}else{return false}};var a3=function(){t.checked=true;t.onclick()}};if(
/*@cc_on ! @*/
false||(typeof DCLalreadyfired!=="undefined"&&DCLalreadyfired)){Ptable.load_complete();window.onload=Ptable.lazy_load}else{if(document.addEventListener){document.addEventListener("DOMContentLoaded",Ptable.load_complete,false);window.onload=Ptable.lazy_load}else{window.onload=function(){Ptable.load_complete();Ptable.lazy_load()}}};
