
var timeout_id

function sd (obj, flag)
{
 if (flag == 1)
 {
   cur_val = document.images[obj].filters.alpha.opacity;
    if (cur_val < 100)
     {
       document.images[obj].filters.alpha.opacity = cur_val + 2;
       str = "sd('"+document.images[obj].id+"',1)";
       timeout_id = setTimeout(str, 10);
     }
 }
 else
 {
   clearTimeout(timeout_id);
   document.images[obj].filters.alpha.opacity = 40;
 }
}


function addfav()
{
 window.external.addFavorite('http://www.skservice.com.ua/','СК Сервис');
 return false;
}

function get_resolution()
{
 if ((screen.width == 1024)||(screen.width == 1280))
 return 1;
 else
 return 0;
}

function im(path,tit)
{
 window.open('http://www.skservice.com.ua/image.php?path='+path+'&ab='+tit,'','width=100, height=100, scrollbars=no');	
 //window.open('http://localhost/new/image.php?path='+path+'&ab='+tit,'','width=100, height=100, scrollbars=no');	
}	
