'+data+'
'+ 'var line_height = 65; var logo_height; // it's value is calculated in window load function var contentTop = 65; var content_line_height = 50; function headerSize(scroll){ "use strict"; if((line_height - scroll) > 50){ $j('header .logo').css({'top': (line_height - scroll)/2}); $j('header .header_inner nav.main_menu > ul > li > a').css({'line-height': line_height - scroll +'px'}); $j('header .logo').css({'height': line_height - scroll +'px'}); $j('header .header_inner .header_right_widget').css({'line-height': line_height - scroll+'px'}); $j('header .header_inner .drop_down .second').css({'top': line_height - scroll+'px'}); $j('header .header_inner .drop_down2 .second').css({'top': line_height - scroll+'px'}); }else if((line_height - scroll) <= 50){ $j('header .logo').css({'top': 50/2}); $j('header').addClass('move_menu'); $j('header .header_inner nav.main_menu > ul > li > a').css({'line-height': '50px'}); $j('header .logo').css({'height': '50px'}); $j('header .header_inner .header_right_widget').css({'line-height': '50px'}); $j('header .header_inner .drop_down .second').css({'top': '50px'}); $j('header .header_inner .drop_down2 .second').css({'top': '50px'}); }else if(scroll === 0){ $j('header .logo').stop().animate({'top': line_height/2+'px'},100); $j('header .header_inner nav.main_menu > ul > li > a').css({'line-height': line_height+'px'}); $j('header .logo').css({'height': line_height+'px'}); $j('header .header_inner .header_right_widget').css({'line-height': line_height+'px'}); $j('header .header_inner .drop_down .second').css({'top': line_height+'px'}); $j('header .header_inner .drop_down2 .second').css({'top': line_height+'px'}); $j('header').removeClass('move_menu'); } if((line_height - scroll < logo_height) && (line_height - scroll) > 50 && logo_height > 45){ $j('header .logo a').height(line_height - scroll - 5); }else if((line_height - scroll < logo_height) && (line_height - scroll) < 50 && logo_height > 45){ $j('header .logo a').height(50 - 5); }else if(scroll === 0 && logo_height > 45){ $j('header .logo a').height(logo_height); } } function setLogoHeightOnLoad(){ "use strict"; //logo in header $j('header .logo').css('top', line_height/2); if(line_height - logo_height >= 10){ $j('header .logo a').height(logo_height); }else if(line_height - logo_height < 10){ $j('header .logo a').height(line_height - 5); } $j('header .logo a').css('visibility','visible'); //logo in content menu $j('.content_menu .logo').css('top', content_line_height/2); if(content_line_height - logo_height >= 10){ $j('.content_menu .logo a').height(logo_height); }else if(content_line_height - logo_height < 10){ $j('.content_menu .logo a').height(content_line_height - 5); } $j('.content_menu .logo a').css('visibility','visible'); $j('.logo img').css('height','100%'); } function ajaxSubmitCommentForm(){ "use strict"; var options = { success: function(){ $j("#commentform textarea").val(""); $j("#commentform .success p").text("Comment has been sent!"); } }; $j('#commentform').submit(function() { $j(this).find('input[type="submit"]').next('.success').remove(); $j(this).find('input[type="submit"]').after('
'+data+'
'+ '