
/*
function fixHeaders(){
	jQuery('.inner-content > h1').each(
		function(){
			if(! jQuery(this).text().length)
				return;
			$(this).hide();
			var bgcolor = '';
			font = 'myriadpro';
			size = '18';
			color = '007ECB';
			bgcolor = 'FFFFFF';
			width = jQuery(this).width() + 20;

			var src = '/imagetext.php?title='+encodeURIComponent(jQuery(this).text())+'&font='+font+'&size='+size+'&width='+(jQuery(this).width() + 30)+'&height='+jQuery(this).height()+'&color='+color+'&bgcolor='+bgcolor+'&top=top&foreg=EAF7FF';
			img = '<img src="'+src+'" title="'+jQuery(this).text()+'" alt="'+jQuery(this).text()+'" width="'+(jQuery(this).width() + 30)+'px" height="'+jQuery(this).height()+'px" border="0" />';
			jQuery(this).html( img ).css({paddingBottom: 8 });
			$(this).show();
		}
	);
	jQuery('div.portfolio-project-list h2, div.portfolio-info-list h2').each(
		function(){
			if(! jQuery(this).text().length)
				return;
			$(this).hide();
			var bgcolor = '';
			font = 'myriadpro';
			size = '15';
			color = '007ECB';
			bgcolor = 'FFFFFF';
			width = jQuery(this).width() + 20;

			var src = '/imagetext.php?title='+encodeURIComponent(jQuery(this).text())+'&font='+font+'&size='+size+'&width='+width+'&height='+jQuery(this).height()+'&color='+color+'&bgcolor='+bgcolor+'&top=top&foreg=EAF7FF';
			img = '<img src="'+src+'" title="'+jQuery(this).text()+'" alt="'+jQuery(this).text()+'" width="'+width+'px" height="'+jQuery(this).height()+'px" border="0" />';
			jQuery(this).html( img ).css({paddingBottom: 0 });
			$(this).show();
		}
	);
}*/

var tabAnimation = false;

function initTabs() {
	jQuery('#tabs1 .navi a').each(function(ind){
		jQuery(this).click(function(){
		//alert("good");
			if(jQuery(this).parent('li').is('.here') || tabAnimation)
				return false;

			tabAnimation = true;

			//activate tab
			jQuery('#tabs1 .navi li').removeClass('here');
			jQuery(this).parent('li').addClass('here');

			//hide container
			jQuery('#tabs1 .tab-content:visible').fadeOut(function(){
				//show container
				jQuery('#tabs1 .tab-content:eq('+ind+')').fadeIn(function(){ tabAnimation = false; });
			});

			return false;
		});
	});
}
/*
function fixLeftColumn(){
	if( ! $('.left-column:eq(0)').html() ){
		$('.left-column:eq(0)').remove();
		$('.center-over').removeClass('center-over').addClass('center-over-big');
		$('.center-column').removeClass('center-column').addClass('center-column-big');
	}
}
*/

jQuery(document).ready(function() {

	/*$('div.menu > ul').menu({
		container: '#all',
		showAnimation: 100,
		hideAnimation: 100,
		horizontal: ['.inner-menu3'],
		vertical: ['.inner-menu']
	});
*/
  // alert("inside ready function");
	//fixLeftColumn();
	initTabs();

	//createSelect('quickJumpSelect');
});


