$j = jQuery;
/*
// HTML 5 History (jquery.address.js) //
jQuery_address_history = new Array();
$j.address
.state("http://www.shoptrans.com.br/antigo/")
.bind("init", function () {
})
.bind("change", function (event) {
var href = event.value.replace(/^http:\/\/www.shoptrans.com.br\/antigo\//, "")
.replace(/^\/antigo\//, "")
.replace(/^\//, ""),
site = $j(".site-conteudo");
if (jQuery_address_history[href] !== undefined) {
site.html(jQuery_address_history[href]);
} else {
jQuery_address_history[href] = site.html();
}
});
// ================================== //
*/
// ===== BANNER EXPANSIVO ====== //
$j(document).ready(function () {
$j(".publicidade.um a.banner") .mouseover(function() {
$j( this ).css( "overflow", "visible" );
})
.mouseout(function() {
$j( this ).css( "overflow", "hidden" );
});
});
// ============================= //
// Auto Ellipsis //
$j(document).ready(function () {
$j("*").each(function () {
var obj = $j(this);
if (obj.css("text-overflow").match(/ellipsis|['"]+/i) && !obj.css("white-space").match(/nowrap|['"]+/i)) obj.ellipsis({ live: true });
});
});
// ============= //
// Aumentar / diminuir tamanho da fonte //
$j(document).ready(function () {
var texto = $j(".conteudo .detalhes .texto *"),
manip = $j(".conteudo .sidebar .font-size-manipulate"),
incre = manip.find("a.increase"),
decre = manip.find("a.decrease"),
min = 10, max = 25;
incre.bind("click", function () {
var fs = parseInt(texto.css("font-size"));
if (fs < max) texto.css("font-size", ++fs + "px");
return false;
});
decre.bind("click", function () {
var fs = parseInt(texto.css("font-size"));
if (fs > min) texto.css("font-size", --fs + "px");
return false;
});
});
// ======================= //