var $j=jQuery.noConflict();
$j(function(){$j(window).bind('load',function(){var preload=new Array();$j(".hover").each(function(){s=$j(this).attr("src").replace(/\.(.+)$/i,"_f2.$1");preload.push(s)});var img=document.createElement('img');$j(img).bind('load',function(){if(preload[0]){this.src=preload.shift();}}).trigger('load');});$j(".gallery").click(function(){$j("#big").attr("src","images/img_servicedetail_0"+$j(this).attr("href").replace("#","")+".jpg");});$j(".hover").hover(function(){if($j(this).is("img")){$j(this).attr("src",$j(this).attr("src").replace("_f2",""));var temp=$j(this).attr("src").split(".");var name='';for(var i=0;i<temp.length;i++)
{if(i==temp.length-1)
{var extension=temp[i];}
else
{if(temp[i]=='')
temp[i]='.';name+=temp[i];}}
$j(this).attr("src",name+"_f2."+extension);}},function(){if($j(this).is("img")){$j(this).attr("src",$j(this).attr("src").replace("_f2",""));}});$j("input").hover(function(){if($j(this).attr("type")=='image'){$j(this).attr("src",$j(this).attr("src").replace("_f2",""));var temp=$j(this).attr("src").split(".");var name='';for(var i=0;i<temp.length;i++)
{if(i==temp.length-1)
{var extension=temp[i];}
else
{if(temp[i]=='')
temp[i]='.';name+=temp[i];}}
$j(this).attr("src",name+"_f2."+extension);}},function(){if($j(this).attr("type")=='image'){$j(this).attr("src",$j(this).attr("src").replace("_f2",""));}});$j(".nav").superfish({animation:{opacity:"show",height:"show"}});$j(".nav2").superfish({animation:{opacity:"show",height:"show"}});});
function extraiScript(texto){var ini=0;while(ini!=-1){ini=texto.indexOf('<script',ini);if(ini>=0){ini=texto.indexOf('>',ini)+1;var fim=texto.indexOf('</script>',ini);codigo=texto.substring(ini,fim);novo=document.createElement("script");novo.text=codigo;document.body.appendChild(novo);}}}

