jQuery(document).ready(function($) {

$.fn.vAlign = function() {
return this.each(function(i){
var ah = $(this).height();
var ph = $(this).parent().height();
var mh = (ph - ah) / 2;
$(this).css('padding-top', mh);
});
};

$.fn.vAlignabs = function() {
return this.each(function(i){
var ah = $(this).height();
var ph = $(this).parent().height();
var mh = (ph - ah) / 2;
$(this).css('top', mh);
});
};

$('img[title=read_more]').addClass('more-link');
$('div.collapse').css('display','none');
$('img.more-link').click(function(){
 $('div.collapse').css('display','block');
});
$('img[title=reduce_info]').css('cursor','pointer').click(function(){
 $('div.collapse').css('display','none');
});

$('div.menuha_r table tr td').last().css('background', 'none');
$('div.bot_menu ul li').last().css('border-right', 'none');

$('input#cforms_q').parent().addClass('cforma_secure');
$('span.cforma_secure').parent().addClass('cforma_secure_par');

$('div#photo_gallery div.ngg-galleryoverview:nth-child(2n+2)').addClass('last');
$('div.gallery_obrez div.ngg-gallery-thumbnail-box:nth-child(2n+2)').addClass('gal_last');
$('<div class="clear"></div>').insertAfter('div.gal_last');

$('div.main_left h1').first().appendTo('div.header_main');

$('div.read_bg').click(function(){
	$('div.more').addClass('open');
});
$('div.reduce_bg').click(function(){
	$('div.more').removeClass('open');
});



































































});
