//calls kaboose micro tracking function kabRiaMicrotrack(app, prop, value) { if(typeof(s) == "undefined") return; //console.log(app + "; " + prop + "; " + value); s.sa("kabooserias"); s.linkTrackVars="prop1,prop2,prop3"; s.prop1 = app; s.prop2 = prop; s.prop3 = value; s.tl(this,'o','microtrack-ria-stats'); } //used to force reload ads function reloadIFrames() { var alliFrames = new Array(); alliFrames=document.getElementsByTagName("iframe"); for (i=0; i

TRACKING DEBUG WINDOW
"); window.ouputWindow.document.write(""); } //called on flash page navigation function pageTrackEvent(sectionId, pageNum){ var sectionName = getSectionName(sectionId); if(sectionName != null) sendTrackEvent("page change", "section:" +sectionName +", page : "+ ((pageNum*1)+1)); } //called when a sound is played from the flash function soundTrackEvent(soundFileName){ var soundName = getSoundName(soundFileName); if(soundName != null) sendTrackEvent("sound played" , soundName); } //called when a html link is clicked from the flash function linkTrackEvent(linkName){ sendTrackEvent("link",linkName); } //sends the final track even, outputs to debug if available function sendTrackEvent(propName, value){ outputEvent("eventName = "+propName+" , value = "+value); kabRiaMicrotrack("Cough Decoder", propName, value); if(propName == "page change") reloadIFrames(); } //output to tracking window if available function outputEvent(eventString){ if(window.ouputWindow != null) { window.ouputWindow.document.body.innerHTML += ""+eventString+"
"; if (navigator.appName.indexOf("Microsoft") == -1) window.ouputWindow.scrollTo(0,window.ouputWindow.outerHeight); } }