function wmvMedia(url,videoName) { this.videoName = videoName; this.url = url; //video url this.start = false; this.end = false; if(typeof wmvMedia._initialized == "undefined") { wmvMedia.prototype.getVideoHtml = function() { var str = ""; if (document.body.attachEvent) { // create the WMP for IE str = ''; } else { // create it for FF. str = ''; } str += ''; str += ''; str += ''; str += ''; str += ''; return str; }; wmvMedia.prototype.addEvent = function () { var str = ""; str += ""; str += ''; str += 'wmpPlayStateChange(newState);'; str += ''; return str; }; } wmvMedia._initialized = true; } function wmpPlayStateChange(newState) { // 3 - playing media // 6 - buffering // 8 - ended playing media if(newState == 8 && typeof oOmniture == "object") { var s=s_gi('acpmagwheelsprod,acpmagglobalprod'); s.linkTrackVars='events,eVar10'; s.linkTrackEvents='event10'; s.events = "event10"; s.eVar10 = oOmniture.eVar10; void(s.t()); } } //http://www.mioplanet.com/rsc/embed_mediaplayer.htm