active_pict = 0;
var myrules = {
'#menu ul li a img' : function(el)
{
el.onmouseover = function()
{
if(el.src.indexOf("_hover") == -1)
el.src = el.src.replace(/\.png/, "_hover.png");
}
el.onmouseout = function()
{
if(el.src.indexOf("_hover") > 0)
el.src = el.src.replace(/_hover\.png/, ".png");
}
},
'#gallery.inactive' : function(el)
{
el.onmouseover = function()
{
$('gallery_sub').style.visibility = "visible";
}
el.onmouseout = function()
{
$('gallery_sub').style.visibility = "hidden";
}
},
'#onlineshop.inactive' : function(el)
{
el.onmouseover = function()
{
$('onlineshop_sub').style.visibility = "visible";
}
el.onmouseout = function()
{
$('onlineshop_sub').style.visibility = "hidden";
}
},
'#friends.inactive' : function(el)
{
el.onmouseover = function()
{
$('friends_sub').style.visibility = "visible";
}
el.onmouseout = function()
{
$('friends_sub').style.visibility = "hidden";
}
}
}
if( typeof Behaviour != "undefined")
Behaviour.register(myrules);
// function to change price when option is changed
function price_change(id)
{
var i = 0;
while($('price_'+i))
{
$('price_'+i).style.display="none";
i++;
}
$('price_'+id).style.display="block";
}
var dineng = {
src: '/themes/suenos_2009/js/sifr/dineng.swf'
};
sIFR.activate(dineng);
sIFR.replace(dineng, {
selector: 'h1',
wmode: 'transparent',
css: [ '.sIFR-root {text-align: right; color: #140064; font-size: 45px;margin-left:0;margin-right:0;text-transform:uppercase}' ]
});
/*if(typeof sIFR == "function")
{
sIFR.replaceElement(named({sSelector:"h1", sFlashSrc:"/themes/suenos_2009/js/sifr/dineng.swf", sColor:"#ffffff", sLinkColor:"#000000", sBgColor:"#000000", sHoverColor:"#CCCCCC", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=right"}));
}*/