//alernate table row
$(document).ready(function() {
	$('tr:odd').addClass('alt');
});
function regenerateCaptcha(name,val) {	
	$('img#captcha').attr('src','plugins/secureimage/show.php?'+name+'='+val+'&u='+Math.random())
}

//marquee
$(function () {
	// basic version is: $('div.demo marquee').marquee() - but we're doing some sexy extras
	
	$('.green-box marquee').marquee('pointer').mouseover(function () {
		$(this).trigger('stop');
	}).mouseout(function () {
		$(this).trigger('start');
	}).mousemove(function (event) {
		if ($(this).data('drag') == true) {
			this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
		}
	}).mousedown(function (event) {
		$(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
	}).mouseup(function () {
		$(this).data('drag', false);
	});
});

//lightbox
$(function() {
	$('a.lightbox').lightBox({
		imageLoading:			'http://projects.logicreplace.com/hls/development/plugins/jquery/lightbox/lightbox-ico-loading.gif',
		imageBtnPrev:			'http://projects.logicreplace.com/hls/development/plugins/jquery/lightbox/lightbox-btn-prev.gif',
		imageBtnNext:			'http://projects.logicreplace.com/hls/development/plugins/jquery/lightbox/lightbox-btn-next.gif',
		imageBtnClose:			'http://projects.logicreplace.com/hls/development/plugins/jquery/lightbox/lightbox-btn-close.gif',
		imageBlank:				'http://projects.logicreplace.com/hls/development/plugins/jquery/lightbox/lightbox-blank.gif'	
	});
});
