
$(window).load(function(){
$("")
.each(function(i, o) {
var TheImage = $(this).children("img");
$(this)
.css({"display": "block", "position": "relative"})
.append('<div class="rolloverlayer" style="width:' + $(TheImage).outerWidth() + 'px; height:' + $(TheImage).outerHeight() + 'px;">&nbsp;</div>')
;
})
.mouseover(function(e) {
$(this).children(".rolloverlayer").show();
})
.mouseout(function(e) {
$(this).children(".rolloverlayer").hide();
})
;
});
var customlg199569_TotalItems;
var customlg199569_AnimationTime = 1000;
var customlg199569_PauseTime = 5000;
var customlg199569_CurrentItem = 0;
var customlg199569_TimeoutTicket;
var customlg199569_NextAnimation = ""; 
var customlg199569_NextAnimationReverse = ""; 
var customlg199569_ItemMaxHeight;
var customlg199569_TotalStaticItemHeight;
var customlg199569_NavLinksHeight;
function customlg199569_ResetHeight() {
customlg199569_ItemMaxHeight = 0;
customlg199569_NavLinksHeight = 0;
$("#customlg199569 #customlg199569midul li[class$=item]").each(function() {
customlg199569_ThisHeight = $(this).height(); 
if($(this).css("padding-top") && $(this).css("padding-top").length) customlg199569_ThisHeight += Number($(this).css("padding-top").match(/\d+/));
if($(this).css("padding-bottom") && $(this).css("padding-bottom").length) customlg199569_ThisHeight += Number($(this).css("padding-bottom").match(/\d+/));
customlg199569_ItemMaxHeight = Math.max(customlg199569_ItemMaxHeight, customlg199569_ThisHeight);
});
customlg199569_TotalStaticItemHeight = 0;
$("#customlg199569 #customlg199569midul li[class$=static]").each(function() {
if(!$(this).css("display") || !/^none$/.test($(this).css("display"))) 
{
customlg199569_TotalStaticItemHeight+= $(this).height();
if($(this).css("padding-top") && $(this).css("padding-top").length) customlg199569_TotalStaticItemHeight += Number($(this).css("padding-top").match(/\d+/));
if($(this).css("padding-bottom") && $(this).css("padding-bottom").length) customlg199569_TotalStaticItemHeight += Number($(this).css("padding-bottom").match(/\d+/));
};
});
customlg199569_ItemMaxHeight += customlg199569_TotalStaticItemHeight;
if ($("#customlg199569 #customlg199569midul li[class$=navlinks]").length) {
customlg199569_NavLinksHeight = $("#customlg199569 #customlg199569midul li[class$=navlinks]").height();
}
else if ($("#customlg199569 #customlg199569midul li[class$=navlinksabsolute]").length) {
customlg199569_NavLinksHeight = 0; 
}
$("#customlg199569 #customlg199569midul").css({height: Number(customlg199569_ItemMaxHeight + customlg199569_NavLinksHeight) + "px"});
$("#customlg199569 #customlg199569midul li[class$=navlinks]").css({top: customlg199569_ItemMaxHeight + "px"});
$("#customlg199569 #customlg199569midul li[class$=item]").css({top: customlg199569_TotalStaticItemHeight + "px"});
}
$().ready(function() {
customlg199569_TotalItems = $("#customlg199569 #customlg199569midul li[class$=item]").length;
$("#customlg199569 #customlg199569midul li[class$=sep]").hide();
$("#customlg199569 #customlg199569midul").css({position: "relative", 
overflow: "hidden"});
$("#customlg199569 #customlg199569midul li[class$=navlinks]").css({position: "absolute", left: 0});
$("#customlg199569 #customlg199569midul li[class$=item]")
.css({display: "none", position: "absolute", left: 0})
.each(function(i) {
$(this).attr("listindex", i); 
});
customlg199569_ResetHeight();
customlg199569_DoStep(0, 0);
$("#customlg199569 a[id$=previtem]").click(function(){
if(customlg199569_NextAnimationReverse.length) {
window.clearTimeout(customlg199569_TimeoutTicket);
customlg199569_AutoAdvance = false; 
eval(customlg199569_NextAnimationReverse);
window.setTimeout('customlg199569_DoStep((customlg199569_CurrentItem - 1 + customlg199569_TotalItems) % customlg199569_TotalItems, 1)', customlg199569_AnimationTime / 2); 
};
return false;
});
$("#customlg199569 a[id$=nextitem]").click(function(){
if(customlg199569_NextAnimationReverse.length) {
window.clearTimeout(customlg199569_TimeoutTicket);
customlg199569_AutoAdvance = false;
eval(customlg199569_NextAnimation); 
window.setTimeout('customlg199569_DoStep((customlg199569_CurrentItem + 1) % customlg199569_TotalItems, 0)', customlg199569_AnimationTime / 2);
};
return false;
});
$("#customlg199569 a[id^=customlg199569itemnav_]").click(function(){
var ItemIndex = Number($(this).attr("id").replace(/^customlg199569itemnav_/, '')) - 1;
if(customlg199569_NextAnimationReverse.length && ItemIndex != customlg199569_CurrentItem) 
{
window.clearTimeout(customlg199569_TimeoutTicket);
customlg199569_AutoAdvance = false;
if(ItemIndex >= customlg199569_CurrentItem) {
eval(customlg199569_NextAnimation);
}
else {
eval(customlg199569_NextAnimationReverse);
};
window.setTimeout('customlg199569_DoStep(' + ItemIndex + ', ' + (ItemIndex >= customlg199569_CurrentItem ? 0 : 1) + ')', customlg199569_AnimationTime / 2);
};
return false;
});
$("#customlg199569 a[id^=customlg199569itemnav_]").mouseover(function(){
if($(this).children().attr("src")==$(this).attr("image") && $(this).attr("imageover").length) {
$(this).children().attr("src", $(this).attr("imageover"));
};
});
$("#customlg199569 a[id^=customlg199569itemnav_]").mouseout(function(){
if($(this).children().attr("src")==$(this).attr("imageover") && $(this).attr("image")) {
$(this).children().attr("src", $(this).attr("image"));
};
});
}); 
function customlg199569_DoStep(i, dir) { 
if($("#customlg199569itemnav_" + (customlg199569_CurrentItem+1)).length && $("#customlg199569itemnav_" + (customlg199569_CurrentItem+1)).children().attr("src")==$("#customlg199569itemnav_" + (customlg199569_CurrentItem+1)).attr("imageselected") && $("#customlg199569itemnav_" + (customlg199569_CurrentItem+1)).attr("image").length) {
$("#customlg199569itemnav_" + (customlg199569_CurrentItem+1)).children().attr("src", $("#customlg199569itemnav_" + (customlg199569_CurrentItem+1)).attr("image"));
};
customlg199569_CurrentItem = i;
if($("#customlg199569itemnav_" + (customlg199569_CurrentItem+1)).length && $("#customlg199569itemnav_" + (customlg199569_CurrentItem+1)).attr("imageselected")) {
$("#customlg199569itemnav_" + (customlg199569_CurrentItem+1)).children().attr("src", $("#customlg199569itemnav_" + (customlg199569_CurrentItem+1)).attr("imageselected"));
};
$("#customlg199569 #customlg199569midul li[class$=item][listindex=" + i + "]").fadeIn(customlg199569_AnimationTime / 2,
function() {
window.clearTimeout(customlg199569_TimeoutTicket); 
customlg199569_NextAnimation = customlg199569_NextAnimationReverse = 'customlg199569_NextAnimation=customlg199569_NextAnimationReverse=""; $("#customlg199569 #customlg199569midul li[class$=item][listindex=' + i + ']").fadeOut(customlg199569_AnimationTime / 2, function(){if(customlg199569_AutoAdvance) customlg199569_DoStep(' + ((i + 1) % customlg199569_TotalItems) + ');})';
customlg199569_AutoAdvance = true;
customlg199569_TimeoutTicket = window.setTimeout(customlg199569_NextAnimation, customlg199569_PauseTime);
}
);
}
var customlg199268_TotalItems;
var customlg199268_AnimationTime = 1000;
var customlg199268_PauseTime = 5000;
var customlg199268_CurrentItem = 0;
var customlg199268_TimeoutTicket;
var customlg199268_NextAnimation = ""; 
var customlg199268_NextAnimationReverse = ""; 
var customlg199268_ItemMaxHeight;
var customlg199268_TotalStaticItemHeight;
var customlg199268_NavLinksHeight;
function customlg199268_ResetHeight() {
customlg199268_ItemMaxHeight = 0;
customlg199268_NavLinksHeight = 0;
$("#customlg199268 #customlg199268midul li[class$=item]").each(function() {
customlg199268_ThisHeight = $(this).height(); 
if($(this).css("padding-top") && $(this).css("padding-top").length) customlg199268_ThisHeight += Number($(this).css("padding-top").match(/\d+/));
if($(this).css("padding-bottom") && $(this).css("padding-bottom").length) customlg199268_ThisHeight += Number($(this).css("padding-bottom").match(/\d+/));
customlg199268_ItemMaxHeight = Math.max(customlg199268_ItemMaxHeight, customlg199268_ThisHeight);
});
customlg199268_TotalStaticItemHeight = 0;
$("#customlg199268 #customlg199268midul li[class$=static]").each(function() {
if(!$(this).css("display") || !/^none$/.test($(this).css("display"))) 
{
customlg199268_TotalStaticItemHeight+= $(this).height();
if($(this).css("padding-top") && $(this).css("padding-top").length) customlg199268_TotalStaticItemHeight += Number($(this).css("padding-top").match(/\d+/));
if($(this).css("padding-bottom") && $(this).css("padding-bottom").length) customlg199268_TotalStaticItemHeight += Number($(this).css("padding-bottom").match(/\d+/));
};
});
customlg199268_ItemMaxHeight += customlg199268_TotalStaticItemHeight;
if ($("#customlg199268 #customlg199268midul li[class$=navlinks]").length) {
customlg199268_NavLinksHeight = $("#customlg199268 #customlg199268midul li[class$=navlinks]").height();
}
else if ($("#customlg199268 #customlg199268midul li[class$=navlinksabsolute]").length) {
customlg199268_NavLinksHeight = 0; 
}
$("#customlg199268 #customlg199268midul").css({height: Number(customlg199268_ItemMaxHeight + customlg199268_NavLinksHeight) + "px"});
$("#customlg199268 #customlg199268midul li[class$=navlinks]").css({top: customlg199268_ItemMaxHeight + "px"});
$("#customlg199268 #customlg199268midul li[class$=item]").css({top: customlg199268_TotalStaticItemHeight + "px"});
}
$().ready(function() {
customlg199268_TotalItems = $("#customlg199268 #customlg199268midul li[class$=item]").length;
$("#customlg199268 #customlg199268midul li[class$=sep]").hide();
$("#customlg199268 #customlg199268midul").css({position: "relative", 
overflow: "hidden"});
$("#customlg199268 #customlg199268midul li[class$=navlinks]").css({position: "absolute", left: 0});
$("#customlg199268 #customlg199268midul li[class$=item]")
.css({display: "none", position: "absolute", left: 0})
.each(function(i) {
$(this).attr("listindex", i); 
});
customlg199268_ResetHeight();
customlg199268_DoStep(0, 0);
$("#customlg199268 a[id$=previtem]").click(function(){
if(customlg199268_NextAnimationReverse.length) {
window.clearTimeout(customlg199268_TimeoutTicket);
customlg199268_AutoAdvance = false; 
eval(customlg199268_NextAnimationReverse);
customlg199268_DoStep((customlg199268_CurrentItem - 1 + customlg199268_TotalItems) % customlg199268_TotalItems, 1);
};
return false;
});
$("#customlg199268 a[id$=nextitem]").click(function(){
if(customlg199268_NextAnimationReverse.length) {
window.clearTimeout(customlg199268_TimeoutTicket);
customlg199268_AutoAdvance = false;
eval(customlg199268_NextAnimation); 
customlg199268_DoStep((customlg199268_CurrentItem + 1) % customlg199268_TotalItems, 0);
};
return false;
});
$("#customlg199268 a[id^=customlg199268itemnav_]").click(function(){
var ItemIndex = Number($(this).attr("id").replace(/^customlg199268itemnav_/, '')) - 1;
if(customlg199268_NextAnimationReverse.length && ItemIndex != customlg199268_CurrentItem) 
{
window.clearTimeout(customlg199268_TimeoutTicket);
customlg199268_AutoAdvance = false;
if(ItemIndex >= customlg199268_CurrentItem) {
eval(customlg199268_NextAnimation);
}
else {
eval(customlg199268_NextAnimationReverse);
};
customlg199268_DoStep(ItemIndex, ItemIndex >= customlg199268_CurrentItem ? 0 : 1);
};
return false;
});
$("#customlg199268 a[id^=customlg199268itemnav_]").mouseover(function(){
if($(this).children().attr("src")==$(this).attr("image") && $(this).attr("imageover").length) {
$(this).children().attr("src", $(this).attr("imageover"));
};
});
$("#customlg199268 a[id^=customlg199268itemnav_]").mouseout(function(){
if($(this).children().attr("src")==$(this).attr("imageover") && $(this).attr("image")) {
$(this).children().attr("src", $(this).attr("image"));
};
});
}); 
function customlg199268_DoStep(i, dir) { 
if($("#customlg199268itemnav_" + (customlg199268_CurrentItem+1)).length && $("#customlg199268itemnav_" + (customlg199268_CurrentItem+1)).children().attr("src")==$("#customlg199268itemnav_" + (customlg199268_CurrentItem+1)).attr("imageselected") && $("#customlg199268itemnav_" + (customlg199268_CurrentItem+1)).attr("image").length) {
$("#customlg199268itemnav_" + (customlg199268_CurrentItem+1)).children().attr("src", $("#customlg199268itemnav_" + (customlg199268_CurrentItem+1)).attr("image"));
};
customlg199268_CurrentItem = i;
if($("#customlg199268itemnav_" + (customlg199268_CurrentItem+1)).length && $("#customlg199268itemnav_" + (customlg199268_CurrentItem+1)).attr("imageselected")) {
$("#customlg199268itemnav_" + (customlg199268_CurrentItem+1)).children().attr("src", $("#customlg199268itemnav_" + (customlg199268_CurrentItem+1)).attr("imageselected"));
};
customlg199268_ULWidth = $("#customlg199268 #customlg199268midul").width();
$("#customlg199268 #customlg199268midul li[class$=item][listindex=" + i + "]")
.css({display: "block", left: dir==1 ? "-" + customlg199268_ULWidth + "px" : customlg199268_ULWidth + "px"})
.animate({left: 0}, {duration: customlg199268_AnimationTime,
complete: function() {
window.clearTimeout(customlg199268_TimeoutTicket);
customlg199268_NextAnimation = 'customlg199268_NextAnimation=customlg199268_NextAnimationReverse=""; $("#customlg199268 #customlg199268midul li[class$=item][listindex=' + i + ']").animate({left: "-' + customlg199268_ULWidth + 'px"}, {duration: customlg199268_AnimationTime}); if(customlg199268_AutoAdvance) customlg199268_DoStep(' + ((i + 1) % customlg199268_TotalItems) + ');';
customlg199268_NextAnimationReverse = 'customlg199268_NextAnimation=customlg199268_NextAnimationReverse=""; $("#customlg199268 #customlg199268midul li[class$=item][listindex=' + i + ']").animate({left: "' + customlg199268_ULWidth + 'px"}, {duration: customlg199268_AnimationTime}); if(customlg199268_AutoAdvance) customlg199268_DoStep(' + ((i + 1) % customlg199268_TotalItems) + ');';
customlg199268_AutoAdvance = true;
customlg199268_TimeoutTicket = window.setTimeout(customlg199268_NextAnimation, customlg199268_PauseTime);
}
})
;
}

