$().ready( function(){

//$domestic = $('#t-domestic a');
//$shop = $('#t-shop a');
//$nonDomestic = $('#t-non-domestic a');
//$tabs = $('#tabs');
//
//$activeTab = $('#tabs a.active');
//
//$activeTab.click( function(){
//	alert("hello");
//})
//
////$('#domestic').hide();
//$('#non-domestic').hide();
//
//$domestic.click(function() {
//	$tabs.removeClass();
//	$tabs.addClass('domestic');
//	contentFade('domestic');
//
//});
//
////$shop.click( function() {
////	$(this).addClass('active');
////	$tabs.removeClass();
////	$tabs.addClass('shop');
////	contentFade('shop');
////});
//
//$nonDomestic.click( function() {
//	$tabs.removeClass();
//	$tabs.addClass('non-domestic');
//	
//	contentFade('non-domestic');
//})
//
//function contentFade($target) {
//	$targetId = '#'+$target;
//	$targetId = $($targetId);
//	$('#content .current').fadeOut('fast',function() {
//		$(this).removeClass();
//		$targetId.fadeIn().addClass('current');
//		$('#footer').removeClass().addClass($target);
//	});
//}

var tabs = jQuery('#tabs,#footer');
var domestic = jQuery('#domestic');
var nonDomestic = jQuery('#non-domestic');

jQuery('#tabs a').bind({
	mouseenter:function(e){changeTab(e);return false;}
})


function changeTab(e){
	var t = jQuery(e.target);
	var target = t.attr('rel');
		
	tabs.removeClass().addClass(target);
	
	if (target =='domestic'){
		domestic.show();
		nonDomestic.hide();
	} else if( target == 'non-domestic') {
		nonDomestic.show();
		domestic.hide();
	} else{ return false; }
	
}

});
