$(document).ready(function(){
    $(".lightbox").lightbox({ fitToScreen : true });
	
	 $('#indexheader_left > ul').kwicks({  
        min : 25,  
        spacing : 1,  
        isVertical : true,  
        sticky : true
    });
	
	$('#indexheader_left > ul li a').hover(function(){
		var catid=$(this).attr('href').split('/')[3];
		$('#indexheader_right').html( '<img src="uploads/category/' + images[catid] + '" />' );
	});
	
	$('#indexheader_left ul li a:first').trigger('mouseover');
	
});

var popUpWin=0;

function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = window.open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}


