var axStories; var aStories; var bStoriesHighlight = false; var iCurrIdx = ""; var iRdmStoriesMax = 1; function setStories_listing(){ var sOut = ''; var sResult = ''; for(var i=0;i'+aStories[i].name+''; sResult += ''; if (i == 0) iCurrIdx = aStories[i].id; } sOut = ''; sOut += ''; sOut += sResult; //sOut += ''; sOut += '
  
Look out for more videos. Coming soon.
'; document.getElementById('listing').innerHTML = sOut; if (document.location.search != "") { iCurrIdx = document.location.search.substring(4,document.location.search.length); } //Add detail setStories_detail(); } function item_click(id){ if (id != iCurrIdx) { document.getElementById(iCurrIdx).className='deeplink'; iCurrIdx=id; setStories_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 setStories_detail(){ var sOut = ''; var sResult = ''; var oItem = new Object(); for(var i=0;i'; sOut += ''; sOut += ''; sOut += ' '; sOut += ''+oItem.name+''; sOut += '' + oItem.desc+''; sOut += ' '; document.getElementById('detail').innerHTML = sOut; track('what_people_say>'+replace(oItem.name,' ','_')); } } function videoplayed(){ var oItem; for(var i=0;i'+replace(oItem.name,' ','_')+'>video_play'); } } function getStories_highlight(iMaxValue){ iMaxValue -= 1; if (iMaxValue > aStories.length) iMaxValue=aStories.length-1; var iSelectedIdx = Math.round(Math.random()*iMaxValue); var sOut = ""; sOut = ''; sOut += ''; sOut += ''; sOut += ''; sOut += '
 
'; sOut += ''; sOut += ''; sOut += ''; sOut += ''; sOut += ''; sOut += ''; sOut += '
 
'+aStories[iSelectedIdx].name+''; sOut += '
'+aStories[iSelectedIdx].highlight+''; sOut += '

View more videos
'; document.getElementById("stories").innerHTML = sOut; } function getStories(bHighlight) { bStoriesHighlight = bHighlight; if (window.XMLHttpRequest) { axStories = new XMLHttpRequest(); } else if (window.ActiveXObject) { axStories = new ActiveXObject("Microsoft.XMLHTTP"); } var url = "xml/stories.xml"; axStories.open("GET", url, true); axStories.onreadystatechange = parseStories; axStories.send(null); } function parseStories() { if (axStories.readyState == 4) { if (axStories.status == 200) { var xmldoc = axStories.responseXML; var root = xmldoc.getElementsByTagName("list")[0]; aStories = new Array(); for (var i=0; i