var KaSite = function() {};;
KaSite.startFader = function (idx) {
 return KaSite.fadeImg.apply(window, CommonLisp.append (function(lst, n){return lst && lst.length > n && lst[n];}(KaSite.__products__, idx),[function () {
 return window.setTimeout (function () {
 return KaSite.startFader (((idx + 1) % (KaSite.__products__ || []).length));
},2000);
}]));
};
;
KaSite.setOpacity = function (e,percent) {
e.style.opacity = "" + (percent / 100);

 return e.style.filter = ("alpha(opacity=" || "")  + ("" + percent || "")  + (")" || "") ;
};
;
KaSite.fadeImg = function (newHref,newUrl,newItem,callback) {
 return function() {
var img1 = WebthitethJs.$ ("img1");
var img2 = WebthitethJs.$ ("img2");
 return function() {
var func = function (percent) {
 return function () {
 return function() {if ((100 <= percent) !== false) {
 return function() {
img1.src = newUrl;

KaSite.setOpacity (img1,100);

if (newHref !== false) {
WebthitethJs.$ ("details-link").href = newHref;
;
} ;

if (newHref !== false) {
WebthitethJs.$ ("img-link").href = newHref;
;
} ;

if (newItem !== false) {
WebthitethJs.replaceChildren (WebthitethJs.$ ("currentitem"),document.createTextNode (newItem));
;
} ;

 return function() {if (callback !== false) {
 return callback ();;
}  else { return false; }}();}();;
}  else if (true !== false) {
 return function() {
KaSite.setOpacity (img1,(100 - percent));

KaSite.setOpacity (img2,percent);

 return window.setTimeout (func ((3 + percent)),20);}();;
}  else { return false; }}();
};
};
KaSite.setOpacity (img2,0);

img2.src = newUrl;

img2.style.display = "";

 return window.setTimeout (func (0),100);}();}();
};
;
KaSite.__allParties__ = false;;
KaSite.showParty = function (party) {

var __WEBTHITETH_SAFE__G17776 = function (it) {
 return function() {
WebthitethJs.$ (("link-" || "")  + (it || "") ).style.color = "";

 return WebthitethJs.hide (WebthitethJs.$ (("party-desc-" || "")  + (it || "") ));}();
};
var __WEBTHITETH_SAFE__G17777 = KaSite.__allParties__;
for (var __WEBTHITETH_SAFE__G17778 = 0 ; __WEBTHITETH_SAFE__G17778 < __WEBTHITETH_SAFE__G17777.length  ; __WEBTHITETH_SAFE__G17778++ ) {
 __WEBTHITETH_SAFE__G17776(__WEBTHITETH_SAFE__G17777[__WEBTHITETH_SAFE__G17778]);
}
;

WebthitethJs.$ (("link-" || "")  + (party || "") ).style.color = "white";

 return WebthitethJs.show (WebthitethJs.$ (("party-desc-" || "")  + (party || "") ));
};
;

