function onIntialRenderer(){}
function onMenuVisibilityChange(ul, visibile){}
function onResizeSpecific(){}

function toggleGalleryStickySpecific(isGallery, overlay)
{
	var btm = 20;
	$('#content_layer').css('bottom', btm);
	
	if(isGallery)
	{
		btm = 90;
		if(overlay)
		{
			btm = 20;
		}
		$('#content_layer_gallery').css('bottom', btm);
	}
}

function onReadySpecific()
{
	scrollPadding = 40;
}

function onResizeBodySpecific()
{	
	if(type == 'gallery')
	{
		bodyHeight = $('#body').height();
	}
	
	var skh = $('#sticky_gallery_nav').height();
	if(skh != null && bodyHeight == $('#body').height() && skh > 0)
	{
		bodyHeight = bodyHeight - skh - 9 - scrollPadding;
	}
	else if(type == 'gallery')
	{
		$('#body .galleryblock').css('bottom', 0);
	}
}

function onResizeGalleryItemSpecific(fimg)
{
	var bodyWidth = $('#body').width();
	
	var contentWidth = fimg.width();
	var infoWidth = $('#body .galleryblock_info').width();
	if(infoWidth != null)
	{
		contentWidth += infoWidth + scrollPadding;
	}
	
	$('#body .galleryblock .galleryblock_info_bg').height(fimg.height());
	
	//document.title = contentWidth + " > " + bodyWidth;
	if(contentWidth > bodyWidth)
	{
		bodyWidth = bodyWidth - infoWidth - scrollPadding;
		var imgHeight = (fimg.height()/fimg.width())*bodyWidth;
		fimg.height(imgHeight);
		$('#body .galleryblock .galleryblock_info_bg').height(imgHeight);
		scrollHeight = actualHeight($('#body .scroll_wrap'));
		if(scrollHeight > imgHeight-scrollPadding)
		{
			//$('.scroll_wrap').jScrollPaneRemove();
			$('.scroll_wrap').height(scrollHeight);
			$('.scroll_wrap').height(imgHeight-scrollPadding);
			$('.scroll_wrap').jScrollPane({showArrows:false, scrollbarWidth: 10, scrollbarMargin:10});
		}
		
		$('#body .galleryblock').css('margin-top', (bodyHeight - imgHeight)/2);
	}
	
}


