/*
* Slides, A Slideshow Plugin for jQuery
* Intructions: http://slidesjs.com
* By: Nathan Searles, http://nathansearles.com
* Version: 1.1.3
* Updated: February 21th, 2011
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
(function($){$.fn.slides=function(option){option=$.extend({},$.fn.slides.option,option);return this.each(function(){$('.'+option.container,$(this)).children().wrapAll('<div class="slides_control"/>');var elem=$(this),control=$('.slides_control',elem),total=control.children().size(),width=control.children().outerWidth(),height=control.children().outerHeight(),start=option.start-1,effect=option.effect.indexOf(',')<0?option.effect:option.effect.replace(' ','').split(',')[0],paginationEffect=option.effect.indexOf(',')<0?effect:option.effect.replace(' ','').split(',')[1],next=0,prev=0,number=0,current=0,loaded,active,clicked,position,direction,imageParent,pauseTimeout,playInterval;function animate(direction,effect,clicked){if(!active&&loaded){active=true;switch(direction){case'next':prev=current;next=current+1;next=total===next?0:next;position=width*2;direction=-width*2;current=next;break;case'prev':prev=current;next=current-1;next=next===-1?total-1:next;position=0;direction=0;current=next;break;case'pagination':next=parseInt(clicked,10);prev=$('.'+option.paginationClass+' li.current a',elem).attr('href').match('[^#/]+$');if(next>prev){position=width*2;direction=-width*2;}else{position=0;direction=0;}
current=next;break;}
if(effect==='fade'){option.animationStart();if(option.crossfade){control.children(':eq('+next+')',elem).css({zIndex:10}).fadeIn(option.fadeSpeed,option.fadeEasing,function(){if(option.autoHeight){control.animate({height:control.children(':eq('+next+')',elem).outerHeight()},option.autoHeightSpeed,function(){control.children(':eq('+prev+')',elem).css({display:'none',zIndex:0});control.children(':eq('+next+')',elem).css({zIndex:0});option.animationComplete(next+1);active=false;});}else{control.children(':eq('+prev+')',elem).css({display:'none',zIndex:0});control.children(':eq('+next+')',elem).css({zIndex:0});option.animationComplete(next+1);active=false;}});}else{option.animationStart();control.children(':eq('+prev+')',elem).fadeOut(option.fadeSpeed,option.fadeEasing,function(){if(option.autoHeight){control.animate({height:control.children(':eq('+next+')',elem).outerHeight()},option.autoHeightSpeed,function(){control.children(':eq('+next+')',elem).fadeIn(option.fadeSpeed,option.fadeEasing);});}else{control.children(':eq('+next+')',elem).fadeIn(option.fadeSpeed,option.fadeEasing,function(){if($.browser.msie){$(this).get(0).style.removeAttribute('filter');}});}
option.animationComplete(next+1);active=false;});}}else{control.children(':eq('+next+')').css({left:position,display:'block'});if(option.autoHeight){option.animationStart();control.animate({left:direction,height:control.children(':eq('+next+')').outerHeight()},option.slideSpeed,option.slideEasing,function(){control.css({left:-width});control.children(':eq('+next+')').css({left:width,zIndex:5});control.children(':eq('+prev+')').css({left:width,display:'none',zIndex:0});option.animationComplete(next+1);active=false;});}else{option.animationStart();control.animate({left:direction},option.slideSpeed,option.slideEasing,function(){control.css({left:-width});control.children(':eq('+next+')').css({left:width,zIndex:5});control.children(':eq('+prev+')').css({left:width,display:'none',zIndex:0});option.animationComplete(next+1);active=false;});}}
if(option.pagination){$('.'+option.paginationClass+' li.current',elem).removeClass('current');$('.'+option.paginationClass+' li:eq('+next+')',elem).addClass('current');}}}
function stop(){clearInterval(elem.data('interval'));}
function pause(){if(option.pause){clearTimeout(elem.data('pause'));clearInterval(elem.data('interval'));pauseTimeout=setTimeout(function(){clearTimeout(elem.data('pause'));playInterval=setInterval(function(){animate("next",effect);},option.play);elem.data('interval',playInterval);},option.pause);elem.data('pause',pauseTimeout);}else{stop();}}
if(total<2){return;}
if(start<0){start=0;}
if(start>total){start=total-1;}
if(option.start){current=start;}
if(option.randomize){control.randomize();}
$('.'+option.container,elem).css({overflow:'hidden',position:'relative'});control.children().css({position:'absolute',top:0,left:control.children().outerWidth(),zIndex:0,display:'none'});control.css({position:'relative',width:(width*3),height:height,left:-width});$('.'+option.container,elem).css({display:'block'});if(option.autoHeight){control.children().css({height:'auto'});control.animate({height:control.children(':eq('+start+')').outerHeight()},option.autoHeightSpeed);}
if(option.preload&&control.find('img').length){$('.'+option.container,elem).css({background:'url('+option.preloadImage+') no-repeat 50% 50%'});var img=control.find('img:eq('+start+')').attr('src')+'?'+(new Date()).getTime();if($('img',elem).parent().attr('class')!='slides_control'){imageParent=control.children(':eq(0)')[0].tagName.toLowerCase();}else{imageParent=control.find('img:eq('+start+')');}
control.find('img:eq('+start+')').attr('src',img).load(function(){control.find(imageParent+':eq('+start+')').fadeIn(option.fadeSpeed,option.fadeEasing,function(){$(this).css({zIndex:5});elem.css({background:''});loaded=true;});});}else{control.children(':eq('+start+')').fadeIn(option.fadeSpeed,option.fadeEasing,function(){loaded=true;});}
if(option.bigTarget){control.children().css({cursor:'pointer'});control.children().click(function(){animate('next',effect);return false;});}
if(option.hoverPause&&option.play){control.bind('mouseover',function(){stop();});control.bind('mouseleave',function(){pause();});}
if(option.generateNextPrev){$('.'+option.container,elem).after('<a href="#" class="'+option.prev+'">Prev</a>');$('.'+option.prev,elem).after('<a href="#" class="'+option.next+'">Next</a>');}
$('.'+option.next,elem).click(function(e){e.preventDefault();if(option.play){pause();}
animate('next',effect);});$('.'+option.prev,elem).click(function(e){e.preventDefault();if(option.play){pause();}
animate('prev',effect);});if(option.generatePagination){elem.append('<ul class='+option.paginationClass+'></ul>');control.children().each(function(){$('.'+option.paginationClass,elem).append('<li><a href="#'+number+'">'+(number+1)+'</a></li>');number++;});}else{$('.'+option.paginationClass+' li a',elem).each(function(){$(this).attr('href','#'+number);number++;});}
$('.'+option.paginationClass+' li:eq('+start+')',elem).addClass('current');$('.'+option.paginationClass+' li a',elem).click(function(){if(option.play){pause();}
clicked=$(this).attr('href').match('[^#/]+$');if(current!=clicked){animate('pagination',paginationEffect,clicked);}
return false;});$('a.link',elem).click(function(){if(option.play){pause();}
clicked=$(this).attr('href').match('[^#/]+$')-1;if(current!=clicked){animate('pagination',paginationEffect,clicked);}
return false;});if(option.play){playInterval=setInterval(function(){animate('next',effect);},option.play);elem.data('interval',playInterval);}});};$.fn.slides.option={preload:false,preloadImage:'../img/loading.gif',container:'slides_container',generateNextPrev:false,next:'next',prev:'prev',pagination:true,generatePagination:true,paginationClass:'pagination',fadeSpeed:350,fadeEasing:'',slideSpeed:350,slideEasing:'',start:1,effect:'slide',crossfade:false,randomize:false,play:0,pause:0,hoverPause:false,autoHeight:false,autoHeightSpeed:350,bigTarget:false,animationStart:function(){},animationComplete:function(){}};$.fn.randomize=function(callback){function randomizeOrder(){return(Math.round(Math.random())-0.5);}
return($(this).each(function(){var $this=$(this);var $children=$this.children();var childCount=$children.length;if(childCount>1){$children.hide();var indices=[];for(i=0;i<childCount;i++){indices[indices.length]=i;}
indices=indices.sort(randomizeOrder);$.each(indices,function(j,k){var $child=$children.eq(k);var $clone=$child.clone(true);$clone.show().appendTo($this);if(callback!==undefined){callback($child,$clone);}
$child.remove();});}}));};})(jQuery);

$(function(){
	$("#slides").slides({
		preload: true,
		generateNextPrev: false,
		hoverPause: true,
		pause: 1500,
		slideSpeed: 500,
		play:10000
	});

	var title = jQuery(this).attr('title');



	if(title) {
		if(title=="Creta Farms"){
			$("#home_title").addClass("active");
		} else if(title=="Creta Farms | Our Products"){
			$("#our_products_title").addClass("active");
		} else if(title=="Creta Farms | Our Products | Hot Dogs"){
			$("#our_products_title").addClass("active");
		} else if(title=="Creta Farms | Our Products | Sausages"){
			$("#our_products_title").addClass("active");
		} else if(title=="Creta Farms | Our Products | Bologna"){
			$("#our_products_title").addClass("active");
		} else if(title=="Creta Farms | Our Products | Ham"){
			$("#our_products_title").addClass("active");
		} else if(title=="Creta Farms | Our Products | Roast Beef"){
			$("#our_products_title").addClass("active");
		} else if(title=="Creta Farms | Our Products | Poultry"){
			$("#our_products_title").addClass("active");
		} else if(title=="Creta Farms | Why EVOO?"){
			$("#why_evoo_title").addClass("active");
		} else if(title=="Creta Farms | Why EVOO? | Creta Farms Story"){
			$("#why_evoo_title").addClass("active");
		} else if(title=="Creta Farms | Why EVOO? | EVOO"){
			$("#why_evoo_title").addClass("active");
		}  else if(title=="Creta Farms | Why EVOO? | Health Benefits"){
			$("#why_evoo_title").addClass("active");
		}  else if(title=="Creta Farms | Why EVOO? | Healthy Lifestyle"){
			$("#why_evoo_title").addClass("active");
		} else if(title=="Creta Farms | Community"){
			$("#community_title").addClass("active");
		} 
		 else if(title=="Creta Farms | Community | Healthy Links"){
			$("#community_title").addClass("active");
		} 
		 else if(title=="Creta Farms | Community | Testimonials"){
			$("#community_title").addClass("active");
		} 
		
		else if(title=="Creta Farms | Press"){
			$("#press_title").addClass("active");
		} else if(title=="Creta Farms | Press | Philly Fit Magazine"){
			$("#press_title").addClass("active");
		} else if(title=="Creta Farms | Press | Philadelphia Magazine"){
			$("#press_title").addClass("active");
		} else if(title=="Creta Farms | Press | CNN Greece"){
			$("#press_title").addClass("active");
		} else if(title=="Creta Farms | Press | Creta Farms Takes The Airwaves"){
			$("#press_title").addClass("active");
		} else if(title=="Creta Farms | Press | Back to School"){
			$("#press_title").addClass("active");
		} else if(title=="Creta Farms | Press | NBC 10 Show"){
			$("#press_title").addClass("active");
		} else if(title=="Creta Farms | Press | Fox 29 News"){
			$("#press_title").addClass("active");
		} else if(title=="Creta Farms | Press | Mediterranean Health"){
			$("#press_title").addClass("active");
		} else if(title=="Creta Farms | Press | Mediterranean to Philadelphia"){
			$("#press_title").addClass("active");
		} else if(title=="Creta Farms | Press | New Food"){
			$("#press_title").addClass("active");
		} else if(title=="Creta Farms | Press | Revoolution"){
			$("#press_title").addClass("active");
		} else if(title=="Creta Farms | Where To Buy"){
			$("#where_to_buy_title").addClass("active");
		}else if(title=="Creta Farms | Where To Buy2"){
			$("#where_to_buy_title").addClass("active");
		}
	}
	
	$('#input_store_locator_go, #signup_form, #unsubscribe_form, img, #contact_for').bind('dragstart', function(event) {event.preventDefault(); });
	
	
	
	
	/*
	
	var country=$("#explore option:selected").text();
	console.log(country);

	function validateSelectCountry(){
	
	if(country=="Country"){$("#selectCountry").addClass("failed");return false;}else{$("#selectCountry").removeClass("failed").addClass("accepted");return true;}}
*/

	
	
	
	
	
	
	$("#explore").change(function() {
 		var id = $(this).children(":selected").attr("id");
 		if(id == "o1"){
 			$("#product_item_o2, #product_item_o3, #product_item_o4, #product_item_o5, #product_item_o6, #product_item_o7").hide();
 			$("#product_item_o1").show();
 		} else if(id == "o2"){
 			$("#product_item_o1, #product_item_o3, #product_item_o4, #product_item_o5, #product_item_o6, #product_item_o7").hide();
 			$("#product_item_o2").show();
 		} else if(id == "o3"){
 			$("#product_item_o1, #product_item_o2, #product_item_o4, #product_item_o5, #product_item_o6, #product_item_o7").hide();
 			$("#product_item_o3").show();
 		} else if(id == "o4"){
 			$("#product_item_o1, #product_item_o2, #product_item_o3, #product_item_o5, #product_item_o6, #product_item_o7").hide();
 			$("#product_item_o4").show();
 		} else if(id == "o5"){
 			$("#product_item_o1, #product_item_o2, #product_item_o3, #product_item_o4, #product_item_o6, #product_item_o7").hide();
 			$("#product_item_o5").show();
 		} else if(id == "o6"){
 			$("#product_item_o1, #product_item_o2, #product_item_o3, #product_item_o4, #product_item_o5, #product_item_o7").hide();
 			$("#product_item_o6").show();
 		} if(id == "o7"){
 			$("#product_item_o1, #product_item_o2, #product_item_o3, #product_item_o4, #product_item_o5, #product_item_o6").hide();
 			$("#product_item_o7").show();
 		}
	});
	
	
	
	


	

	
	
	$("#dog1 .flip").live("click", function() {
		$("#dog1sideB").fadeIn();
		$("#dog1 .close").click(function() {
			$("#dog1sideB").fadeOut();
		});
	});
	
	$("#dog2 .flip").live("click", function() {
		$("#dog2sideB").fadeIn();
		$("#dog2 .close").click(function() {
			$("#dog2sideB").fadeOut();
		});
	});
	
	$("#sausage1 .flip").live("click", function() {
		$("#sausage1sideB").fadeIn();
		$("#sausage1 .close").click(function() {
			$("#sausage1sideB").fadeOut();
		});
	});
	
	$("#sausage2 .flip").live("click", function() {
		$("#sausage2sideB").fadeIn();
		$("#sausage2 .close").click(function() {
			$("#sausage2sideB").fadeOut();
		});
	});
	
	$("#sausage3 .flip").live("click", function() {
		$("#sausage3sideB").fadeIn();
		$("#sausage3 .close").click(function() {
			$("#sausage3sideB").fadeOut();
		});
	});
	
	
	$("#bologna1 .flip").live("click", function() {
		$("#bologna1sideB").fadeIn();
		$("#bologna1 .close").click(function() {
			$("#bologna1sideB").fadeOut();
		});
	});
	
	$("#bologna2 .flip").live("click", function() {
		$("#bologna2sideB").fadeIn();
		$("#bologna2 .close").click(function() {
			$("#bologna2sideB").fadeOut();
		});
	});
	
	
	
	
	
	
	
	
	/*start numbersOnly.js*/
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(2($){$.c.f=2(p){p=$.d({g:"!@#$%^&*()+=[]\\\\\\\';,/{}|\\":<>?~`.- ",4:"",9:""},p);7 3.b(2(){5(p.G)p.4+="Q";5(p.w)p.4+="n";s=p.9.z(\'\');x(i=0;i<s.y;i++)5(p.g.h(s[i])!=-1)s[i]="\\\\"+s[i];p.9=s.O(\'|\');6 l=N M(p.9,\'E\');6 a=p.g+p.4;a=a.H(l,\'\');$(3).J(2(e){5(!e.r)k=o.q(e.K);L k=o.q(e.r);5(a.h(k)!=-1)e.j();5(e.u&&k==\'v\')e.j()});$(3).B(\'D\',2(){7 F})})};$.c.I=2(p){6 8="n";8+=8.P();p=$.d({4:8},p);7 3.b(2(){$(3).f(p)})};$.c.t=2(p){6 m="A";p=$.d({4:m},p);7 3.b(2(){$(3).f(p)})}})(C);',53,53,'||function|this|nchars|if|var|return|az|allow|ch|each|fn|extend||alphanumeric|ichars|indexOf||preventDefault||reg|nm|abcdefghijklmnopqrstuvwxyz|String||fromCharCode|charCode||alpha|ctrlKey||allcaps|for|length|split|1234567890|bind|jQuery|contextmenu|gi|false|nocaps|replace|numeric|keypress|which|else|RegExp|new|join|toUpperCase|ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split('|'),0,{}));
/*end numbersOnly.js*/
	
	/*Validating first name*/
	function validateInputFirstName() {
	    var firstName = $("#fname").val();
	    var filter = /^[A-Za-z\s',.-]*$/;
	    if (firstName.length < 1) {
	        $("label[for='fname']").addClass("red");
			return false;
	    } else if (!filter.test(firstName)) {
			$("label[for='fname']").addClass("red");
			$("#fname_error").show();
			return false;
	    } else {
			$("label[for='fname']").removeClass("red");
			$("#fname_error").hide();
			return true;
	    }
	}

	/*Validating last name*/
	function validateInputLastName() {
	    var lastName = $("#lname").val();
	    var filter = /^[A-Za-z\s',.-]*$/;
	    if (lastName < 1) {
	        $("label[for='lname']").addClass("red");
			return false;
	    } else if (!filter.test(lastName)) {
			$("label[for='lname']").addClass("red");
			$("#lname_error").show();
			return false;
	    } else {
			$("label[for='lname']").removeClass("red");
			$("#lname_error").hide();
			return true;
	    }
	}

	/*Validating email*/
	function validateInputEmail() {
	    var email = $("#email").val();
	    var filter = /^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/;
	    if (filter.test(email)) {
	        $("label[for='email']").removeClass("red");
	        return true;
	    } else {
	        $("label[for='email']").addClass("red");
	        return false;
	    }
	}

	/*Validating zip*/
	$("#zip5").numeric();
	function validateInputZip() {
	    var zip = $("#zip5").val();
	    if (zip.length < 5) {
	        $("label[for='zip5']").addClass("red");
	        return false;
	    } else {
	        $("label[for='zip5']").removeClass("red");
	        return true;
	    }
	}

	/*Validating cell phone number*/
	$("#cell1, #cell2, #cell3").numeric();
	var inputHomePhoneNumberPt1=$("#mobile_area");
	var inputHomePhoneNumberPt2=$("#mobile_local3");
	var inputHomePhoneNumberPt3=$("#mobile_local4");

	function validateInputCellPhoneNumberPt1() {
	    if (inputHomePhoneNumberPt1.val().length==3) {
			$("label[for='mobile']").removeClass("red");
	        return true;
	    } else {
	        $("label[for='mobile']").addClass("red");
	        return false;
	    }
	}

	function validateInputCellPhoneNumberPt2() {
	    if (inputHomePhoneNumberPt2.val().length == 3) {
			$("label[for='mobile']").removeClass("red");
	        return true;
	    } else {
	        $("label[for='mobile']").addClass("red");
	        return false;
	    }
	}

	function validateInputCellPhoneNumberPt3() {
	    if (inputHomePhoneNumberPt3.val().length == 4) {
			$("label[for='mobile']").removeClass("red");
	        return true;
	    } else {
	        $("label[for='mobile']").addClass("red");
	        return false;
	    }
	}

	function validateCheckBox() {
		var check=$("#agree").attr('checked');
		if(check){
			$("#note2, #note2 a").removeClass("red");
	        return true;	
		} else{
			$("#note2, #note2 a").addClass("red");
	        return false;
		}
	}
	
	
	function validateTextareaMessage(){
		var texty=$("#texty");
		if (texty.val().length < 4) {
	        $("label[for='comments']").addClass("red");
	        return false;
	    } else {
			$("label[for='comments']").removeClass("red");
	        return true;
	    }
	}
	

	$("#signup_form").click(function(){
		if(validateInputFirstName() & validateInputLastName() & validateInputEmail() & validateInputZip() & validateInputCellPhoneNumberPt1() & validateInputCellPhoneNumberPt2() & validateInputCellPhoneNumberPt3() & validateCheckBox()){
			$(".error").hide();
			return true;
		} else{
			$(".error").show();
			return false;
		}
	});

	$("#unsubscribe_form").click(function(){
		if(validateInputEmail()){
			$(".error").hide();
			return true;
		} else{
			$(".error").show();
			return false;
		}
	});
	
	
	$("#contact_for").click(function(){
		if(validateInputFirstName() & validateInputEmail() & validateTextareaMessage()){
			$(".error").hide();
			return true;
		} else{
			$(".error").show();
			return false;
		}
	});


	$("#testimonial_form").click(function(){
		if(validateTextareaMessage()){
			$(".error").hide();
			return true;
		} else{
			$(".error").show();
			return false;
		}
	});
	
	
	
	$("#input_store_locator_go").click(function(){
		var inputLength = $("#input_store_locator").val();
		var inputString = $("#input_store_locator").text();
		if(inputLength < 1){
			return false;
		} else{
			return true;
		}
	});

	$("#input_store_locator_go2").click(function(){
		var inputLength = $("#input_store_locator2").val();
		if(inputLength < 1){
			return false;
		} else{
			return true;
		}
	});
	
	
	
	
	$("#input_store_locator").attr("value", "Enter Zip Code");

	var text = "Enter Zip Code";

	$("#input_store_locator").focus(function() {
		$("#input_store_locator").val('');
	});

	$("#input_store_locator").blur(function() {
		if($(this).attr("value") == "") $(this).attr("value", text);
	});
	
	
	
	
	$("#hh1").click(function(){
		$("#curtain").fadeIn(500);
		$("#hh1_img").fadeIn(750);
	});
	
	$("#hh2").click(function(){
		$("#curtain").fadeIn(500);
		$("#hh2_img").fadeIn(750);
	});
	
	$("#hh3").click(function(){
		$("#curtain").fadeIn(500);
		$("#hh3_img").fadeIn(750);
	});
	
	$("#hh4").click(function(){
		$("#curtain").fadeIn(500);
		$("#hh4_img").fadeIn(750);
	});
	
	$("#pp1").click(function(){
		$("#curtain").fadeIn(500);
		$("#pp1_img").fadeIn(750);
	});
	
	$("#pp2").click(function(){
		$("#curtain").fadeIn(500);
		$("#pp2_img").fadeIn(750);
	});
	
	$("#pp3").click(function(){
		$("#curtain").fadeIn(500);
		$("#pp3_img").fadeIn(750);
	});
	
	$("#bb1").click(function(){
		$("#curtain").fadeIn(500);
		$("#bb1_img").fadeIn(750);
	});
	
	$("#bb2").click(function(){
		$("#curtain").fadeIn(500);
		$("#bb2_img").fadeIn(750);
	});
		
	
	
	
	
	$("#ha1").click(function(){
		$("#curtain").fadeIn(500);
		$("#ha1_img").fadeIn(750);
	});
		
	
	$("#ha2").click(function(){
		$("#curtain").fadeIn(500);
		$("#ha2_img").fadeIn(750);
	});
			
	
	$("#ha3").click(function(){
		$("#curtain").fadeIn(500);
		$("#ha3_img").fadeIn(750);
	});
		
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	$("#ss1").click(function(){
		$("#curtain").fadeIn(500);
		$("#ss1_img").fadeIn(750);
	});
		
	
	$("#ss2").click(function(){
		$("#curtain").fadeIn(500);
		$("#ss2_img").fadeIn(750);
	});
			
	
	$("#ss3").click(function(){
		$("#curtain").fadeIn(500);
		$("#ss3_img").fadeIn(750);
	});
	
		
	$("#ss4").click(function(){
		$("#curtain").fadeIn(500);
		$("#ss4_img").fadeIn(750);
	});
		
	
	$("#ss5").click(function(){
		$("#curtain").fadeIn(500);
		$("#ss5_img").fadeIn(750);
	});
			
	
	$("#ss6").click(function(){
		$("#curtain").fadeIn(500);
		$("#ss6_img").fadeIn(750);
	});
	
	
	$("#ss7").click(function(){
		$("#curtain").fadeIn(500);
		$("#ss7_img").fadeIn(750);
	});
	
	
	
	$("#curtain, .recipeClose").click(function(){
		$("#curtain").fadeOut(500);
		$("#hh1_img, #hh2_img, #hh3_img, #hh4_img, #pp1_img, #pp2_img, #pp3_img, #bb1_img, #bb2_img, #ha1_img, #ha2_img, #ha3_img, #ss1_img, #ss2_img, #ss3_img, #ss4_img, #ss5_img, #ss6_img, #ss7_img").fadeOut(250);
	});
	
	
	

});


