this.tooltip = function(){	
	/* CONFIG */		
		xOffset = 30;
		yOffset = -30;		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result		
	/* END CONFIG */		
	$("a.tooltip").hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		$("body").append("<p id='tooltip'>"+ this.t +"</p>");
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");		
    },
	function(){
		this.title = this.t;		
		$("#tooltip").remove();
    });	
	$("a.tooltip").mousemove(function(e){
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};
 
 $(document).ready(function(){
 
 	//$(document).pngFix(); 
 var IE6 = (navigator.userAgent.indexOf("MSIE 6")>=0) ? true : false;
if(IE6){
   $('#shoppe').hover(function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/ie_shoppe-rollover.png)'}); 
   }, function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/ie_shoppe-plain.png)'}); 
   });
   
   $('#inspire').hover(function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/ie_inspire-rollover.png)'}); 
   }, function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/ie_inspire-plain.png)'}); 
   });
   
   $('#blog').hover(function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/ie_blog-rollover.png)'}); 
   }, function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/ie_blog-plain.png)'}); 
   });
   
   $('#about').hover(function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/ie_about-rollover.png)'}); 
   }, function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/ie_about-plain.png)'}); 
   });
   
   $('#home').hover(function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/ie_home-rollover.png)'}); 
   }, function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/ie_home-plain.png)'}); 
   });
   
   $('#contact').hover(function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/ie_contact-rollover-zen.png)'}); 
   }, function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/ie_contact-plain.png)'}); 
   });
}

else{
   $('#shoppe').hover(function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/shoppe-rollover.png)'}); 
   }, function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/shoppe-plain.png)'}); 
   });
   
   $('#inspire').hover(function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/inspire-rollover.png)'}); 
   }, function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/inspire-plain.png)'}); 
   });
   
   $('#blog').hover(function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/blog-rollover.png)'}); 
   }, function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/blog-plain.png)'}); 
   });
   
   $('#about').hover(function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/about-rollover.png)'}); 
   }, function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/about-plain.png)'}); 
   });
   
   $('#home').hover(function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/home-rollover.png)'}); 
   }, function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/home-plain.png)'}); 
   });
   
   $('#contact').hover(function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/contact-rollover-zen.png)'}); 
   }, function() { 
     $(this).css({backgroundImage: 'url(images/rollovers/contact-plain.png)'}); 
   });
}
    $('#magnets').animate({
        left: "360px"}, "slow");
	
	$('#photographers').animate({
		left: "550px"}, "slow");
	
	$('#jewelry').animate({
		top: "410px"}, "slow");
	
	$('#designer').animate({
		top: "400px",
		left: "360px"}, "slow");
	
	$('#walls').animate({
		top: "400px",
		left: "550px"}, "slow");
	
	tooltip();
	
	$('a.lightbox').lightBox();
	
	//$.preloadCssImages();
  
})
