$(document).ready(function(){
	$('#leftMenu ul li:last-child').css('border',0);
	$('div.begin ul li:last-child').css('margin-right',0);
	$('div.moreTitle h1:last-child').css('margin-right',0);
	$('.whiteCorner').append('<img src="'+root+'css/bl-white.png" alt="" style="position: absolute; bottom: 0; left: 0;" />');
	$('.whiteCorner').append('<img src="'+root+'css/br-white.png" alt="" style="position: absolute; bottom: 0; right: 0;" />');
	$('.whiteCorner').append('<img src="'+root+'css/tr-white.png" alt="" style="position: absolute; top: 0; right: 0;" />');
	$('.whiteCorner').append('<img src="'+root+'css/tl-white.png" alt="" style="position: absolute; top: 0; left: 0;" />');
	$('.trio li').not('.trio li ul li').append('<img src="'+root+'css/bl-white.png" alt="" style="position: absolute; bottom: 0; left: 0;" />');
	$('.trio li').not('.trio li ul li').append('<img src="'+root+'css/br-white.png" alt="" style="position: absolute; bottom: 0; right: 0;" />');
	$('.trio li').not('.trio li ul li').append('<img src="'+root+'css/tr-white.png" alt="" style="position: absolute; top: 0; right: 0;" />');
	$('.trio li').not('.trio li ul li').append('<img src="'+root+'css/tl-white.png" alt="" style="position: absolute; top: 0; left: 0;" />');
	
	$('.whiteCorner-top').append('<img src="'+root+'css/tl-white.png" alt="" style="position: absolute; top: 0; left: 0;" />');
	$('.whiteCorner-top').append('<img src="'+root+'css/tr-white.png" alt="" style="position: absolute; top: 0; right: 0;" />');
	
	$('#top_slideshow').cycle();
	
	$('.trio li:last-child').css('margin','0');
	$('.trio .trio li:last-child').css('padding-bottom','46px');
	
	//Spalvos
	var colors = new Array();
	var backgrounds = new Array();
	var i=0;
	$('#middle ul.trio li a').not($('#middle ul.trio li ul li a')).each(function(){
		$(this).addClass('li'+i);
		$(this).children('span').css('background','url('+root+'css/'+backgrounds[i++]+') 13px 50% no-repeat');
		if (i - 1 > 0) {
			$(this).children('span').css('padding-left', parseInt(($(this).children('span').css('padding-left')).replace('px', '')) + (12) * (i-1));
		}
	});
	interval();
	
	$('ul#productsList li a:first-child').not($('ul#productsList li:last-child a:first-child')).lightBox();
});

var i = 0;
function interval(){
	$('#mainMenu li.menu-last a,.blink').css('color',i==0?'#17c6ff':'#FFFFFF');
	i++;
	i = i == 2?0:i;
	setTimeout('interval()',700);
}

