rockstar
Proud Member
this happen today where i live in waterloo that is scarying
Four-alarm fire brought under control at hydro station
var photoVal = null;function getSzone(){return "VideoTorontoVideo";}function simpleAd(){if(!ord){var abc=Math.random()+"";var ord=abc.substring(2,abc.length);}szone=getSzone();sadpg=szone;isbroadband=true;placeRandom("728x90");}function setAdsCookie(){var tmpDate1=new Date();var titleOfVideo;var pathOfVideo;var tmpDate2=new Date();var tmpSeconds = tmpDate1.getSeconds() + (2*60);tmpDate2.setSeconds(tmpSeconds);var cookieE = document.cookie.indexOf(escape("playVideo") + '=');if (cookieE == -1){}}var storyInfo = "&hub=TorontoNewHome&subhub=video&no_ads=&sortdate=20110318&slug=hydro-station-fire-110318&archive=CTVNews";var currentVolume = getCookie("EmbedBroadVol");if (currentVolume == null){currentVolume = 23;}var countFalseAd;var sourcePlayer = "story";var playAd;var waitForCompleteAd;var maxPosT = 0;var maxPosM = 0;var maxPos = 0;var currentPos = 1;var previousTime = 0; var totalTime;var cT = "T";var x = -1;var countForHBX = 0;var stateI="pause";function switchMostTabs(item){var topStories = document.getElementById("BroadTopStories");var mostPopular = document.getElementById("BroadMostPopular");if (item == 1){maxPos = maxPosT;cT = "T";document.getElementById("AllTopStoriesVideo").style.display = "block";document.getElementById("AllMostPopularVideo").style.display = "none";topStories.getElementsByTagName("a")[0].style.color = "white";mostPopular.getElementsByTagName("a")[0].style.color = "#515151";topStories.style.backgroundImage = "url(http://www.ctv.ca/mar/images/local990/broadBandMostPopularOn.jpg)";mostPopular.style.backgroundImage= "url(http://www.ctv.ca/mar/images/local990/broadBandMostPopularOff.jpg)";}else{maxPos = maxPosM + 1;cT = "M";document.getElementById("AllTopStoriesVideo").style.display = "none";document.getElementById("AllMostPopularVideo").style.display = "block";topStories.getElementsByTagName("a")[0].style.color = "#515151";mostPopular.getElementsByTagName("a")[0].style.color = "white";topStories.style.backgroundImage = "url(http://www.ctv.ca/mar/images/local990/broadBandMostPopularOff.jpg)";mostPopular.style.backgroundImage= "url(http://www.ctv.ca/mar/images/local990/broadBandMostPopularOn.jpg)";}}function moveSlider(event){previousTime = 0;var movePosition = (event.clientX - findPos(document.getElementById("slider"))[0]);if (document.getElementById("VIDEO") != null && document.getElementById("VIDEO").controls != null && playAd == "false"){document.getElementById("VIDEO").controls.currentPosition = (movePosition/168) * totalTime;document.getElementById("slider").style.paddingLeft = movePosition + "px";}}var canMoveVol;function startVolMove(val){canMoveVol = val;}function moveSliderVolC(event){canMoveVol = 1;moveSliderVol(event);canMoveVol = 0;}function moveSliderVol(event){if (canMoveVol == 1){var movePosition = (event.clientX - findPos(document.getElementById("volslider"))[0]);if (movePosition = 23){movePosition = 23;}if (document.getElementById("VIDEO") != null && document.getElementById("VIDEO").controls != null){document.getElementById("VIDEO").settings.volume = movePosition * 4;}document.getElementById("volslider").style.paddingLeft = movePosition + "px";currentVolume = movePosition ;}}function findPos(obj) { var curleft = curtop = 0; if (obj.offsetParent) { curleft = obj.offsetLeft curtop = obj.offsetTop while (obj = obj.offsetParent) { curleft += obj.offsetLeft curtop += obj.offsetTop } } return [curleft,curtop];}function showInfo(ID){ var videoElement = document.getElementById("blurbVideo" + ID + cT); if (videoElement.style.display == "none") { videoElement.style.display = "block"; document.getElementById("infoRowImage" + ID + cT).setAttribute("src", "http://www.ctv.ca/mar/images/local990/broadbandminus.png"); } else { videoElement.style.display = "none";document.getElementById("infoRowImage" + ID + cT).setAttribute("src", "http://www.ctv.ca/mar/images/local990/broadbandplus.png"); }}function clearVideoSelection(currentPosition, type){for (i = 1; i < maxPos; i++){var element = document.getElementById("videoSelection" + i + type);if (element != null && i != currentPosition){element.style.backgroundColor = "#FFFFFF";}else if(element != null){element.style.backgroundColor = "#FFFFFF";}}}function switchHubVideo(URLString, URLStringLow, clip_start, clip_end, clip_id, currentPosition, titleT){titleOfVideo = URLString;//changeVideo(URLString, URLStringLow, clip_start, clip_end, clip_id, currentPosition);var newVideo = new Video( { ClipId:clip_id, Format:'FLV', Permalink:'http://watch.ctv.ca/news/Redirect/?ClipId=' + clip_id, Title:titleT});Playlist.GetInstance().Play(newVideo);var element = document.getElementById("videoSelection1T");element.style.backgroundColor = "#dcdcdc";location.hash="#TopVideoAn";}function returnTimeVideo(timeString){return parseInt(timeString.substring(0, 2)*3600) + parseInt(timeString.substring(3, 5)*60) + parseInt(timeString.substring(6,8))}function changeVideo(URLString, URLStringLow, clip_start, clip_end, clip_id, currentPosition){/*if (cT == "T"){clearVideoSelection(-1, "M");clearVideoSelection(currentPosition, "T");}else{clearVideoSelection(currentPosition, "M");clearVideoSelection(-1, "T");}*///totalTime = parseInt(clip_end.substring(0, 2))*3600 + parseInt(clip_end.substring(3,5))* 60 + parseInt(clip_end.substring(6,8))//clip_end = "-1";currentPos = currentPosition;//switchVideo("http://www.ctv.ca/servlet/HTMLTemplate/nocompress?content_type=video/x-ms-asf&brand=generic&tf=/ctv/generic/video/videoplayer.asx&cf=/ctv/generic/video/player.cfg&url=" + URLString + "&start=" + clip_start + "&end=" + clip_end + "&spd=hi&hub=TorontoNewHome");Playlist.GetInstance().Play(VideoPlaying[currentPosition])}function controlVideo(action){previousTime = 0;if (action == 1){document.getElementById("VIDEO").controls.stop();}else if (action == 2){document.getElementById("VIDEO").controls.play();}else if (action == 3){if (x == -1){startVideo();}else{if (stateI == "pause"){document.getElementById("pausePlay").setAttribute('src', 'http://www.ctv.ca/mar/images/local990/broadbandpause.jpg');document.getElementById("VIDEO").controls.play();stateI = "play";}else{stateI = "pause";document.getElementById("pausePlay").setAttribute('src', 'http://www.ctv.ca/mar/images/local990/broadbandplay.gif');document.getElementById("VIDEO").controls.pause();}}}else if (action == 4){currentPos++;if (currentPos == maxPos ){currentPos = 1;}functionName = document.getElementById("videoSelection" + currentPos + cT).getElementsByTagName('a')[0].getAttribute('href');parseCurrentVideo(functionName);//alert(functionName);}else if (action == 5){currentPos--;if (currentPos == 0){currentPos = maxPos - 1;}functionName = document.getElementById("videoSelection" + currentPos + cT).getElementsByTagName('a')[0].getAttribute('href');parseCurrentVideo(functionName);//document.getElementById("VIDEO").controls.stop();}else if (action == 6){alert(document.getElementById("VIDEO").fullScreen);document.getElementById("VIDEO").fullScreen = true;}else if (action == 7){alert(event);}}function parseCurrentVideo(functionName){functionName = functionName.replace("javascript:", "");functionName = functionName.replace("changeVideo(", "");functionName = functionName.replace(/'/g,"");changeVideo(functionName.split(",")[0],functionName.split(",")[1],functionName.split(",")[2],functionName.split(",")[3],functionName.split(",")[4],functionName.split(",")[5].replace(")",""));}var mediaString;function switchVideoT(){document.getElementById("defaultBroad").style.display="none";newString = '' + mediaString + '';document.getElementById("mainVideo").innerHTML = newString;}function switchVideo(inString){inString = inString + "&ads=" + playAd + "";if (playAd == "true"){simpleAd();}//mediaString = '';mediaString = "";mediaString = mediaString + '
';mediaString = mediaString + '
';mediaString = mediaString + '
';mediaString = mediaString + '
';mediaString = mediaString + '
';mediaString = mediaString + '
';mediaString = mediaString + '
';mediaString = mediaString + '
';mediaString = mediaString + '
';//mediaString = mediaString + '';if (x == -1){z = setTimeout("switchVideoT()",1000);}else{//switchVideoT();// document.getElementById("VIDEO").innerHTML = mediaString;document.getElementById("VIDEO").URL = inString;}}function playVideo(){document.getElementById("VIDEO").controls.play();}
Last edited: