var _hbEC = 0,_hbE = new Array;
function _hbEvent(a, b) {
    b = _hbE[_hbEC++] = new Object();
    b._N = a;
    b._C = 0;
    return b;
}
var hbx = _hbEvent("pv");
hbx.vpc = "HBX0200u";
hbx.gn = "ehg-trafficland.hitbox.com";

//BEGIN EDITABLE SECTION
//CONFIGURATION VARIABLES
hbx.acct = "DM5709180FNB92EN3";
//ACCOUNT NUMBER(S)
hbx.pn = "webid8381";
//PAGE NAME(S)
hbx.mlc = "/widget.js/wkey7858a271ab4638ac41ecb75706417aa9";
//MULTI-LEVEL CONTENT CATEGORY
hbx.pndef = "title";
//DEFAULT PAGE NAME
hbx.ctdef = "full";
//DEFAULT CONTENT CATEGORY

//OPTIONAL PAGE VARIABLES
//ACTION SETTINGS
hbx.fv = "";
//FORM VALIDATION MINIMUM ELEMENTS OR SUBMIT FUNCTION NAME
hbx.lt = "none";
//LINK TRACKING
hbx.dlf = "n";
//DOWNLOAD FILTER
hbx.dft = "n";
//DOWNLOAD FILE NAMING
hbx.elf = "n";
//EXIT LINK FILTER

//SEGMENTS AND FUNNELS
hbx.seg = "";
//VISITOR SEGMENTATION
hbx.fnl = "";
//FUNNELS

//CAMPAIGNS
hbx.cmp = "";
//CAMPAIGN ID
hbx.cmpn = "";
//CAMPAIGN ID IN QUERY
hbx.dcmp = "";
//DYNAMIC CAMPAIGN ID
hbx.dcmpn = "";
//DYNAMIC CAMPAIGN ID IN QUERY
hbx.dcmpe = "";
//DYNAMIC CAMPAIGN EXPIRATION
hbx.dcmpre = "";
//DYNAMIC CAMPAIGN RESPONSE EXPIRATION
hbx.hra = "";
//RESPONSE ATTRIBUTE
hbx.hqsr = "";
//RESPONSE ATTRIBUTE IN REFERRAL QUERY
hbx.hqsp = "";
//RESPONSE ATTRIBUTE IN QUERY
hbx.hlt = "";
//LEAD TRACKING
hbx.hla = "";
//LEAD ATTRIBUTE
hbx.gp = "";
//CAMPAIGN GOAL
hbx.gpn = "";
//CAMPAIGN GOAL IN QUERY
hbx.hcn = "";
//CONVERSION ATTRIBUTE
hbx.hcv = "";
//CONVERSION VALUE
hbx.cp = "null";
//LEGACY CAMPAIGN
hbx.cpd = "";
//CAMPAIGN DOMAIN

//CUSTOM VARIABLES
hbx.ci = "";
//CUSTOMER ID
hbx.hc1 = "";
//CUSTOM 1
hbx.hc2 = "";
//CUSTOM 2
hbx.hc3 = "";
//CUSTOM 3
hbx.hc4 = "";
//CUSTOM 4
hbx.hrf = "";
//CUSTOM REFERRER
hbx.pec = "";
//ERROR CODES

//INSERT CUSTOM EVENTS
var tl_widget993 = {};
tl_widget993.init = function() {
    document.open();
    document.write('<div id="tl_widget993" 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_widget993_link" style="color:#fc0;margin: 5px 0 0 0" href="http://www.trafficland.com/?esid=tlwidget" ><img  id="tl_widget993_powerd" style="cursor:pointer; border:none;"  src="http://www.trafficland.com/widget/img/trafficland_link.png" /></a><div id="tl_widget993_video" style="width:352px; height:240px; background: #fff url(http://pub2.camera.trafficland.com/image/live.jpg?system=tlwidget&webid=8381&pubtoken=0b2017cd667473d6c1ffeab5e9c67015) top left no-repeat;"><a  id="tl_widget993_view"  style="cursor:pointer; width:352px; height:240px;display:block;"  href="http://www.trafficland.com/camera/8381/index.html?esid=tlwidget"><img  id="tl_widget993_cameraLink" style="display:none;cursor:pointer;border:none;" src="http://www.trafficland.com/widget/img/view_button.png"/></a></div><div  id="tl_widget993_data"  style="font-family:verdana; font-size:10px; font-weight:normal;  margin:5px 5px 0 5px ;color:#fff"><h5 id="tl_widget993_title" style="font-family:verdana; font-size:10px; font-weight:normal;  margin:0 0 2px 0;overflow:hidden;" >Norwich: I-395 s/o Fitch Hill Rd </h5><div>Provided by ConnDOT</div></div><a   id="tl_widget993_button" style="cursor:pointer; margin: 2px 0 0 0; float:left;" href="http://www.trafficland.com/camera/8381/index.html?esid=tlwidget"><img style="border:none" src="http://www.trafficland.com/widget/img/widget_button1.png" /></a><a id="tl_widget993_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_widget993_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.write('<script  type="text/javascript" language="javascript1.1" src="http://www.trafficland.com/hbx.js"></script>');
    document.close();
    var video = document.getElementById('tl_widget993_video')
    var button = document.getElementById('tl_widget993_button')
    var button2 = document.getElementById('tl_widget993_button2')
    var button3 = document.getElementById('tl_widget993_button3')
    var view = document.getElementById('tl_widget993_view');
    var powerd = document.getElementById('tl_widget993_powerd');
    view.onmouseover =  function(){
    var i = document.getElementById('tl_widget993_cameraLink');
        i.style.display = 'block';
    }
    view.onmouseout =  function(){
    var i = document.getElementById('tl_widget993_cameraLink');
        i.style.display = 'none';
    }
    fixWeatherPng(video.getElementsByTagName('img')[0],'tl_widget993_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_widget993_cameraLink'){div.style.display = 'none';};
    img.replaceNode(div);
    img.src = '';
}
}
tl_widget993.init();
