function showBasketInfo() {
	d=document.getElementById('basketInfoText');
	d2=document.getElementById('ordering');
	pc=getCookieCount('prod');	
	psum=getCookieValueSum('prod');
	if (pc==0) {d.innerHTML="В вашей корзине<br>нет товаров";d2.style.visibility='hidden';}
	else {d.innerHTML="В вашей корзине "+pc+" товаров<br>на сумму "+psum+" рублей";d2.style.visibility='visible';}
	
}
function inpSearch(obj) {
	if (obj.value=='Поиск') obj.value='';
}
isIE6CSS = (document.compatMode && document.compatMode.indexOf('CSS1') >= 0)?true : false;
function getInsideWindowWidth() {if (window.innerWidth) {return window.innerWidth;} else if (isIE6CSS) {return document.body.parentElement.clientWidth; } else if (document.body && document.body.clientWidth) {return document.body.clientWidth;} return 0; }
function getInsideWindowHeight() {if (window.innerHeight) {return window.innerHeight;} else if (isIE6CSS) {return document.body.parentElement.clientHeight;} else if (document.body && document.body.clientHeight) {return document.body.clientHeight;} return 0;} 
function showInfoWin() {
	d=document.getElementById('infowin');
	d.style.left=(getInsideWindowWidth()/2-141);
	d.style.top=(getInsideWindowHeight()/2-45)+document.body.scrollTop;
	d.style.display='block';
	timeoutIW = setTimeout('closeInfoWin()','5000');  
} 
function closeInfoWin() {
	clearTimeout(timeoutIW);
	d=document.getElementById('infowin');
	d.style.display='none';
	d.style.left=0;
	d.style.top=0;	
} 