﻿function on_f(s){
  if(s.value=="Что ищем?") {
    s.value="";
  };
}

function on_b(s){
  if(s.value=="") {
    s.value="Что ищем?";
  };
}

function showTicket(id){
  var newwindow = window.open("/show_graph/" + id + "/" , "_ticket_"+id , "width=674,height=531,location=0,status=0,scrollbars=0,toolbar=0,menubar=0,resizable=0,directories=0");
  newwindow.focus();
}

$(function(){
	if ($.browser.msie) {
		$("div.clocks").css('position','absolute').css('right','23px');
        $(window).resize(function(){
            var hw = $("div.header").width();
            if ($('table.topt').width()<1024) {
                $('table.topt').width(1024);
                $('div.clocks').css('left','590px').css('right',null);
            }
            else {
                $('table.topt').width(hw);
                $('div.clocks').css('right','23px').css('left',null);
            }            
            if ($('td.maintd').width()<576) {
                $("td.maintd").width(576);     
            }
            else {
                $("td.maintd").width();
            }
           
        });
	};
});

