
//-----------------------------------------------
function TextOn() 
	{
	alert("Из скрипта");
	}
//------------Content-------------	
function TextChangeToRed(dd)
{
/*var elem;
o=document;
elem=o.getElementById(dd.id);
//elem.style.fontSize="14";
elem.style.color="#ff0033";
elem.style.textDecoration="underline";*/
}
function TextChangeToOld(dd)
{
/*var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.color="#666666";
elem.style.textDecoration="none";*/
//elem.style.fontSize="13";
}
//------------CountView-------------	
function TextCountedChangeToCounView(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.fontSize="13";
elem.style.fontWeight="bold";
elem.style.color="#ff0033";
//elem.style.textDecoration="underline";
}
function TextCountedChangeToOldCounView(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.color="#000033";
elem.style.fontWeight="normal";
//elem.style.textDecoration="none";
elem.style.fontSize="11";
}

//------------Head-------------	
function TextHeadChangeToRed(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
//elem.style.fontSize="14";
elem.style.color="#ff0033";
elem.style.textDecoration="underline";
}
function TextHeadChangeToOld(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.color="#800000";
elem.style.textDecoration="none";
//elem.style.fontSize="13";
}
//------------Counted-----------
function TextCountedChangeToRed(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
//elem.style.fontSize="14";
elem.style.color="#ff0033";
elem.style.textDecoration="underline";
}
function TextCountedChangeToOld(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.color="#4169e1";
elem.style.textDecoration="none";
//elem.style.fontSize="13";
}
function TextCountedChangeToRedAdd(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.fontSize="16";
elem.style.color="#ff0033";
elem.style.textDecoration="underline";
//elem.style.fontSize="13";
}
function TextCountedChangeToOldBlue(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.color="#4169e1";
elem.style.textDecoration="none";
elem.style.fontSize="14";
}
//-----------Выбор разделов барахолки----
function TextCountedChangeToRedAddBar(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.fontSize="14";
elem.style.fontWeight="bold";
elem.style.color="#ff0033";
//elem.style.textDecoration="underline";
//elem.style.fontSize="13";
}
function TextCountedChangeToOldBlueBar(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.color="#333399";
elem.style.textDecoration="none";
elem.style.fontWeight="normal";
elem.style.fontSize="12";
}
//-----------Выбор разделов барахолки----
function TextZdecRed(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.fontSize="15";
elem.style.fontWeight="bold";
elem.style.color="#333399";
elem.style.textDecoration="underline";
//elem.style.fontSize="13";
}
function TextZdecOldBlue(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.color="#333399";
elem.style.textDecoration="none";
elem.style.fontWeight="normal";
elem.style.fontSize="14";
}
//-----------Выбор разделов барахолки----
function TextCountedMyToRedAddBar(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.fontSize="12";
elem.style.fontWeight="bold";
elem.style.color="#ff0033";
//elem.style.textDecoration="underline";
//elem.style.fontSize="13";
}
function TextCountedMyToOldBlueBar(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.color="#333399";
elem.style.fontWeight="normal";
elem.style.fontSize="11";
}
function TextCountedChangeDown(dd)
{
var elem;
o=document;
dd.checked="true";
//elem=o.getElementById(dd.id);
//elem.style.checked="true";
}
//-----------Ссылки объявлений-----------
function TextCountedChangeToRedOb(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.fontWeight="bold";
elem.style.color="#ff0033";
elem.style.cursor="hand";
elem.style.textDecoration="underline";
}
function TextCountedChangeToOldOb(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.color="#000033";
elem.style.textDecoration="none";
elem.style.fontWeight="normal";
}
//------------------------------------------
//----------------Редактировать, удалить----
function TextCountedEditToRedOb(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.fontWeight="bold";
elem.style.color="#dc143c";
elem.style.cursor="hand";
elem.style.fontSize="14";
elem.style.textDecoration="underline";
}
function TextCountedEditToOldOb(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.color="#dc143c";
elem.style.textDecoration="none";
elem.style.fontSize="12";

}
//-------------------------------------------
function TextCountedChangeMenuToOldObDobav(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.color="#dc143c";
elem.style.textDecoration="none";
//elem.style.fontSize="13";
}
function TextCountedChangeMenuToOldObAdd(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.color="blue";
elem.style.textDecoration="none";
//elem.style.fontSize="13";
}
//-----------Меню объявлений-----------
function TextCountedChangeMenuToRedOb(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
//elem.style.fontSize="14";
elem.style.color="#ff0033";
elem.style.textDecoration="underline";
}
function TextCountedChangeMenuToOldOb(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.color="#4169e1";
elem.style.textDecoration="none";
//elem.style.fontSize="13";
}
//-----------увеличение страницы About-----------
function TextAboutChangeToRedOb(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
elem.style.fontWeight="bold";
elem.style.color="#ff0033";
elem.style.cursor="hand";
elem.style.fontSize="20";
}
function TextAboutChangeToOldOb(dd)
{
var elem;
o=document;
elem=o.getElementById(dd.id);
//elem.style.fontStyle ="italic";
elem.style.color="#ff0033";
//elem.style.textDecoration="none";
//elem.style.fontWeight="normal";
elem.style.fontSize="16";
}
//------------------------------------------
//------------------------фунция барахолки------------------------------
function ChangeRadButt(dd)
{
o=document;
elem=o.getElementById(dd.id);
elem.style.size="12";
elem.style.color="red";
}	

function FP_preloadImgs() {//v1.0
 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
 for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}

function FP_swapImg() {//v1.0
 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
 n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
 elm.$src=elm.src; elm.src=args[n+1]; } }
}

function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}


