/**
 * @author s1ntez
 */

function showGallery(num){
	//jQuery.noConflict();
	//jQuery('#mycarousel3').jcarousel({});
	$(num).style.display = 'block';
	var oHtml = document.getElementsByTagName("html")[0];
	$(num).style.top  = toInt(toInt(oHtml.clientHeight)/2) + toInt(oHtml.scrollTop) - toInt(520/2) + 'px';
	$(num).style.left = toInt(toInt(oHtml.clientWidth)/2) + toInt(oHtml.scrollLeft) - toInt(502/2) + 'px';
	
	//jQuery.noConflict();
	//	jQuery(document).ready(function() {
	//		jQuery('#mycarousel1').jcarousel({
	//		});
	//	});
		
	//jQuery('#mycarousel1 a').click(function(){
	//	var largePath = jQuery(this).attr("href");
	//	var largeAlt = jQuery(this).attr("title");
	//	jQuery('#largeImg').attr({ src: largePath, alt: largeAlt });
	//	return false;
    //});

}

function closeGallery(num){
	$(num).style.display = 'none';
	return false;
}

function setLargeImg(_img, _href, _alt){
	var img = '#' + _img;
	jQuery(img).attr({ src: _href, alt: _alt });
}

