$(document).ready(function() { 
				$("a.popup").fancybox();
				$('body').supersleight();
				
				$(".digits").keydown(function (e){
				  if( e.which!=8 && e.which!=9 && e.which!=110 && e.which!=109 && e.which!=188 &&  e.which!=0 && (e.which<48 || e.which>57) && (e.which<96 || e.which>105) )
				  {
				    return false;
				  }
				});
				
				externalLinks();

});



function goto(url){
	top.document.location.href = url;
}


function show(id,s){	
	
	if( $("#"+id).hasClass("hide")){
		if(s!=1){
			$("#"+id).slideToggle(function() { });
		}
		$("#"+id).addClass("show");
		$("#"+id).removeClass("hide");
	}else{
		if(s!=1){
			$("#"+id).slideToggle(function() {  });
		}
		$("#"+id).addClass("hide");
		$("#"+id).removeClass("show");
	}

	
}

function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "_blank")
     anchor.target = "_blank";
 }
}

