// no spam email

function noSpam(user,domain) {
	locationstring = 'mailto:' + user + '@' + domain;
	window.location = locationstring;
}

// thumbnail popup

function resizePhoto(img){
  photo1= new Image();
  photo1.src=(img);
  controller(img);
}

function controller(img){
  if((photo1.width!=0)&&(photo1.height!=0)){viewPhoto(img);}
  else{
    altResult="controller('"+img+"')";
    interval=setTimeout(altResult,20);
  }
}

function viewPhoto(img){
  winWidth=photo1.width+20;
  winHeight=photo1.height+20;
  txtString="width="+winWidth+",height="+winHeight;
  postResults=window.open(img,"",txtString);
}

// Date Stamp

function stampIt() {
	var now = new Date();
	var year = now.getFullYear();
document.write('<p>Copyright &#169; ' + year + ' <a href="http://www.wjbf.com" title="WJBF News Channel 6">WJBF-TV</a>. A <a href="http://www.me');
document.write('diageneral.com" title="Media General\'s corporate site">Media General</a> company.</p>');
}

// Bind PollDaddy to Page

function re_poll(){
 $(".PDS_Poll a").bind("click", function(){
  setTimeout("re_poll()", 1000);
 });
 $(".pds-return-poll").bind("click", function(){window.location.href=window.location.href});
}
$(window).load(function () {
 $(".PDS_Poll a").bind("click", function(){setTimeout("re_poll()",1000);});
});