//
// オリジナルの変数をオーバーライド
//
fileLoadingImage = "images/loading.gif";
fileBottomNavCloseImage = "images/closelabel.gif";
//
// オリジナルのinitLightbox関数をオーバーライド
//
initLightbox = function() {
	addRelLightboxAttribute('content');
	myLightbox = new Lightbox();
};
// 
// rel="lightbox"属性をanchor要素に付加
//
addRelLightboxAttribute = function(id) {
	if (!document.getElementsByTagName) { return; }
	var ele;
	if (id) {
		ele = $(id);
		if (!ele) { return; }
	} else {
		ele = document.body;
	}
	var anchors = ele.getElementsByTagName('a');
	for (var i = 0; i < anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute('href').match(/jpg$|gif$|png$/)) {
			var rel = String(anchor.getAttribute('rel'));
			if (!rel.toLowerCase().match('lightbox')) {
				anchor.setAttribute('rel', rel ? rel+' lightbox' : 'lightbox');
			}
		}
	}
};

