// JavaScript Document
$(document).ready(function(){
	//alert($('#main').size())
	/*var h_ = 0;
	var num =1;
	var el = null;
	 $('#right, #left, #center').each(function(){
			pos =
			if(pos.h > h_) {
				h_ = pos.h
				el = this;
				num++;
			}
	});
	 if(el) {

	 	$('#center').css("height",h_).css("min-height",h_)

		h_+= parseInt($(el).css('top'),10)
		$('#main').css("height",h_)
		$('#bottom').css("top",h_-60)
		$('#oright, #oleft').css("height", h_+100)
	 }
	// alert(h_)*/

	$('a > img').parent().css({'text-decoration':'none','border': 0});
		

	el = $.iUtil.getScroll();
	$('#oright, #oleft').css("height", el.h-7)
	 $('a.prev').find('img').css({opacity: 0.3})
	 .mouseover(function(){
	 		$(this).animate({opacity: 1}, 400)
	 })
	 .mouseout(function(){
	 		$(this).animate({opacity: 0.3}, 400)
	 })
	 $.ImageBox.init(
		{
			textImage			: 'Изображение',
			textImageFrom		: 'из',
			loaderSRC: 'http://arock.ru/design/loading.gif',
			closeHTML: '<img src="http://arock.ru/design/close.jpg" />'
		}
	  );


});