m2='м<sup>2';
kompl='компл.';
function br1(n){
for(i=1; i<=n;i++) document.write('<br>');}
function spacer(w,h){
document.write('<img width='+w+' height='+h+' src="spacer.gif">')
}
function flash(file,w,h){
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '+
'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"'+
'width="'+w+'" height="'+h+'" id="4" align="middle">'+
'<param name="allowScriptAccess" value="sameDomain" />'+
'<param name="movie" value="_1.swf" />'+
'<param name="quality" value="high" />'+
'<param name="wmode" value="opaque" />'+
'<embed src="_1.swf" quality="high" wmode="opaque" width='+w+' height='+h+' bgcolor="#f4e8d6" '+
'name="_1" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"'+
'pluginspage="http://www.macromedia.com/go/getflashplayer" />'+
'</object>');
}
function show_id(n) 	//n - количество слоев, d - приращение (взад/вперед  -1/1)
{	for(i=0;i<=7;i++){
eval('p6'+i).style.display="none";}
eval('p6'+n).style.display="block";
}
function show_id2(frame,n) 	//n - количество слоев, d - приращение (взад/вперед  -1/1)
{	for(i=0;i<=7;i++){
eval(frame+'.p6'+i).style.display="none";}
eval(frame+'.p6'+n).style.display="block";
}
function click7(frame,n,s){ 
document.write('<a href="#"  class=href71  onmouseup = "show_id2(\''+frame+'\','+n+')" >'+
s+'</a> <br>');	}
function iframe_1(file,w,h,margin){    //Создает Фрейм  w,h -  ширина высота
document.write('<iframe id="iframe1" src="'+file+'" width='+w+' height='+h+
' vspace=0 frameborder=no style="margin:'+margin+'" > </iframe> '); 
}
function iframe_2(file,w,h,margin){    //Создает Фрейм  w,h -  ширина высота
document.write('<iframe id="iframe2" name="iframe2" src="'+file+'.htm" width='+w+' height='+h+
' frameborder=no style="margin:'+margin+'" > </iframe> ');
}
function iframenew(file){ //Меняет содержимое фрейма
iframe1.location =file+'.htm'; }
function iframenew2(file){ //Меняет содержимое фрейма2
iframe2.location =file+'.htm'; }
function on_novosti(file,s1,class1){ //Создает ссылку, которая меняет содержимое фрейма
fignya=(file=='')?'fignya':'';
document.write('<p class='+class1+' onmouseup'+fignya+' = "iframenew(\''+file+'\')" '+
' onmouseover'+fignya+'="over40(this)"  onmouseout="out40(this)" >'+s1+'</p> ');
}                                      
//================================================================
function over4(o1){ //Рамка вокруг картинки
o1.style.border="2 solid #cc0000";//object.style.height=60;
}
function out4(o1){  //Рамка вокруг картинки
o1.style.border="2 solid #ffffff";//object.style.height=59;
}                                                          
//================================================================
function click40(file1,num){  //Щелчек по разделам КУХНИ ... обновляет фреймы //iframe1.location ='k_'+file1+'_foto.htm'; 
iframe1.location ='k_fotos.htm?papka='+file1+'&num='+num; 
iframe2.location ='k_'+file1+'.htm'; 
//window.parent.frames['iframe1'].location='k_foto.htm?papka='+file1+'&num='+num; 
}
function over40(o1){  with(o1.style) {
background="#FfF5ee";
color="#582B21";
border="1 dashed #582B21";
//fontWeight="700"; 
//object.style.fontSize="11";
}}
function out40(o1){ with(o1.style) {
background="";
color="#582B21";
border="0";
//fontWeight="400"; 
//object.style.fontWeight="400";object.style.fontSize="12";
}}
function click41(file,num,s,class1){  //Вывод строк разделов.... //location.href ='k_'+file1+'_foto.htm'; 
document.write(	'<p class='+class1+'  onclick="click40(\''+file+'\','+num+');" '+
'  onmouseover = "over40(this)" onmouseout ="out40(this)"> '+s+'</p> </a>');
}
function click4(file,papka1,num){  //Щелчек по картинке
parent.iframe2.location =file+'.htm?papka='+papka1+'&num='+num; 
}
function table20(s1,id){
document.write('<p class=zagl id='+id+'>'+s1+'<table class=t7>');
}
function table70(s1,id){
document.write('<p class=zagl id='+id+'>'+s1+'<table class=t7>');
table71('Наименование','','Цена, у.е.');
//	table71('Наименование','Ед.изм.','Цена, у.е.');
}
function table71(s1,s2,s3){
colspan=(s3=='')?3:1;
s4=(s3=='')?'':'<td class=td72>';
s5=(s3=='')?'td73':'td71';
s2_=(s2.match(/_/)=='_')?('<img src="R/furnitura/'+s2+'.jpg">'):s2;
document.write('<tr onmouseover = "over40(this)" onmouseout = "out40(this)">'+
'<td class='+s5+' colspan='+colspan+'>'+s1+s4+	s2_+s4+s3);
//	'<td class='+s5+' colspan='+colspan+'>'+s1+s4+s2+s4+s3);
}
function table7end(){document.write('</table></p>'); }
function niz1(){
document.write('</td></tr><tr height=30 bgcolor=#c0a999> <td colspan=3>'+
'<a class=niz> Ю-Гард - Авторская мебель '+
'<a class=niz2> В гармонии с Вами и Вашим домом '+
'</td></tr></table></table>');
}
