// JavaScript Document


$(document).ready(function(){
	$('.no_link').click(function(e) {
		e.preventDefault();
	});
									
	$('.no_link').hover(function() {
		$(this).css('cursor','default');
	});
	$('img').bind('contextmenu', function(e){
		return false;
	});
$('img').bind('dragstart', function(event) { event.preventDefault(); });

	$("#limited_edition_tomes_second_level li").hover(function(){
		//$('#menu2').find('span').css('color','#000');
		//$(this).find('span').css('color', '#00f');
		});
	$("#our_story_second_level li").hover(function(){
		//$('#menu2').find('a').css('color','#000');
		//$(this).find('a').css('color', '#09f');
		});

});




function showdiv(thediv){
	//console.log(thediv);
	//var theone = '#'+thediv;
	//var theimage = "images/" +thediv + ".jpg";
	if (thediv == "index"){thediv = "limited_edition_tomes";}
	var thebanner = 'banner_' + thediv;
	$('#banner .banner_tag_line').each(function(index) {
	    //$(this).css('display', 'none');
	});
	$('.banner_tag_line').each(function(i){
		if ($(this).css('display') != "none"){
			//console.log($(this).attr('id'));
			if ($(this).attr('id')!=thebanner){
				$(this).css('display', 'none');
			}
		} 
	});
		
	//$('.banner_tag_line').css('display', 'none');
  
	
	
	var bannerdiv = "#banner_" +thediv;
/*	if (is_page){
		$('.second_ul').each(function(i){
		if ($(this).css('display') != "none"){
			if ($(this).attr('id')!=thediv){
				$(this).css('display', 'none');
			}
		}
	});
		
	}
	$('.banner_tag_line').each(function(i){
		if ($(this).css('display') != "none"){
			if ($(this).attr('id')!=bannerdiv){
				$(this).css('display', 'none');
			}
		} 
	});
	//$(theone).stop(true, true).fadeIn(600);
	//$("#featured").ImageSwitch({Type:"FadeIn", NewImage:theimage, EffectOriginal: false, Speed: 600});*/
	//console.log(bannerdiv);
	
	$(bannerdiv).stop(true, true).fadeIn(300);
	//$(bannerdiv).css('display', 'block');

}
//function defaultdiv(thediv){
//	//var theone = '#'+thediv;
//	//var theimage = "images/" +thediv + ".jpg";
//	var bannerdiv = "#banner_" +thediv;
///*	if (is_page){
//		$('.second_ul').each(function(i){
//		if ($(this).css('display') != "none"){
//			if ($(this).attr('id')!=thediv){
//				$(this).css('display', 'none');
//			}
//		}
//	});
//		
//	}*/
//	$('.banner_tag_line').each(function(i){
//		if ($(this).css('display') != "none"){
//			if ($(this).attr('id')!=bannerdiv){
//				$(this).css('display', 'none');
//			}
//		} 
//	});
//	//$(theone).stop(true, true).fadeIn(600);
//	//$("#featured").ImageSwitch({Type:"FadeIn", NewImage:theimage, EffectOriginal: false, Speed: 600});
//	$('#banner .banner_tag_line').each(function(index) {
//	    $(this).css('display', 'none');
//	});
//	$(bannerdiv).stop(true, true).fadeIn(600);
//}

