You don't need to know a thing about Magento to handle your problem.
The site you linked is using both jQuery and Prototype. If you look at the value of $
in the console, it's the main jQuery
function.
> $
function (e,n){return new x.fn.init(e,n,t)}
I can't say for sure why that is, but my first area of investigation would be the multiple jQuery libraries you're including. Near the top of the page you use
<script type="text/javascript" src="http://loja.viavini.com.br/js/my_ibanner/jquery.js"></script>
<script type="text/javascript" src="http://loja.viavini.com.br/js/my_ibanner/jquery.noconflict.js"></script>
which would normally be enough to have jQuery and prototype behave together. However, later in the page you include another jQuery library
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
The second jQuery redefines $
, but doesn't re-do a call to jQuery.noConflict()
. This means prototype and jQuery can't co-exist on your page anymore.
The right thing to do would be determine which version of jQuery your site needs, and ensure it only includes that single library, followed by a call to the no conflict method.
The expedient thing to do would be find the insertion of the 2.0.0
jQuery, and add a no-conflict call after that — either in script block, pr via the same <script type="text/javascript" src="http://loja.viavini.com.br/js/my_ibanner/jquery.noconflict.js"></script>
tag.