function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery(".politica_troca").click(function(){
window.open(jQuery(this).attr("href"), "_popup", "width=340, height=400, scrollbars=yes");
return false;
});
//jQuery('.fancyzoom').fancyzoom();
jQuery('.fancyzoom').click(function(){
jQuery('.more-views').height(jQuery('.more-views').height()+10);
jQuery('.photo-zoom').html('');
jQuery('.photo-zoom').show();
jQuery('.fancyzoom').hide();
jQuery('.photo-zoom img').click(function(){ jQuery('.fancyzoom').show(); jQuery('.photo-zoom').hide(); jQuery('photo-zoom').html(''); });
return false;
});
jQuery('.search .close').click(function(){
jQuery('.search').hide();
});
jQuery('.search-link').click(function(){
jQuery('.search').toggle();
return false;
});
jQuery('.footer .thawte a').click(function(){
window.open(jQuery(this).attr("href"), '_thawte', 'width=499, height=600');
return false;
});
setEqualHeight(jQuery("ul.catalog-listing > li"));
jQuery(".followus_dialog").dialog({
autoOpen: false,
bgiframe: true,
resizable: false,
height:220,
modal: true,
overlay: {
backgroundColor: '#000',
opacity: 0.5
}
});
jQuery(".follow .show").click(function(){
jQuery(".followus_dialog").dialog('open'); return false;
});
jQuery('.btn.consulte').click(function(){
jQuery(".dialog-consulte").dialog('open');
jQuery('#produto-consulte').submit(function(){
jQuery('#produto-consulte .btn').attr('disabled', 'true');
jQuery('#produto-consulte img.loading').show();
jQuery.post("/store/consulte.php", jQuery(this).serialize(), function(data){
jQuery('#produto-consulte .btn').attr('disabled', false);
jQuery('#produto-consulte img.loading').hide();
jQuery('#produto-consulte .warning').show();
jQuery('#produto-consulte')[0].reset();
});
return false;
});
return false;
});
jQuery('.dialog-consulte').dialog({
autoOpen: false,
bgiframe: true,
resizable: false,
height:380,
width:430,
modal: true,
title: 'Produto sob consulta',
overlay: {
backgroundColor: '#000',
opacity: 0.5
}
});
jQuery(".lovers_dialog").dialog({
autoOpen: false,
bgiframe: true,
resizable: false,
height:220,
modal: true,
overlay: {
backgroundColor: '#000',
opacity: 0.5
}
});
jQuery(".lovers .show").click(function(){
jQuery(".lovers .list").show();
jQuery(".lovers").addClass("active");
});
jQuery(".lovers .close").click(function(){
jQuery(".lovers").removeClass("active");
jQuery(".lovers .list").hide();
});
});
function setEqualHeight(columns) {
var tallestcolumn = 0;
columns.each(function(){
currentHeight = jQuery(this).height();
if (currentHeight > tallestcolumn) {
tallestcolumn = currentHeight;
}
});
columns.height(tallestcolumn);
}
/*
* jQuery ifixpng plugin
* (previously known as pngfix)
* Version 2.0 (04/11/2007)
* @requires jQuery v1.1.3 or above
*
* Examples at: http://jquery.khurshid.com
* Copyright (c) 2007 Kush M.
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
/**
*
* @example
*
* optional if location of pixel.gif if different to default which is images/pixel.gif
* $.ifixpng('media/pixel.gif');
*
* $('img[@src$=.png], #panel').ifixpng();
*
* @apply hack to all png images and #panel which icluded png img in its css
* @name ifixpng
* @type jQuery
* @cat Plugins/Image
* @return jQuery
* @author jQuery Community
*/
(function($) {
/**
* helper variables and function
*/
$.ifixpng = function(customPixel) {
$.ifixpng.pixel = customPixel;
};
$.ifixpng.getPixel = function() {
return $.ifixpng.pixel || 'ressources/blank.gif';
};
var hack = {
ltie7 : $.browser.msie && $.browser.version < 7,
filter : function(src) {
return "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+src+"')";
}
};
/**
* Applies ie png hack to selected dom elements
*
* $('img[@src$=.png]').ifixpng();
* @desc apply hack to all images with png extensions
*
* $('#panel, img[@src$=.png]').ifixpng();
* @desc apply hack to element #panel and all images with png extensions
*
* @name ifixpng
*/
$.fn.ifixpng = hack.ltie7 ? function() {
return this.each(function() {
var $$ = $(this);
var base = $('base').attr('href'); // need to use this in case you are using rewriting urls
if ($$.is('img') || $$.is('input')) { // hack image tags present in dom
if ($$.attr('src')) {
if ($$.attr('src').match(/.*\.png([?].*)?$/i)) { // make sure it is png image
// use source tag value if set
var source = (base && $$.attr('src').substring(0,1)!='/') ? base + $$.attr('src') : $$.attr('src');
// apply filter
$$.css({filter:hack.filter(source), width:$$.width(), height:$$.height()})
.attr({src:$.ifixpng.getPixel()})
.positionFix();
}
}
} else { // hack png css properties present inside css
var image = $$.css('backgroundImage');
if (image.match(/^url\(["']?(.*\.png([?].*)?)["']?\)$/i)) {
image = RegExp.$1;
$$.css({backgroundImage:'none', filter:hack.filter(image)})
.children().children().positionFix();
}
}
});
} : function() { return this; };
/**
* Removes any png hack that may have been applied previously
*
* $('img[@src$=.png]').iunfixpng();
* @desc revert hack on all images with png extensions
*
* $('#panel, img[@src$=.png]').iunfixpng();
* @desc revert hack on element #panel and all images with png extensions
*
* @name iunfixpng
*/
$.fn.iunfixpng = hack.ltie7 ? function() {
return this.each(function() {
var $$ = $(this);
var src = $$.css('filter');
if (src.match(/src=["']?(.*\.png([?].*)?)["']?/i)) { // get img source from filter
src = RegExp.$1;
if ($$.is('img') || $$.is('input')) {
$$.attr({src:src}).css({filter:''});
} else {
$$.css({filter:'', background:'url('+src+')'});
}
}
});
} : function() { return this; };
/**
* positions selected item relatively
*/
$.fn.positionFix = function() {
return this.each(function() {
var $$ = $(this);
var position = $$.css('position');
if (position != 'absolute' && position != 'relative') {
$$.css({position:'relative'});
}
});
};
})(jQuery);(function($) {
$.fn.shadowEnable = function() { return $(this).find("+ .fx-shadow").show().end(); };
$.fn.shadowDisable = function() { return $(this).find("+ .fx-shadow").hide().end(); };
$.fn.shadowDestroy = function() { return $(this).find("+ .fx-shadow").remove().end(); };
$.fn.shadow = function(options) {
options = $.extend({
offset: 1,
opacity: 0.2,
color: "#000",
monitor: false
}, options || {});
options.offset -= 1;
return this.each(function() {
// Remove an existing shadow if it exists
var $element = $(this).shadowDestroy(),
// Create a shadow element
$shadow = $("