document.write ("<link href=\"belt/css/style.css\" rel=\"stylesheet\" type=\"text/css\" />");
	
	
	
	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;
}


	
	

	
	
	load = function() {
  		load.getScript("../belt/js/jquery-1.5.min.js");
		load.tryReady(0); 
	}
	
	load.getScript = function(filename) {
  		var script = document.createElement('script')
  		script.setAttribute("type","text/javascript")
		script.setAttribute("src", filename)
		if (typeof script!="undefined")
		  document.getElementsByTagName("head")[0].appendChild(script)
	}

	
	load.tryReady = function(time_elapsed) {
	// Continually polls to see if jQuery is loaded.
  if (typeof $ == "undefined") { // if jQuery isn't loaded yet...
    if (time_elapsed <= 5000) { // and we havn't given up trying...
      setTimeout("load.tryReady(" + (time_elapsed + 200) + ")", 200); // set a timer to check again in 200 ms.
    } else {
      alert("Timed out while loading jQuery.")
    }
  } else {
   init ();
  }
	}


	
	
	
	
	
	
  
  
  function init() {
  
			$(document).ready (function () {
										 
				var getExplorerVer = getInternetExplorerVersion();
										 
				$('#__sb_wrapper').show();
	
				$('.__sb_menu1_main li .__sb_menu1_option_in').hide();
				var menuChange = true;
				$('.__sb_menu1_main li ').bind('mouseover', 
						function () {
							if (menuChange) {
							
								//buscamos a ver si hay otra opcion que esté encendida
								prevOff = $('.__sb_menu1_option_in:visible').parent().find('.__sb_menu1_option_out');
								prevOn =  $('.__sb_menu1_option_in:visible');
									if (prevOn!=null && (menuChange)) {
								if (prevOn!=null && (menuChange)) {
							  			if ( getExplorerVer == -1) {
											prevOn.fadeOut (200);
											prevOff.fadeIn(200);
										} else {
											prevOn.hide();
											prevOff.show();
										}
											
									}
							}
						
								if ( getExplorerVer == -1) {
											$(this).find('.__sb_menu1_option_in').fadeIn(200);
											$(this).find('.__sb_menu1_option_out').fadeOut(200);
										} else {
											$(this).find('.__sb_menu1_option_in').show();
											$(this).find('.__sb_menu1_option_out').hide();
										}
								
								menuChange = false;
							
								//mostramos el submenu que corresponde
								//tomamos el nombre del parent
								//alert ($(this).children().parent().parent().html());
								optionName = $(this).attr('class');
								
								//primero cerramos anterior en display si habia
								if ( getExplorerVer == -1 ) {
											$('div[class^="__sb_menu2_option"],div[class!="'+ optionName.replace('__sb_menu1_','__sb_menu2_') +'"').fadeOut(200);
											$('.__sb_menu2').find('.'+optionName.replace('__sb_menu1_','__sb_menu2_')).fadeIn(200);
										} else {
											$('div[class^="__sb_menu2_option"],div[class!="'+ optionName.replace('__sb_menu1_','__sb_menu2_') +'"').hide();
											$('.__sb_menu2').find('.'+optionName.replace('__sb_menu1_','__sb_menu2_')).show();
										}
							
							}
	
						});
				$('.__sb_menu1_main li ').bind('mouseleave', 
								function () {
									menuChange = true;
								});
							
				$('.__sb_icon a').bind('mouseover', 
								function () {
									$(this).animate({top:'-2px'},100,'swing');
									$(this).parent().parent().find('.__sb_reflection').animate({top:'20px'},100,'swing');
								});
				$('.__sb_icon a').bind('mouseleave', 
							function () {
								$(this).animate({top:'0px'},100,'swing');
								$(this).parent().parent().find('.__sb_reflection').animate({top:'18px'},100,'swing');
							});		
						
						
				facebookLink = $('.__sb_facebooklink');
				facebookLink.attr('href', facebookLink.attr('href') + document.location);
				
				twitterLink = $('.__sb_twitterlink');
				twitterLink.attr ('href', twitterLink.attr('href') + document.title + ' ' + document.location);
	
		});
				
  };
  
  
 
  
  var getExplorerVer = getInternetExplorerVersion();

  if ( getExplorerVer == -1 || getExplorerVer > 6)
  {
	  
	  if (typeof jQuery == 'undefined') {  
		//no hay jQuery
		//lo cargamos dinamicamente
		load();
	}  else {
		init();
	}
   
   
   
  }
  

  
  
  
  
  	
	 
