// JavaScript Document
function showIsbn() {
var isbn = document.getElementById('isbn');
if(isbn.value=='Enter ISBN')isbn.value='';
document.getElementById('all').value='Enter author, title or keyword';
document.getElementById('isbn').className='active';
document.getElementById('all').className='inactive';
}

function showAll() {
var all = document.getElementById('all');
if(all.value=='Enter author, title or keyword')all.value='';
document.getElementById('isbn').value='Enter ISBN';
document.getElementById('all').className='active';
document.getElementById('isbn').className='inactive';
}

function getHost(path) {
	var file_name = document.location.href;
	var strUrlPathArray=file_name.split("/");
	var page_name = strUrlPathArray[strUrlPathArray.length - 1];
	document.getElementById(page_name).className = "current_book";
	current = path;
}

function recover_cover_swap(){ //book cover swap 5 edition
	//alert("economics");
	document.getElementById('book_preview').className = "current_book_"+current;
}

function cover_swap(book){ //book cover swap 5 edition
	//alert("economics"+book);
	document.getElementById('book_preview').className = "current_book_"+book;
}

function old_cover_swap(book){ //book cover swap 4 edition
	//alert("economics"+book);
	document.getElementById('book_preview').className = "old_current_book_"+book;
}

function recover_old_cover_swap(){ //book cover swap 5 edition
	//alert("economics");
	document.getElementById('book_preview').className = "old_current_book_"+current;
}
