var tl_widget184 = {};
tl_widget184.init = function() {
    document.open();
    document.write('<div id="tl_widget184" style="text-align:left;position:relative; width:352px; height:370px; margin: 4px 4px; background:#575757 url(http://www.trafficland.com/widget/img/tl_black_background.png) bottom left repeat-x; border:1px #ccc solid;"><a  id="tl_widget184_link" style="color:#fc0;margin: 5px 0 0 0" href="http://www.trafficland.com/?esid=tlwidget" ><img  id="tl_widget184_powerd" style="cursor:pointer; border:none;"  src="http://www.trafficland.com/widget/img/trafficland_link.png" /></a><div id="tl_widget184_video" style="width:352px; height:240px; background: #fff url(http://pub2.camera.trafficland.com/image/live.jpg?system=tlwidget&webid=9194&pubtoken=996a1703842ffb60d61509ea8f4d4a94) top left no-repeat;"><a  id="tl_widget184_view"  style="cursor:pointer; width:352px; height:240px;display:block;"  href="http://www.trafficland.com/camera/9194/index.html?esid=tlwidget"><img  id="tl_widget184_cameraLink" style="display:none;cursor:pointer;border:none;" src="http://www.trafficland.com/widget/img/view_button.png"/></a></div><div  id="tl_widget184_data"  style="font-family:verdana; font-size:10px; font-weight:normal;  margin:5px 5px 0 5px ;color:#fff"><h5 id="tl_widget184_title" style="font-family:verdana; font-size:10px; font-weight:normal;  margin:0 0 2px 0;overflow:hidden;" >Blacksburg: I-77 @ Big Walker Tunnel</h5><div>Provided by VDOT</div></div><a   id="tl_widget184_button" style="cursor:pointer; margin: 2px 0 0 0; float:left;" href="http://www.trafficland.com/camera/9194/index.html?esid=tlwidget"><img style="border:none" src="http://www.trafficland.com/widget/img/widget_button1.png" /></a><a id="tl_widget184_button2" style="cursor:pointer; margin: 2px 0 0 0; float:left;" href="http://www.trafficland.com/?esid=tlwidget"><img style="border:none" src="http://www.trafficland.com/widget/img/widget_button2.png"/></a><a  id="tl_widget184_button3" style="cursor:pointer; margin: 2px 0 0 0; float:left;" href="http://www.trafficland.com/widget_intro.jsp?esid=tlwidget"><img  style="border:none" src="http://www.trafficland.com/widget/img/widget_button3.png"/></a></div>');
    document.close();
    var video = document.getElementById('tl_widget184_video')
    var button = document.getElementById('tl_widget184_button')
    var button2 = document.getElementById('tl_widget184_button2')
    var button3 = document.getElementById('tl_widget184_button3')
    var view = document.getElementById('tl_widget184_view');
    var powerd = document.getElementById('tl_widget184_powerd');
    view.onmouseover =  function(){
    var i = document.getElementById('tl_widget184_cameraLink');
        i.style.display = 'block';
    }
    view.onmouseout =  function(){
    var i = document.getElementById('tl_widget184_cameraLink');
        i.style.display = 'none';
    }
    fixWeatherPng(video.getElementsByTagName('img')[0],'tl_widget184_cameraLink');
    fixWeatherPng(button.getElementsByTagName('img')[0],'');
    fixWeatherPng(button2.getElementsByTagName('img')[0],'');
    fixWeatherPng(button3.getElementsByTagName('img')[0],'');
    fixWeatherPng(powerd,'');
}
function fixWeatherPng(img,i) {

if (img.filters) {
    var div = document.createElement('DIV');
    var src = img.src;
    img.style.visibility = 'hidden';
    div.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+ src +'", sizing="scale")';
    div.style.width = '140px';
    div.style.height = '118px';
    div.style.left = '0';
    div.style.top = '0';
    div.id = i;
    if(i=='tl_widget184_cameraLink'){div.style.display = 'none';};
    img.replaceNode(div);
    img.src = '';
}
}
tl_widget184.init();
var tracker_url = escape(document.location);
document.write('<iframe src="http://www.trafficland.com/widget/tracking.html?loc=' + tracker_url + '&rand=3674" width="1" height="1" style="display:none"  ></iframe>');
