function res(){
if (nera != 'nera'){
	plotis = document.getElementById('parentADRS').clientWidth
	document.getElementById('childADRS').style.width=plotis
	document.getElementById('childADRS2').style.width=610 -plotis
	w = 0
	wp = 20
} else {
	w = 20
	wp = 0
}

aukstis = document.getElementById('baseTD').clientHeight
document.getElementById('childTABLE').style.height= aukstis -7
document.getElementById('childTABLE2').style.height= aukstis -30 +w
document.getElementById('banner').style.paddingTop = wp

//document.getElementById('flashas').innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="820" height="265" id="flash1" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="dizpix/flash1.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><param name="menu" value="false" /><embed src="dizpix/flash1.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="820" height="265" name="flash1" menu="off" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>'
}

function fIn(adrss, plts, aksts, bgspalva){
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="'+plts+'" HEIGHT="'+aksts+'" id="fla" ALIGN="">	<PARAM NAME=movie VALUE="'+adrss+'">	<PARAM NAME=quality VALUE=high>	<PARAM NAME=bgcolor VALUE=#'+bgspalva+'> <PARAM NAME=menu VALUE=false>	<EMBED src="'+adrss+'" quality=high bgcolor="#'+bgspalva+'"  WIDTH="'+plts+'" HEIGHT="'+aksts+'" NAME="fla" menu="false" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>')
}

function npg(sp){	document.getElementById('subpage').value = sp
	document.getElementById('subpage_sub').submit()
}

function popupas(ntr){	window.open("n_popup.php?id="+ntr, ntr, 'width=500, status=yes, height=400, toolbar=no, top=1, left=1, resizable=no');}

function chPICK(idi,pavadinimas){	document.getElementById(idi).src='meniu/parduotuves/img/'+pavadinimas;}

function popw(fnameas, plo, auk){	wname = fnameas.slice(0, fnameas.length -4)	popupz=window.open(""+fnameas, wname, "width="+plo+", status=no, height="+auk+", toolbar=no,top=100,left=150, resizable=no")
	popupz.document.write("<html><body topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0><img src='meniu/parduotuves/img/"+fnameas+"'></body></html>")
}

function op(fnam){ 	window.open('meniu/pradzia/big/'+fnam,'pop', 'status=no, toolbar=no, resizable=yes');
}

function popz(pid){
 	window.open('popz.php?id='+pid, pid , 'width=600, height=400, status=no, toolbar=no, resizable=no');
}
