
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") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;



$(function() {
	$(".scrollable").scrollable({easing: 'custom', speed: 700, circular: true});
	
	$.easing.custom = function (x, t, b, c, d) {
	var s = 1.70158; 
	if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
	return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
}

});

$(function() {
	$(".footer_scroll").scrollable({easing: 'custom', speed: 700, circular: true}).autoscroll({ autoplay: true, autopause:true, interval:5000 });});

var api = $("#scroll").scrollable({
	items: '#tools',
	circular: true,
	easing: 'custom'

}).navigator({activeClass: 'current'}).data("scrollable");


$(function() {
	$("#t1").toggleClass("current");
	});

$(document).ready(function() {
    $(".topMenuAction").click( function() {
        if ($("#openCloseIdentifier").is(":hidden")) {
            $("#slider").animate({
                marginTop: "-189px"
                }, 200 );
            $("#topMenuImage").html('<span id="topmenu_open"></span>');
            $("#openCloseIdentifier").show();
			$("#sliderWrap1").animate({
                opacity: 1
                }, 200 );
			$("#sliderWrap1").show();
        } else {
            $("#slider").animate({
                marginTop: "0px"
                }, 200 );
            $("#topMenuImage").html('<div id="openCloseWrap_shadow"></div><div id="topmenu_close"></div>');
            $("#openCloseIdentifier").hide();
			$("#sliderWrap1").animate({
                opacity: 0
                }, 200 );
			$("#sliderWrap1").hide();
			
        }
    }); 
});

$(document).ready(function() {
    $(".topMenuAction1").click( function() {
        if ($("#openCloseIdentifier1").is(":hidden")) {
            $("#slider1").animate({
                marginTop: "-189px"
                }, 200 );
            $("#topMenuImage1").html('<span id="topmenu_open1"></span>');
            $("#openCloseIdentifier1").show();
        } else {
            $("#slider1").animate({
                marginTop: "0px"
                }, 200 );
            $("#topMenuImage1").html('<div id="openCloseWrap_shadow1"></div><div id="topmenu_close1"></div>');
            $("#openCloseIdentifier1").hide();
						
        }
    }); 
});

$(function(){ $("select, input:checkbox, input:radio, input:file").uniform(); });
 