count=460;po=42;col=6;v=document.location.search.split("?");pgg=(v.length>1)?pgg=v[1]:1;

function teg(src,u){AD.value="[IMG]"+src+"[/IMG]";ADt.value="<img src="+src+" border=0>";ADa.value=src;AD.select();if(u==0){ADa.select()};if(u==2){ADt.select()};document.execCommand("copy")}

function insm(i){
z="<TD style='font:12px Arial;color:silver'>";
z+="<span style='cursor:hand' onclick='teg(im"+i+".src,0)' title='получить адрес картинки'>"+((i<=count)?i+".":"")+"</span>";
z+="<TABLE width=100%><tr><td style='padding:5px 10px 5px 10px;text-align:center;vertical-align:middle'>";
z+=(i<=count)?"<img name=im"+i+" style='cursor:hand' src='img/"+i+".gif' title='Кликнув, вы получите код смайлика.' onclick='teg(this.src,1)' ondblclick='teg(this.src,2)'>":"";
z+="</td></tr></TABLE></TD>";return z};

function smiles(){
p=pgg;
st=(p-1)*po+1;i=st;
s="Всего: <b>"+count+"</b><BR><BR><TABLE>";
while((i<=count)&(i<=p*po)){s+="<TR>";for(k=0;k<col;k++){s+=insm(i);i++};s+="</TR>"}
s+="</TABLE><BR>";
s+=(p>1)?"<A href=index.htm?"+(p-1)+"><< Назад</A>&nbsp;&nbsp;":"";
s+="<small>( "+st+" - "+((i<=count)?st+po-1:count)+" )</small>";
s+=(i<=count)?"&nbsp;&nbsp;<A href=index.htm?"+(p-0+1)+">Далее >></A>":"";
sm.innerHTML=s;top.focus();
};

function af(){window.external.AddFavorite(location,'КОЛЛЕКЦИЯ СМАЙЛИКОВ')};