$(document).ready(function(){
	$(".wlk_helpfulplus").one("click", function(e){
		page_var = $(this);
		thecount = page_var.parents('.plus').children('.thecount').html();
		article_id = page_var.parents('.plus').children('.thisid').html();
		jQuery.post('/userguide/wlk_helpful_ajax', {"article_id":article_id,"up_down":'up'}, function(data){
				if(data.length>1) {
					page_var.parents('.plus').children('.thecount').html(parseInt(thecount)+1);
				}
		});
		$(".wlk_helpfulminus").unbind("click", null);
	});
});

//Rate it down 1
$(document).ready(function(){
	$(".wlk_helpfulminus").one("click", function(e){
		page_var = $(this);
		thecount = page_var.parents('.minus').children('.thecount').html();
		article_id = page_var.parents('.minus').children('.thisid').html();
		jQuery.post('/userguide/wlk_helpful_ajax', {"article_id":article_id,"up_down":'down'}, function(data){
			if(data.length>1) {
				page_var.parents('.minus').children('.thecount').html(parseInt(thecount)+1);
			}
		});
		$(".wlk_helpfulplus").unbind("click", null);
	});
});

//added by Dave in June of 2009

pop_img = function(img_id){
pop_window = function(rpt_imgg,img_id){
	var win_h = parseInt(rpt_imgg.height);
	var win_w = parseInt(rpt_imgg.width);
	var win_w = (win_w < 100) ? 125: win_w;
	if (win_h < 100){ win_h = 125; win_w += 75 }
	var pop_win = window.open('','pop_win','top=125,left=125,width=0,height=0,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,copyhistory=no');
	pop_win.document.writeln('<html><head><style>body{margin:5px 5px 0px 5px}</style>');
	pop_win.document.writeln('<title>'+img_id.innerHTML+'</title></head>');
	pop_win.document.writeln('<body><img src="'+img_id.href+'" onload="window.resizeTo((this.width+20),(this.height+40))" /></body></html>');
	pop_win.document.close();
	pop_win.focus();
	return false;
}
	var rpt_img = new Image();
	rpt_img.src = img_id.href;
	rpt_img.lowsrc = img_id.href;
	rpt_img.onload= pop_window(rpt_img,img_id);
	return false;
}
qt_open= function(earl){
	var ifra = document.createElement("iframe");
	ifra.src = '/userguide/files/video.php?t='+earl;
	ifra.style.display = "none";
	document.body.appendChild(ifra);
}