
jQuery(function($){$(document).pngFix();$(document).ready(function(){if(navigator.userAgent.match(/MSIE (\d+(?:\.\d+)+(?:b\d*)?)/)=="MSIE 6.0,6.0"){return false;}
else{$('img').each(function()
{$(this).hide();$(this).fadeIn("slow");});}});$("#portfolio-list li a").click(function(){var seleccionado=$(this).text().toLowerCase();var speed=0;var pause=4000;$.scrollTo($('.porta'),500,{offset:-100});function newsticker()
{$('ul#listticker2').hide("fast");$('.portacentral2').hide("fast");$('ul#listticker2').show("slow");$('.portacentral2').show("slow");last=$('ul#listticker2 li div#'+seleccionado).parent().hide().remove();$('ul#listticker2').prepend(last);$('ul#listticker2 li:first').fadeOut('slow').animate({opacity:1},speed).fadeIn('slow').slideDown("slow",function(){})}
newsticker();return false;});$("#top").click(function(){$.scrollTo($('body'),500,{offset:-0});});$(".porta1 a").click(function(){$.scrollTo($('.porta'),500,{offset:-100});var speed=0;var pause=4000;function newsticker()
{$('ul#listticker2').hide("fast");$('.portacentral2').hide("fast");$('ul#listticker2').show("slow");$('.portacentral2').show("slow");last=$('ul#listticker2 li:last').hide().remove();$('ul#listticker2').prepend(last);$('ul#listticker2 li:first').fadeOut('slow').animate({opacity:1},speed).fadeIn('slow').slideDown("slow",function(){})}
newsticker();return false;});$(".porta2 a").click(function(){$.scrollTo($('.porta'),500,{offset:-100});$('ul#listticker2').hide("fast");$('.portacentral2').hide("fast");$('ul#listticker2').show("slow");$('.portacentral2').show("slow");var first=0;var speed=0;var pause=4000;function removeFirst(){first=$('ul#listticker2 li:first').html();$('ul#listticker2 li:first').animate({opacity:0},speed).slideUp("slow").fadeOut('slow',function(){$(this).hide().remove();});addLast(first);}
function addLast(first){last='<li style="display:none">'+first+'</li>';$('ul#listticker2').append(last)
$('ul#listticker2 li:last').animate({opacity:1},speed).fadeIn('slow',function(){})}
removeFirst();return false;});$(document).keydown(function(e){if(e.keyCode==39){$.scrollTo($('.porta'),500,{offset:-100});$('ul#listticker2').hide("fast");$('.portacentral2').hide("fast");$('ul#listticker2').show("slow");$('.portacentral2').show("slow");var first=0;var speed=0;var pause=4000;function removeFirst(){first=$('ul#listticker2 li:first').html();$('ul#listticker2 li:first').animate({opacity:0},speed).slideUp("slow").fadeOut('slow',function(){$(this).hide().remove();});addLast(first);}
function addLast(first){last='<li style="display:none">'+first+'</li>';$('ul#listticker2').append(last)
$('ul#listticker2 li:last').animate({opacity:1},speed).fadeIn('slow',function(){})}
removeFirst();return false;}else if(e.keyCode==37){$.scrollTo($('.porta'),500,{offset:-100});var speed=0;var pause=4000;function newsticker()
{$('ul#listticker2').hide("fast");$('.portacentral2').hide("fast");$('ul#listticker2').show("slow");$('.portacentral2').show("slow");last=$('ul#listticker2 li:last').hide().remove();$('ul#listticker2').prepend(last);$('ul#listticker2 li:first').fadeOut('slow').animate({opacity:1},speed).fadeIn('slow').slideDown("slow",function(){})}
newsticker();return false;};});$('.b1 a img').hover(function(){$('.b1 a img').each(function(){$('.b1 a img').animate({opacity:0.2},1);});$(this).animate({opacity:1.0},0);},function(){$('.b1 a img').each(function(){$('.b1 a img').stop();$('.b1 a img').animate({opacity:1.0},1);});});$(document).ready(function(){$('.preview-image').append('<span class="corners"></span>').hover(function(){$("img",this).stop().animate({top:"-54px"},{queue:false,duration:200});},function(){$("img",this).stop().animate({top:"0px"},{queue:false,duration:200});});});$(document).ready(function(){var first=0;var speed=700;var pause=4000;function removeFirst(){first=$('ul#listticker li:first').html();$('ul#listticker li:first').animate({opacity:0},speed).slideUp("slow").fadeOut('slow',function(){$(this).remove();});addLast(first);}
function addLast(first){last='<li style="display:none">'+first+'</li>';$('ul#listticker').append(last)
$('ul#listticker li:last').animate({opacity:1},speed).fadeIn('slow')}
interval=setInterval(removeFirst,pause);});});$(window).bind("load",function(){$('.protadescrip').show("slow");$('.protadescript').hide("fast");$('.protadescript').show("slow");});
