$(function() {
	/*
	jQuery('div.description a.more').click(function(){
		if(jQuery(this).attr('href')=='javascript:void(0)'){
			jQuery('ul.offersList li').addClass('blurIt');
			jQuery(this).parent().parent().parent().removeClass('blurIt');
			jQuery('div.loading').height(jQuery('div.tx-offers-pi1').height()).width(jQuery('div.singleLayer').width());
			jQuery('div.loadingContent').css('marginTop',(jQuery('div.tx-offers-pi1').height()/2));
			jQuery('div.singleLayer').height(jQuery('div.tx-offers-pi1').height());
			jQuery('div.singleLayer').find('div.singleLayerContentRight').height(jQuery('div.tx-offers-pi1').height());
			jQuery('div.singleLayer').show();
		}
	});
	jQuery('a.openLink').click(function(){ jQuery(this).parent().toggleClass('active');	jQuery(this).parent().find('ul').toggle();});
	*/
	jQuery('div.singleLayer a.closeBtn').click(function(){
		jQuery('div.singleLayer').hide();
		jQuery('ul.offersList li').removeClass('blurIt');
		return false;
	});
	jQuery('a[@rel*=lightbox]').lightBox();
});
function displaySingleAJAX(elem,i){
	if(elem.attr('href')=='javascript:void(0)'){
		jQuery('ul.offersList li').addClass('blurIt');
		if(elem.hasClass('moreImg')){
			elem.parent().parent().removeClass('blurIt');
		} else {
			elem.parent().parent().parent().removeClass('blurIt');
		}
		jQuery('div.loading').height(jQuery('div.tx-offers-pi1').height()).width(jQuery('div.singleLayer').width());
		jQuery('div.loadingContent').css('marginTop',(jQuery('div.tx-offers-pi1').height()/2));
		jQuery('div.singleLayer').height(jQuery('div.tx-offers-pi1').height());
		jQuery('div.singleLayer').show();
		jQuery('div.loading').show();
	}
	tx_offers_pi1displaySingleAJAX('<xjxquery><q>tx_offers_pi1[showUid]='+i+'</q></xjxquery>');
}
function displaySingleDocDetailsAJAX(file){
	jQuery('div.loadingRight').height(jQuery('div.singleLayerContentRight').height()).width(jQuery('div.singleLayerContentRight').width());
	jQuery('div.loadingRightContent').css('marginTop',(jQuery('div.singleLayerContentRight').height()/2));
	jQuery('div.singleLayerContentRight').show();
	jQuery('div.loadingRight').show();
	tx_offers_pi1displaySingleDocDetailsAJAX('<xjxquery><q>tx_offers_pi1[file]='+file+'</q></xjxquery>');
}
