jQuery(document).ready(function(){
        
    $(".item_list img,.item_block img").lazyload({
             placeholder : "images/grey.gif",
             effect      : "fadeIn",
             threshold   : "200"             
          }); 
    
    $('.current_search li ul li').click(function(){ 
        $('.current_item').html($(this).text());       
        $('#fromgroup').val($('input',this).val());                     
    });
    
          
    $('li:last-child').addClass('last');              
    $("#catloglist li:last-child,#subcontainernevigation li:last-child").addClass("last");                       
          
     $(".compare").hover(function(){
        $(".compare_item",this).fadeTo("fast", 1.0);
     },function(){
        $(".compare_item",this).fadeTo("fast", 0);
     });          
 }); 
 
       
function popupWindow(url){ 
    $.post(url, function (data, textStatus) {        
        $('#getData').html(data);
        $('#quick_checkout').show('fast');
        centerThis('.popupWindow');                         		     
    });           
}  
function hidetab1(){
    $('#quick_checkout').hide('fast');
    $('#getData').html('');
 } 
function centerThis(div) {     
    $(div).css("margin-top","-"+$(div).height() / 2+"px");
    $(div).css("margin-left","-"+$(div).width() / 2+"px");         
 } 
function SelectChildren(element){    
    if($("#"+element).is(':checked')){
        $("."+element).attr('checked',true);
    }else{
        $("."+element).attr('checked',false);
    }
}     
