/*	sIFR v2.0.7
	Copyright 2004 - 2008 Mark Wubben and Mike Davidson. Prior contributions by Shaun Inman and Tomas Jogin.
	
	This software is licensed under the CC-GNU LGPL <http://creativecommons.org/licenses/LGPL/2.1/>
*/


if(typeof sIFR == "function" && !sIFR.UA.bIsIEMac && (!sIFR.UA.bIsWebKit || sIFR.UA.nWebKitVersion >= 100)){
	sIFR.setup();
};


/*
 * jQuery 1.2.3 - New Wave Javascript
 *
 * Copyright (c) 2008 John Resig (jquery.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * $Date: 2008-02-06 00:21:25 -0500 (Wed, 06 Feb 2008) $
 * $Rev: 4663 $
 */




	var imgBase="http://www.christhorwarth.com/gatherings/";
	var JQ;
	if(typeof JQ=='undefined')
		JQ=false;
	var WyckoffFlorist=function()
	{
		var _={};
		var page;
		var c;
		var preInit=function()
		{
			if(location.pathname.indexOf("/gatherings")!=-1)
			{
				location.href="/?gatherings";
				return false;
			}

			//document.write("<script type=\"text/javascript\" defer=\"defer\" src=\""+imgBase+"libs.js\"></script>");
			/*var script=document.createElement('script');
			script.src=imgBase+"libs.js";
			script.id="caits_glorious_boooty";
			script.type='text/javascript';
			document.getElementsByTagName("head")[0].appendChild(script);
			*/
			if(location.search.indexOf("?gatherings")==-1)
				adjustTheOleNavigationer();
			
			
			if(location.search.indexOf("?gathering_products")!=-1)
				buildGatheringsProducts();
			else if(location.search.indexOf("?gatherings")!=-1)
			{
				document.getElementsByTagName('body')[0].style.display='none';
				init();
			}
		}
		
		var buildGatheringsProducts=function()
		{
			if(typeof jQuery=="undefined")
			{
				setTimeout(buildGatheringsProducts, 100);
				return false;
			}
			if(!JQ)
				JQ=jQuery.noConflict();
			JQ(function()
			{
				var str=""
				str+="<img src=\""+imgBase+"Gatherings-Product.gif"+"\" />";
				str+="<div style=\"margin-top:10px;\"><a style=\"text-decoration:underline;font-size:20px;color:#D77193;font-family:'Cambria','Calibri','Times New Roman';\" href=\"/?gatherings\">Click here for more information</a></div>";
				JQ("td[width='600']").html(str);
			});
		}
		
		var adjustTheOleNavigationer=function()
		{
			if(typeof jQuery=="undefined")
			{
				setTimeout(adjustTheOleNavigationer, 100);
				return false;
			}
			if(!JQ)
				JQ=jQuery.noConflict();
			JQ(function()
			{
				var str="";
				str+="<a href=\"/?gatherings\" ><img style=\"border:none;\" src=\""+imgBase+"nav_btn_4000.gif"+"\" /></a>";
				str+="<div style=\"margin:10px 0;\"><a href=\"?gathering_products\" class=\"left_nav\" name=\"categ\">Gatherings Parties</a></div>";
				JQ('td.left_nav').find('br:lt(2)').remove();
				JQ('td.left_nav').prepend(str);
			});
		}
		
		var init=function()
		{
			
			var css=document.createElement('link');
			css.rel='stylesheet';
			css.href=imgBase+'gatherings.css';
			css.type='text/css';
			document.getElementsByTagName('head')[0].appendChild(css);
			
			if(typeof jQuery=="undefined")
			{
				setTimeout(init, 20);
				return false;
			}	
			if(!JQ)
				JQ=jQuery.noConflict();
			JQ(function()
			{
				buildPage();
				JQ('#about').click();
			});
		}
		
		var buildPage=function(page)
		{
			if(!c)
			{
				buildCommonPageComponents();
				c=JQ('#gatherings_body');
				return;
			}
			
			c.css({display:'none'});
			//function()
			//{
				switch(page)
				{
					case 'about': 		makeAboutPage(c);
										break;
					case 'pictures':    makePicturesPage(c);
										break;
					case 'details':     makeDetailPage(c);
										break;
				}
				c.css({display:'block'});
			//}();
			
		}
		
		
		/*
		
			Whoever reads this will henceforcth know that I am in love with Caitlin Ann Van Der Horn - for more than her delicious body and incredible looks and delightful lemur fingers.
		
		*/
		
		var buildCommonPageComponents=function()
		{
			var str="";
			str+="<div style=\"display:block;width:100%;text-align:center;_margin:10px 0 10px 0;\">";
			str+="	<div id=\"gatherings_wrapper\" style=\"display:block;width:790px;padding-bottom:5px;margin:0 auto;background:#dadada;\" >";
			str+="		<div id=\"gatherings_header\" style=\"text-align:left;display:block;height:200px;\" >";
			str+="			<div id=\"title_top\" style=\"width:100%;overflow:hidden;padding:10px;\" >";
			str+="				<div id=\"gatherings_logo\" style=\"float:left;\">";
			str+="					<a href=\"/?gatherings\" ><img src=\""+imgBase+"logo.gif\" /></a>";
			str+="				</div>";
			str+="				<div id=\"gatherings_contact_info\" style=\"float:right;width:370px;\">";
			str+="					<div id=\"phone\" style=\"margin-top:40px;height:18px;\" >201.891.0232 / 866.858.PINK</div>";
			str+="					<div id=\"email\" style=\"height:18px;\">dottie@wyckoffflorist.com</div>";
			str+="				</div>"
			str+="			</div>";
			str+="			<div id=\"title_bot\" style=\"width:100%;height:75px;overflow:hidden;background:url('"+imgBase+"nav_bg.gif') repeat-x left top;\" >";
			str+="				<div id=\"wff_logo\" style=\"margin-left:125px;\" ><a href=\"/\"><img src=\""+imgBase+"wff_logo.gif\" /></a></div>"
			str+="				<div id=\"details\" class=\"nav\" ></div>";
			str+="				<div id=\"pictures\" class=\"nav\"  style=\"background-position:110px top;\" ></div>";
			str+="				<div id=\"about\" class=\"nav\" style=\"background-position:220px top;\"></div>";
			
			str+="			</div>";
			str+="		</div>";
			str+="		<div id=\"gatherings_body_wrapper\" style=\"min-height:600px;_height:600px;background:#fff url("+imgBase+"main_bg.jpg) no-repeat left top;width:770px;margin:0 auto;\" >";
			str+="			<div id=\"gatherings_body\" style=\"text-align:left;width:730px;margin:15px auto;\" ></div>";
			str+="		</div>";
			str+="		<div id=\"gatherings_footer\" style=\"margin-top:7px;;text-align:center;\"><div>265 Godwin Ave - Wyckoff, NJ 07481</div></div>";
			str+="	</div>";
			str+="</div>";
			
			JQ('body').html(str).css('display','block');
			JQ('body img').css({
				border:0
			});
			JQ('#gatherings_contact_info>div').css({
				textAlign:'center',
				display:'block'
			});
			JQ('#title_bot>div').css({
				float:'left'
			});
			JQ('div.nav').css({
				cursor:'pointer',
				float:'right',
				backgroundImage:"url('"+imgBase+"nav_items.gif')",
				width:'109px',
				height:'60px',
				overflow:'hidden',
				marginRight:'15px'
			}).click(function()
			{
				if(JQ(this).hasClass('active'))
					return false;
				JQ(this).parent().find('.active').removeClass('active').stop().css({height:'60px',cursor:'pointer'});
				JQ(this).addClass('active').css('cursor','default').animate({height:'74px'},70);
				buildPage(	JQ(this).attr('id')	);
			});
			
			// -- sifr footer:
			sIFR.replaceElement("div#gatherings_footer div", imgBase+"sifr.swf", named({
				sColor:"#000",
				sWmode:"transparent",
				sFlashVars:"textalign=center"
			}));
			
			sIFR.replaceElement("div#email, div#phone", imgBase+"sifr.swf", named({
				sColor:"#000",
				sWmode:"transparent",
				sFlashVars:"textalign=center"
			}));
		}
		
		var makeAboutPage=function(c)
		{
			var str="";
			str+="<div style=\"padding:10px 0 0 0;_padding:0 0 0 0;\">";
			str+="	<div id=\"about_header\" style=\"visibility:hidden;margin-top:15px;\"  ><div style=\"height:35px;\" >Hosting a Party and Looking for a Fresh Idea?</div></div>";
			str+="	<div style=\"overflow:hidden;width:100%;\" >";
			str+="		<div style=\"float:left;width:450px;\">";
			str+="			<div style=\"margin-top:15px;\" ><strong>Wyckoff Florist & Gifts is excited to introduce Gatherings,</strong></div>";
			str+="			<div>our new way to help you bring some color and entertainment to your next event.</div>";
			str+="			<div style=\"margin-top:15px;\"><strong>Hosting a Gatherings party is an original and fun way to learn how to make your own beautiful arrangement!</strong></div>";
			str+="			<div style=\"margin-top:15px;\">You and your guests will:</div>";
			str+="			<div style=\"background:url("+imgBase+"pink_bullet.gif) no-repeat left center;padding-left:15px;margin-left:20px;\">Observe a personalized floral design demonstration</div>";
			str+="			<div style=\"background:url("+imgBase+"pink_bullet.gif) no-repeat left center;padding-left:15px;margin-left:20px;\">Create your own beautiful arrangements to keep</div>";
			str+="			<div style=\"background:url("+imgBase+"pink_bullet.gif) no-repeat left center;padding-left:15px;margin-left:20px;\">Be amazed at your abilities!</div>";
			str+="			<div style=\"margin-top:15px;\"><strong>Hire us for your next birthday party, bridal shower, bachelorette party or girls night!</strong></div>";
			str+="			<div style=\"margin:10px 0;\">Contact us today to reserve your date or schedule a <br />free hostess consultation.</div>";
			str+="			<div>Email: <a href=\"mailto:dottie@wyckoffflorist.com\">dottie@wyckoffflorist.com</a></div>";
			str+="			<div>Call: 201.891.0232</div>"
			str+="		</div>";
			str+="		<div style=\"float:right;\">";
			str+="			<div style=\"margin-top:15px;background:#d9879e url("+imgBase+"pink_bg.gif) repeat-x left top;padding:10px;\">";
			str+="				<div style=\"background:#c3db79 url("+imgBase+"green_bg.gif) repeat-x left top;padding:10px;\">";
			str+="					<img src=\""+imgBase+"lovely_flower.jpg\" />";
			str+="				</div>";
			str+="			</div>";
			str+="			<div style=\"visibility:hidden;width:202px;overflow:hidden;margin-top:15px;background:#d9879e url("+imgBase+"pink_bg.gif) repeat-x left top;padding:10px;\">";
			str+="				<div style=\"background:#c3db79 url("+imgBase+"green_bg.gif) repeat-x left top;text-align:center;padding:10px;\">";
			str+="					<strong style=\"font-size:20px;\">SPECIAL OFFER!</strong>";
			str+="					<div>Book before 9/30/09 <br />and we will waive your<br />$150 designer's fee!</div>";
			str+="				</div>";
			str+="			</div>";
			
			str+="		</div>";
			str+="	</div>";
			str+="</div>";
			
			c.html(str);
		
			setTimeout(function()
			{
				// -- sifr title
				sIFR.replaceElement("div#about_header div", imgBase+"sifr.swf", named({
					sColor:"#000",
					sWmode:"transparent"
				}));
			}, 50);
		}

		var makeDetailPage=function(container)
		{
			var str="";
			str+="<div>";
			str+="	<div style=\"width:100%;overflow:hidden;\">";
			str+="		<div style=\"float:left;width:100%;padding-top:20px;\">";
			str+="			<div id=\"arrangements\" style=\"font-size:18px;\"><strong>Arrangements</strong></div>";
			str+="			<div style=\"padding:0 0 10px 0;\">Our designer’s fee includes an at-home consultation where we can discuss the type of arrangement you and your guests would like to create.  Your choices are as endless as your imagination!  <br />Popular choices include:</div>";
			str+="			<div style=\"background:url("+imgBase+"pink_bullet.gif) no-repeat left center;padding-left:15px;margin-left:20px;\">Garden Basket Arrangement</div>";
			str+="			<div style=\"background:url("+imgBase+"pink_bullet.gif) no-repeat left center;padding-left:15px;margin-left:20px;\">Colorful spring vase arrangement of Holland flowers</div>";
			str+="			<div style=\"background:url("+imgBase+"pink_bullet.gif) no-repeat left center;padding-left:15px;margin-left:20px;\">European hand-tied bouquet</div>";
			str+="			<div style=\"background:url("+imgBase+"pink_bullet.gif) no-repeat left center;padding-left:15px;margin-left:20px;\">Contemporary lined arrangement</div>";
			str+="			<div style=\"background:url("+imgBase+"pink_bullet.gif) no-repeat left center;padding-left:15px;margin-left:20px;\">Novelty arrangement (e.g. a bunny or poodle)</div>";
			str+="			<div style=\"background:url("+imgBase+"pink_bullet.gif) no-repeat left center;padding-left:15px;margin-left:20px;\">Bouquets and/or centerpieces for do-it-yourself brides</div>";
			str+="		</div>";
			/*str+="		<div style=\"visibility:hidden;float:right;margin-top:20px;width:222px;overflow:hidden;\">";
			str+="			<div style=\"width:202px;overflow:hidden;margin-top:15px;background:#d9879e url("+imgBase+"pink_bg.gif) repeat-x left top;padding:10px;\">";
			str+="				<div style=\"background:#c3db79 url("+imgBase+"green_bg.gif) repeat-x left top;text-align:center;padding:10px;\">";
			str+="					<strong style=\"font-size:20px;\">SPECIAL OFFER!</strong>";
			str+="					<div>Book before 9/30/09 <br />and we will waive your<br />$150 designer's fee!</div>";
			str+="				</div>";
			str+="			</div>";
			str+="			<div style=\"font-size:14px;text-align:center;margin-top:10px;\">Call now to plan your Gathering<br />201.891.0232 / 866.858.PINK</div>";
			str+="		</div>";*/
			str+="	</div>";
			str+="	<div style=\"padding:10px 0;\">We’ll teach everyone the proper flower care, handling, design and mechanics you’ll need to know to create and maintain beautiful arrangements.</div>";

			str+="	<div style=\"padding:10px 0;\">";
			str+="		<strong>Cost</strong>"
			str+="		<div>The costs of the arrangement will be estimated after the consultation and discussed with you prior to signing an agreement.  The average cost is $55.00 per person, but prices may vary depending on the look that you desire. Set designer’s fee of $150 includes all tools, flowers, greens, containers and necessary mechanics. All clean up is ours alone.</div>";
			str+="	</div>";

			str+="	<div style=\"padding:10px 0;\">";
			str+="		<strong>Hostess Duties</strong>"
			str+="		<div>All you need to do is provide a comfortable, safe and well-lit environment for us to work (play!) - your Gathering can happen in your kitchen, basement, garage or even outside. Ensure a great time with a little music, some libations or refreshments and good cheer!</div>";
			str+="	</div>";

			str+="	<div style=\"padding:10px 0;\">";
			str+="		<strong>Additional Details</strong>";
			str+="			<div style=\"background:url("+imgBase+"pink_bullet.gif) no-repeat left 7px;padding-left:15px;margin-left:20px;\">A non-refundable deposit of $75.00 is necessary to book a party and is due before your consultation</div>";
			str+="			<div style=\"background:url("+imgBase+"pink_bullet.gif) no-repeat left 7px;padding-left:15px;margin-left:20px;\">There is a minimum requirement of 4 attendees and a maximum of 10</div>";
			str+="			<div style=\"background:url("+imgBase+"pink_bullet.gif) no-repeat left 7px;padding-left:15px;margin-left:20px;\">All participants must be at least 14 years old. Anyone under 18 must present a signed parental waiver as we will be working with sharp knives or pruners</div>";
			str+="			<div style=\"background:url("+imgBase+"pink_bullet.gif) no-repeat left 7px;padding-left:15px;margin-left:20px;\">Wyckoff Florist & Gifts is fully insured</div>";
			str+="	</div>";
			str+="	<div style=\"font-weight:bold;text-align:center;padding:5px 0 10px 0;\">";
			str+="		<div>To book your Gathering or schedule a consultation, contact Dottie:</div>";
			str+="		<div>Email: <a style=\"font-size:17px;\" href=\"mailto:dottie@wyckoffflorist.com\">dottie@wyckoffflorist.com</a></div>";
			str+="		<div>Call: 201.891.0232 / 866.858.PINK</div>";
			str+="	</div>";

			str+="</div>";
			container.html(str);
			
		}
		
		var makePicturesPage=function(c)
		{
			var str="";
			
			var pictures=[
				{src:"pic1.jpg",width:291,height:204},
				{src:"pic2.jpg",width:208,height:204},
				{src:"pic3.jpg",width:201,height:215},
				{src:"pic4.jpg",width:201,height:215}
			];
			str+="<div style=\"width:100%;overflow:hidden;\">";
			var p;
			for(var i=0;i<pictures.length;i++)
			{
				p=pictures[i];
				str+="		<div style=\"float:left;padding:10px;\">"
				str+="			<div style=\"margin-top:15px;background:#d9879e url("+imgBase+"pink_bg.gif) repeat-x left top;padding:10px;\">";
				str+="				<div style=\"background:#c3db79 url("+imgBase+"green_bg.gif) repeat-x left top;padding:10px;\">";
				str+="					<img src=\""+imgBase+p.src+"\" />";
				str+="				</div>";
				str+="			</div>";
				str+="		</div>";
			}
			str+="</div>";
			c.html(str);
		}
		//setTimeout(preInit, 10000);
		preInit();
		return _;
	};
	
	if(typeof cait !="object")
		cait=WyckoffFlorist();
