function listbox_moveacross(sourceID, destID) {
	var src = document.getElementById(sourceID);
	var dest = document.getElementById(destID);

	for(var count=0; count < src.options.length; count++) {
		if(src.options[count].selected == true) {
				var option = src.options[count];
				var newOption = document.createElement("option");
				newOption.value = option.value;
				newOption.text = option.text;
				newOption.selected = true;
				try {
						 dest.add(newOption, null); //Standard
						 src.remove(count, null);
				 }catch(error) {
						 dest.add(newOption); // IE only
						 src.remove(count);
				 }
				count--;
		}
	}
}

$(document).ready(function(){
			
	/*	$('a[href*="action=medialib.download"]').attr('class','fb-image');
		
		$("a.fb-image").bind("click",function(e){
			e.preventDefault();
			$(this).fancybox({
				'transitionIn'	:	'elastic',
				'transitionOut'	:	'elastic',
				'speedIn'		:	600, 
				'speedOut'		:	200, 
				'overlayshow' : true,
				'overlayOpacity' : 0.6,
				'overlayColor'   : '##000',
				'hideOnContentClick': true,
				'autoScale': false,
				'titleShow' : false,
				'scrolling': 'no'
			});
			
		});
		*/
		/*$('a[href*="action=medialib.download"]').click(function(e){
			e.preventDefault();
			state="clicked";
			
			if ($(this).attr("class") != "fb-image") {
				var id = $(this).attr('href').split("&");
				id = id[1];
				id = id.split("=");
				id = id[1];
				
				var numberPattern = /^\d+$/;
				if (numberPattern.test(id)) {
					$(this).attr('href', 'index.cfm?action=medialib.item&pid=' + id);
					$(this).attr('class', 'fb-image');
				}
			} else {
				
				$(this).fancybox({
					'transitionIn'	:	'elastic',
					'transitionOut'	:	'elastic',
					'speedIn'		:	600, 
					'speedOut'		:	200, 
					'overlayshow' : true,
					'overlayOpacity' : 0.6,
					'overlayColor'   : '##000',
					'hideOnContentClick': true,
					'autoScale': false,
					'titleShow' : false,
					'scrolling': 'no'
				});
				$(this).trigger("click");
			}
		
		});*/
		
		
		
});
