var axSpotlight; var aSpotlight; var bSpotlightHighlight = false; var iCurrIdx = ""; var iRdmMax = 10; var bNewsAvailable = false; function setSpotlight_listing(){ var sOut = ''; var sResult = ''; for(var i=0;i'+aSpotlight[i].title+''; sResult += ''; if (i == 0) iCurrIdx = aSpotlight[i].id; } sOut += ''; if (bNewsAvailable) { sOut += ''; sOut += ''; sOut += ''; } sOut += ''; sOut += '
SpotlightWhat\'s new
  
'; sOut += ''; sOut += sResult; sOut += ''; sOut += '
  
'; sOut += '
'; if (document.location.search != "") { iCurrIdx = document.location.search.substring(4,document.location.search.length); } document.getElementById('listing').innerHTML = sOut; setSpotlight_detail(); } function item_click(id){ if (id != iCurrIdx) { document.getElementById(iCurrIdx).className='deeplink'; iCurrIdx=id; setSpotlight_detail(); } } function item_over(id){ var obj = document.getElementById(id); if (id != iCurrIdx) { obj.className='deeplink_selected'; obj.style.cursor='pointer'; } } function item_out(id){ var obj = document.getElementById(id); if (id != iCurrIdx) { obj.className='deeplink'; obj.style.cursor='pointer'; } } function setSpotlight_detail(){ var sOut = ''; var sResult = ''; var oItem = new Object(); for(var i=0;i '+oItem.title+'

'+oItem.desc+''; sOut += ' '; document.getElementById('detail').innerHTML = sOut; track('spotlight>'+replace(oItem.title,' ','_')); } } function getSpotlight_highlight(iMaxValue){ iMaxValue -= 1; if (iMaxValue > aSpotlight.length) iMaxValue=aSpotlight.length-1; else if (iMaxValue < 0) iMaxValue=0; var iSelectedIdx = Math.round(Math.random()*iMaxValue); var sOut = ""; sOut = ''; sOut += ''; sOut += ''; sOut += '
  
'+aSpotlight[iSelectedIdx].title+'
'+aSpotlight[iSelectedIdx].highlight+'

'; sOut += 'Read more
'; document.getElementById("spotlight").innerHTML = sOut; var spotlight_container = document.getElementById("spotlight_container"); spotlight_container.style.MozOpacity = 0; spotlight_container.style.filter = "alpha(opacity=0)"; spotlight_container.style.display = ''; opacity("spotlight_container", 0, 100, 200); setTimeout("getSpotlight_highlight('"+iRdmMax+"')",6000); } function chkNews() { if (window.XMLHttpRequest) { axSpotlight = new XMLHttpRequest(); } else if (window.ActiveXObject) { axSpotlight = new ActiveXObject("Microsoft.XMLHTTP"); } var url = "xml/news.xml"; axSpotlight.open("GET", url, true); axSpotlight.onreadystatechange = parseChkNews; axSpotlight.send(null); } function parseChkNews(){ if (axSpotlight.readyState == 4) { if (axSpotlight.status == 200) { var xmldoc = axSpotlight.responseXML; var root = xmldoc.getElementsByTagName("list")[0]; aSpotlight = new Array(); if (root.childNodes.length > 0) bNewsAvailable = true; getSpotlight(false); } } } function getSpotlight(bHighlight) { bSpotlightHighlight = bHighlight; if (window.XMLHttpRequest) { axSpotlight = new XMLHttpRequest(); } else if (window.ActiveXObject) { axSpotlight = new ActiveXObject("Microsoft.XMLHTTP"); } var url = "xml/spotlight.xml"; axSpotlight.open("GET", url, true); axSpotlight.onreadystatechange = parseSpotlight; axSpotlight.send(null); } function parseSpotlight() { if (axSpotlight.readyState == 4) { if (axSpotlight.status == 200) { var xmldoc = axSpotlight.responseXML; var root = xmldoc.getElementsByTagName("list")[0]; aSpotlight = new Array(); for (var i=0; i