jQuery(document).ready(function($) {
	$('a').each(function(){
		if( this.href.match(/\/l\/{1}/) || this.href.match(/\/LightboxView\/{1}/) ){
			$(this).addClass("lightbox");
		}
	});
  $('a.lightbox').each(function(){
  		if(this.href.indexOf('?')>=0){
  			this.href=this.href+'&popup=true';
  		}else{
  			this.href=this.href+'?popup=true';
  		}
  }).colorbox({opacity:.4});
  $('#mainZoom').click(function(event){
    	event.preventDefault();
  		$('#firstThumb').click();
  });
}); 

