var pageType = location.search.substr(1).split("?");

function cssWrite() {

	if (pageType == "print") {
		document.write('<link rel="stylesheet" type="text/css" href="/css/printable.css" />');
	}

	else {
		document.write('<link rel="stylesheet" type="text/css" href="/css/recipe.css" />');
	};

};

function bodyWrite(recipeType) {

	if (pageType == "print") {
		document.write('<body bgcolor="#FFFFFF"><div id="printitle"><img src="/images/printable.gif" width="315" height="100" alt="Blue Moon Soup: cookin'+"'"+' with the kids!" border="0" /></div><br /><div id="goback"><a href="javascript:history.go(-1);">Back to Recipe</a></div>');
	}

	else {
		document.write('<body bgcolor="#CCCCFF" alink="#FFFFCC" background="/images/bg.gif" onLoad="preloadImages('+"'"+'/images/nav/chef_on.gif'+"'"+','+"'"+'/images/nav/book_on.gif'+"'"+','+"'"+'/images/nav/show_on.gif'+"'"+','+"'"+'/images/nav/classes_on.gif'+"'"+')"><div id="title"><a href="/index.html"><img src="/images/title.gif" width="315" height="120" alt="Blue Moon Soup: cookin'+"'"+' with the kids!" border="0" /></a></div><div id="moon"><img src="/images/fullmoon.gif" width="255" height="275" alt="" border="0" /></div><div id="bigimage"><img src="/images/big/recipes.gif" width="255" height="275" alt="Recipes" border="0" /></div><div id="section"><i><a href="/recipes/index.html">Recipes!</a></i><br />');

	if (recipeType == "soup") {
		document.write('<a href="/recipes/soups/"><font color="#FFFCC">Favorite Soups</font></a><br /><a href="/recipes/sides/">Dishy Sides</a><br />')
};

	if (recipeType == "side") { 
		document.write('<a href="/recipes/soups/">Favorite Soups</a><br /><a href="/recipes/sides/"><font color="#FFFCC">Dishy Sides</font></a><br />')
};

document.write('<br /><a href="/recipes/rules.html">Rules of the Soup Kitchen</a><br /><br /><a href="/recipes/table.html">Set the Table</a><br /></div><div id="nav"><div id="recipesnav"><a href="/recipes/index.html"><img src="/images/nav/recipes_on.gif" width="51" height="23" alt="Recipes" name="recipes" border="0" /></a></div><div id="chefnav"><a href="/chef/" onMouseOver="swapImage('+"'"+'chef'+"'"+','+"'"+''+"'"+','+"'"+'/images/nav/chef_on.gif'+"'"+',1);" onMouseOut="swapImgRestore();"><img src="/images/nav/chef.gif" width="60" height="25" alt="The Chef" name="chef" border="0" /></a></div><div id="booknav"><a href="/book/" onMouseOver="swapImage('+"'"+'book'+"'"+','+"'"+''+"'"+','+"'"+'/images/nav/book_on.gif'+"'"+',1);" onMouseOut="swapImgRestore();"><img src="/images/nav/book.gif" width="61" height="25" alt="The Book" name="book" border="0" /></a></div><div id="shownav"><a href="/show/" onMouseOver="swapImage('+"'"+'show'+"'"+','+"'"+''+"'"+','+"'"+'/images/nav/show_on.gif'+"'"+',1);" onMouseOut="swapImgRestore();"><img src="/images/nav/show.gif" width="89" height="23" alt="Cooking Show" name="show" border="0" /></a></div><div id="classesnav"><a href="/classes/"onMouseOver="swapImage('+"'"+'classes1'+"'"+','+"'"+''+"'"+','+"'"+'/images/nav/classes_on.gif'+"'"+',1);" onMouseOut="swapImgRestore();"><img src="/images/nav/classes.gif" width="54" height="23" alt="Classes" name="classes1" border="0" /></a></div></div>');
	};
};