jQuery(document).ready(function(){
if(jQuery('#category-adder').html()){
jQuery('#category-adder').prepend('<p>'+icl_cat_adder_msg+'</p>');
}
jQuery('select[name="icl_post_language"]').change(iclPostLanguageSwitch);
//jQuery('#noupdate_but input[type="button"]').click(iclSetDocumentToDate);
jQuery('select[name="icl_translation_of"]').change(function(){jQuery('#icl_translate_options').fadeOut();});
jQuery('#icl_dismiss_help').click(iclDismissHelp);
jQuery('#icl_dismiss_upgrade_notice').click(iclDismissUpgradeNotice);
jQuery('a.icl_toggle_show_translations').live('click', iclToggleShowTranslations);
icl_tn_initial_value = jQuery('#icl_post_note textarea').val();
jQuery('#icl_post_add_notes h4 a').live('click', iclTnOpenNoteBox);
jQuery('#icl_post_note textarea').live('keyup', iclTnClearButtonState);
jQuery('#icl_tn_clear').live('click', function(){jQuery('#icl_post_note textarea').val('');jQuery(this).attr('disabled','disabled')});
/*
jQuery Meerkat Plugin :: Version 1.0
if(options){
jQuery.extend(this.settings, options);
jQuery(settings.removeCookie).click(function(){ eraseCookie('meerkat')});
{
jQuery('html, body').css({'margin':'0', 'padding':'0', 'height':'100%'});
jQuery('#meerkat').show().wrap('<div id="meerkat-wrap"><div id="meerkat-container">' + '</div></div>');
jQuery('#meerkat-wrap').css({'position':'fixed', 'width':'100%', 'height': settings.height}).css(settings.meerkatPosition,"0");
jQuery('#meerkat-container').css({'background': settings.background, 'height': settings.height});
//Give the close and dontShow elements a cursor (there's no need to use a href)
jQuery(settings.close+","+settings.dontShow).css({"cursor":"pointer"});
if(jQuery.browser.msie && jQuery.browser.version <= 6){
jQuery('html, body').css({'height':'100%', 'width':'100%', 'overflow':'hidden'});
jQuery(document).ready(function(){
var topControlIcon = jQuery ('.top-icon-menu, .shadow, .block-cart-header, .top-search, .page, body, .header-button');
var blockSliderMarker = jQuery('.products-grid, .products-list, .catalog-product-view');
if(blockSliderMarker.length===0 ) {
jQuery(".sidebar .block-slider-sidebar").remove();
else {
jQuery(".sidebar .block-slider-sidebar").addClass('block-slider-start');
/* toggle nav */
jQuery("#menu-icon").on("click", function(){
jQuery(".sf-menu-phone").slideToggle();
jQuery(this).toggleClass("active");
jQuery('.swipe-control, .block-cart-header, .top-search').on("click", function(){
jQuery('.header .sf-menu-phone').slideUp()
jQuery('#menu-icon').removeClass('active')
jQuery.noConflict();
jQuery(document).ready(function() {
*/
if(jQuery('ul.tabs').length > 0){
jQuery('ul.tabs').tabs('> .tabs_content');
}
if(jQuery('ul.tabs_framed').length > 0){
jQuery('ul.tabs_framed').tabs('> .tabs_framed_content');
}
if(jQuery('ul.tabs_button').length > 0){
jQuery('ul.tabs_button').tabs('> .tabs_button_content');
}
if(jQuery('.tabs_vertical_frame').length > 0){
jQuery('.tabs_vertical_frame').tabs('> .tabs_vertical_content');
jQuery.noConflict();
K2.ajaxGet = function(data, complete_fn) {
jQuery.ajax({
error: function(request) {
jQuery('#notices')
success: function() {
jQuery('#notices').hide().html();
function OnLoadUtils() {
jQuery('#comment-personaldetails').hide();
jQuery('#showinfo').show();
jQuery('#hideinfo').hide();
function HideUtils() {
jQuery('#comment-personaldetails').slideUp();
jQuery('#showinfo').show();
jQuery(function () {
//init
//acao botao de alto contraste
jQuery('a.toggle-contraste').click(function(){
if(!jQuery('div.layout').hasClass('contraste'))
{
jQuery('div.layout').addClass('contraste');
layout_classes = jQuery.cookie('layout_classes');
if( layout_classes != 'undefined' )
layout_classes = 'contraste';
jQuery.cookie('layout_classes', layout_classes );
{
jQuery('div.layout').removeClass('contraste');
layout_classes = jQuery.cookie('layout_classes');
{
jQuery('#navigation-section').slideUp();
jQuery.noConflict();
K2.ajaxGet = function(url, data, complete_fn) {
jQuery.ajax({
error: function(request) {
jQuery('#notices')
success: function() {
jQuery('#notices').hide().html();
function OnLoadUtils() {
jQuery('#comment-personaldetails').hide();
jQuery('#showinfo').show();
jQuery('#hideinfo').hide();
function HideUtils() {
jQuery('#comment-personaldetails').slideUp();
jQuery('#showinfo').show();
jQuery(document).ready(function(){
// Menu Navigation
jQuery('#main-superfish-wrapper ul.sf-menu').supersubs({
// Accordion
jQuery("ul.gdl-accordion li").each(function(){
if(jQuery(this).index() > 0){
jQuery(this).children(".accordion-content").css('display','none');
}else{
jQuery(this).find(".accordion-head-image").addClass('active');
jQuery(this).children(".accordion-head").bind("click", function(){
jQuery(this).children().addClass(function(){
});
jQuery(this).parent().siblings("li").children(".accordion-content").slideUp();
jQuery(this).parent().siblings("li").find(".active").removeClass("active");
jQuery(document).ready(function(){
// Menu Navigation
jQuery('#main-superfish-wrapper ul.sf-menu').supersubs({
// Accordion
jQuery("ul.gdl-accordion li").each(function(){
//jQuery(this).children(".accordion-content").css('height', function(){
//return jQuery(this).height();
//});
if(jQuery(this).index() > 0){
jQuery(this).children(".accordion-content").css('display','none');
jQuery(this).siblings(".accordion-content").slideDown();
jQuery(this).parent().siblings("li").children(".accordion-content").slideUp();
jQuery(this).parent().siblings("li").find(".active").removeClass("active");
jQuery.fn.animateHighlight = function(highlightColor, duration) {
var highlightBg = highlightColor || "#FFFF9C";
jQuery(function() {
if (jigoshop_params.load_fancybox) {
jQuery('a.zoom').fancybox({
// Star ratings
jQuery('#rating').hide().before('<p class="stars"><span><a class="star-1" href="#">1</a><a class="star-2" href="#">2</a><a class="star-3" href="#">3</a><a class="star-4" href="#">4</a><a class="star-5" href="#">5</a></span></p>');
jQuery('p.stars a').click(function(){
jQuery('#rating').val(jQuery(this).text());
jQuery('p.stars a').removeClass('active');
jQuery(this).addClass('active');
return false;
// Price slider
var min_price = parseInt(jQuery('.price_slider_amount #min_price').val());
var max_price = parseInt(jQuery('.price_slider_amount #max_price').val());
jQuery.fn.animateHighlight = function(highlightColor, duration) {
var highlightBg = highlightColor || "#FFFF9C";
jQuery(function() {
if (jigoshop_params.load_fancybox) {
jQuery('a.zoom').fancybox({
// Star ratings
jQuery('#rating').hide().before('<p class="stars"><span><a class="star-1" href="#">1</a><a class="star-2" href="#">2</a><a class="star-3" href="#">3</a><a class="star-4" href="#">4</a><a class="star-5" href="#">5</a></span></p>');
jQuery('p.stars a').click(function(){
jQuery('#rating').val(jQuery(this).text());
jQuery('p.stars a').removeClass('active');
jQuery(this).addClass('active');
return false;
// Price slider
var min_price = parseInt(jQuery('.price_slider_amount #min_price').val());
var max_price = parseInt(jQuery('.price_slider_amount #max_price').val());
jQuery(document).ready(function(){
// Menu Navigation
jQuery('#main-superfish-wrapper ul.sf-menu').supersubs({
// Accordion
jQuery("ul.gdl-accordion li").each(function(){
//jQuery(this).children(".accordion-content").css('height', function(){
//return jQuery(this).height();
//});
if(jQuery(this).index() > 0){
jQuery(this).children(".accordion-content").css('display','none');
jQuery(this).siblings(".accordion-content").slideDown();
jQuery(this).parent().siblings("li").children(".accordion-content").slideUp();
jQuery(this).parent().siblings("li").find(".active").removeClass("active");
jQuery.noConflict();
K2.ajaxGet = function(data, complete_fn) {
jQuery.ajax({
error: function(request) {
jQuery('#notices')
success: function() {
jQuery('#notices').hide().html();
function OnLoadUtils() {
jQuery('#comment-personaldetails').hide();
jQuery('#showinfo').show();
jQuery('#hideinfo').hide();
function HideUtils() {
jQuery('#comment-personaldetails').slideUp();
jQuery('#showinfo').show();
jQuery(document).ready(function(){
jQuery('.rm_options').slideUp();
jQuery('.rm_section h3').click(function(){
if(jQuery(this).parent().next('.rm_options').css('display')==='none')
{ jQuery(this).removeClass('inactive').addClass('active').children('img').removeClass('inactive').addClass('active');
else
{ jQuery(this).removeClass('active').addClass('inactive').children('img').removeClass('active').addClass('inactive');
jQuery(this).parent().next('.rm_options').slideToggle('slow');
jQuery(document).ready(function() {
var $product_container = jQuery('.products-wrap ul.products');
$product_container.imagesLoaded( function() {
});
jQuery(window).smartresize(function() {
});
jQuery(document).on( 'adding_to_cart', 'body', function(event, $this, $data) {
$this.closest('.product-inner-wrap').find('.product-image-overlay').fadeIn(200);
jQuery('.woocommerce.widget_shopping_cart.widget').find('.widget-content').slideDown().delay(3000).slideUp();
});
jQuery(document).on( 'added_to_cart', 'body', function() {
jQuery('.product-image-overlay').fadeOut(200);
$product_container.isotope( 'reLayout' );
});
jQuery("select.orderby,select#calc_shipping_country,select#calc_shipping_state").chosen({inherit_select_classes: true});
jQuery("select.orderby,select#calc_shipping_country,select#calc_shipping_state").trigger("chosen:updated");
jQuery(document).ready(function() {
var $product_container = jQuery('.products-wrap ul.products');
$product_container.imagesLoaded( function() {
});
jQuery(window).smartresize(function() {
});
jQuery(document).on( 'adding_to_cart', 'body', function(event, $this, $data) {
$this.closest('.product-inner-wrap').find('.product-image-overlay').fadeIn(200);
jQuery('.woocommerce.widget_shopping_cart.widget').find('.widget-content').slideDown().delay(3000).slideUp();
});
jQuery(document).on( 'added_to_cart', 'body', function() {
jQuery('.product-image-overlay').fadeOut(200);
$product_container.isotope( 'reLayout' );
});
jQuery("select.orderby,select#calc_shipping_country,select#calc_shipping_state").chosen({inherit_select_classes: true});
jQuery("select.orderby,select#calc_shipping_country,select#calc_shipping_state").trigger("chosen:updated");