$("#detale .left LI").removeClass ("odd");
$("#detale .left LI:odd").addClass ("odd");

$("#detale .right LI").removeClass ("odd");
$("#detale .right LI:odd").addClass ("odd");

var winPhotoZoom	= new xWindow ('winPZoom', 		200, 200, 0,   0,   0, 0, 1, 1, 0, 0);
var winPrint		= new xWindow ('winPrint', 		800, 600, 0,   0,   0, 0, 1, 1, 0, 0);
var winCalculator	= new xWindow ('winCalculator', 650, 250, 100, 100, 0, 0, 1, 1, 0, 0);
var winAgent		= new xWindow ('winAgent', 		500, 250, 100, 100, 0, 0, 1, 1, 0, 0);
var winRequest		= new xWindow ('winAgent', 		720, 470, 100, 100, 0, 0, 1, 1, 0, 0);
var winSend			= new xWindow ('winSend', 		600, 370, 100, 100, 0, 0, 1, 1, 0, 0);

// zoom
$("#gallery IMG").click (function () {
	var winPhotoZoom	= new xWindow ('winPZoom', 		200, 200, 0,   0,   0, 0, 1, 1, 0, 0);
	winPhotoZoom.load("/adds/" + lang + "catproPhoto/" + offer_no +"/" + $(this).attr ("id").match(/[\d]+$/));
});

// print
$(".print").click (function () {
	var winPrint		= new xWindow ('winPrint', 		800, 600, 0,   0,   0, 0, 1, 1, 0, 0);
	winPrint.load("/adds/" + lang + "catproPrint/" + offer_no + "/");
	return false;
});

// polec
$(".polec").click (function () {
	var winSend			= new xWindow ('winSend', 		600, 370, 100, 100, 0, 0, 1, 1, 0, 0);
	winSend.load("/adds/" + lang + "catproSendToFrend/" + offer_no + "/");
	return false;
});

// request
$(".pytanie").click (function () {
	var winRequest		= new xWindow ('winAgent', 		720, 470, 100, 100, 0, 0, 1, 1, 0, 0);
	winRequest.load("/adds/" + lang + "catproRequests/" + offer_no + "/");
	return false;
});

$(".dotted .add").click (function () {
	$.ajax ({
		url: "/adds/" + lang + "catproBasket/add/" + offer_no + "/",
		cache: false,
		success: function (html){
			if (html) {
				$(".dotted .add").addClass ("ds_n");
				updateBaskerList ()
			}
		}
	});
	return false;
})
