
var INDEX_DOWN = "http://www.teatime-mag.com/magazines/wp-content/themes/desk-mess/images/teatime-general/navbar/index_down.png";
var INDEX_UP = "http://www.teatime-mag.com/magazines/wp-content/themes/desk-mess/images/teatime-general/navbar/index_up.png";
var CURRENT_BUTTON = INDEX_UP;

$(document).ready(function(){
	$('#index-button').click(function(){ //change button				
		$('#navbar').slideToggle(function(){
	
			if(CURRENT_BUTTON.toString() == INDEX_DOWN.toString()){		
				CURRENT_BUTTON = INDEX_UP;
			}else{
				CURRENT_BUTTON = INDEX_DOWN;
			}
			$('#index-button img').attr("src",CURRENT_BUTTON);
			//$('#index-button').html("<img src="+ CURRENT_BUTTON +" border='0' />"); 
			
		});	
	});
	//tt7 and on
	$('#image-1').mouseover(function(){
		$('#text-1').show();
	});
	$('#image-1').mouseout(function(){
		$('#text-1').hide();
	});
	$('#image-2').mouseover(function(){
		$('#text-2').show();
	});
	$('#image-2').mouseout(function(){
		$('#text-2').hide();
	});
	$('#image-3').mouseover(function(){
		$('#text-3').show();
	});
	$('#image-3').mouseout(function(){
		$('#text-3').hide();
	});
	$('#image-4').mouseover(function(){
		$('#text-4').show();
	});
	$('#image-4').mouseout(function(){
		$('#text-4').hide();
	});
	$('#image-5').mouseover(function(){
		$('#text-5').show();
	});
	$('#image-5').mouseout(function(){
		$('#text-5').hide();
	});
	$('#image-6').mouseover(function(){
		$('#text-6').show();
	});
	$('#image-6').mouseout(function(){
		$('#text-6').hide();
	});	
	$('#image-7').mouseover(function(){
		$('#text-7').show();
	});
	$('#image-7').mouseout(function(){
		$('#text-7').hide();
	});
	//tt5
	$('#art-style-image').mouseover(function(){
		$('#art-style-text').show();
	});
	$('#art-style-image').mouseout(function(){
		$('#art-style-text').hide();
	});
	$('#road-image').mouseover(function(){
		$('#road-text').show();
	});
	$('#road-image').mouseout(function(){
		$('#road-text').hide();
	});
	$('#two-days-image').mouseover(function(){
		$('#two-days-text').show();
	});
	$('#two-days-image').mouseout(function(){
		$('#two-days-text').hide();
	});
	$('#change-makers-image').mouseover(function(){
		$('#change-makers-text').show();
	});
	$('#change-makers-image').mouseout(function(){
		$('#change-makers-text').hide();
	});
	$('#exposure-image').mouseover(function(){
		$('#exposure-text').show();
	});
	$('#exposure-image').mouseout(function(){
		$('#exposure-text').hide();
	});
	$('#curiosity-image').mouseover(function(){
		$('#curiosity-text').show();
	});
	$('#curiosity-image').mouseout(function(){
		$('#curiosity-text').hide();
	});
	//tt6
	$('#business-image').mouseover(function(){
		$('#business-text').show();
	});
	$('#business-image').mouseout(function(){
		$('#business-text').hide();
	});
	$('#customs-image').mouseover(function(){
		$('#customs-text').show();
	});
	$('#customs-image').mouseout(function(){
		$('#customs-text').hide();
	});
	$('#bestknown-image').mouseover(function(){
		$('#bestknown-text').show();
	});
	$('#bestknown-image').mouseout(function(){
		$('#bestknown-text').hide();
	});
	$('#perspective-image').mouseover(function(){
		$('#perspective-text').show();
	});
	$('#perspective-image').mouseout(function(){
		$('#perspective-text').hide();
	});
	$('#rhythm-image').mouseover(function(){
		$('#rhythm-text').show();
	});
	$('#rhythm-image').mouseout(function(){
		$('#rhythm-text').hide();
	});
	$('#dyk-image').mouseover(function(){
		$('#dyk-text').show();
	});
	$('#dyk-image').mouseout(function(){
		$('#dyk-text').hide();
	});

});

