var gett = location.pathname.substring(1).split(".");

function show_img() {


  //  get = new String(window.location); 
  //  get = get.substr(25);
  //  pos = get.length;
  //  get = get.substr(0,pos-6);

//document.write ("<img src=images/nom/" + get +".gif >");
document.write ("<img src=images/nom/" + gett[0] +".gif >");


};

function show_nomer()
{

//var gett = location.pathname.substring(1).split(".");

//alert(gett[0]);

  pos = gett[0].length;
  type = gett[0].substring(pos-2);


if(gett[0] == "last_sp") {

    var result_text = String("<td bgcolor='#000000'><h2><font color='#ffffff'>спецвыпуск</font></h2>");

} else {

    if (type>0) {	// Выясняем, номер это или рубрика ???

        //alert('number');

        //get = get.substr(pos-3);
        //alert(get);

        year = gett[0].substr(pos-4);

        month =" # "+gett[0].substr(4,pos-8);

        var result_text = String("<td bgcolor='#000000'><h2><font color='#ffffff'>[" + year +"] "+month+"</font></h2>");

    } else { //alert('text');

        var result_text = String("");
//        var result_text = String("&nbsp;");

    }
}

document.write (result_text);

};

function emAdr(p1,p2)
{
	document.writeln("<A HREF=\"mai" + "lto:" + p2 + p1 + "@ma");
	document.writeln("il.ru\"" +">" + p2 + p1 + "@" + "ma" + "il.ru</A>");
}

