/**
 * @author kelly smith
 */
function buildHTML(imageName,imageDesc,imageThumb){
	
	// Build HTML string and return
	//here we take from the current table
	
	var output = '';
//	output += '<tr>';
	output += '<td align="center" valign="middle" class="border" bgcolor="black">';
	output += '<div class="btips" title="'+ imageDesc+'"><a href="images/'+ imageName +'" title="'+ imageDesc+'" align="absmiddle"">';
	output += '<img src="images/'+imageThumb +'" alt="lightning photography" width="107" height="69" border="0" align="middle"></a></div></td>';
//	output += '</tr>';
	return output;
}
function buildMenus(currPage,strt,end,pgLimit,gpg,xpr){
	var outText = '<table><tr><td height="25"></td> <td></td><td></td>';
	var x = strt;
	while(x <= end){
 		outText += '<td>&nbsp;</td>';
		outText += '<td valign="top" width="24" height="25" class="galMenu">';
		if(currPage == x){
			outText += x + '</td>';
		}else if(x > pgLimit){
			outText += '<span class="disabled">' + x + '</span></td>';
		}else{
			outText += '<a href="'+ gpg +'?p='+xpr+ x +'">'+ x +'</a></td>';
 		}
 		x+=1;
 	}
 	outText += '<td>&nbsp;</td><td>&nbsp;</td></tr></table>';
	return outText;
}
$(function(){
	$('#currYR').html(Date.today().toString('yyyy'));
	$('.btips').bt();
	$('#gallery a').lightBox();
});
