var isIE=(
/*@cc_on ! @*/
false),_gaq=_gaq||[],n_atomic=0,n_name=(language=="zh")?2:4,n_symbol=2,n_mass=6,n_big=rtl?1:0,n_small=rtl?0:1,i_selected=0,i_neutrons=1,i_isomass=2,i_binding=3,i_masscontrib=4,i_halflife=5,i_decaymode=6,i_width=7,i_wiki=8,selected=[],halflife=[],binding=[],masscontrib=[],isomass=[],neutrons=[],width=[],wiki=[],schemebase=(scheme==="night"?"000000":"FFFFFF"),schemehigh=(scheme==="night"?"FFFFFF":"000000"),lastSeries=false,lastDetach=false,lastIsotope=false,lastOrbital=false,allclasses,allmodes,isotope_intervals=[],winlist=[],aufbau=[],element_ids=[],search_active=false,tab="SeriesTab",dataset="series",isoset="isomass",series=[[]],chemical=[[],[]],isotopecache=[],block=[],states=[],from=false,to=false,statecolors=[{Unknown:"#667766",Gas:"#AA0000",Liquid:"#0000DD",Solid:"#000000"},{Unknown:"#667766",Gas:"#AA0000",Liquid:"#0000DD",Solid:"#000000"}],highlight,slider_data=[],sliding=false,resizewidth,resizeheight,datasets={PropertyTab:["melt","boil","electroneg","discover","affinity","heat","radius","abundance","ionize","valence","density","hardness","modulus","conductivity"],IsotopeTab:["isomass","binding","masscontrib","halflife","width","neutrons"]},spec_series={units:[" K"],slidermin:0,slidermax:6000,tab:"Weight",subset:0},spec_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)."},spec_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."},spec_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."},spec_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."},spec_electroneg={units:[null],startcolor:"FFFF66",endcolor:"BB0000",defaultcolor:schemebase,legends:["Pauling"],tab:"Electronegativity",scales:["lin"],subset:0},spec_affinity={units:[" kJ/mol"],startcolor:"009900",endcolor:"FFFF00",defaultcolor:schemebase,legends:["kJ/mol"],tab:"Affinity",scales:["log"],subset:0},spec_valence={units:[null],startcolor:"FFFF00",endcolor:"0088FF",defaultcolor:schemebase,legends:["Valence"],tab:"Valence",scales:["lin"],subset:0,help:"Valences for the majority of elements are based on the highest known fluoride."},spec_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:schemebase,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",values:["1st","2nd","3rd","4th","5th","6th","7th","8th","9th","10th","11th","12th","13th","14th","15th","16th","17th","18th","19th","20th","21st","22nd","23rd","24th","25th","26th","27th","28th","29th","30th"],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},spec_radius={units:[" pm"," pm"," pm"," pm"],startcolor:schemebase,endcolor:"446600",defaultcolor:"CCCCCC",legends:["pm","pm","pm","pm"],tab:"Radius",values:["Calculated","Empirical","Covalent","Van der Waals"],scales:["lin","lin","lin","lin"],subset:0},spec_hardness={units:[" MPa",null," MPa"],startcolor:"FFCCEE",endcolor:"008866",defaultcolor:schemebase,legends:["MPa",null,"MPa"],tab:"Hardness",values:["Brinell","Mohs","Vickers"],scales:["lin","lin","log"],subset:0},spec_modulus={units:[" GPa"," GPa"," GPa"],startcolor:"BBFFDD",endcolor:"7700AA",defaultcolor:schemebase,legends:["GPa","GPa","GPa"],tab:"Modulus",values:["Bulk","Shear","Young"],scales:["lin","lin","lin"],subset:0},spec_density={units:[" kg/m\u00b3"," kg/m\u00b3"],startcolor:"DDDDFF",endcolor:"666600",defaultcolor:schemebase,legends:["kg/m\u00b3","kg/m\u00b3"],tab:"Density",values:["STP","Liquid"],scales:["lin","lin"],subset:0},spec_conductivity={units:[" W/mK"," MS/m"],startcolor:schemebase,endcolor:"008800",defaultcolor:"CCCCCC",legends:["W/mK","MS/m"],tab:"Conductivity",values:["Thermal","Electric"],scales:["lin","lin"],subset:0},spec_heat={units:[" J/kgK"," kJ/mol"," kJ/mol"],startcolor:schemebase,endcolor:"FF0000",defaultcolor:"CCCCCC",legends:["J/kgK","kJ/mol","kJ/mol"],tab:"Heat",values:["Specific","Vaporization","Fusion"],scales:["log","lin","log"],subset:0},spec_abundance={units:["%","%","%","%","%","%"],startcolor:schemebase,endcolor:"4444FF",defaultcolor:"CCCCCC",legends:["Percent","Percent","Percent","Percent","Percent","Percent"],tab:"Abundance",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."},spec_discover={units:[null],slidermin:1730,slidermax:2010,"default":2010,startcolor:"FFFFFF",endcolor:"666600",defaultcolor:"FFFFFF",legends:["Year"],tab:"Discovered",subset:0,help:"Select a year to dim elements discovered after that year."},spec_orbital={units:[null],legends:["Oxidation"],tab:"Oxidation",subset:0,help:"Common oxidation states are shown in bold beneath the element closeup."},spec_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."},spec_isomass={units:[null],startcolor:"FFFFFF",endcolor:"0095B6",defaultcolor:"FFFFFF",scale:"lin",subset:0},spec_binding={units:[" MeV"],startcolor:"FFFFFF",endcolor:"009900",defaultcolor:"FFFFFF",scale:"lin",subset:0},spec_masscontrib={units:["%"],startcolor:"FFFFFF",endcolor:"DAA520",defaultcolor:"FFFFFF",legends:["%"],scale:"log",subset:0},spec_halflife={units:["Time"],startcolor:"FFFFFF",endcolor:"B88600",defaultcolor:"A87600",scale:"log",subset:0},spec_width={units:[" MeV"],startcolor:"FFFFFF",endcolor:"008888",defaultcolor:"FFFFFF",scale:"log",subset:0},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.95,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]],locked=false,active=false,waiting=false,hovered_state=false,oldYellow=false,animation_steps=10,aniX=0,iMove=0,delay=0,throb_value,throbber,throb_atomic,temperature,firstDetails=true,key_next=false,tempK,tempC,tempF,tempState,widecheck,wholetable,detail,key_id,display,selects,slider,searchinput,wikibox,properties,matterstate,mode,property_ids=[],orbital_ids=[],block_ids=[],series_ids=[],quickstring=[],current_colors=[],default_colors=[],search_colors=[];if(scheme==="night"){statecolors=[{Unknown:"#99AA99",Gas:"#FFAAAA",Liquid:"#AAAAFF",Solid:"#FFFFFF"},{Unknown:"#667766",Gas:"#AA0000",Liquid:"#0000DD",Solid:"#222222"}]}_gaq.push(["_setAccount","UA-99745-1"]);_gaq.push(["_trackPageview"]);function cache_objects(){tempK=document.getElementById("Temperature").rows[0].cells[0];tempC=document.getElementById("Temperature").rows[1].cells[0];tempF=document.getElementById("Temperature").rows[2].cells[0];tempState=document.getElementById("l_state").getElementsByTagName("span")[0];widecheck=document.getElementById("wide");wholetable=document.getElementById("Main");detail=document.getElementById("CloseupElement");key_id=document.getElementById("KeyContainer");display=document.getElementById("SliderDisplay");selects=document.getElementById("SliderSelect");slider=document.getElementById("SliderBar");searchinput=document.getElementById("SearchInput");mode=document.getElementById("ClickSelect");wikibox=document.getElementById("WikiBox");properties=document.getElementById("Properties");matterstate=document.getElementById("MatterState");matterstate.show="block";var g=properties.getElementsByTagName("td"),f=document.getElementById("Series").getElementsByTagName("td"),e=document.getElementById("Block").getElementsByTagName("th"),b=document.getElementsByTagName("td"),c,a,d;for(c=0;c<b.length;c++){if(b[c].className.indexOf("Element")!==-1){d=b[c].childNodes[n_big].childNodes[n_atomic].innerHTML*1;element_ids[d]=b[c];element_ids[d].idx=d}}for(a=0;a<g.length;a++){if(g[a].id===g[a].id.toUpperCase()&&g[a].id.length){property_ids[g[a].id.toLowerCase()]=g[a]}}for(a=0;a<f.length;a++){if(f[a].id){series_ids[f[a].id]=f[a]}}for(a=0;a<e.length;a++){block_ids[e[a].id]=e[a]}property_ids.electronstring=document.getElementById("ELECTRONSTRING");orbital_ids.lmn=document.getElementById("lmn");orbital_ids.Hund=document.getElementById("Hund");block_ids.Orbital=document.getElementById("Orbital");resizewidth=document.documentElement.offsetWidth,resizeheight=document.documentElement.offsetHeight}function store_html(){var b=document.getElementById("Hund").tBodies[0].rows[0].cells,a,c;for(a=0;a<b.length;a++){aufbau.push(b[a].getElementsByTagName("table")[0].getElementsByTagName("th"))}for(a in electronstring){if(electronstring[a]){quickstring[a]=electronstring[a].replace(/(\d+)(\d[spdf]|$)/g,"<sup>$1</sup> $2")}}spec_series.legends=[document.getElementById("Legend").childNodes[0].childNodes[n_mass].innerHTML];spec_series.help=document.getElementById("Paren").innerHTML;for(c=1;c<=118;c++){series[0][c]=element_ids[c].childNodes[n_big].childNodes[n_mass].innerHTML;block[c]=element_ids[c].className.slice(-1);b=/^Element\s(.+)\s[spdf\s]$/.exec(element_ids[c].className)[1];if(b.indexOf(" ")===-1){chemical[0][c]=chemical[1][c]=b}else{chemical[0][c]=b.substring(0,b.indexOf(" "));chemical[1][c]=b.substring(b.indexOf(" ")+1)}}allclasses=wholetable.className;allmodes=document.getElementById("DecayModes").className;searchinput.def=searchinput.value;wholetable.inverted=false}function bind_events(){var b=document.getElementsByTagName("td"),a;document.getElementById("Weight").onclick=click_checkbox;document.getElementById("Name").onclick=click_checkbox;document.getElementById("Electrons").onclick=click_checkbox;mode.onclick=mode.onchange=change_series;widecheck.onclick=click_checkbox;document.getElementById("Reset").onclick=reset;document.forms.visualize.onclick=dataset_changed;document.forms.isotopes.onclick=isotope_changed;mode.onkeydown=document.forms.visualize.onkeydown=document.forms.isotopes.onkeydown=document.getElementById("langswitch").onkeydown=searchinput.onkeydown=function(c){c=c||event;c.cancelBubble=true};searchinput.onkeyup=function(){search(this.value)};searchinput.onfocus=search_focus;searchinput.onblur=search_leave;document.onkeydown=keyboard_nav;window.onresize=function(){if(resizewidth!=document.documentElement.offsetWidth&&document.cookie.indexOf("Weight")===-1){clearTimeout(arguments.callee.timer);arguments.callee.timer=setTimeout(resize_hunt,200)}resizewidth=document.documentElement.offsetWidth;resizeheight=document.documentElement.offsetHeight};for(a=0;a<b.length;a++){if(b[a].className.indexOf("InnerBorder")!==-1){b[a].onmouseover=function(){document.getElementById("Content").className="InnerHover";widecheck.parentNode.style.backgroundColor="yellow";widecheck.nextSibling.style.color="black"};b[a].onmouseout=function(){document.getElementById("Content").className="";widecheck.parentNode.style.backgroundColor="";widecheck.nextSibling.style.color=""};b[a].onclick=function(){widecheck.checked=true;widecheck.onclick()}}}if(typeof wholetable.onmouseleave!=="undefined"){wholetable.onmouseleave=hide_closeup}else{wholetable.onmouseout=function(d){for(var c=d.relatedTarget;c&&c!=wholetable;c=c.parentNode){}if(!c){hide_closeup()}}}}function load_complete(){var a=get_cookies();highlight=calc_color(1,schemebase,"FFFF00",0,2);cache_objects();store_html();bind_events();if(a.temperature&&!isNaN(a.temperature)){temperature=a.temperature*1}else{temperature=273}attach_class_hovers();if(!isIE||document.documentMode===8){no_sideways()}attach("SeriesTab");attach("Groups");save_colors(default_colors);tab_to_span("SeriesTab");tab_to_anchor("PropertyTab");tab_to_anchor("IsotopeTab");tab_to_anchor("OrbitalTab");document.getElementById("SliderCell").getElementsByTagName("div")[0].style.height=element_ids[32].offsetHeight-6+"px";init_slider(false,"bottom");apply_cookies()}function apply_cookies(){var b=get_cookies(),a;for(a in b){if(a.substr(0,7)==="subset_"){window["spec_"+a.substr(7)]["subset"]=b[a]*1}if(a.substr(0,8)==="default_"){window["spec_"+a.substr(8)]["default"]=b[a]*1}}if(document.cookie.indexOf("Weight")===-1){if(screen.width>=1280){document.getElementById("Electrons").checked=true}if(screen.width>=1024){document.getElementById("Name").checked=document.getElementById("Weight").checked=true}}if(document.cookie.indexOf("Weight")!==-1||document.cookie.indexOf("wide")!==-1){cookie_checkbox(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(widecheck.checked){widecheck.onclick()}if(b.dataset){document.getElementById("t_"+b.dataset).checked=true}if(b.isoset){document.getElementById("t_"+b.isoset).checked=true}if(typeof b.Series!=="undefined"&&b.Series<mode.options.length){mode.selectedIndex=b.Series}if(b.tab&&b.tab!=="SeriesTab"){activeTab({srcElement:document.getElementById(b.tab)})}else{mode.onchange();setTimeout(sweep,500)}}function attention_properties(){var a=70,b=get_cookies();if(tab==="SeriesTab"&&!b.tab&&!waiting){throb_value=0;throbber=setInterval(throb_properties,a);setTimeout(end_attention_properties,a*9+a/2)}}function end_attention_properties(){clearInterval(throbber);document.getElementById("PropertyTab").style.backgroundColor=""}function get_cookies(){var d=document.cookie.split("; "),b=[],a,c;for(a in d){c=d[a].split("=");b[c[0]]=c[1]}return(b)}function cookie_colors(){var b=document.styleSheets[0].cssRules||document.styleSheets[0].rules,e=get_cookies(),d=allclasses.split(" "),c,a;for(c in d){if(e[d[c]]){for(a=0;a<b.length;a++){if(b[a].selectorText.indexOf(d[c])!==-1&&e[d[c]]){b[a].style.backgroundColor="#"+e[d[c]]}}}}}function sweep(){var c,a=35,b=[[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(c=0;c<30;c++){if(b[c]){setTimeout("dim_diagonal(["+b[c]+"], 1);",a*c)}if(b[c-1]){setTimeout("dim_diagonal(["+b[c-1]+"], 2);",a*c)}if(b[c-2]){setTimeout("dim_diagonal(["+b[c-2]+"], 1);",a*c)}if(b[c-3]){setTimeout("dim_diagonal(["+b[c-3]+"], 0);",a*c)}}}function animated_expand(){wikibox.style.width=wikibox.wideStart+wikibox.coverWidth*aniX+"px";wikibox.style.left=wikibox.leftStart-wikibox.coverLeft*aniX+"px";wikibox.style.height=wikibox.highStart+wikibox.coverHeight*aniX+"px";wikibox.style.top=wikibox.topStart-wikibox.coverTop*aniX+"px";if(aniX++<animation_steps){setTimeout(animated_expand,10)}else{aniX=0;if(typeof document.body.style.maxHeight!="undefined"){wikibox.style.position="fixed";wikibox.style.height=""}wikibox.style.width=wikibox.style.left=wikibox.style.top="";document.getElementById("WikiFrameBox").style.display=document.getElementById("WikiTitle").style.display="";document.getElementById("Overlay").style.display="block";wikibox.style.backgroundColor="white";wikibox.style.border="medium outset"}}function init_throb(a){if(typeof throbber!=="undefined"){finish_throb(a,throbber)}throb_atomic=a;throb_value=2;throbber=setInterval(throb_element,83)}function finish_throb(a,b){clearInterval(b);element_ids[a].style.backgroundColor=""}function throb_element(){var a=throb_value++%8;element_ids[throb_atomic].style.backgroundColor=calc_color(a<=4?a:8-a,default_colors[throb_atomic],schemebase,0,4)}function throb_properties(){var a=++throb_value%8;document.getElementById("PropertyTab").style.backgroundColor=calc_color(a<=4?a:8-a,"2222FF",schemebase,0,4)}function init_flash(c){var b,d,a=10;for(b in c){for(d=0;d<=a;d++){setTimeout(getRef6(c[b],d,a),d*66)}}}function getRef6(b,c,a){return function(){if(c===a){b.style.backgroundColor=""}else{b.style.backgroundColor=calc_color(c,"FFFF00",b.getElementsByTagName("input")[0].checked?schemebase:"24538B",0,a)}}}function timeunits(d){var b,a=["y","d","h","min","s","ms","\u00b5s","ns","ps"],c=[31556926,86400,3600,60,1,0.001,0.000001,1e-9,1e-12];if(d==="0"){return"Stable"}else{if(d===""){return"Unknown"}else{for(b in a){if(d>=c[b]){return scinot((d/c[b]).toPrecision(countsigfig(d)))+" "+a[b]}}}}return scinot((d/c.pop()).toPrecision(countsigfig(d)))+" "+a.pop()}function countsigfig(a){return a.replace(/^0.0*/,"").replace(/\.|e.+$/g,"").length}function scinot(a){return a.replace(/e[+]*(-)*(\d*)$/,"\u00d710<sup>$1$2</sup>")}function findPos(b,a){return(b?findPos(b.offsetParent,[a[0]-b.offsetLeft,a[1]-b.offsetTop]):a)}function getBGcolor(a){if(a.currentStyle){return(a.currentStyle.backgroundColor.replace(/^#/,""))}else{if(window.getComputedStyle){return(rgb2hex(getComputedStyle(a,null).getPropertyValue("background-color")))}}}function isDisplayBlock(a){if(a.currentStyle){return(a.currentStyle.display!=="none")}else{if(window.getComputedStyle){return(getComputedStyle(a,null).getPropertyValue("display")!=="none")}}}function rgb2hex(d){var a,c="",b=/(\d+)[, ]+(\d+)[, ]+(\d+)/.exec(d);for(a=1;a<=3;a++){c+=(b[a]<16?"0":"")+parseInt(String(b[a])).toString(16)}return(c)}function benchmark(){var b,a,c;b=(new Date()).getTime();for(a=0;a<5;a++){for(c=0;c<=118;c++){on_mouse_over(c)}}alert((new Date()).getTime()-b)}function init_slider(c,d){var b=window["spec_"+dataset],a;create_slider(d);if(b.units[0]!==" K"){hide_state();slider.parentNode.getElementsByTagName("img")[0].style.display="none"}else{state_classes(true,false);slider.parentNode.getElementsByTagName("img")[0].style.display=""}if("slidermax" in b){selects.style.display="none";display.style.display="";slider.parentNode.style.display="";slider_data.xMax=document.getElementById("SliderSlit").offsetWidth;slider_data.from=b.slidermin;slider_data.to=b.slidermax;slider_data.scale=slider_data.xMax/(slider_data.to-slider_data.from);if(dataset==="state"&&!wholetable.inverted){document.getElementById("Legend").childNodes[0].childNodes[n_mass].innerHTML=b.legends[0];dim_for_states()}if(dataset==="melt"||dataset==="boil"){series_to_temp()}snap_slider(((b.units[0]===" K")?temperature:b["default"]-slider_data.from)*slider_data.scale,true,false)}else{if("values" in b){if(b.values.length>6){slider.parentNode.style.display="";display.style.display="none";selects.style.display="inline";while(selects.options.length){selects.options[selects.options.length-1]=null}for(a=0;a<b.values.length;a++){selects.options[a]=new Option(b.values[a],a)}selects.selectedIndex=b.subset;selects.onchange=select_changed;slider_data.xMax=document.getElementById("SliderSlit").offsetWidth;slider_data.from=0;slider_data.to=b.values.length-1;slider_data.scale=slider_data.xMax/(slider_data.to-slider_data.from);snap_slider(b.subset*slider_data.scale,true,false)}else{display.style.display=selects.style.display=slider.parentNode.style.display="none";create_radios(b);switch_subset(b.subset)}}else{display.style.display=selects.style.display=slider.parentNode.style.display="none";snap_slider(0,true,false)}}if(dataset=="orbital"){move_helium(true);orbital_ids.OrbitalString=display.parentNode.appendChild(document.createElement("span"))}sliding=c;if(from!==false){fade([from,to],1,0.5,d);from=to=false}else{slide_in(display.parentNode.parentNode,0,d=="top"||d=="bottom"?-display.parentNode.offsetHeight:-display.parentNode.offsetWidth,d)}}function create_slider(c){var d=display.parentNode.cloneNode(true),b=display.parentNode.getElementsByTagName("*"),a;for(a=0;a<b.length;a++){if(b[a].id){b[a].id=""}}d.style.position="absolute";d.style[c]=(c=="top"||c=="bottom"?display.parentNode.offsetHeight:display.parentNode.offsetWidth)+"px";if(c=="left"||c=="right"){d.style.top=0}display.parentNode.parentNode.appendChild(d);display=document.getElementById("SliderDisplay");slider=document.getElementById("SliderBar");selects=document.getElementById("SliderSelect");if(document.getElementById("AltSlider")){document.getElementById("AltSlider").parentNode.removeChild(document.getElementById("AltSlider"))}if(display.parentNode.getElementsByTagName("span")[0]){display.parentNode.removeChild(display.parentNode.getElementsByTagName("span")[0])}}function getRef3(c,d,a,b){return function(){slide_in(c,d,a,b)}}function slide_in(c,d,a,b){d-=a/-10;if(Math.round(d)!=Math.round(a)&&!sliding){c.style[b]=d+"px";setTimeout(getRef3(c,d,a,b),20)}else{while(c.firstChild&&c.firstChild.nodeType!=1){c.removeChild(c.firstChild)}if(c.firstChild){c.removeChild(c.firstChild)}c.style[b]="";c.getElementsByTagName("div")[0].style.top="";c.getElementsByTagName("div")[0].style.bottom="";c.getElementsByTagName("div")[0].style.right="";c.getElementsByTagName("div")[0].style.left="";sliding=false;slider_events()}}function startSlide(a){a=a||event;on_mouse_over();if(search_active||hovered_state!==false){return}if(dataset==="series"||dataset==="chemical"){dim_for_states()}else{if(window["spec_"+dataset]["units"][0]===" K"){if(!widecheck.checked){document.getElementById("Closeup").style.display="none"}matterstate.style.display="";matterstate.show="block"}}slider_data.startOffsetX=parseInt(slider.style.left,10)-a.screenX;document.onmouseup=slider_release;if(document.addEventListener){document.addEventListener("mouseover",blockade,true);document.addEventListener("mouseout",blockade,true);document.onmousemove=moveSlider}else{slider.onmousemove=moveSlider;slider.setCapture(true)}slider.onmousedown=null}function blockade(a){a.stopPropagation()}function slider_skip(a){a=a||event;if(search_active||hovered_state!==false){return}var b=(a.offsetX-slider.offsetLeft||findPos(slider,[a.pageX,0])[0])<0?-1:1;bump_slider(b,(slider_data.xMax/10)*b);slider_release(true)}function wheelscroll(b){b=b||event;var a=(b.detail)?b.detail/Math.abs(b.detail):b.wheelDelta/Math.abs(b.wheelDelta);if(a){bump_slider(a,a*3)}slider_release(true);if(b.preventDefault){b.preventDefault()}return false}function moveSlider(a){snap_slider(Math.max(0,Math.min(slider_data.startOffsetX+(a||event).screenX,slider_data.xMax)),false,false);return false}function slider_keypress(b){var a=b?b.which:event.keyCode;if(a>31&&(a<48||a>57)){return false}}function slider_release(b){b=b||event;if((b.keyCode==39||b.keyCode==37)&&this.id!=="SliderBar"){return false}if(b.keyCode){on_mouse_over()}var a=window["spec_"+dataset];if(dataset!=="state"&&wholetable.inverted){leave_state()}if("default" in a){a["default"]=display.value;set_cookie("default_"+dataset,a["default"])}if(!("values" in a)){snap_slider(Math.min(slider_data.xMax,Math.max(0,(display.value*1-slider_data.from)*slider_data.scale)),false,false)}if(dataset!=="series"&&dataset!=="chemical"){save_colors(current_colors)}if(dataset==="state"){dim(active,true)}if(b!==true){on_mouse_over(active)}else{if(dataset==="ionize"){update_detail(active,"ionize")}}document.onmouseup=null;if(document.removeEventListener){document.removeEventListener("mouseover",blockade,true);document.removeEventListener("mouseout",blockade,true);document.onmousemove=null}else{slider.onmousemove=null;document.releaseCapture()}slider.onmousedown=startSlide}function snap_slider(a,d,c){var b=window["spec_"+dataset],e=Math.round(a/slider_data.scale+slider_data.from);slider.style.left=(e-slider_data.from)*slider_data.scale+"px";if("values" in b){if(b.subset!=e||d){selects.selectedIndex=b.subset=e;set_cookie("subset_"+dataset,b.subset);if(dataset!=="isotope"){document.getElementById("l_"+dataset).getElementsByTagName("span")[0].innerHTML=" "+b.values[e]+" "}colorize_and_mass(true)}}else{display.value=e;if(b.units[0]===" K"){temperature=e;state_classes(0,c);if(d){update_tempbox()}else{clearTimeout(slider_data.timer);slider_data.timer=setTimeout(update_tempbox,15)}}if(d||(dataset!=="series"&&dataset!=="chemical")){colorize_and_mass((d&&dataset!=="isotope")||dataset==="state")}}}function slider_arrow(a){a=a||event;if(a.keyCode>=33&&a.keyCode<=40){on_mouse_over()}switch(a.keyCode){case 37:case 39:if(this.id==="SliderBar"){bump_slider(a.keyCode-38,a.keyCode-38)}break;case 38:case 40:bump_slider(39-a.keyCode,39-a.keyCode);break;case 35:case 36:bump_slider(1000*(a.keyCode-35.5),1000*(a.keyCode-35.5));break;case 33:case 34:var b=(33.5-a.keyCode)*2;bump_slider(b,(slider_data.xMax/10)*b);break}if(a.keyCode>=33&&a.keyCode<=40){a.cancelBubble=true;if(a.stopPropagation){a.stopPropagation()}if(!((a.keyCode==39||a.keyCode==37)&&this.id==="SliderDisplay")){return false}}}function bump_slider(a,b){if(dataset==="state"){dark(active,true)}if("values" in window["spec_"+dataset]){snap_slider(Math.min(slider_data.xMax,Math.max(0,slider.offsetLeft+slider_data.scale*a)),false,false)}else{if(isNaN(display.value)){display.value=0}snap_slider(Math.min(slider_data.xMax,Math.max(0,(display.value*1-slider_data.from)*slider_data.scale+1*b)),false,dataset==="series")}}function create_radios(c){var e=document.createElement("form"),a,b,d;e.id="AltSlider";e.onkeydown=function(f){f=f||event;f.cancelBubble=true};for(a=0;a<c.values.length;a++){b=document.createElement("span");b.className="Radio";b.innerHTML+=' <input type="radio" name="SliderAlt" id="r_'+c.values[a]+'" value="'+a+'"/>';d=document.createElement("label");d.htmlFor="r_"+c.values[a];d.innerHTML=c.values[a];b.appendChild(d);e.appendChild(b)}e.onclick=subset_changed;display.parentNode.appendChild(e);document.getElementById("r_"+c.values[c.subset]).checked=true}function fade_opacity(a,b){a.style.opacity=b;if(b==1){if("filters" in a){a.style.removeAttribute("filter")}}else{a.style.filter="alpha(opacity="+b*100+")"}}function fade(c,e,b,f){var d=c[b==2?1:0],a;for(a in d){if(isDisplayBlock(document.getElementById(d[a]))){fade_opacity(document.getElementById(d[a]),e)}}if(e==1&&b==2){slide_in(display.parentNode.parentNode,0,f=="top"||f=="bottom"?-display.parentNode.offsetHeight:-display.parentNode.offsetWidth,f);return}if(e==0.125){b=1/b;prepare_fade(c)}setTimeout(getRef4(c,e*b,b,f),10)}function getRef4(b,c,a,d){return function(){fade(b,c,a,d)}}function prepare_fade(b){var a;for(a in b[0]){document.getElementById(b[0][a]).style.display="none";fade_opacity(document.getElementById(b[0][a]),1)}for(a in b[1]){document.getElementById(b[1][a]).style.display="block";if(firstDetails&&b[1][a]=="Properties"){fix_properties()}fade_opacity(document.getElementById(b[1][a]),0)}}function slider_events(){if(document.addEventListener){document.getElementById("SliderTrack").addEventListener("DOMMouseScroll",wheelscroll,false);display.addEventListener("DOMMouseScroll",wheelscroll,false)}else{display.onmousewheel=document.getElementById("SliderTrack").onmousewheel=wheelscroll}document.getElementById("SliderTrack").onclick=slider_skip;slider.onclick=function(a){a=a||event;a.cancelBubble=true};slider.onmousedown=startSlide;selects.onkeydown=function(a){a=a||event;a.cancelBubble=true};display.onkeyup=document.getElementById("SliderBar").onkeyup=slider_release;display.onkeydown=document.getElementById("SliderBar").onkeydown=slider_arrow;display.onkeypress=slider_keypress;display.onfocus=document.getElementById("SliderBar").onfocus=hover_state;display.onblur=document.getElementById("SliderBar").onblur=unhover_state}function dim_for_states(){on_mouse_over();series_to_temp();wholetable.className+=" InvertState";wholetable.inverted=true;state_classes(true,false);for(var a=1;a<=118;a++){element_ids[a].childNodes[n_big].childNodes[n_symbol].style.color=""}}function startWikiDrag(a){a=a||event;if((a.srcElement||a.target).nodeName.toUpperCase()==="INPUT"){return}document.getElementById("WikiFrameBox").style.display="none";set_opacity(wikibox,0.8);this.startX=this.offsetLeft;this.startY=this.offsetTop;this.mouseStartX=a.clientX;this.mouseStartY=a.clientY;document.onmousemove=moveWiki;document.onmouseup=releaseWiki;return false}function moveWiki(a){a=a||event;wikibox.style.left=wikibox.startX+a.clientX-wikibox.mouseStartX+"px";wikibox.style.top=wikibox.startY+a.clientY-wikibox.mouseStartY+"px";return false}function releaseWiki(){document.onmousemove=null;document.onmouseup=null;set_opacity(wikibox,1);document.getElementById("WikiFrameBox").style.display=""}function click_wiki(){var b=this||srcElement,c,a,d=document.getElementById("ClickSelect").value;if(b.nodeName.toUpperCase()!=="A"){switch(d){case"Videos":a="http://www.periodicvideos.com/videos/"+String("00"+b.childNodes[n_big].childNodes[n_atomic].innerHTML).slice(-3)+".htm";break;case"WebElements":a="http://www.webelements.com/"+b.childNodes[n_big].childNodes[n_name].innerHTML.toLowerCase()+"/";break;case"Photos":a="http://www.periodictable.com/Elements/"+String("00"+b.childNodes[n_big].childNodes[n_atomic].innerHTML).slice(-3)+"/";break}}if(b.nodeName.toUpperCase()==="A"){c=decodeURIComponent(b.href.substring(b.href.lastIndexOf("/")+1));document.getElementById("ElementName").href=b.href}else{if(tab==="IsotopeTab"){c=b.getElementsByTagName("em")[0].innerHTML;document.getElementById("ElementName").href="http://en.wikipedia.org/wiki/"+encodeURIComponent(c)}else{c=b.childNodes[n_big].childNodes[n_name].innerHTML;if(a){document.getElementById("ElementName").href=a}else{document.getElementById("ElementName").href="http://"+language+".wikipedia.org/wiki/"+encodeURIComponent(c)}}}document.getElementById("ElementName").innerHTML=c;if(a){document.getElementById("Source").innerHTML=d;window.frames.WikiFrame.location.replace(a)}else{document.getElementById("Source").innerHTML="Wikipedia";window.frames.WikiFrame.location.replace("http://"+language+".wikipedia.org/w/index.php?title="+encodeURIComponent(c)+"&printable=yes")}wikibox.onmousedown=startWikiDrag;wikibox.getElementsByTagName("button")[0].onmousedown=function(f){f=f||event;f.cancelBubble=true};document.getElementById("WikiFrameBox").style.display=document.getElementById("WikiTitle").style.display="none";wikibox.style.display="block";wikibox.style.backgroundColor="";wikibox.style.border="2px solid #"+schemehigh;wikibox.style.position="absolute";wikibox.style.left=(wikibox.leftStart=-findPos(b,[0,0])[0])+"px";wikibox.style.width=(wikibox.wideStart=b.offsetWidth)+"px";wikibox.style.top=(wikibox.topStart=-findPos(b,[0,0])[1])+"px";wikibox.style.height=(wikibox.highStart=b.offsetHeight)+"px";wikibox.coverLeft=(wikibox.leftStart-0.15*resizewidth-(typeof document.body.style.maxHeight!="undefined"?document.documentElement.scrollLeft:0))/animation_steps;wikibox.coverWidth=(0.7*resizewidth-wikibox.wideStart)/animation_steps;wikibox.coverTop=(wikibox.topStart-0.15*resizeheight-(typeof document.body.style.maxHeight!="undefined"?document.documentElement.scrollTop:0))/animation_steps;wikibox.coverHeight=(0.7*resizeheight-wikibox.highStart)/animation_steps;animated_expand();return false}function destroy(){window.frames.WikiFrame.location.replace("about:blank");wikibox.style.display="";document.getElementById("Overlay").style.display=""}function insert_rareearths(c,e){var d=wholetable.tBodies[0].rows,b,a;iMove=0,delay=e;if(c){wholetable.tHead.rows[0].insertCell(3);d[3].insertCell(3);d[4].insertCell(3);d[0].insertCell(document.getElementById("Series").parentNode.parentNode.parentNode.parentNode.parentNode.cellIndex+1);key_next=key_id.parentNode.nextSibling;while(key_next.nodeType!=1){key_next=key_next.nextSibling}key_next.rowSpan=3;key_next.className="KeyRegion";d[8].cells[1].getElementsByTagName("span")[0].style.display="none";move_rare_inside()}else{b=document.getElementById("KeyContainer").tBodies[0].rows[0].cells;move_keyblocks_to(b);key_next.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"}key_id.className="";d[5].cells[3].style.display=d[6].cells[3].style.display=d[8].cells[1].style.display="";for(a=10;a>=7;a--){d[a].style.display=""}d[4].cells[3].innerHTML="";move_rare_outside()}}function move_rare_outside(){var a=wholetable.tBodies[0].rows;a[9].insertBefore(a[5].cells[4],a[9].cells[iMove+1]);a[10].appendChild(a[6].cells[4]);if(iMove===5){key_id.parentNode.rowSpan=3;a[3].insertCell(3).colSpan=key_id.parentNode.colSpan}if(iMove){a[8].cells[1].colSpan++}if(iMove++<14){if(iMove-1){if(iMove<6){key_id.parentNode.colSpan--}else{key_next.colSpan--;a[3].cells[3].colSpan--}wholetable.tHead.rows[0].cells[3].colSpan--;a[4].cells[3].colSpan--}if(delay){setTimeout(move_rare_outside,100)}else{move_rare_outside()}}else{a[8].cells[1].getElementsByTagName("span")[0].style.display="";wholetable.tHead.rows[0].deleteCell(3);a[3].deleteCell(3);a[4].deleteCell(3);a[0].deleteCell(key_next.cellIndex);if(tab==="IsotopeTab"){rebuild_isotopes()}resizewidth=0;window.onresize()}}function move_rare_inside(){var d=wholetable.tBodies[0].rows,c,a,b;d[5].insertBefore(element_ids[71-iMove],d[5].cells[4]);d[6].insertBefore(element_ids[103-iMove],d[6].cells[4]);if(d[8].cells[1].colSpan>1){d[8].cells[1].colSpan--}if(iMove){d[3].cells[3].colSpan++;d[4].cells[3].colSpan++;wholetable.tHead.rows[0].cells[3].colSpan++;if(iMove>9){key_id.parentNode.colSpan++}else{key_next.colSpan++}}if(iMove++<14){if(delay){setTimeout(move_rare_inside,100)}else{move_rare_inside()}}else{d[3].deleteCell(3);key_id.parentNode.rowSpan=4;c=key_next.appendChild(document.getElementById("KeyContainer").cloneNode(true));c.id="NewContainer";a=c.tBodies[0].rows[0].cells;a[0].innerHTML="";a[1].innerHTML="";move_keyblocks_to(a);if(dataset==="state"||dataset==="melt"||dataset==="boil"){document.getElementById("Temperature").style.display="block"}else{document.getElementById("Series").style.display=""}document.getElementById("MatterState").style.display="";key_id.className="Upscale";d[4].cells[3].innerHTML=d[7].cells[2].innerHTML;d[4].cells[3].style.textAlign="center";d[4].cells[3].style.width="1em";d[4].cells[3].style.padding="0 1.5ex";d[4].cells[3].className="Clean Paren";d[5].cells[3].style.display=d[6].cells[3].style.display="none";key_id.parentNode.colSpan--;d[4].cells[3].colSpan--;wholetable.tHead.rows[0].cells[3].colSpan--;for(b=10;b>=7;b--){d[b].style.display="none"}if(tab==="IsotopeTab"){rebuild_isotopes()}resizewidth=0;window.onresize()}}function change_series(){if(tab!=="SeriesTab"){activeTab({srcElement:document.getElementById("SeriesTab")})}set_cookie("Series",mode.selectedIndex);wholetable.tBodies[0].className=mode.value==="Wikipedia"?"":mode.value;if(mode.selectedIndex!==0){restore_colors([]);save_colors(current_colors)}else{restore_colors(current_colors=[])}}function reset(){set_cookie("Weight","");set_cookie("Name","");set_cookie("Electrons","");set_cookie("wide","");set_cookie("Series","");temperature=273;mode.selectedIndex=0;mode.onchange();if(tab!=="SeriesTab"){activeTab({srcElement:document.getElementById("SeriesTab")})}else{init_slider(true,"left")}hide_closeup();if(widecheck.checked){widecheck.checked=false;widecheck.onclick()}else{resizewidth=0;window.onresize()}return false}function resize_hunt(){var b=["Weight","Name","Electrons"],c=-1,d=[],e=[],a;for(a in b){d[a]=document.getElementById(b[a]).checked}while(document.documentElement.offsetWidth>=document.documentElement.scrollWidth&&c<b.length-1){if(!document.getElementById(b[++c]).checked){document.getElementById(b[c]).checked=true;document.getElementById(b[c]).onclick()}}c=b.length;while(document.documentElement.offsetWidth<document.documentElement.scrollWidth&&c>0){if(document.getElementById(b[--c]).checked){document.getElementById(b[c]).checked=false;document.getElementById(b[c]).onclick()}}for(a in b){if(d[a]!==document.getElementById(b[a]).checked){e.push(document.getElementById(b[a]).parentNode)}}init_flash(e)}function attach_class_hovers(){var e=document.getElementById("Series").tBodies[0].rows,b=e[2].cells[0].className+" ",a,f,d,c=document.getElementById("Series").getElementsByTagName("a");for(a=0;a<5;a++){b+=e[1].cells[a].className+" "}e[0].cells[0].classes=b;b="";for(a=5;a<8;a++){b+=e[1].cells[a].className+" "}e[0].cells[2].classes=b;e[0].cells[0].firstChild.onmouseover=e[0].cells[2].firstChild.onmouseover=e[0].cells[0].firstChild.onfocus=e[0].cells[2].firstChild.onfocus=multi_series;e[0].cells[0].firstChild.onblur=e[0].cells[2].firstChild.onblur=series_leave;for(a=0;a<=2;a++){for(f=0;f<e[a].cells.length;f++){if(e[a].cells[f].className){e[a].cells[f].firstChild.onmouseover=e[a].cells[f].firstChild.onfocus=series_hover;e[a].cells[f].firstChild.onblur=series_leave}}}if(typeof document.getElementById("Series").onmouseleave!=="undefined"){document.getElementById("Series").onmouseleave=document.getElementById("Block").onmouseleave=document.getElementById("DecayModes").onmouseleave=series_leave}else{document.getElementById("Series").onmouseout=document.getElementById("Block").onmouseout=document.getElementById("DecayModes").onmouseout=function(g){for(d=g.relatedTarget;d&&(d!=document.getElementById("Series")&&d!=document.getElementById("Block")&&d!=document.getElementById("DecayModes"));d=d.parentNode){}if(!d){series_leave()}}}for(a=0;a<c.length;a++){c[a].onclick=click_wiki}e=document.getElementById("Block").tBodies[0].rows;for(a=0;a<e.length;a++){e[a].cells[0].onmouseover=function(){clear_series();wholetable.className=this.className}}e=matterstate.tBodies[0].rows;for(a=0;a<e.length;a++){e[a].cells[0].onmouseover=hover_state}if(typeof matterstate.onmouseleave!=="undefined"){matterstate.onmouseleave=unhover_state}else{matterstate.onmouseout=function(g){for(d=g.relatedTarget;d&&(d!==matterstate);d=d.parentNode){}if(!d){unhover_state()}}}e=document.getElementById("DecayModes").getElementsByTagName("th");for(a in e){e[a].onmouseover=function(){if(document.getElementById("isotopeholder").childNodes.length){document.getElementById("DecayModes").className=document.getElementById("isotopeholder").className=this.className}}}}function hover_state(){var b=this||srcElement,a;display.style.backgroundColor=highlight;if(hovered_state!==b.className&&window["spec_"+dataset]["units"][0]==" K"){if(hovered_state){unhover_state(b)}if(b.className!=="SliderBar"){hovered_state=b.className}series_to_temp();if(hovered_state&&(tab!=="PropertyTab"||dataset==="chemical")){b.parentNode.className="InvertState";for(a=1;a<=118;a++){if(states[a]===hovered_state){element_ids[a].style.backgroundColor=statecolors[1][states[a]];element_ids[a].childNodes[n_big].childNodes[n_symbol].style.color=element_ids[a].style.color="white"}}}}}function unhover_state(){var a,b,c=matterstate.tBodies[0].rows;display.style.backgroundColor="";for(a=0;a<c.length;a++){c[a].className=""}if(dataset!=="state"&&dataset!=="melt"&&dataset!=="boil"){temp_to_series()}if(hovered_state&&(tab!=="PropertyTab"||dataset==="chemical")){for(b=1;b<=118;b++){if(states[b]===hovered_state){element_ids[b].childNodes[n_big].childNodes[n_symbol].style.color=statecolors[0][states[b]];element_ids[b].style.color=""}}if(mode.selectedIndex!==0){restore_colors([]);save_colors(current_colors)}else{restore_colors(current_colors=[])}}hovered_state=false}function clear_series(){if(lastSeries){lastSeries.style.backgroundColor="";lastSeries.style.color=""}if(active){dim_series(chemical[0][active],block[active],false)}lastSeries=false}function multi_series(){if(tab!=="PropertyTab"||dataset==="chemical"){clear_series();this.parentNode.style.backgroundColor="#999";this.parentNode.style.color="white";wholetable.className=this.parentNode.classes;lastSeries=this.parentNode}}function series_hover(){if(tab!=="PropertyTab"||dataset==="chemical"){clear_series();wholetable.className=(this||srcElement).parentNode.className}}function series_leave(){if(tab==="IsotopeTab"){document.getElementById("DecayModes").className=document.getElementById("isotopeholder").className=allmodes}if(tab!=="PropertyTab"||dataset==="chemical"){clear_series();wholetable.className=allclasses+(tab==="OrbitalTab"?" s p d f":"");if(active){dim_series(chemical[0][active],block[active],true)}}}function dataset_changed(c,b){var a;b=(b||this||srcElement).getElementsByTagName("input");for(a=0;a<b.length;a++){if(b[a].checked&&b[a].value!=dataset){if(c===true){return b[a].value}else{switch_viz(b[a].value)}}}}function isotope_changed(c,b){var a;b=(b||this||srcElement).getElementsByTagName("input");for(a=0;a<b.length;a++){if(b[a].checked&&b[a].value!=dataset){if(c===true){return b[a].value}else{switch_iso(b[a].value)}}}}function subset_changed(c){var b=document.forms.AltSlider,a;for(a=0;a<b.length;a++){if(b[a].checked&&b[a].value!=window["spec_"+dataset]["subset"]){if(c===true){return b[a].value}else{switch_subset(b[a].value)}}}}function select_changed(){var a=selects.selectedIndex,b=window["spec_"+dataset]["subset"];bump_slider(a-b,a-b);slider_release(true)}function switch_subset(b){var a=window["spec_"+dataset]["values"];if(a.length<=6){yellowize_subset(a[window["spec_"+dataset]["subset"]],"");yellowize_subset(a[b],highlight)}window["spec_"+dataset]["subset"]=b;set_cookie("subset_"+dataset,b);if(dataset!=="isotope"){document.getElementById("l_"+dataset).getElementsByTagName("span")[0].innerHTML=" "+a[b]+" ";update_detail(active,dataset)}else{if(locked){rebuild_isotopes()}}colorize_and_mass(true);if(tab==="PropertyTab"&&dataset!=="chemical"){save_colors(current_colors)}}function rebuild_isotopes(){load_isotope(active);detach(active)}function switch_viz(c){if(dataset==="state"&&wholetable.inverted){leave_state()}if(dataset==="melt"||dataset==="boil"){temp_to_series()}var b=find_direction(dataset,c),a=window["spec_"+c];dataset=c;if(tab==="PropertyTab"){set_cookie("dataset",dataset)}if(tab==="PropertyTab"&&dataset!=="chemical"&&dataset!=="state"&&dataset!=="discover"){wholetable.tBodies[0].className="NoGradient"}else{wholetable.tBodies[0].className=""}document.getElementById("Weight").nextSibling.innerHTML=a.tab;(widecheck.checked?wholetable.tBodies[0].rows[4].cells[3]:document.getElementById("Paren")).innerHTML=a.help?a.help.replace(/\[([^\s\]]+)\s([^\]]+)\]/g,"<a href='$1'>$2</a>"):"\xa0";if(dataset==="series"||dataset==="isotope"||dataset==="orbital"||dataset==="chemical"){restore_colors(current_colors=[])}if(tab==="PropertyTab"){if(oldYellow){document.getElementById(oldYellow.toUpperCase()).parentNode.className=""}document.getElementById(dataset.toUpperCase()).parentNode.className="Highlight";oldYellow=dataset}init_slider(false,b);if(tab==="PropertyTab"&&dataset!=="chemical"){save_colors(current_colors)}}function find_direction(d,e){var a={series:1,other:2,orbital:3,isotope:4},c,b;if(a[d]||a[e]){if(!a[d]){a[d]=2}else{if(!a[e]){a[e]=2}}if(a[e]>a[d]){return"left"}else{return"right"}}else{c=document.getElementById("t_"+d).parentNode.parentNode,b=document.getElementById("t_"+e).parentNode.parentNode;if(c.parentNode==b.parentNode){if(b.rowIndex>c.rowIndex){return"top"}else{return"bottom"}}else{if(c.parentNode.parentNode==c.parentNode.parentNode.parentNode.getElementsByTagName("table")[0]){return"right"}else{return"left"}}}}function switch_iso(d){isoset=d;set_cookie("isoset",isoset);colorize_and_mass(false);var a=document.getElementById("isotopeholder").childNodes,c;for(c=0;c<a.length;c++){var b=window[isoset==="isoname"?"isomass":isoset][a[c].idx];a[c].childNodes[0].childNodes[5].innerHTML=b!==""?b:"\xa0"}if(isoset==="isoname"){for(c=0;c<a.length;c++){a[c].style.backgroundColor=""}}else{color_isotope(window[isoset].concat(),window["spec_"+isoset])}}function yellowize_subset(b,a){document.getElementById("r_"+b).parentNode.style.backgroundColor=a}function color_other(b,d){var c=getminmax(b,d.scales[d.subset],false),a;for(a=1;a<=118;a++){if(!isNaN(b[a])){element_ids[a].style.backgroundColor=calc_color(b[a]==-Infinity?c[0]:b[a],d.startcolor,d.endcolor,c[0],c[1])}else{element_ids[a].style.backgroundColor="#"+d.defaultcolor}}}function color_isotope(b,d){var c=getminmax(b,d.scale,0),a;for(a=1;a<b.length;a++){if(!isNaN(b[a])&&c[0]!=c[1]&&b[a]){document.getElementById("isotopeholder").childNodes[a-1].style.backgroundColor=calc_color(b[a]==-Infinity?c[0]:b[a],d.startcolor,d.endcolor,c[0],c[1])}else{document.getElementById("isotopeholder").childNodes[a-1].style.backgroundColor="#"+d.defaultcolor}}}function getminmax(c,e,b){var d=[Number.MAX_VALUE,0],a;for(a in c){if(c[a]!==""){c[a]*=1}if(c[a]!==b){switch(e){case"log":c[a]=Math.log(c[a]);break;case"inv":c[a]=1/c[a];break}}if(c[a]<d[0]&&c[a]!=-Infinity&&!isNaN(c[a])&&c[a]!==""){d[0]=c[a]}if(c[a]>d[1]&&c[a]!=-Infinity&&!isNaN(c[a])&&c[a]!==""){d[1]=c[a]}}return d}function update_tempbox(){temperature=display.value*1;tempK.innerHTML=temperature;tempC.innerHTML=Math.round(temperature-273.15);tempF.innerHTML=Math.round(temperature*9/5-459.67);tempState.innerHTML=temperature+" K";if(active){property_ids.state.innerHTML=states[active]}}function click_checkbox(g){var f=(typeof event!=="undefined"&&event!==null&&event.type==="click")||(typeof g!=="undefined"&&g.type==="click"),b,h,e,d,a,c;g=this||srcElement||g;if(g.id==="wide"){if(iMove!==0&&iMove!==15){return false}if(tab==="IsotopeTab"){document.getElementById("isotopeholder").innerHTML=""}insert_rareearths(g.checked,f);if(tab!=="SeriesTab"){if(g.checked){tab_to_span("SeriesTab")}else{tab_to_anchor("SeriesTab")}}}else{b={Electrons:0,Name:1,Weight:2},h=["Electrons","Name","Weight"];for(c=b[g.id];Math.abs(c-1)<2;c+=(g.checked-0.5)*2){document.styleSheets[c+1].disabled=document.getElementById(h[c]).checked=g.checked}if(document.getBoxObjectFor){wholetable.style.overflow=(wholetable.style.overflow?"":"auto")}display.parentNode.parentNode.parentNode.style.height=element_ids[32].offsetHeight-6+"px";if(tab!=="OrbitalTab"){init_slider(true,"bottom")}}if(tab==="PropertyTab"){fix_properties()}else{firstDetails=true}d=["Weight","Name","Electrons","wide"];for(a in d){document.getElementById(d[a]).parentNode.className=(document.getElementById(d[a]).checked)?"Selected":""}if(f){cookie_checkbox(true,g.id)}}function cookie_checkbox(d,e){var c=["Weight","Name","Electrons","wide"],a,b;if(d){if(e==="wide"){set_cookie(e,document.getElementById(e).checked)}else{for(a in c){set_cookie(c[a],document.getElementById(c[a]).checked)}}}else{b=get_cookies();for(a in c){if(b[c[a]]){document.getElementById(c[a]).checked=b[c[a]]=="true"?true:false}}}}function set_cookie(a,b){document.cookie=a+"="+b+"; expires="+(b!==""?(new Date((new Date()).getTime()+1000*60*60*24*30)).toGMTString():new Date(1997,10,1).toGMTString())+"; path=/"}function save_colors(b){for(var a=1;a<=118;a++){b[a]=getBGcolor(element_ids[a])}}function restore_colors(b){for(var a=1;a<=118;a++){element_ids[a].style.backgroundColor=(b.length?"#"+b[a]:"")}}function toggle_display(c,b){for(var a in c){document.getElementById(c[a]).style.display=b;if(c[a]==="IsotopeForm"){document.getElementById("Closeup").parentNode.style.verticalAlign=b!=="block"?"":"top"}}}function activeTab(b){b=b||event;var a=(b.srcElement||b.target).id;if(a==="ClickSelect"){a="SeriesTab"}if(!widecheck.checked||tab!=="SeriesTab"){tab_to_anchor(tab)}on_mouse_over();if(tab==="OrbitalTab"){move_helium(false)}document.getElementById("Navigation").style.display="";attach(tab=a);if(tab!=="SeriesTab"){active=active||1}property_ids.electronstring.innerHTML="";property_ids.electronstring.className="";set_cookie("tab",tab);switch(tab){case"SeriesTab":isotope_clean(false);locked=false;if(lastDetach){element_ids[lastDetach].className=element_ids[lastDetach].className.replace(" Locked","")}from=["Properties","Block","Hund","DecayModes","isotopeholder"];to=["Series"];switch_viz("series");break;case"PropertyTab":from=["Block","Hund","DecayModes","isotopeholder"];to=["Properties"];toggle_display(["IsotopeForm"],"");if(!widecheck.checked){from.push("Series")}if(typeof conductivity==="undefined"){load_details(datasets[tab])}else{switch_viz(dataset_changed(true,document.forms.visualize))}break;case"OrbitalTab":property_ids.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>";property_ids.electronstring.className="OxidationStates";from=["Properties","DecayModes","isotopeholder"];to=["Block","Hund"];toggle_display(["IsotopeForm"],"");if(!widecheck.checked){from.push("Series")}switch_viz("orbital");break;case"IsotopeTab":from=["Properties","Block","Hund"];to=["DecayModes"];if(!widecheck.checked){from.push("Series")}toggle_display(["isotopeholder"],"");if(document.getElementById("isotopeholder").childNodes.length){toggle_display(["Closeup","IsotopeForm"],"")}switch_viz("isotope");break}if(locked&&active&&tab!=="SeriesTab"&&tab!=="IsotopeTab"){element_ids[active].onclick()}else{if(active&&document.getElementById("IsotopeForm").style.display!=="block"){on_mouse_over(active)}}tab_to_span(a);return false}function tab_to_anchor(b){var a=document.getElementById(b);a.className="";a.onclick=activeTab}function tab_to_span(b){var a=document.getElementById(b);a.className="Active";a.onclick=function(){return false}}function findSymbol(a,b){return electronstring[{He:2,Ne:10,Ar:18,Kr:36,Xe:54,Rn:86}[b]]}function tab_electron(f){var d={s:0,p:1,d:2,f:3},c={s:0,p:0.75,d:1.5,f:2.25},i=[0,0],j=[],a=electronstring[f],b,k,h,g,e;while(a.match(/\[.*\]/)){a=a.replace(/\[(.*)\]/,findSymbol)}b=a.replace(/(\d+)(\d[spdf]|$)/g,"$1 $2").split(" ");orbital_ids.OrbitalString.innerHTML=a.replace(/(\d+)(\d[spdf]|$)/g,"<sup>$1</sup> $2");for(k=0;k<b.length-1;k++){j[b[k].substr(0,2)]=b[k].match(/[spdf](\d+)$/)[1];if(Number(b[k].charAt(0))+c[b[k].charAt(1)]>i[1]){i=[b[k].substr(0,2),Number(b[k].charAt(0))+c[b[k].charAt(1)],j[b[k].substr(0,2)]]}}for(k=0;k<aufbau.length;k++){for(h=0;h<aufbau[k].length;h++){e=aufbau[k][h].parentNode.cells.length-1;for(g=1;g<=e*2;g++){aufbau[k][h].parentNode.cells[g<=e?g:g-e].childNodes[g<=e?0:1].style.visibility=(g<=(aufbau[k][h].innerHTML.substr(0,2) in j?j[aufbau[k][h].innerHTML.substr(0,2)]:0)?"visible":"hidden")}}}hover_orbital(i[0].charAt(1),i[2]-1,i[0].charAt(0)-d[i[0].charAt(1)]-1);show_oxidation(f)}function show_oxidation(d){var b=(oxidation[d]||"").split(","),c=property_ids.electronstring.getElementsByTagName("span"),a=0,e=0;for(a=0;a<13;a++){if(a-4==parseInt(b[e],10)){c[a].style.visibility="visible";if(b[e].slice(-1)==="c"){c[a].className="Common"}else{c[a].className=""}e++}else{c[a].style.visibility="hidden";c[a].className=""}}}function hover_orbital(c,b,f){var d={s:0,p:1,d:2,f:3},e=orbital_ids.Hund.tBodies[0].rows[0].cells[d[c]].getElementsByTagName("table")[0].tBodies[0].rows,a;if(lastOrbital){lastOrbital.className=""}block_ids.Orbital.style.backgroundImage='url("Images/orbitals-'+c+(scheme==="night"?"-night":"")+'.png")';block_ids.Orbital.style.backgroundPosition="-"+(scheme==="night"?64:108)*b+"px -"+(scheme==="night"?64:108)*f+"px";a=e[e.length-f-1].cells;lastOrbital=a[b+1>=a.length?b-(a.length-2):b+1];orbital_ids.lmn.tBodies[0].rows[0].cells[2].innerHTML=d[c];orbital_ids.lmn.tBodies[0].rows[1].cells[2].innerHTML=(b+1>=a.length?b-(a.length-1):b)-d[c];orbital_ids.lmn.tBodies[0].rows[2].cells[2].innerHTML=f+d[c]+1;lastOrbital.className="HoverOrbital"}function attach(f){var g,e,d,b,a,c={s:0,p:1,d:2,f:3};switch(f){case"OrbitalTab":g=orbital_ids.Hund.tBodies[0].rows[0].cells;for(e=0;e<g.length;e++){b=g[e].getElementsByTagName("table")[0].getElementsByTagName("td");for(d=0;d<b.length;d++){b[d].l=b[d].parentNode.cells[0].innerHTML.charAt(1);b[d].n=b[d].parentNode.cells[0].innerHTML.charAt(0)-1-c[b[d].l];b[d].m=b[d].cellIndex-1;b[d].onmouseover=function(){hover_orbital(this.l,this.m,this.n)}}}for(e=1;e<=118;e++){attach_elementhover(e);element_ids[e].onclick=function(){detach(this.idx)}}break;case"IsotopeTab":for(e=1;e<=118;e++){attach_elementhover(e);element_ids[e].onclick=function(){load_isotope(this.idx);detach(this.idx)}}break;case"SeriesTab":for(e=1;e<=118;e++){attach_elementhover(e);element_ids[e].onclick=click_wiki}break;case"PropertyTab":for(e=1;e<=118;e++){attach_elementhover(e);element_ids[e].onclick=function(){detach(this.idx)}}break;case"Groups":a=wholetable.tHead.rows[0].cells;for(e=1;e<a.length;e++){a[e].firstChild.onclick=click_wiki;a[e].firstChild.onmouseover=a[e].firstChild.onmouseout=a[e].firstChild.onfocus=a[e].firstChild.onblur=hover_group}for(e=0;e<7;e++){wholetable.tBodies[0].rows[e].cells[0].firstChild.onclick=click_wiki;wholetable.tBodies[0].rows[e].cells[0].onmouseover=wholetable.tBodies[0].rows[e].cells[0].onmouseout=wholetable.tBodies[0].rows[e].cells[0].firstChild.onfocus=wholetable.tBodies[0].rows[e].cells[0].firstChild.onblur=hover_period}break}}function attach_elementhover(a){if(typeof element_ids[a].onmouseenter!=="undefined"){element_ids[a].onmouseenter=function(){on_mouse_over(this.idx)}}else{element_ids[a].onmouseover=function(c){for(var b=c.relatedTarget;b&&b!=element_ids[this.idx];b=b.parentNode){}if(!b){on_mouse_over(this.idx)}}}}function detach(b){if(lastDetach){element_ids[lastDetach].onclick=element_ids[b].onclick;element_ids[lastDetach].className=element_ids[lastDetach].className.replace(" Locked","")}if(locked&&document.getElementById("IsotopeForm").style.display!=="block"){on_mouse_over(b)}element_ids[b].className+=" Locked";if(document.getBoxObjectFor){wholetable.style.overflow=(wholetable.style.overflow?"":"auto")}locked=true;for(var a=1;a<=118;a++){if(typeof element_ids[a].onmouseenter!=="undefined"){element_ids[a].onmouseenter=null}else{element_ids[a].onmouseover=null}}element_ids[b].onclick=function(){this.className=this.className.replace(" Locked","");locked=false;document.getElementById("DecayModes").className=allmodes;document.getElementById("Navigation").style.display="";isotope_clean(tab==="IsotopeTab");lastIsotope=false;lastDetach=false;attach(tab);on_mouse_over(b)};lastDetach=b}function showDetails(c,a){var b,d=element_ids[c];detail.replaceChild(d.childNodes[0].cloneNode(true),detail.childNodes[0]);detail.replaceChild(d.childNodes[1].cloneNode(true),detail.childNodes[1]);if(wholetable.inverted){detail.childNodes[n_big].childNodes[n_symbol].style.color=""}detail.style.backgroundColor="#"+default_colors[c];if(tab!=="SeriesTab"){detail.childNodes[n_big].childNodes[n_mass].innerHTML=series[0][c]}if(matterstate.show==="block"&&!widecheck.checked){matterstate.style.display="none";matterstate.show="none"}document.getElementById("Closeup").style.display="block";if(a){property_ids.electronstring.innerHTML=quickstring[c];property_ids.chemical.innerHTML=chemical[spec_chemical.subset][c];property_ids.state.innerHTML=states[c];for(b in datasets.PropertyTab){update_detail(c,datasets.PropertyTab[b])}}}function update_detail(d,e){var a=window[e],b=window["spec_"+e],c=b.subset;property_ids[e].innerHTML=(typeof a[c][d]!=="undefined")?scinot(String(a[c][d]))+(b.units[c]||""):"Unknown"}function fix_properties(){var a=properties.getElementsByTagName("table");if(a[1].offsetWidth){a[0].style.position="absolute";a[0].style.left=a[1].offsetWidth+5+"px";firstDetails=false}}function hide_state(){for(var a=1;a<=118;a++){element_ids[a].childNodes[n_big].childNodes[n_symbol].style.color=statecolors[0]["Solid"]}}function state_classes(b,a){var e=temperature,d,c;for(c=1;c<=118;c++){d=b;if(!boil[0][c]&&(!melt[0][c]||e>melt[0][c])){if(states[c]!=="Unknown"){d=true;states[c]="Unknown"}}else{if(e>boil[0][c]){if(states[c]!=="Gas"){d=true;states[c]="Gas"}}else{if(e>melt[0][c]){if(states[c]!=="Liquid"){d=true;states[c]="Liquid"}}else{if(states[c]!=="Solid"){d=true;states[c]="Solid"}}}}if(d){if(a&&!wholetable.inverted){element_ids[c].childNodes[n_big].childNodes[n_symbol].style.color=element_ids[c].style.color="white";setTimeout(getRef5(c),500)}if(a||wholetable.inverted){element_ids[c].style.backgroundColor=statecolors[1][states[c]]}else{element_ids[c].childNodes[n_big].childNodes[n_symbol].style.color=statecolors[0][states[c]]}}}}function getRef5(a){return function(){if(!wholetable.inverted){element_ids[a].style.backgroundColor="";element_ids[a].childNodes[n_big].childNodes[n_symbol].style.color=statecolors[0][states[a]]}element_ids[a].style.color=""}}function calc_color(e,g,c,d,b){var f=(e-d)/(b-d),a;c=parseInt(c,16);g=parseInt(g,16);a=g+(((Math.round(((((c&16711680)>>16)-((g&16711680)>>16))*f)))<<16)+((Math.round(((((c&65280)>>8)-((g&65280)>>8))*f)))<<8)+((Math.round((((c&255)-(g&255))*f)))));return"#"+((a>=1048576)?"":(a>=65536)?"0":(a>=4096)?"00":(a>=256)?"000":(a>=16)?"0000":"00000")+a.toString(16)}function rainbow(k,c,d,e,i){var j=(k-e)/(i-e),a,f,h,l;j=j*(d-c)+c;a=122.713-954.984*j+5593.32*Math.pow(j,2)-16122.6*Math.pow(j,3)+27653.9*Math.pow(j,4)-23948.6*Math.pow(j,5)+7875.35*Math.pow(j,6);f=j>=0.063?31.9113-352.441*j+7044.09*Math.pow(j,2)-25069.8*Math.pow(j,3)+41208*Math.pow(j,4)-33020.6*Math.pow(j,5)+10192.9*Math.pow(j,6):27.7353+35.9604*j;h=134.474+549.479*j+671.189*Math.pow(j,2)-12805.8*Math.pow(j,3)+28800.6*Math.pow(j,4)-25151.2*Math.pow(j,5)+7835.32*Math.pow(j,6);l=Math.round(a<<16)+Math.round(f<<8)+Math.round(h);return"#"+((l>=1048576)?"":(l>=65536)?"0":(l>=4096)?"00":(l>=256)?"000":(l>=16)?"0000":"00000")+l.toString(16)}function color_temp(d,h,f){var g=temperature,c=h.startcolor,b=h.endcolor,a=d[0],e;for(e=1;e<=118;e++){if(d[e]<g){element_ids[e].style.backgroundColor=calc_color(d[e],c,schemebase,0,g)}else{if(d[e]>=g){element_ids[e].style.backgroundColor=calc_color(d[e],schemebase,b,g,a)}else{element_ids[e].style.backgroundColor="#"+h.defaultcolor}}}if(f){save_colors(current_colors)}}function time_machine(c){var b=display.value*1,a;for(a=1;a<=118;a++){if(c[a]<b||!c[a]){element_ids[a].style.backgroundColor=""}else{element_ids[a].style.backgroundColor="#"+schemebase}}}function search_focus(){on_mouse_out();save_colors(search_colors);search_active=true;if(this.value==this.def){this.value=""}search(this.value)}function search_leave(){this.value=this.def;search_active=false;if(tab!=="PropertyTab"||dataset==="chemical"){if(mode.selectedIndex!==0){restore_colors([]);save_colors(current_colors)}else{restore_colors(current_colors=[])}}else{restore_colors(current_colors=search_colors.concat())}on_mouse_over(active)}function search(a){var b=[],c;on_mouse_out();for(c=1;c<=118;c++){if(!a){continue}else{if(a==c||element_ids[c].childNodes[n_big].childNodes[n_symbol].innerHTML.toLowerCase()==a.toLowerCase()){b=[];b[c]=true;break}else{if(element_ids[c].childNodes[n_big].childNodes[n_name].innerHTML.toLowerCase().indexOf(a.toLowerCase())!=-1){b[c]=true}}}}for(c=1;c<=118;c++){search_highlight(c,b[c])}save_colors(current_colors);for(c in b){winlist.push(c)}if(winlist.length===1){on_mouse_over(winlist[0])}winlist=[]}function search_highlight(b,a){if(a){element_ids[b].style.backgroundColor=calc_color(3,search_colors[b],schemehigh,0,10)}else{element_ids[b].style.backgroundColor=calc_color(6,search_colors[b],schemebase,0,10)}}function on_mouse_out(){on_mouse_over();isotope_clean(tab==="IsotopeTab");toggle_display(["Closeup"],"none")}function series_to_temp(){if((to===false&&document.getElementById("Series").style.display!=="none")||(to!==false&&to[0]==="Series")){document.getElementById("Series").style.display="none";document.getElementById("Temperature").style.display="block"}toggle_display(["Closeup"],"none");matterstate.style.display="";matterstate.show="block"}function temp_to_series(){if(document.getElementById("Temperature").style.display==="block"){document.getElementById("Temperature").style.display="";document.getElementById("Series").style.display=""}}function leave_state(){wholetable.className=wholetable.className.replace(" InvertState","");wholetable.inverted=false;state_classes(true,false);if(mode.selectedIndex!==0){restore_colors([]);save_colors(current_colors)}else{restore_colors(current_colors=[])}temp_to_series()}function write_stateword(){for(var a=1;a<=118;a++){element_ids[a].childNodes[n_big].childNodes[n_mass].innerHTML=states[a]}}function colorize_and_mass(d){var a=window[dataset],b=window["spec_"+dataset],c;if(d){if(dataset==="state"){clearTimeout(slider_data.stateTimer);slider_data.stateTimer=setTimeout(write_stateword,30)}else{for(c=1;c<=118;c++){element_ids[c].childNodes[n_big].childNodes[n_mass].innerHTML=(a[b.subset][c]||"\xa0")}document.getElementById("Legend").childNodes[0].childNodes[n_mass].innerHTML=b.legends[b.subset]||""}}if(dataset==="boil"||dataset==="melt"){clearTimeout(slider_data.colorTimer);slider_data.colorTimer=setTimeout(getRef2(a[0],b,d),3)}else{if(dataset==="discover"){time_machine(a[0])}else{if(dataset==="chemical"){switch_series(b.subset)}else{if(dataset!=="series"&&dataset!=="state"&&dataset!=="isotope"&&dataset!=="orbital"){color_other(a[b.subset].concat(),b)}}}}}function switch_series(a){on_mouse_over();if(a==0){wholetable.className=wholetable.className.replace("Boron Carbon Pnictogen Chalcogen","Poor Metalloid Nonmetal")}else{if(a==1){wholetable.className=wholetable.className.replace("Poor Metalloid Nonmetal","Boron Carbon Pnictogen Chalcogen")}}save_colors(default_colors);on_mouse_over(active)}function getRef2(a,b,c){return function(){color_temp(a,b,c)}}function on_mouse_over(a){if(active){dark(active)}if(a){dim(a);showDetails(a,(typeof conductivity!=="undefined"&&tab==="PropertyTab"));if(tab==="OrbitalTab"){tab_electron(a)}active=a}}function hide_closeup(){if(tab==="SeriesTab"){on_mouse_over();active=false;toggle_display(["Closeup"],"none");matterstate.style.display="";matterstate.show="block"}}function isotope_clean(b){if(b){restore_colors(current_colors=[])}for(var a in isotope_intervals){clearInterval(isotope_intervals[a])}isotope_intervals=[];document.getElementById("isotopeholder").innerHTML="";toggle_display(["IsotopeForm"],"");document.getElementById("Navigation").style.display=""}function dim(b,a){if(winlist.length!==1){element_ids[b].style.backgroundColor=calc_color(1,(current_colors.length?current_colors:default_colors)[b],schemebase,0,2)}if(a!==true){group_period(element_ids[b],highlight);dim_series(chemical[0][b],block[b],true)}}function dark(b,a){element_ids[b].style.backgroundColor=!current_colors.length?"":"#"+current_colors[b];if(a!==true){group_period(element_ids[b],"");dim_series(chemical[0][b],block[b],false)}}function dim_series(b,d,c){var a=calc_color(3,"7F7F7F",schemebase,0,4);if(b&&b!==" "&&b!=="Undiscovered"){series_ids[b].style.backgroundColor=(c?a:"")}if(d&&d!==" "){block_ids[d].style.backgroundColor=(c?a:"")}}function set_opacity(a,b){a.style.opacity=b;a.style.filter=(b!=1)?"alpha(Opacity="+b*100+")":""}function set_stateclass(b,a){if(b.className.indexOf(a)===-1){b.className=b.className.replace(/Solid|Liquid|Gas|Unknown/,a)}}function move_helium(a){if(a){wholetable.tBodies[0].rows[0].insertBefore(element_ids[2],wholetable.tBodies[0].rows[0].cells[2]);wholetable.tBodies[0].rows[0].cells[3].style.display="none";document.getElementById("SliderCell").colSpan++;document.getElementById("SliderCell").id="OrbitalString";wholetable.className+=" s p d f"}else{wholetable.tBodies[0].rows[0].cells[3].style.display="";document.getElementById("OrbitalString").colSpan--;document.getElementById("OrbitalString").id="SliderCell";wholetable.tBodies[0].rows[0].insertBefore(wholetable.tBodies[0].rows[0].cells[2],wholetable.tBodies[0].rows[0].cells[wholetable.tBodies[0].rows[0].cells.length-1]);wholetable.className=wholetable.className.replace(" s p d f","")}save_colors(default_colors)}function insert_oxidation(b){var a,c;if(b){for(a=1;a<=118;a++){if(orbital[1][a]){c=document.createElement("sup");c.innerHTML=orbital[1][a];element_ids[a].childNodes[n_big].childNodes[2].appendChild(c)}}}else{for(a=1;a<=118;a++){if(orbital[1][a]){element_ids[a].childNodes[n_big].childNodes[2].removeChild(element_ids[a].childNodes[n_big].childNodes[2].getElementsByTagName("sup")[0])}}}}function move_keyblocks_to(a){a[0].appendChild(document.getElementById("Closeup"));a[0].appendChild(document.getElementById("IsotopeForm"));a[1].appendChild(properties);if(tab==="PropertyTab"){document.getElementById("t_"+dataset).checked=true}else{if(tab==="IsotopeTab"){document.getElementById("t_"+isoset).checked=true}}a[1].appendChild(document.getElementById("Hund"));a[1].appendChild(document.getElementById("Block"));a[1].appendChild(document.getElementById("DecayModes"))}function keyboard_nav(f){f=f||event;var a=document.getElementById("isotopeholder").childNodes,j,d,h,c,g,b;switch(f.keyCode){case 13:if((f.srcElement||f.target).nodeName.toUpperCase()!=="A"){if(a.length&&lastIsotope!==false&&a[lastIsotope].style.cursor==="pointer"){a[lastIsotope].onclick()}else{if(active&&lastIsotope===false){element_ids[active].onclick()}}}break;case 27:if(wikibox.style.display=="block"){destroy()}else{if(a.length){element_ids[active].onclick()}}break}if(f.keyCode>=35&&f.keyCode<=40){if(a.length){lastIsotope=0||lastIsotope;switch(f.keyCode){case 35:case 36:j=f.keyCode==35?a.length-1:0;break;case 37:case 38:case 39:case 40:j=Math.max(0,Math.min(a.length-1,lastIsotope+(f.keyCode>=39?+1:-1)));break}a[j].onmouseover()}else{on_mouse_over(active||1);switch(f.keyCode){case 35:j=118;break;case 36:j=1;break;case 37:case 39:j=Math.max(1,Math.min(118,active-38+f.keyCode));break;case 38:case 40:d=0,h=active,c=element_ids[active].parentNode.rowIndex;if(f.keyCode==40){if(widecheck.checked){if(c==7){return}}else{if(c==11||h==39||h==87||h==88){return}if((h>39&&h<57)||(h>71&&h<89)){h+=15}else{if(c==10){h+=17}else{if(h>=104){h-=47}}}}}else{if(h<=2||(h>=4&&h<=9)||(h>=21&&h<=30)){return}if(widecheck.checked){if(h>=57&&h<=70){return}}else{if((h>71&&h<=86)||c==7){h-=15}else{if(c==11){h-=17}else{if(h>57&&h<=71){h+=62}else{if(h==57){h+=47}}}}}}g=wholetable.tBodies[0].rows[c-(20-f.keyCode/2+(element_ids[active].cellIndex<3?1:0))];for(b=0;b<g.cells.length;b++){if(g.cells[b].className.indexOf("Element")!=-1){d+=f.keyCode-39}}j=h+d;break}on_mouse_over(j)}}}function group_period(b,a){var d=b.parentNode.rowIndex-1,c;wholetable.tBodies[0].rows[d>7?d-4:d].cells[0].style.backgroundColor=a;if(d>7){return}if(b.cellIndex<3){c=b.cellIndex}else{c=20-wholetable.tBodies[0].rows[d].cells.length+b.cellIndex+widecheck.checked+(wholetable.tBodies[0].rows[d].cells[3].cellIndex!==3);if(widecheck.checked&&c<=3){return}}wholetable.tHead.rows[0].cells[c].style.backgroundColor=a}function hover_group(g){g=g||event;var d=this.parentNode.cellIndex,c=0,a=7,f,h,b;if(d>1+(tab==="OrbitalTab")&&d<18+(tab==="OrbitalTab")+widecheck.checked){c++}if(d>2&&d<13+widecheck.checked){c+=2}if(!widecheck.checked&&d==3){a-=2}for(h=c;h<a;h++){if(d<=3){b=d}else{b=wholetable.tBodies[0].rows[h].cells.length-20+d-widecheck.checked;if(widecheck.checked&&b<3){break}}f=wholetable.tBodies[0].rows[h].cells[b].idx;if(g.type=="mouseover"||g.type=="focus"){dim(f,true)}else{if((g.type=="mouseout"||g.type=="blur")&&active!==f){dark(f,true)}}}}function hover_period(c){c=c||event;var b,d=(this.nodeName.toUpperCase()==="A"?this.parentNode.parentNode.rowIndex:this.parentNode.rowIndex),f=wholetable.rows[d].cells[1].idx,a=(tab==="OrbitalTab"&&f===1?2:wholetable.rows[d].cells[wholetable.rows[d].cells.length-2].idx);for(b=f;b<=a;b++){if(c.type=="mouseover"||c.type=="focus"){dim(b,true)}else{if((c.type=="mouseout"||c.type=="blur")&&active!==b){dark(b,true)}}}}function getAjaxObj(){var b,a=false;try{b=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){try{b=new XMLHttpRequest()}catch(c){b=false}}if(!b){return null}this.connect=function(f,d,h){if(!b){return false}a=false;try{b.open("GET",f+d,true);b.onreadystatechange=function(){if(b.readyState==4&&!a){a=true;h(b,d)}};b.send("")}catch(g){return false}return true};return this}function load_details(c){if(!waiting){waiting=true;throb_value=0;throbber=setInterval(throb_properties,50);var a=new getAjaxObj(),b=[],d;for(d in c){if(window[c[d]]){continue}if("values" in window["spec_"+c[d]]){b.push(c[d]+"-"+window["spec_"+c[d]]["values"].join(":").replace(/\s/g,"_").toLowerCase())}else{b.push(c[d])}}a.connect("data.php?set=",b.join(","),parse_into_arrays)}}function parse_into_arrays(oXML){var returned_data=oXML.responseText.split("\n"),sets,temp,arrays,element;for(sets in returned_data){temp=[];arrays=returned_data[sets].split("=")[1].split(":");for(element in arrays){temp.push(eval("["+arrays[element]+"]"))}window[returned_data[sets].split("=")[0]]=temp}waiting=false;end_attention_properties();switch_viz(dataset_changed(true,document.forms.visualize));if(tab==="PropertyTab"&&active){on_mouse_over(active)}_gaq.push(["_trackEvent","Ptable","Get","Properties"])}function load_isotope(b){init_throb(b);if(isotopecache[b]){click_isotope(isotopecache[b],b,true)}else{var a=new getAjaxObj();a.connect("isotope.php?set=",b,click_isotope)}}function click_isotope(f,e,b){isotope_clean(true);save_colors(search_colors);search(String(e));isotopecache[e]=f;document.getElementById("Closeup").style.display="none";toggle_display(["IsotopeForm"],"block");var c,d=0,a=isotopecache[e].responseText.split("\n");selected=[],halflife=[],binding=[],masscontrib=[],isomass=[],neutrons=[],width=[],wiki=[];isotopeDetails(false,true);document.getElementById("Navigation").style.display="none";for(c in a){if(a[c].split(",")[i_selected]*1<=spec_isotope.subset*1){draw_isotope(e,++d,a[c].split(","),b)}}document.getElementById("ISONAME").childNodes[0].innerHTML=element_ids[e].childNodes[n_big].childNodes[n_name].innerHTML;document.getElementById("ISONAME").childNodes[1].innerHTML="";finish_throb(e,throbber);document.forms.isotopes.onclick();if(!b){fade_isotopes(0)}}function fade_isotopes(c){var a,b=document.getElementById("isotopeholder").childNodes;for(a=0;a<=3;a++){if(c-a>=0&&b[c-a]){fade_opacity(b[c-a],Math.pow(2,a-3))}}if(c-1<=b.length){setTimeout(getRef(++c),30)}}function getRef(a){return function(){fade_isotopes(a)}}function draw_isotope(g,f,h,d){var e,b,a,c;for(e in datasets.IsotopeTab){window[datasets.IsotopeTab[e]][f]=h[window["i_"+datasets.IsotopeTab[e]]]}c=document.createElement("div");c.idx=f;c.onmouseover=function(){var i=document.getElementById("isotopeholder").childNodes;if(lastIsotope<this.ordinal){for(b=lastIsotope;b<this.ordinal;b++){i[b].style.zIndex=i[b].ordinal+1}}else{if(this.ordinal<lastIsotope){for(b=this.ordinal;b<lastIsotope;b++){i[b].style.zIndex=100-i[b].ordinal}}}lastIsotope=this.ordinal;isotopeDetails(f,false);document.getElementById("DecayModes").className=this.decayMode};c.decayMode=h[i_decaymode]?h[i_decaymode]:"Stable";c.className=element_ids[g].className+" "+c.decayMode;c.appendChild(element_ids[g].childNodes[n_big].cloneNode(true));c.childNodes[0].childNodes[n_symbol].innerHTML="<sup>"+h[i_neutrons]+"</sup>"+element_ids[g].childNodes[n_big].childNodes[n_symbol].innerHTML;c.childNodes[0].childNodes[4].innerHTML+="-"+h[i_neutrons];c.childNodes[0].removeChild(c.childNodes[0].childNodes[n_atomic]);if(h[i_wiki]==1){c.style.cursor="pointer";c.onclick=click_wiki}c.ordinal=lastIsotope=f-1;document.getElementById("isotopeholder").appendChild(c);a=findPos(element_ids[g],[-findPos(c,[0,0])[0],-findPos(c,[0,0])[1]]);c.style.left=-a[0]+20*f+"px";c.style.top=-a[1]+20*f+"px";c.style.zIndex=f+1;if(!d){fade_opacity(c,0)}}function isotopeDetails(b,a){if(!a){document.getElementById("ISONAME").childNodes[1].innerHTML="-"+neutrons[b];document.getElementById("ISOMASS").innerHTML=isomass[b]!==""?isomass[b]:"Unknown";document.getElementById("BINDING").innerHTML=binding[b]!==""?binding[b]+spec_binding.units[0]:"Unknown";document.getElementById("MASSCONTRIB").innerHTML=masscontrib[b]!==""?masscontrib[b]+"%":"Unknown";document.getElementById("HALFLIFE").innerHTML=timeunits(halflife[b]);document.getElementById("WIDTH").innerHTML=width[b]!==""?scinot(width[b])+spec_width.units[0]:"Unknown"}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=""}}function no_sideways(){var a=document.getElementById("Series");a.className+=" WMfix";if(language==="zh"||language==="ja"||language==="ko"){return}a=a.tBodies[0];a.insertRow(0).insertCell(-1).rowSpan=2;a.rows[0].appendChild(a.rows[1].cells[1]).rowSpan=2;a.rows[0].appendChild(a.rows[1].cells[1]);a.insertRow(1).appendChild(a.rows[3].cells[5]).rowSpan=1;a.rows[1].appendChild(a.rows[3].cells[5]).rowSpan=1;a.rows[1].appendChild(a.rows[3].cells[5]).rowSpan=1}function load_script(a){var b=document.createElement("script");b.src=a;b.setAttribute("async","true");b.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(b)}function dim_diagonal(c,b){for(var a in c){element_ids[c[a]].style.backgroundColor=(b!==0?calc_color(b,default_colors[c[a]],schemebase,0,3):"")}}window.onunload=function(){set_cookie("temperature",temperature)};function lazy_load(){var a=get_cookies();if(a.hideads!=1&&document.referrer.indexOf("stumbleupon")===-1){if(show_microsoft_ads){load_ads()}}else{document.getElementById("Ad").style.display="none"}load_script("http://edge.quantserve.com/quant.js");load_script("http://www.google-analytics.com/ga.js")}if(isIE||DCLalreadyfired){load_complete();window.onload=lazy_load}else{if(document.addEventListener){document.addEventListener("DOMContentLoaded",load_complete,false);window.onload=lazy_load}else{window.onload=function(){load_complete();lazy_load()}}}function load_ads(){var a="";function b(){var k=window;k.microsoft_adunitid=k.microsoft_adunit_height=k.microsoft_adunit_width=k.microsoft_lmt=k.microsoft_timezoneid=k.microsoft_offset=k.microsoft_adunit_titlefontcolor=k.microsoft_adunit_bodyfontcolor=k.microsoft_adunit_urlfontcolor=k.microsoft_adunit_bkcolor=k.microsoft_adunit_bordercolor=k.microsoft_adunit_keywordhints=k.microsoft_adunit_keywordscores=k.microsoft_adunit_categoryhints=k.microsoft_adunit_categoryscores=k.microsoft_adunit_channelids=k.microsoft_adunitformat=k.microsoft_adunit_legacy=k.microsoft_extrainfo=k.microsoft_adunit_referral=k.microsoft_adunitrotatorid=null}function j(){h();return true}function i(k){k=k.substring(0,2000);k=k.replace(/  %  \ w ? $ /,"");return k!=null?'"'+k+'"':'""'}function e(m,k,l){if(k&&k!="undefined"){if(l){k=k.replace("#","")}return"&"+m+"="+escape(k)}return""}function d(k){var n="";n+=k.microsoft_feb;if(k.microsoft_adunitrotatorid){n+="?p_abtest="+escape(k.microsoft_adunitrotatorid)}else{n+="?adunitid="+escape(k.microsoft_adunitid)}n+=e("v",k.microsoft_ver);var m="";if(k.microsoft_adunits!=null){for(var l=0;l<k.microsoft_adunits.length;l++){m+=k.microsoft_adunits[l]+"|"}}var o="";if(k.microsoft_adunitrotators!=null){for(var l=0;l<k.microsoft_adunitrotators.length;l++){o+=k.microsoft_adunitrotators[l]+"|"}}n+=e("prevadunits",m);n+=e("patr",o);n+=e("kw",k.microsoft_adunit_keywordhints);n+=e("kwsc",k.microsoft_adunit_keywordscores);n+=e("cat",k.microsoft_adunit_categoryhints);n+=e("catsc",k.microsoft_adunit_categoryscores);n+=e("channelid",k.microsoft_adunit_channelids);n+=e("e",k.microsoft_extrainfo);n+=e("w",k.microsoft_adunit_width);n+=e("h",k.microsoft_adunit_height);n+=e("titlecolor",k.microsoft_adunit_titlefontcolor,true);n+=e("bodycolor",k.microsoft_adunit_bodyfontcolor,true);n+=e("urlcolor",k.microsoft_adunit_urlfontcolor,true);n+=e("bkcolor",k.microsoft_adunit_bkcolor,true);n+=e("bordercolor",k.microsoft_adunit_bordercolor,true);n+=e("url",k.microsoft_adunit_referral?k.microsoft_adunit_referral:document.location);n+=e("ref",document.referrer);n+=e("lmt",k.microsoft_lmt);n+=e("tz",k.microsoft_offset);n+=e("cc",k.microsoft_cc);n+=e("dt",k.microsoft_dt);if(k.screen){n+=e("uh",k.screen.height);n+=e("uw",k.screen.width);n+=e("uah",k.screen.availHeight);n+=e("uaw",k.screen.availWidth);n+=e("cd",k.screen.colorDepth)}if(navigator.plugins){n+=e("npl",navigator.plugins.length)}if(navigator.mimeTypes){n+=e("nmime",navigator.mimeTypes.length)}n+=e("ja",navigator.javaEnabled());if(navigator.appName){n+=e("app",navigator.appName)}n+=e("his",history.length);if(navigator.platform){n+=e("plf",navigator.platform)}return n}function c(){try{var k=window,o=new Date;k.microsoft_offset=o.getTimezoneOffset();k.microsoft_lmt=Date.parse(document.lastModified)/1000;k.microsoft_dt=o.getTime();var n,m;if(document.body&&document.body.scrollHeight&&document.body.clientHeight){n=100*document.body.scrollHeight;m=document.body.clientHeight}if(n&&m){k.microsoft_cc=Math.round(n/m)}}catch(l){}}function f(){var k=window;k.microsoftErrorHandler=k.onerror;k.onerror=j;var l=document.location.protocol+"//";l=l=="https://"?l:"http://";var m="http://ac3.msn.com/de.ashx";k.microsoft_ver="pubm12";if(m.indexOf("http://")!=-1){m=m.replace("http://","")}k.microsoft_feb=l+m;c()}function g(){var k=window,l=d(k);a+="<iframe SRC="+i(l)+' width="'+k.microsoft_adunit_width+'" height="'+k.microsoft_adunit_height+'" allowTransparency="true" marginwidth="0"  marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>'}function h(){var k=window;if(k.microsoft_adunitid!=null){if(k.microsoft_adunits==null){k.microsoft_adunits=[];k.microsoft_adunits[0]=k.microsoft_adunitid}else{k.microsoft_adunits[k.microsoft_adunits.length]=k.microsoft_adunitid}}if(k.microsoft_adunitrotatorid!=null){if(k.microsoft_adunitrotators==null){k.microsoft_adunitrotators=[];k.microsoft_adunitrotators[0]=k.microsoft_adunitrotatorid}else{k.microsoft_adunitrotators[k.microsoft_adunitrotators.length]=k.microsoft_adunitrotatorid}}k.onerror=k.microsoftErrorHandler;b()}microsoft_adunitid="3834",microsoft_adunit_width="468",microsoft_adunit_height="60",microsoft_adunit_legacy="false";f();g();h();microsoft_adunitid="3851",microsoft_adunit_width="468",microsoft_adunit_height="60",microsoft_adunit_legacy="false";f();g();h();document.getElementById("Ad").innerHTML+=a};