<!--

var current_image=7;
var max_images=7;

function mailto(zone, domain, user)
{
  link='<a href="mailto:'+user+'@'+domain+'.'+zone+'">'+user+'@'+domain+'.'+zone+'</a>';
  document.write(link);
}

function mailtoimg()
{
  user="call";
  domain="prcb";
  zone="ru";
  link='<a href="mailto:'+user+'@'+domain+'.'+zone+'"><img src="templates/mailto.gif" alt=""/></a>';
  document.write(link);
}

function counter()
{
  new Image().src = "http://counter.yadro.ru/hit?r" + escape(document.referrer) + ((typeof(screen)=="undefined")?"" : ";s"+screen.width+"*"+screen.height+"*" + (screen.colorDepth?screen.colorDepth:screen.pixelDepth)) + ";u"+escape(document.URL) + ";h"+escape(document.title.substring(0,80)) + ";" +Math.random();
}




function start_image_rotate()
{
   setInterval('index_image_rotate()', 8000);
}

function index_image_rotate()
{
  Jet_DeleteScenario();
  jet_move_scenario[0]='hide_photo()';
  jet_move_scenario[1]='show_photo()';
  Jet_PlayScenario();   
}

function hide_photo()
{
   jet_move_id[0]='index_bg_main_image';
   jet_move_property[0]='opacity';
   jet_move_value_current[0]=100;
   jet_move_value_new[0]=0;
   jet_move_value_dimension[0]='%';
   jet_move_end_flag[0]=0; 
}


function show_photo()
{
   current_image++;
   current_image = (current_image>=max_images) ? 0 : current_image;

   pos='0px -'+(current_image*401)+'px';

   document.getElementById('index_bg_main_image').style.backgroundPosition=pos;

   jet_move_id[0]='index_bg_main_image';
   jet_move_property[0]='opacity';
   jet_move_value_current[0]=0;
   jet_move_value_new[0]=100;
   jet_move_value_dimension[0]='';
   jet_move_end_flag[0]=0;   
}

-->