/*----------------------------------------------------------------
[wc_about_us_page_js.js]

Project					:		Wildcraft
Version					:		1.1
Last change				:		10/21/09 []
Author					:		Ranjoy Sen
Primary use				:		about us page js
Dependency 				:		jquery-1.3.2.min_.js,
								jquery.corner.js,
								jquery.easing.1.3.js,
								jquery.scrollTo.js,
								jquery.panelgallery-1_1.js,
								jquery.pngfix.js,
								jScrollPane.js,
								jquery.topProductAnimate.js,
								jquery.bottomProductAnimate.js"
------------------------------------------------------------------*/
/*Global variable*/
var cal_warr=false;
var cal_ss=false;
var cal_si=false;
var Our_Story=true;
var Philosophy=false;
var Team=false;
/*Global variable*/

/*img png transperency*/
$(document).ready
(
	function() 
	{
		$(".select, .unselect").pngfix
		(
			{
				sizingMethod: "scale"
			}
		);
	}
);
/*img png transperency*/
$(document).ready
(
	function() 
	{
		/*scrall window*/
		$('.fun_wc_warranty_link').scrollWindowHorizontal();
		$('.fun_wc_secured_shopping_link').scrollWindowHorizontal();
		$('.fun_wc_shipping_info_link').scrollWindowHorizontal();
		/*scrall window*/
		
		/*Round corcer*/
		$('.wc_about_us_placeholder .wc_about_us_banner').corner("top cc:#0a0b0c");
		$('.wc_about_us_placeholder .wc_about_us_container').corner("bottom cc:#161618");
		$('.wc_about_us_placeholder .wc_about_us_container .wc_our_story_container .tabs').corner("cc:#000000");
		$('.wc_about_us_placeholder .wc_about_us_container .wc_our_story_container .tabs .wc_Team').corner("tr cc:#000000");
		
		$('.wc_about_us_placeholder .wc_about_us_container .wc_Philosophy_container .tabs .wc_our_Stoty').corner("tl cc:#314e94");
		$('.wc_about_us_placeholder .wc_about_us_container .wc_Philosophy_container .tabs .wc_our_Stoty').corner("bl cc:#344c94");
		$('.wc_about_us_placeholder .wc_about_us_container .wc_Philosophy_container .tabs .wc_Team').corner("tr cc:#2c3970");
		$('.wc_about_us_placeholder .wc_about_us_container .wc_Philosophy_container .tabs .wc_Team').corner("br cc:#2c3970");
		
		$('.wc_about_us_placeholder .wc_about_us_container .wc_Team_container .tabs .wc_our_Stoty').corner("tl cc:#274260");
		$('.wc_about_us_placeholder .wc_about_us_container .wc_Team_container .tabs .wc_our_Stoty').corner("bl cc:#162737");
		$('.wc_about_us_placeholder .wc_about_us_container .wc_Team_container .tabs .wc_Team').corner("tr cc:#1f374f");
		$('.wc_about_us_placeholder .wc_about_us_container .wc_Team_container .tabs .wc_Team').corner("br cc:#132333");
		/*Round corcer*/

		/*load wc_our_story_container_image*/
		var wc_our_story_container_image = new Image();
		$(wc_our_story_container_image)
			.load
			(
				function () 
				{
					$(this)
						.css('display', 'none'); // .hide() doesn't work in Safari when the element isn't on the DOM already
					$('.wc_about_us_placeholder .wc_about_us_container .wc_our_story_container .img_container')
						.removeClass('loading');
					$('.wc_about_us_placeholder .wc_about_us_container .wc_our_story_container .img_container')
						.append(this);
					$(this)
						.fadeIn
						(
							"slow",
							function()
							{
								//
							}
						);
				}
			)
			.error
			(
				function () 
				{
					alert("Sry, mage can not load");
				}
			)
			.attr
			(
				'src', 'images/wild_images/wc_AboutUs/wc_our_story.jpg'
			)
			.attr
			(
				'border', '0'
			)
			.attr
			(
				'alt', 'Accelerate your decision making'
			);
		/*load wc_our_story_container_image*/
		
		/*load wc_Philosophy_container_image*/
		var wc_Philosophy_container_image = new Image();
		$(wc_Philosophy_container_image)
			.load
			(
				function () 
				{
					$(this)
						.css('display', 'none'); // .hide() doesn't work in Safari when the element isn't on the DOM already
					$('.wc_about_us_placeholder .wc_about_us_container .wc_Philosophy_container .img_container')
						.removeClass('loading');
					$('.wc_about_us_placeholder .wc_about_us_container .wc_Philosophy_container .img_container')
						.append(this);
					$(this)
						.fadeIn
						(
							"slow",
							function()
							{
								//
							}
						);
				}
			)
			.error
			(
				function () 
				{
					alert("Sry, mage can not load");
				}
			)
			.attr
			(
				'src', 'images/wild_images/wc_AboutUs/wc_Philosophy.jpg'
			)
			.attr
			(
				'border', '0'
			)
			.attr
			(
				'alt', 'Accelerate your decision making'
			);
		/*load wc_Philosophy_container_image*/
		
		/*load wc_Team_container_image*/
		var wc_Team_container_image = new Image();
		$(wc_Team_container_image)
			.load
			(
				function () 
				{
					$(this)
						.css('display', 'none'); // .hide() doesn't work in Safari when the element isn't on the DOM already
					$('.wc_about_us_placeholder .wc_about_us_container .wc_Team_container .img_container')
						.removeClass('loading');
					$('.wc_about_us_placeholder .wc_about_us_container .wc_Team_container .img_container')
						.append(this);
					$(this)
						.fadeIn
						(
							"slow",
							function()
							{
								//
							}
						);
				}
			)
			.error
			(
				function () 
				{
					alert("Sry, mage can not load");
				}
			)
			.attr
			(
				'src', 'images/wild_images/wc_AboutUs/wc_Team.jpg'
			)
			.attr
			(
				'border', '0'
			)
			.attr
			(
				'alt', 'Accelerate your decision making'
			);
		/*load wc_Team_container_image*/
		
		/*wc_our_Stoty click*/								
		$(".wc_our_Stoty")
		.click
			(
			 	function()
				{
					Our_Story = true;
					if( Philosophy == true)
					{
						$(".wc_Philosophy_container")
						.fadeOut
						(
							"slow",
							function()
							{
								$(".wc_about_us_placeholder .wc_about_us_container .wc_our_story_container")
									.fadeIn();
							}
						);	
					}
					else if( Team == true)
					{
						$(".wc_Team_container")
						.fadeOut
						(
							"slow",
							function()
							{
								$(".wc_about_us_placeholder .wc_about_us_container .wc_our_story_container")
									.fadeIn();
							}
						);	
					}
					Philosophy = false;
					Team = false;
				}
			);
		/*wc_our_Stoty click*/		
		
		/*wc_Philosophy click*/		
		$(".wc_Philosophy")
			.click
			(
			 	function()
				{
					Philosophy = true;
					if( Our_Story == true)
					{
						$(".wc_our_story_container")
						.fadeOut
						(
							"slow",
							function()
							{
								$(".wc_about_us_placeholder .wc_about_us_container .wc_Philosophy_container")
									.fadeIn();
							}
						);	
					}
					else if( Team == true)
					{
						$(".wc_Team_container")
						.fadeOut
						(
							"slow",
							function()
							{
								$(".wc_about_us_placeholder .wc_about_us_container .wc_Philosophy_container")
									.fadeIn();
							}
						);	
					}
					Our_Story = false;
					Team = false;
				}
			);
		/*wc_Philosophy click*/		
		
		/*wc_Team click*/		
		$(".wc_Team")
			.click
			(
			 	function()
				{
					Team = true;
					if( Our_Story == true)
					{
						$(".wc_our_story_container")
						.fadeOut
						(
							"slow",
							function()
							{
								$(".wc_about_us_placeholder .wc_about_us_container .wc_Team_container")
									.fadeIn();
							}
						);	
					}
					else if( Philosophy == true)
					{
						$(".wc_Philosophy_container")
						.fadeOut
						(
							"slow",
							function()
							{
								$(".wc_about_us_placeholder .wc_about_us_container .wc_Team_container")
									.fadeIn();
							}
						);	
					}
					Our_Story = false;
					Philosophy = false;
				}
			);
		/*wc_Team click*/
		
		/* page load button opacity*/
		$('.wc_about_us_placeholder .wc_about_us_container .wc_our_story_container .tabs .wc_Philosophy')
			.css
			(
			 	{
					opacity		:	0.6
				}
			);
			$('.wc_about_us_placeholder .wc_about_us_container .wc_our_story_container .tabs .wc_Team')
			.css
			(
			 	{
					opacity		:	0.6
				}
			);
		
		$('.wc_about_us_placeholder .wc_about_us_container .wc_Philosophy_container .tabs .wc_our_Stoty')
			.css
			(
			 	{
					opacity		:	0.6
				}
			);
			$('.wc_about_us_placeholder .wc_about_us_container .wc_Philosophy_container .tabs .wc_Team')
			.css
			(
			 	{
					opacity		:	0.6
				}
			);
		$('.wc_about_us_placeholder .wc_about_us_container .wc_Team_container .tabs .wc_Philosophy')
			.css
			(
			 	{
					opacity		:	0.6
				}
			);
			$('.wc_about_us_placeholder .wc_about_us_container .wc_Team_container .tabs .wc_our_Stoty')
			.css
			(
			 	{
					opacity		:	0.6
				}
			);
		/* page load button opacity*/
		
		/* wc_our_story_container wc_Philosophy button opacity on mouseover*/
		$('.wc_about_us_placeholder .wc_about_us_container .wc_our_story_container .tabs .wc_Philosophy')
			.bind
			(
			 	"mouseenter",
				function()
				{
					$(this)
						.css
						(
							{
								opacity		:	1
							}
						);
    			}
			)
			.bind
			(
			 	"mouseleave",
				function()
				{
					$(this)
						.css
						(
							{
								opacity		:	0.6
							}
						);
   		 		}
			);		
		/* wc_our_story_container wc_Philosophy button opacity on mouseover*/
		
		/* wc_our_story_container wc_Team button opacity on mouseover*/
		$('.wc_about_us_placeholder .wc_about_us_container .wc_our_story_container .tabs .wc_Team')
			.bind
			(
			 	"mouseenter",
				function()
				{
					$(this)
						.css
						(
							{
								opacity		:	1
							}
						);
    			}
			)
			.bind
			(
			 	"mouseleave",
				function()
				{
					$(this)
						.css
						(
							{
								opacity		:	0.6
							}
						);
   		 		}
			);
		/* wc_our_story_container wc_Team button opacity on mouseover*/
		
		/* wc_Philosophy_container wc_our_Stoty button opacity on mouseover*/
		$('.wc_about_us_placeholder .wc_about_us_container .wc_Philosophy_container .tabs .wc_our_Stoty')
			.bind
			(
			 	"mouseenter",
				function()
				{
					$(this)
						.css
						(
							{
								opacity		:	1
							}
						);
    			}
			)
			.bind
			(
			 	"mouseleave",
				function()
				{
					$(this)
						.css
						(
							{
								opacity		:	0.6
							}
						);
   		 		}
			);	
		/* wc_Philosophy_container wc_our_Stoty button opacity on mouseover*/
		
		/* wc_Philosophy_container wc_Team button opacity on mouseover*/
		$('.wc_about_us_placeholder .wc_about_us_container .wc_Philosophy_container .tabs .wc_Team')
			.bind
			(
			 	"mouseenter",
				function()
				{
					$(this)
						.css
						(
							{
								opacity		:	1
							}
						);
    			}
			)
			.bind
			(
			 	"mouseleave",
				function()
				{
					$(this)
						.css
						(
							{
								opacity		:	0.6
							}
						);
   		 		}
			);
		/* wc_Philosophy_container wc_Team button opacity on mouseover*/
		
		/* wc_Team_container wc_Philosophy button opacity on mouseover*/
		$('.wc_about_us_placeholder .wc_about_us_container .wc_Team_container .tabs .wc_Philosophy')
			.bind
			(
			 	"mouseenter",
				function()
				{
					$(this)
						.css
						(
							{
								opacity		:	1
							}
						);
    			}
			)
			.bind
			(
			 	"mouseleave",
				function()
				{
					$(this)
						.css
						(
							{
								opacity		:	0.6
							}
						);
   		 		}
			);	
		/* wc_Team_container wc_Philosophy button opacity on mouseover*/
		
		/* wc_Team_container wc_our_Stoty button opacity on mouseover*/
		$('.wc_about_us_placeholder .wc_about_us_container .wc_Team_container .tabs .wc_our_Stoty')
			.bind
			(
			 	"mouseenter",
				function()
				{
					$(this)
						.css
						(
							{
								opacity		:	1
							}
						);
    			}
			)
			.bind
			(
			 	"mouseleave",
				function()
				{
					$(this)
						.css
						(
							{
								opacity		:	0.6
							}
						);
   		 		}
			);
		/* wc_Team_container wc_our_Stoty button opacity on mouseover*/
	}
);
