	$(document).ready(
		function()
			{
			$('#txt1inr').toggle
				(
					function ()
					{
					$('#txt1inr > p > img').attr({src: "imgs/arrow2.png"});
					$('#txt1inr').animate({height:"317px", paddingBottom:"0px"},500);
					},
					function () 
					{
					$('#txt1inr > p > img').attr({src: "imgs/arrow.png"});
					$('#txt1inr').animate({height:"60px",paddingBottom:"18px"},500);
					}
				);
			$('#txt2inr').toggle
				(
					function ()
					{
					$('#txt2inr > p > img').attr({src: "imgs/arrow2.png"});
					$('#txt2inr').animate({height:"315px",paddingBottom:"0px"},500);
					},
					function () 
					{
					$('#txt2inr > p > img').attr({src: "imgs/arrow.png"});
					$('#txt2inr').animate({height:"60px",'paddingBottom':"23px"},500);
					}
				);
			$('#gall').galleryView(
				{
				panel_width: 550,
				panel_height: 350,
				frame_width: 73,
				frame_height: 73,
				overlay_height: 70,
				overlay_position: 'bottom',
				background_color: 'black',
				pause_on_hover: 'true'
				});
			
			$(function() {
				$('#prodwrap > ul > li').click(function(){
					$(this).attr("id","clicked");
					if($(this).attr("class")=="collapse")
						{
						//hide the open panel content and show header
						$(".stretch div").fadeOut(100,function(){
							$(".stretch").find('h3').fadeIn(100, function(){
								//hide this panel's header
								$("#clicked").find('h3').fadeOut(150,function(){
									//close the open panel
									$(".stretch").animate({width:"30px"},300,function(){
										//expand this panel and show content
										$(this).attr("class","collapse");
										$("#clicked").animate({width:"670px"},300, function() {
											$("#clicked").find('div').fadeIn(250);
											$("#clicked").attr("class","stretch");
											$("#clicked").attr("id","");
											});
										});
									});
								});
							});
						}
					});
				});
			$('#contactform').validate();
			}
			);