/**
 * @author Administrator
 */

function validateInt(id)
{
	value = parseInt($(id).value);
	
	if(value >= 0)
	{
		$(id).value = value;
	}
	else
	{
		$(id).value = 0;
	}
}
function displayLang(lang_id, link_id)
{
	$$('.lang').each(function(elmt) { elmt.hide() });
	
	$('lang_' + lang_id).show();
	
	$$('.a_lang').each(function(elmt) { elmt.className = 'a_lang' });

	$(link_id).className = 'a_lang active';
	

}

function getInternetExplorerVersion()
// Returns the version of Internet Explorer or a -1
// (indicating the use of another browser).
{
  var rv = -1; // Return value assumes failure.
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
}
var ie = getInternetExplorerVersion();
if(ie < 9)
{
Cufon.DOM.ready(function() {
  Cufon.replace('#menu li, #left h2, #header h2, #header_top', {hover:true});
});  
}


