var i_ny;
var i_vopros;
i_vopros='<A href="#" onclick="showOkno(); return false;" ><img src="/uploads/vopros.png" style="position: fixed; left:0%;top: 0%;z-index: 999;" alt="Задать вопрос?!"/></A>';
 
//i_ny='<A href="#" onclick="showNewYear(); return false;"><img src="/newyear/santa.png" style="position: fixed; right:0%;bottom: 0%;z-index: 999;" alt=""/> <img src="/newyear/tree.png" style="position\: fixed; left\:0\%;bottom\: 0\%;z-index\: 999;" alt=""/></A>';


if (screen.width >= '1320') {
   //document.write (i_ny); 
   document.write (i_vopros);
}


function showOkno() { $(function(){ $('#askfm').dialog({ autoOpen: true, show: 'fade', hide: 'fade', width: 820, buttons: {"Закрыть окно" : function() { $(this).dialog("close");}}});});}
function feedbackv() { $(function(){ $('#feedbackv').dialog({ autoOpen: true, show: 'fade', hide: 'fade', width: 420, buttons: {"Закрыть окно" : function() { $(this).dialog("close");}}});});}
function showNewYear() { $(function(){ $('#NewYear').dialog({ autoOpen: true, show: 'fade', hide: 'fade', width: 720, buttons: {"Спасибо!" : function() { $(this).dialog("close");}}});});}


function delete_cookie ( cookie_name )
{
  var cookie_date = new Date ( );  // Текущая дата и время
  cookie_date.setTime ( cookie_date.getTime() - 1 );
  document.cookie = cookie_name += "=; expires=" + cookie_date.toGMTString();
}

function look(type){
param=document.getElementById(type);
if(param.style.display == "none") {
param.style.display = "block";
delete_cookie ( "forum" );
} else {param.style.display = "none";  
document.cookie = "forum=" + escape("false") + "; expires=12/12/2012 00:00:00";
	}
}

function get_cookie ( cookie_name )
{
  var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' );
 
  if ( results )
    return ( unescape ( results[2] ) );
  else
    return null;
}
