
$(function(){

// Import on ramp
// Add button
$('#ai-tab-browser').bind('click',function() {
	$('#ai-tab-delicious').removeClass('_active');
	$('#ai-tab-browser').addClass('_active');
	$('#ai-view-browser').show();
	$('#ai-view-delicious').hide();
});

$('#ai-tab-delicious').bind('click',function() {
	$('#ai-tab-browser').removeClass('_active');
	$('#ai-tab-delicious').addClass('_active');
	$('#ai-view-browser').hide();
	$('#ai-view-delicious').show();
});

// Add button
$('.ab-video').bind('click',function() {
	$('#ab-tab-instructions').toggleClass('_active');
	$('#ab-tab-video').toggleClass('_active');
	$('#ab-view-instructions').hide();
	$('#ab-view-video').show();
});

$('#ab-instructions').bind('click',function() {
	$('#ab-tab-video').toggleClass('_active');
	$('#ab-tab-instructions').toggleClass('_active');
	$('#ab-view-video').hide();
	$('#ab-view-instructions').show();
});

$('#ab-change').bind('click', function() {
	$('#ab-browser-toggle').toggle();
	$('.ab-oo').bind('click',function() {
		$('#ab-browser-name').html(this.innerHTML);
		$('.ab-text-instructions').hide();
		$('.ab-text-video').hide();
		$('#abc_launcher-instructions').show();
		$('#ab-ob-video').show();
		$('.ab-click').hide();
		$('.ab-drag').show();
	})
	$('.ab-ff').bind('click',function() {
		$('#ab-browser-name').html(this.innerHTML);
		$('.ab-text-instructions').hide();
		$('.ab-text-video').hide();
		$('#ab-ff-instructions').show();
		$('#ab-ff-video').show();
		$('.ab-button').toggle();
		$('.ab-click').hide();
		$('.ab-drag').show();
	})
	$('.ab-ie').bind('click',function() {
		$('#ab-browser-name').html(this.innerHTML);
		$('.ab-text-video').hide();
		$('.ab-text-instructions').hide();
		$('#ab-ie-instructions').show();
		$('#ab-ie-video').show();
		$('.ab-button').toggle();
		$('.ab-click').show();
		$('.ab-drag').hide();			
	})
});

// Import bookmarks
$('#ai-change').bind('click', function() {
	$('#ai-browser-toggle').toggle();
	$('.ai-ob').bind('click', function() {
		// $('.ai-ob').hide();
		$('#ai-browser-name').html(this.innerHTML);
	})
	$('#ai-ie7').bind('click',function() {
		$('#ai-iie7').toggle();
	})
	$('#ai-ie8').bind('click',function() {
		$('#ai-iie8').toggle();
	})
	$('#ai-ff2').bind('click',function() {
		$('#ai-iff2').toggle();
	})
	$('#ai-ff3').bind('click',function() {
		$('#ai-iff3').toggle();
	})
	$('#ai-safari').bind('click',function() {
		$('#ai-isafari').toggle();
	})
});

})