function writeAlt(span){
	div = document.getElementById('bubble_'+span);
	div.style.display = 'inline';
	if (span == 'first') {
		div.style.left = '60px';
		div.style.top = '90px';	
	}
	else if (span == 'second'){
		div.style.left = '280px';
		div.style.top = '70px';
	}
	else if (span == 'third'){
		div.style.left = '400px';
		div.style.top = '62px';	
	}
	else if (span == 'fourth'){
		div.style.left = '400px';
		div.style.top = '60px';	
	}
}

function hideAlt(span){
		div = document.getElementById('bubble_'+span);
		div.style.display = 'none';
}

function correct(){
	if ($.browser.opera && ($.browser.version < 9.7)) {
		var div = document.getElementById('carousel');
		div.style.marginTop = '0px';
	}
	if ($.browser.opera && ($.browser.version > 9.7)) {
		var div = document.getElementById('main_table');
		div.style.marginTop = '-20px';
	}
	if ($.browser.msie) {
		//var div = document.getElementById('middle_menu');
		//div.style.marginTop = '17px';
	}
	
}



function carter(width){
	if (width < 1225){
		$("#basket").hide();
		$("#products2").show();
	} else {
		$("#basket").show();
		$("#products2").hide();
	}
}
function carSizeCorrect(){
	var w = (window.innerWidth ? window.innerWidth : (document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.offsetWidth));
	carter(w);
	var div = document.getElementById('carousel');
	if (div == null) return;
	w = w - 400;
	
	var count = Math.round((w / 200) - 0.5);
	/*
	var w2 = Math.round((w - 200 * count) / (count-1)); 
	w2 += 200; $('#carousel li').each(function(){this.style.width = w2+"px";});
	//*/
	div.style.width = 635+'px';//count * 200 ;	
}
//document.body.onresize();
