
//Flash related functions ----
function GE_pop(url, name, w, h) {
   window.open(url, name,'height='+h+'px,width='+w+'px,menubar=0,scrollbars=0,titlebar=0,resizable=0,toolbar=0,location=0,status=0,directories=0');
}


function showImages(imgList) {
	if (imgList.indexOf(',') > 0) {
		theImages = imgList.split(',');
	} else {
		theImages = new Array(imgList);
	}
	i = 1
	theImages.each(function(imgName) {
		var LBlink = document.createElement('a');
		LBlink.setAttribute('href','images/lbimages/'+imgName);
		galName = 'lightbox'
		if (theImages.length > 1) {
			galName = 'lightbox[imgs]';
		}
		LBlink.setAttribute('rel',galName);
		LBlink.setAttribute('id','lbimg'+i);
		if (i==1) {
			LBImgOne = LBlink;
		}
		//$('container').insert(LBlink);
		$('container').appendChild(LBlink);
		i += i;
	});
	Lightbox.prototype.start(LBImgOne);
}

