function brdrSize()
{
	var rightBrHeight = document.getElementById("rightbrtd").offsetHeight;
	document.getElementById("rightbrimg").style.height = rightBrHeight + "px";
	document.getElementById("leftbrimg").style.height = rightBrHeight + "px";
}

function tdSize()
{
var ndWD = document.getElementById("scrolltd").offsetWidth;
document.getElementById("Scroller-1").style.width = ndWD + "px";
}

function closeMyPopUp()
{
document.getElementById("myPopUp").style.display="none";
document.getElementById("myPopUp").innerHTML = "<div class='title' style=\"float: left; width:114px; height:25px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/images_2/wheretobuy_title.png');\"><img src='/images_2/wheretobuy_title.png' style='FILTER: progid:DXImageTransform.Microsoft.Alpha(opacity=0);' /></div><div  style='cursor: pointer;' onclick='closeMyPopUp()' style=\"width:40px; height:30px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/images_2/close.png');\" ><img src='/images_2/close.png' style='FILTER: progid:DXImageTransform.Microsoft.Alpha(opacity=0);' /></div>";
}

function showall1()
{
	var myPopUpText = document.getElementById("shoplink").innerHTML;
	var myPopUp = document.getElementById("myPopUp");
	myPopUp.style.position = "absolute";
	myPopUp.style.top = "20%";
	myPopUp.style.left = "40%";
	myPopUp.style.display = "block";
	myPopUp.innerHTML = "<table border=0 cellspacing=0 cellpadding=0><tr><td  class=\"png\"  style=\"background: url(/images_2/bord1.png); width:9px; height:9px\"></td><td  class=\"png\" style=\"background: url(/images_2/bord2.png); height:9px\"></td><td class=\"png\" style=\"background: url(/images_2/bord3.png); width:9px; height:9px\"></td></tr><tr><td class=\"png\" style=\"background: url(/images_2/bord6.png); width:9px;\"></td><td style=\"background-color:#7d6f4a;  background-image: url('/images_2/midintbl.jpg'); background-position: bottom right; background-repeat: no-repeat; padding: 20px;\" align='left' valign='top'><div align='right' onclick='closeMyPopUp()' style=\"float:right; cursor: pointer; width:17px; height:17px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/images_2/close.png');\" ><img src='/images_2/close.png'  align='right' onclick='closeMyPopUp()' style='cursor: pointer; FILTER: progid:DXImageTransform.Microsoft.Alpha(opacity=0);' /></div><div class='title' style='clear: both;'><img src='/images_2/shoplist.gif' /></div>"
	+ myPopUpText + 
	"</td><td class=\"png\" style=\"background: url(/images_2/bord8.png); width:9px;\"></td></tr><tr><td class=\"png\" style=\"background: url(/images_2/bord5.png); width:9px; height:9px\"></td><td class=\"png\" style=\"background: url(/images_2/bord7.png); height:9px\"></td><td class=\"png\" style=\"background: url(/images_2/bord4.png); width:9px; height:9px\"></td></tr></table>";
}

function showall()
{
if (document.getElementById("Scroller-1").offsetHeight == 200)
	{
		document.getElementById("Scroller-1").style.height = "530px";
		var tD = getElementsByClassName(document, "div", "Container");
		tD[0].style.height = "530px";
		var nHT = document.getElementById("Scroller-1").offsetHeight;
		document.getElementById("midintbl").style.height = nHT + "px";
		document.getElementById("showall").innerHTML = "Краткий список магазинов";
	}
else
		{
		document.getElementById("Scroller-1").style.height = "200px";
		var tD = getElementsByClassName(document, "div", "Container");
		tD[0].style.height = "200px";
		var nHT = document.getElementById("Scroller-1").offsetHeight;
		document.getElementById("midintbl").style.height = nHT + "px";
		document.getElementById("showall").innerHTML = "Полный список магазинов";		
		}
}

/* getElementsByClassName */
function getElementsByClassName(oElm, strTagName, strClassName){
	var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);
	var arrReturnElements = new Array();
	strClassName = strClassName.replace(/\-/g, "\\-");
	var oRegExp = new RegExp("(^|\\s)" + strClassName + "(\\s|$)");
	var oElement;
	for(var i=0; i<arrElements.length; i++){
		oElement = arrElements[i];
		if(oRegExp.test(oElement.className)){
			arrReturnElements.push(oElement);
		}
	}
	return (arrReturnElements)
}
/* / getElementsByClassName */



/*
function shopScroll()
{
	var shoplist = document.getElementById("shoplink");
	shopitems = getElementsByClassName(shoplist, "div", "shoplink");
	for(i=0; i<shopitems.length; i++)
	{
		shopitems[i].id = i + 1;
		if(shopitems[i].id >= 1 & shopitems[i].id <= 3){shopitems[i].style.display = "block";shopitems[i].id= shopitems[i].id + "v";} 
		else {shopitems[i].style.display = "none"; shopitems[i].id= shopitems[i].id + "h";}
//		alert(shopitems[i].id);
	}
}
function scrollup()
{
	var chekpoint ="";
	var shoplist = document.getElementById("shoplink");
	shopitems = getElementsByClassName(shoplist, "div", "shoplink");
	for(i=0; i<shopitems.length; i++)
	{

		
	}
}
*/
