// JavaScript Document
$(function() {
	var a = window.location.href;
	var nte = a.indexOf("#");
	var p = a.substr(a.indexOf("#")+2);
	if(p == 'home' || nte == -1){
		$('title').text('One Mighty Drop - Home');
		$('meta[name=description]').attr("content","Your online source for exciting information and education about fragrance."); 
		$('meta[name=keywords]').attr("content","fragrance, fragrances, perfume, cologne, eau de toilette, one drop and, get the juice, get, juice, create your own, create, own, discover the art, discover, art, new notes, new, notes, parfum, embrace fragrance, fragrace, fragrane, frgrance, fragrance foundation, fragrance education, fragrance information, perfumery, art of fragrance, choosing fragrance, fragrance tips, perfume tips, perfume gifts, perfume facts, perfume info, perfume lover"); 
	}
	if(p == 'worldofomd' || p == 'worldofomd/campaign'){
		$('title').text('One Mighty Drop - Campaign');
		$('meta[name=description]').attr("content","Advertising campaign for One Mighty Drop"); 
		$('meta[name=keywords]').attr("content","fragrance, fragrances, perfume, cologne, eau de toilette ad, campaign, one drop and, you're in love, you're exciting, you're fabulous, one drop changes everything, wow, rediscover fragrance, scent of attraction, every drop, power of perfume"); 
	}
	if(p == 'scentstories'){
		$('title').text('One Mighty Drop - Scent Stories');
		$('meta[name=description]').attr("content","Industry leaders speak about their favorite scent stories"); 
		$('meta[name=keywords]').attr("content","variety, life, favorite, fragrance, perfume, cologne, scent, signature, unique, experience, bottle, Anais Anais, Cacharel, fresh, fabulous, gift, flower, love"); 
	}
	if(p == 'worldofomd/tips'){
		$('title').text('One Mighty Drop - Tips');
		$('meta[name=description]').attr("content","Everything you need to know about the world of fragrance."); 
		$('meta[name=keywords]').attr("content","fragrance, skin, bottle, buy, smelling, scents, shopping, test, nose, gift giving, scent- speak, feminine, romantic, sporty, career-minded, dynamic, feminine, floral, eau de parfum, cologne, perfume, eau de toilette, perfume gift, fragrance tips, how to wear fragrance, how to choose fragrance"); 
	}
	if(p == 'getthejuice'){
		$('title').text('Get The Juice');
		$('meta[name=description]').attr("content","Blogs tips, events and stories all about fragrance."); 
		$('meta[name=keywords]').attr("content","fragrance feed, blogs, editor of the month, new notes, launches, scent stories, events, new fragrances, story, review"); 
	}
	if(p == 'createyourown'){
		$('title').text('Create Your Own One Mighty Drop');
		$('meta[name=description]').attr("content","Design an iconic fragrance bottle, then send it to your friends and post it in our gallery."); 
		$('meta[name=keywords]').attr("content","fragrance, fragrances, perfume, cologne, eau de toilette design, picture, bottle, artwork, art, beautiful, facebook, email, interactive, compose, create, share, post, social media, design your own, perfume"); 
	}
	if(p == 'discovertheart'){
		$('title').text('Discover the Art');
		$('meta[name=description]').attr("content","Learn about the 4 fragrance families – floral, woods, oriental, and fresh - and find out what fragrance is right for you."); 
		$('meta[name=keywords]').attr("content","fragrance category, categories, choices, fragrance library, fragrance descriptions, Michael Edwards, citrus, fresh, floral, woody, oriental, soft floral, oriental floral, fruity, water, green, woody oriental, mossy woods, dry woods, choose fragrance, pick fragrance, find fragrance, fragrance types, fragrance notes, fragrance family, discover fragrance, art of fragrance, perfume, perfumery, aldehyde"); 
	}
	if(p == 'aboutus'){
		$('title').text('About Us');
		$('meta[name=description]').attr("content","About The Fragrance Foundation and Michael Edwards"); 
		$('meta[name=keywords]').attr("content","fragrance, fragrances, perfume, cologne, eau de toilette about fragrance, Michael Edwards, Michael, Edwards, Fragrance Foundation, expert, industry association, scent, industry leader, education, market, membership, fragrance library information"); 
	}
 });


function aaa(){

}
function bbb(){
	alert("next button pressed")	
}
function callurl(){
		
	//alert("Calling function");
	var a = window.location.href;
	var nte = a.indexOf("#");
	var p = a.substr(a.indexOf("#")+2);
	if(p == 'home' || nte == -1){
		//document.title = "One Mighty Drop - Home";
		//alert(document.title);
	
		$('meta[name=description]').attr("content","Your online source for exciting information and education about fragrance."); 
		$('meta[name=keywords]').attr("content","fragrance, fragrances, perfume, cologne, eau de toilette, one drop and, get the juice, get, juice, create your own, create, own, discover the art, discover, art, new notes, new, notes, parfum, embrace fragrance, fragrace, fragrane, frgrance, fragrance foundation, fragrance education, fragrance information, perfumery, art of fragrance, choosing fragrance, fragrance tips, perfume tips, perfume gifts, perfume facts, perfume info, perfume lover"); 
		return "One Mighty Drop - Home";
	}
	if(p == 'worldofomd' || p == 'worldofomd/campaign'){

		//document.title = "One Mighty Drop - Campaign";
		//alert(document.title);
		
		$('meta[name=description]').attr("content","Advertising campaign for One Mighty Drop"); 
		$('meta[name=keywords]').attr("content","fragrance, fragrances, perfume, cologne, eau de toilette ad, campaign, one drop and, you're in love, you're exciting, you're fabulous, one drop changes everything, wow, rediscover fragrance, scent of attraction, every drop, power of perfume"); 
		return "Campaign";
	}
	if(p == 'scentstories'){

		//document.title = "One Mighty Drop - Scent Stories";
		//alert(document.title);
		$('meta[name=description]').attr("content","Industry leaders speak about their favorite scent stories"); 
		$('meta[name=keywords]').attr("content","variety, life, favorite, fragrance, perfume, cologne, scent, signature, unique, experience, bottle, Anais Anais, Cacharel, fresh, fabulous, gift, flower, love"); 
		return "Scent Stories";
	}
	if(p == 'worldofomd/tips'){
	
		//document.title = "Tips";
		//alert(document.title);
		$('meta[name=description]').attr("content","Everything you need to know about the world of fragrance."); 
		$('meta[name=keywords]').attr("content","fragrance, skin, bottle, buy, smelling, scents, shopping, test, nose, gift giving, scent- speak, feminine, romantic, sporty, career-minded, dynamic, feminine, floral, eau de parfum, cologne, perfume, eau de toilette, perfume gift, fragrance tips, how to wear fragrance, how to choose fragrance"); 
		return "Tips";
	}
	if(p == 'getthejuice'){
		
		//document.title = "Get The Juice";
		//alert(document.title);
		$('meta[name=description]').attr("content","Blogs tips, events and stories all about fragrance."); 
		$('meta[name=keywords]').attr("content","fragrance feed, blogs, editor of the month, new notes, launches, scent stories, events, new fragrances, story, review"); 
		return "Get The Juice";
	}
	if(p == 'createyourown'){

		//document.title = "Create Your Own One Mighty Drop";
		//alert(document.title);
		$('meta[name=description]').attr("content","Design an iconic fragrance bottle, then send it to your friends and post it in our gallery."); 
		$('meta[name=keywords]').attr("content","fragrance, fragrances, perfume, cologne, eau de toilette design, picture, bottle, artwork, art, beautiful, facebook, email, interactive, compose, create, share, post, social media, design your own, perfume"); 
		return "Create Your Own One Mighty Drop";
	}
	if(p == 'discovertheart'){

		//document.title = "Discover the Art";
		//alert(document.title);
		$('meta[name=description]').attr("content","Learn about the 4 fragrance families – floral, woods, oriental, and fresh - and find out what fragrance is right for you."); 
		$('meta[name=keywords]').attr("content","fragrance category, categories, choices, fragrance library, fragrance descriptions, Michael Edwards, citrus, fresh, floral, woody, oriental, soft floral, oriental floral, fruity, water, green, woody oriental, mossy woods, dry woods, choose fragrance, pick fragrance, find fragrance, fragrance types, fragrance notes, fragrance family, discover fragrance, art of fragrance, perfume, perfumery, aldehyde"); 
		return "Discover the Art";
	}
	if(p == 'aboutus'){"About Us";

		//document.title = "About Us";
		//alert(document.title);
		$('meta[name=description]').attr("content","About The Fragrance Foundation and Michael Edwards"); 
		$('meta[name=keywords]').attr("content","fragrance, fragrances, perfume, cologne, eau de toilette about fragrance, Michael Edwards, Michael, Edwards, Fragrance Foundation, expert, industry association, scent, industry leader, education, market, membership, fragrance library information"); 
		return "About Us";
	}
}