jQuery.noConflict();
(function($){$.fn.inputfocus=function(params){params=$.extend({focus_class:"focus",value:""},params);this.each(function(){$(this).focus(function(){$(this).addClass(params.focus_class);this.value=(this.value==params.value)?'':this.value;});$(this).blur(function(){$(this).removeClass(params.focus_class);this.value=(this.value=='')?params.value:this.value;});});return this;};})(jQuery);


(function($){

$(document).ready(function(){
    
    $('.login').click(function(){
        $('#boxlogin').fadeToggle();
        return false;
    });
    
    $('input#username').inputfocus({value: "username"});
    $('input#password').inputfocus({value: "password"});
    
    $("a[rel^='gallery']").colorbox();
    
    
    
    //IE
    if($.browser.msie) {
    	var zIndexNumber = 1000;
    	$('div').not('.product,.product_image').each(function() {
    		$(this).css('zIndex', zIndexNumber);
    		zIndexNumber -= 10;
    	});
    	
    	
    	$('#categories li.parent').hover(function(){
    	    $('.product:first-child .product_image').css('visibility','hidden');
    	},function(){
            $('.product:first-child .product_image').css('visibility','visible');
    	});
    	
    }
    
    //Webkit browsers 
    if($.browser.safari) {
        $('#wrapper').css({
            'background-position' : 'center -4px'
        });
    }

});

/*
$(window).load(function() {
    $('#banner').orbit({
        directionalNav: true,
        captions: false,
        advanceSpeed: 8000
    });
});*/

})(jQuery);
