$(document).ready(function(){ // PNG transparency fix $(document).load(function(){ pngFix(); }); // Round body_main top corners $("#body_main").corner("top"); $(".right_button").corner().parent().corner(); $(".port_full").corner(); $("#blog_twitter").corner("bottom"); // Icon hover effects for(var i = 1; i <= 8; i++){doFade(i);} // Portfolio fading box $('#portfolio').innerfade({ speed: 'normal', timeout: 4000, type: 'sequence', containerheight: '200px' }); // Image lightbox (prettyPhoto) $("a[rel^='prettyOverlay'],a[rel^='prettyPhoto']").prettyPhoto({ opacity: 0.45, allowresize: true }); // About us services toggling $('ul.slide li').click(function(event) { if (event.target == this) {$(this).find('ul.slideSub').slideToggle();} }); $('ul.slideSub').css('display', 'none'); // About us services item hover $('ul.slideSub li').hover(function(event){ $(this).css('background', 'url("images/site/arrow2.png") left no-repeat'); if(event.target == this){ $(this).css('color', '#FFFFFF'); } }, function(event){ $(this).css('background', 'url("images/site/arrow.png") left no-repeat'); if(event.target == this){ $(this).css('color', '#7E7E7F'); } }); // Portfolio full list hover $('.port_full').hover(function(){ $(this).css('background', '#000000');; }, function(){ $(this).css('background', ' #101011'); }); });