jQuery(window).load(function(){ //Image Show For IE9x86 if(jQuery.browser.msie){jQuery('.entry-image-slide img').each().css({'visibility': 'visible','opacity': '1'});} }); jQuery(document).ready(function(){ jQuery("p").each(function(){ if(jQuery(this).html()===''){ jQuery(this).remove(); } }); jQuery('.meta-like').live('click',function(){ var currentLike=jQuery(this); if(jQuery(this).attr('href')!='#') jQuery.post(jQuery(this).attr('href'), function(response) { currentLike.parent().html(''+response+''); }); return false; }); jQuery('.jp-jplayer-audio').each(function(){ jQuery(this).jPlayer({ ready: function () { jQuery(this).jPlayer("setMedia", { mp3: jQuery(this).attr('src') }); }, wmode:"window", swfPath: tt_theme_uri + "/js", cssSelectorAncestor: "#jp_interface_"+jQuery(this).attr('pid'), supplied: "mp3" }); }); //if(jQuery().jPlayer) { jQuery('.jp-jplayer-video').each(function(){ jQuery(this).jPlayer({ ready: function () { jQuery(this).jPlayer("setMedia", { m4v: jQuery(this).attr('src'), poster: jQuery(this).attr('poster') }); }, swfPath: tt_theme_uri + "/js", cssSelectorAncestor: "#jp_interface_"+jQuery(this).attr('pid'), supplied: "m4v" }); }); jQuery('.jp-jplayer-video').jPlayer({ size: { width: "580px", height: "auto" } }); // Form validate jQuery("#contactform").validate(); jQuery("#commentform").validate(); // IMAGE OVERLAY imgIconOverlay(jQuery); imgIconOverlayRecent(jQuery); // PRETTY PHOTO jQuery("a[rel^='prettyPhoto']").prettyPhoto({ deeplinking:false }); jQuery('.preload').preloadImages({ showSpeed: 500, // length of fade-in animation, 500 is default easing: 'easeOutQuad' // optional easing, if you don't have any easing scripts - delete this option }); //Mega-Menu-Start var temp, menu = jQuery("#navigation .menu"); menu.find("li").hover(function(){ jQuery(this).children('.children').hide().slideDown('normal'); if(jQuery(this).hasClass('mega-item')) jQuery(this).children('.children').find('.children').hide().slideDown('normal'); try{ $tmp=(jQuery(this).children('.children').offset().left+jQuery(this).children('.children').width())-(jQuery("#header .span9").offset().left+jQuery("#header .span9").width()); if($tmp>0){ jQuery(this).children('.children').css("right","0"); } } catch(e){} },function(){ jQuery(this).children('.children').stop(true,true).hide(); }); menu.children("li").each(function(){ temp = jQuery(this); if(temp.children().hasClass("children")) temp.addClass("showdropdown"); if(temp.hasClass('rel')) temp.find('.children').append(''); else temp.find('.children').append(''); }); menu.find(".children.columns").each(function(){ $countItems=1; jQuery(this).children(".mega-item").each(function(){ temp = jQuery(this); if(temp.hasClass("clearleft")){ $countItems=4; }else if(($countItems%3)==1 && $countItems!=1){ temp.addClass("clearleft"); } $countItems++; }); }); //Mega-Menu-End // TESTIMONIALIS jQuery('.testimonials').each(function(index){ var myPager=jQuery('