$(document).ready(function() {
	$(window).load(function() {
		$(":input").each(function(i) {
			type = this.type;
			if (type == "submit" || type == "button") {
				this.className = "button";
			}
			if (type == "checkbox" || type == "radio") {
				this.className = "no-border";
			}
		 });
	});
	/*
	if ($('#menu').length) {
		var class_names = new Array('company','services','investors','career','cases','company','company');
		$("#menu ul li").each(function(i) {
			if ($(this).find('a').hasClass('act')) {
				$(this).addClass('active');
			}
		});
		$("#menu > ul > li").siblings().each(function(i) {
			$(this).addClass(class_names[i]);
			if ($(this).hasClass('active')) {
				$('body').attr('id',class_names[i]);
			}
		});
	}
	if ($('#refe-menu').length) {
		$("#refe-menu ul li a").each(function(i) {
			if ($('#article').hasClass($(this).attr('id'))) {
				$(this).addClass('act');
			}
		});
	}
	*/
	
	if ($("a[rel=lightbox-gallery]").length) {
		$("a[rel=lightbox-gallery]").fancybox({ 'zoomSpeedIn': 300, 'zoomSpeedOut': 300, 'overlayShow': false });
	}
	if ($("a[class=lightbox-gallery]").length) {
		$("a[class=lightbox-gallery]").fancybox({ 'zoomSpeedIn': 300, 'zoomSpeedOut': 300, 'overlayShow': true });
	}
	
	/*
	if ($(".banner-image").length) {
		$(".banner-image").click(function () {
			window.location = $(".banner-image").find('a').attr('href');
		});
	}
	
	if ($(".news_ticker").length) {
		var i = 0;
		var tickerItems = [];
		$(".news_ticker .ticker_content").each(function(i) {
			tickerItems[i] = ($(this).html());
		});
		newsTicker();
	}
	function newsTicker(){
		if( i == tickerItems.length ){
			i = 0;
		}
		$('#show_news_ticker').fadeOut(1000, function(){
			$(this).html(tickerItems[i]).fadeIn(1000);
			i++;
		});
		setTimeout(function() { newsTicker() }, 12000);
	}
	*/
});

