var ie=navigator.userAgent
var k=navigator.userAgent.indexOf('MSIE')
var ver=parseInt( ie.substring(k+5, ie.indexOf('.',k) ))

if(ver>=4 || isNaN(ver)) {
nav0=new Image();	nav0.src=''

centrmap=new Image();	centrmap.src='pic/map_rostov_centr.gif';

temp=new Image();
}

function MOver(nn) {
if(ver>=4 || isNaN(ver)) {
	temp.src=nn.src;
	eval("nn.src="+nn.name+".src")
	}
}

function MOut(nn) {
if(ver>=4 || isNaN(ver)) {
	nn.src=temp.src;
	}
}

function showOnlinePlayer(tab) {
	if (tab){
		NewWin=window.open("http://www.radiorecord.ru/player/index.php?radio=" + tab, "player" + Math.round((Math.random() * (1000 - 1))), "top=100,left=200,width=435,height=555,location=no,resizable=no");  
	} else {
		NewWin=window.open("http://www.radiorecord.ru/player/index.php", "player" + Math.round((Math.random() * (1000 - 1))), "top=100,left=200,width=435,height=555,location=no,resizable=no");
	}
}
var cssFix = function(){
  var u = navigator.userAgent.toLowerCase(),
  addClass = function(el,val){
    if(!el.className) {
      el.className = val;
    } else {
      var newCl = el.className;
      newCl+=(" "+val);
      el.className = newCl;
    }
  },
  is = function(t){return (u.indexOf(t)!=-1)};
  addClass(document.getElementsByTagName('html')[0],[
    (!(/opera|webtv/i.test(u))&&/msie (\d)/.test(u))?('ie ie'+RegExp.$1)
      :is('firefox/2')?'gecko ff2'
      :is('firefox/3')?'gecko ff3'
      :is('gecko/')?'gecko'
      :is('opera/9')?'opera opera9':/opera (\d)/.test(u)?'opera opera'+RegExp.$1
      :is('konqueror')?'konqueror'
      :is('applewebkit/')?'webkit safari'
      :is('mozilla/')?'gecko':'',
    (is('x11')||is('linux'))?' linux'
      :is('mac')?' mac'
      :is('win')?' win':''
  ].join(" "));
}();

jQuery(function($){
	//$("#FormTel").mask("+7 (999) 999-99-99");
});

//$(document).ready(function(){
jQuery(function($){
	//$("#now_play_title").load("record222.txt");
	//$("#now_play_title").load("http://www.radiorecord.ru/script/record.txt");
	/*
	$.ajax({
	  url: "http://www.radiorecord.ru/script/record.txt",
	  cache: false,
	  success: function(m){
	    $("#now_play_title").html(m);
	  }
	});
	*/
});