//************************************************************************//
//   QShop E-Commerce Solutions                                           //
//   Copyright @ VISUAL TECHNOLOGIES INC  2002-2007                       //
//   http://qshop.com.pl qshop@qshop.com.pl                               //
//************************************************************************//
//   This software is copyrighted, do not attempt to copy                 //
//   without permission                                                   //
//************************************************************************//
var offset = 0;
var pre_offset = 150;
function ajax_cart_main(current_theme) {
	this.theme = current_theme;
	this.ajax_cart_view = ajax_cart_view;
	this.ajax_cart_pos = ajax_cart_pos;
}
function ajax_cart_view() {
	with (this) { 
		document.write("<div id='loader' style='width:125px;left:400px;top:150px;z-index:100;position:absolute;height: 220px;'>\n");
		document.write("<div class='czp_in' style='padding-left:0px' class='body'>\n");
		document.write("<img src='"+dbv+"themes/"+theme+"/"+lang+"/button79.gif' alt=''/></div>\n");
		document.write("<div class='czp_in' id='ajax_cart_content' align='left'></div>\n");
		document.write("</div>\n");
	}
}
function ajax_cart_pos(offset) {
	with (this) { 
		left=((SCREEN_SIZE('width')-1024)/2)+1014;
		GE('loader').style.left=left+'px';
		GE('loader').style.top=offset+pre_offset+'px';
	}
}
if(show_ajax_storage==true) {
	ACV = new ajax_cart_main(current_theme);
	ACV.ajax_cart_view();
	ACV.ajax_cart_pos(offset);
}
function window_scrolling() {
	try {
		left=((SCREEN_SIZE('width')-1024)/2)+1014;
		GE('baner').style.left=left+'px';
		GE('baner').style.top=offset+150+pre_offset+'px';
		GE('baner').style.display = '';
	}
	catch(error) {
		
	}
	if(show_ajax_storage==true) {
		ACV.ajax_cart_pos(SCREEN_OFFSET());
	}
}
