/*----------------------------------------------------------------
[wc_home_js.js]

Project					:		Wildcraft
Version					:		1.1
Last change				:		10/19/09 []
Author					:		Ranjoy Sen
Primary use				:		home 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"
------------------------------------------------------------------*/
var cal_warr=false;
var cal_ss=false;
var cal_si=false;
var scralling_image_1=true;
var scralling_image_2=false;
var scralling_image_3=false;
var scralling_image_4=false;
var scralling_image_5=false;
var timeSpan = 5000;
var ctime ;
/*img png transperency*/
$(document).ready
(
	function() 
	{
		$('.wc_image_slider_btn')
		.css({backgroundPosition: "0 -22px"})
	$("#img1")						
		.css({backgroundPosition: "0 0"})	
	}
);
/*img png transperency*/
/*Load images*/
$(document).ready
(
	function() 
	{
		ctime = setTimeout("rotate_theam2();",timeSpan);});
		/*$(".loding_text")
			.html("Rucksacks Daypacks");*/
		/*load theme1*/
		/*var theme_image1 = new Image();
		$(theme_image1)
			.load
			(
				function () 
				{
					$(this)
						
						.css('display', 'none'); // .hide() doesn't work in Safari when the element isn't on the DOM already
					$('.Theme_1')
						//.removeClass('loading')
						.append(this);
					$(this)
						.fadeIn
						(
							"slow",
							function()
							{
								$(".loding_text")
									.html("There are no foreign lands. It is the traveller only who is foreign.");
								var theme_image2 = new Image();
								$(theme_image2)
									.load
									(
										function () 
										{
											$(this)
												
												.css('display', 'none'); // .hide() doesn't work in Safari when the element isn't on the DOM already
											$('.Theme_2')
												//.removeClass('loading')
												.append(this);
											$(this)
												.fadeIn
												(
													"slow",
													function()
													{
														$(".loding_text")
															.html("Loading http://www.wildcraft.in/(40%) ... please wait");
														var theme_image3 = new Image();
														$(theme_image3)
															.load
															(
																function () 
																{
																	$(this)
																		
																		.css('display', 'none'); // .hide() doesn't work in Safari when the element isn't on the DOM already
																	$('.Theme_3')
																		//.removeClass('loading')
																		.append(this);
																	$(this)
																		.fadeIn
																		(
																			"slow",
																			function()
																			{
																				$(".loding_text")
																					.html("Loading http://www.wildcraft.in/(60%) ... please wait");
																				var theme_image4 = new Image();
																				$(theme_image4)
																					.load
																					(
																						function () 
																						{
																							$(this)
																								
																								.css('display', 'none'); // .hide() doesn't work in Safari when the element isn't on the DOM already
																							$('.Theme_4')
																								//.removeClass('loading')
																								.append(this);
																							$(this)
																								.fadeIn
																								(
																									"slow",
																									function()
																									{
																										$(".loding_text")
																											.html("Loading http://www.wildcraft.in/(80%) ... please wait");
																										var theme_image5 = new Image();
																										$(theme_image5)
																											.load
																											(
																												function () 
																												{
																													$(this)
																														.css('display', 'none'); // .hide() doesn't work in Safari when the element isn't on the DOM already
																													$('.Theme_5')
																														//.removeClass('loading')
																														.append(this);
																													$(this)
																														.fadeIn
																														(
																															"slow",
																															function()
																															{
																																$(".loding_text")
																																	.html("Loading http://www.wildcraft.in/(100%) ... please wait");
																																setTimeout('$(".loding_text").html("Welcome to Wildcraft");',1000)
																																setTimeout('$(".wc_home_loader_placeholder").hide();$(".wc_home_placeholder").fadeIn("fast",function(){ctime = setTimeout("rotate_theam2();",timeSpan);});',2000);
																															}
																														)
																												}
																											)
																											.error
																											(
																												function () 
																												{
																													// notify the user that the image could not be loaded
																												}
																											)
																											.attr
																											(
																												'src', 'images/wild_images/Theme_5.gif'
																											)
																											.attr
																											(
																												'alt', 'Gear for life'
																											)
																											.attr
																											(
																												'class', 'display-block noborder nomargin nopadding'
																											);
																									}
																								)
																						}
																					)
																					.error
																					(
																						function () 
																						{
																							// notify the user that the image could not be loaded
																						}
																					)
																					.attr
																					(
																						'src', 'images/wild_images/Theme_4.gif'
																					)
																					.attr
																					(
																						'alt', 'Gear for life'
																					)
																					.attr
																					(
																						'class', 'display-block noborder nomargin nopadding'
																					);
																			}
																		)
																}
															)
															.error
															(
																function () 
																{
																	// notify the user that the image could not be loaded
																}
															)
															.attr
															(
																'src', 'images/wild_images/Theme_3.gif'
															)
															.attr
															(
																'alt', 'Gear for life'
															)
															.attr
															(
																'class', 'display-block noborder nomargin nopadding'
															);
													}
												)
										}
									)
									.error
									(
										function () 
										{
											// notify the user that the image could not be loaded
										}
									)
									.attr
									(
										'src', 'images/wild_images/Theme_2.gif'
									)
									.attr
									(
										'alt', 'Gear for life'
									)
									.attr
									(
										'class', 'display-block noborder nomargin nopadding'
									);
							}
						)
				}
			)
			.error
			(
				function () 
				{
					// notify the user that the image could not be loaded
				}
			)
			.attr
			(
				'src', 'images/wild_images/Theme_1.gif'
			)
			.attr
			(
				'alt', 'Gear for life'
			)
			.attr
			(
				'class', 'display-block noborder nomargin nopadding'
			);*/
		/*load theme1*/
	/*}
);*/
/*Load images*/

$(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_home_content_placeholder .wc_mid .wc_gear_for_life_shadow').corner("cc:#0b0b0c");
		$('.wc_home_content_placeholder .wc_Login').corner("top 10px cc:#000000");
		$('.wc_home_content_placeholder .wc_Login_container').corner("cc:#000000 10px");
		$('.wc_home_content_placeholder .wc_Login_container_shadow').corner("cc:#000000 10px");
		$('.wc_product_e_com_shadow').corner("cc:#0b0b0c");
		$('.wc_menu_container_shadow').corner("cc:#161618 tl");//0a0a0b
		$('.wc_menu_container_shadow').corner("cc:#161618 br");//0a0a0b
		$('.wc_menu_container_shadow').corner("cc:#161618 bl");//0a0a0b
		$('.wc_menu_container_shadow').corner("cc:#0a0a0b tr");//0a0a0b
		$('.wc_product_e_com').corner("tl cc:#0b0b0c tr cc:#0b0b0c bl cc:#0b0b0c br cc:#0b0b0c");
		$('.wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_bottom').corner("cc:#333333 bl");
		$('.wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_bottom').corner("cc:#333333 br");
		$('.wc_home_content_placeholder .wc_mid .wc_links .wc_warranty_link').corner("bl cc:#0a0b0c");
		$('.wc_home_content_placeholder .wc_mid .wc_links .wc_shipping_info_link').corner("br cc:#0a0b0c");
		$('.wc_home_content_placeholder .wc_links_warr_con_placeholder .round_c').corner("bottom cc:#161618");
		$('.wc_home_content_placeholder .wc_links_warr_con_placeholder .round_c').corner("br cc:#000000");
		$('.wc_home_content_placeholder .wc_links_shipping_info_cont_placeholder .round_c').corner("bottom cc:#0a0b0c");
		$('.wc_home_content_placeholder .wc_links_secured_shopping_con_placeholder .round_c').corner("bottom cc:#0a0b0c");
		$('.wc_home_content_placeholder .wc_footer .wc_share_corner .wc_Find_About_Contact').corner("cc:#0e0f10 5px");
		/*Round corcer*/
		
		/*image galary auto transition*/
		/*$('.wc_gear_for_life').panelGallery({
			sections: 6,
			imageTransitionDelay : 3000,
			sectionTransitionDelay : 400,
			startDelay : 0,
			repeat:true
		});*/
		/*image galary auto transition*/
		
		/*Chenge class on warrenty mouse over */
		$(".fun_wc_warranty_link")
			.bind
			(
			 	"mouseenter",
				function()
				{
					fun_wc_warranty_link_mouseenter();
    			}
			)
			.bind
			(
			 	"mouseleave",
				function()
				{					
					if(cal_warr == true)
					{
						
					}
					else
					{
						fun_wc_warranty_link_mouseleave();
					}
   		 		}
			);
		/*Chenge class on warrenty mouse over */
		
		/*Chenge class on secured shopping mouse over */
		$(".fun_wc_secured_shopping_link")
			.bind
			(
			 	"mouseenter",
				function()
				{
					fun_wc_secured_shopping_link_mouseenter();
    			}
			)
			.bind
			(
			 	"mouseleave",
				function()
				{
					
					if(cal_ss == true)
					{
						//
					}
					else
					{
						fun_wc_secured_shopping_link_mouseleave();
					}
   		 		}
			);
		/*Chenge class on secured shopping mouse over */
		
		/*Chenge class on shipping info mouse over */
		$(".fun_wc_shipping_info_link")
			.bind
			(
			 	"mouseenter",
				function()
				{
					fun_wc_shipping_info_link_mouseenter();
    			}
			)
			.bind
			(
			 	"mouseleave",
				function()
				{
					
					if(cal_si == true)
					{
						//
					}
					else
					{
						fun_wc_shipping_info_link_mouseleave();
					}
   		 		}
			);
		/*Chenge class on shipping info mouse over */
		
		/*warranty popup window open*/
		$(".fun_wc_warranty_link")
			.toggle
			(
				function()
				{
					if(cal_ss == true)
					{
						ss_pop_off();
						setTimeout("warr_pop_on();fun_wc_warranty_link_mouseenter()",1500);
					}
					else if(cal_si == true)
					{
						si_pop_off();
						setTimeout("warr_pop_on();fun_wc_warranty_link_mouseenter()",1500);
					}
					else
					{
						warr_pop_on();
						fun_wc_warranty_link_mouseenter();
					}
					/*si_pop_off();
					ss_pop_off();
					setTimeout("warr_pop_on()",1500);*/
				},
				function()
				{
					if(cal_ss == true)
					{
						ss_pop_off();
						setTimeout("warr_pop_on();fun_wc_warranty_link_mouseenter()",1500);
					}
					else if(cal_si == true)
					{
						si_pop_off();
						setTimeout("warr_pop_on();fun_wc_warranty_link_mouseenter()",1500);
					}
					else
					{
						warr_pop_off();
					}
    			}
			);
		/*warranty popup window open*/
		/*secured shopping popup window open*/
		$(".fun_wc_secured_shopping_link")
			.toggle
			(
				function()
				{
					if(cal_warr == true)
					{
						warr_pop_off();
						setTimeout("ss_pop_on();fun_wc_secured_shopping_link_mouseenter()",1500);
					}
					else if(cal_si == true)
					{
						si_pop_off();
						setTimeout("ss_pop_on();fun_wc_secured_shopping_link_mouseenter()",1500);
					}
					else
					{
						ss_pop_on();
						fun_wc_secured_shopping_link_mouseenter();
					}
				},
				function()
				{
					if(cal_warr == true)
					{
						warr_pop_off();
						setTimeout("ss_pop_on();fun_wc_secured_shopping_link_mouseenter()",1500);
					}
					else if(cal_si == true)
					{
						si_pop_off();
						setTimeout("ss_pop_on()fun_wc_secured_shopping_link_mouseenter()",1500);
					}
					else
					{
						ss_pop_off();
					}
					
    			}
			);
		/*secured shopping popup window open*/
		
		/*shipping info popup window open*/
		$(".fun_wc_shipping_info_link")
			.toggle
			(
				function()
				{
					if(cal_warr == true)
					{
						warr_pop_off();
						setTimeout("si_pop_on();fun_wc_shipping_info_link_mouseenter()",1500);
					}
					else if(cal_ss == true)
					{
						ss_pop_off();
						setTimeout("si_pop_on();fun_wc_shipping_info_link_mouseenter()",1500);
					}
					else
					{
						si_pop_on();
						;fun_wc_shipping_info_link_mouseenter();
					}
				},
				function()
				{
					if(cal_warr == true)
					{
						warr_pop_off();
						setTimeout("si_pop_on();fun_wc_shipping_info_link_mouseenter()",1500);
					}
					else if(cal_ss == true)
					{
						ss_pop_off();
						setTimeout("si_pop_on();fun_wc_shipping_info_link_mouseenter()",1500);
					}
					else
					{
						si_pop_off();
					}
					
    			}
			);
		/*warranty popup window open*/
		
		/*shipping info popup window open*/
		$(".wc_Login a")
			.toggle
			(
				function()
				{
					$(".wc_home_content_placeholder .wc_Login")
						.css
						(
							{
								backgroundImage: "url(images/wild_images/wc_login_button_bg.gif)",
								backgroundRepeat: "repeat-x"
							}
						);
					$(".wc_Login_container")
					.animate
					(
						{ 
							marginTop			:	34,
							height				:	190,
							width				:	300,
							marginLeft			:	667
						}, 
						{
							duration: 'slow',
							easing: 'easeOutExpo', 
							complete: 
							function () 
							{
								$(".wc_Login_container_shadow")
									.fadeIn
									(
									 	"fast",
										function()
										{
											$(this).css
											(
												{
													opacity:0.8	
												}
											);
										}
									)
								$('.wc_home_content_placeholder .wc_Login_container').corner("br cc:#333333");
								$(".wc_home_content_placeholder .wc_Login_container .content")
									.fadeIn();
							} 
						}
					);
					
				},
				function()
				{
					$(".wc_home_content_placeholder .wc_Login_container .content")
						.fadeOut
						(
						 
							"slow",
							function()
							{
								$(".wc_Login_container_shadow")
									.fadeOut
									(
										"fast",
										function()
										{
											$(".wc_Login_container")
												.animate
												(
													{ 
														marginTop			:	18,
														height				:	30,
														width				:	30,
														marginLeft			:	864
													}, 
													{
														duration: 'slow',
														easing: 'easeOutExpo', 
														complete: 
														function () 
														{
															$(".wc_home_content_placeholder .wc_Login")
															.css
															(
																{
																	backgroundImage: ""
																}
															);
														} 
													}
												);	
										}
									);
							}
						);
    			}
			);
		/*warranty popup window open*/
		
		/*image scroller*/
		$("#img1")
			.click(
				function()
				{		
					clearTimeout(ctime);
					ctime = setTimeout("rotate_theam1()",0);
				}
			);
		$("#img2")
			.click(
				function()
				{	
					clearTimeout(ctime);
					ctime = setTimeout("rotate_theam2()",0);
				}
			);
		$("#img3")
			.click(
				function()
				{
					clearTimeout(ctime);
					ctime = setTimeout("rotate_theam3()",0);
				}
			);
		$("#img4")
			.click(
				function()
				{
					clearTimeout(ctime);
					ctime = setTimeout("rotate_theam4()",0);
				}
			);
		$("#img5")
			.click(
				function()
				{
					clearTimeout(ctime);
					ctime = setTimeout("rotate_theam5()",0);
				}
			)
		/*image scroller*/
	}
);
function warr_pop_on()
{
	cal_warr = true;
	/*bottom left round corder color cccccc*/
	$('.wc_product_e_com').corner("bl cc:#cccccc");
	/*bottom left round corder color cccccc*/
	/*Open popup */
	$(".wc_links_warr_con_placeholder")
		.animate
		(
			{ 
				top				: 	163 
			}, 
			{
				duration: 'slow',
				easing: 'easeInOutBack', 
				complete: 
				function () 
				{
					
					$('.wc_home_content_placeholder .wc_links_warr_con_placeholder .round_c')
						.animate
						(
							{ 
								width				: 	267 
							}, 
							{
								duration: 'slow',
								easing: 'easeOutExpo', 
								complete: 
								function () 
								{
									$('.wc_product_e_com').corner("br cc:#cccccc");
									
									$('.wc_menu_container_shadow')
										.fadeIn();
									$('.wc_home_content_placeholder .wc_mid .wc_links_warr_con_placeholder .round_c .jScrollPaneContainer')
										.fadeIn();
									$('#wc_links_warr_con_placeholder_details')
										.fadeIn()
										.jScrollPane({showArrows:true});
									$(".warranty_image")
										.fadeIn();
								} 
							}
						);
				} 
			}
		);
	/*Open popup */	
}
function warr_pop_off()
{
	cal_warr = false;
	$('.wc_menu_container_shadow')
		.hide();
	$(".warranty_image")
		.hide();
	$('.wc_home_content_placeholder .wc_mid .wc_links_warr_con_placeholder .round_c .jScrollPaneContainer')
		.hide();
	/*default wc_product_e_com bottom right corner color*/
	$('.wc_product_e_com').corner("br cc:#0b0b0c");
	/*default wc_product_e_com bottom right corner color*/
	/*close popup*/
	$('.wc_home_content_placeholder .wc_links_warr_con_placeholder .round_c')
		.animate
		(
			{ 
				width				: 	71 
			}, 
			{
				duration: 'slow',
				easing: 'easeOutExpo', 
				complete: 
				function () 
				{
					$(".wc_links_warr_con_placeholder")
						.animate
						(
							{ 
								top				: 	0 
							}, 
							{
								duration: 'slow',
								easing: 'easeInOutBack', 
								complete: 
								function () 
								{
									$('.wc_product_e_com').corner("bl cc:#0b0b0c");
									if($('.wc_links_warr_con_placeholder').css("top") > "0px")
									{
										//
									}
									else
									{
										$(".wc_warranty_link_placeholder")
											.css
											(
												{
													background		:	"#333333"
												}
											);
										$(".wc_warranty_link")
											.css
											(
												{
													color			:	"#ffffff"
												}
											);
										$('.wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_bottom').corner("cc:#333333 bl");
									}
									
								} 
							}
						);
				} 
			}
		);
	/*close popup*/
}
function ss_pop_on()
{
	cal_ss = true;
	/*Open popup */
	$(".wc_links_secured_shopping_con_placeholder")
		.animate
		(
			{ 
				top				: 	163 
			}, 
			{
				duration: 'slow',
				easing: 'easeInOutBack', 
				complete: 
				function () 
				{
					
					$('.wc_home_content_placeholder .wc_links_secured_shopping_con_placeholder .round_c')
						.animate
						(
							{ 
								width				:	267,
								marginLeft			:	0
							}, 
							{
								duration: 'slow',
								easing: 'easeOutExpo', 
								complete: 
								function () 
								{
									$('.wc_product_e_com').corner("bl cc:#cccccc");
									$('.wc_product_e_com').corner("br cc:#cccccc");
									$('.wc_menu_container_shadow')
										.fadeIn();
									$('.wc_home_content_placeholder .wc_mid .wc_links_secured_shopping_con_placeholder .round_c .jScrollPaneContainer')
										.fadeIn();
									$('#wc_links_secured_shopping_con_placeholder_details')
										.fadeIn()
										.jScrollPane({showArrows:true});
								} 
							}
						);
				} 
			}
		);
	/*Open popup */	
}
function ss_pop_off()
{
	cal_ss = false;
	$('.wc_menu_container_shadow')
		.hide();
	$('.wc_home_content_placeholder .wc_mid .wc_links_secured_shopping_con_placeholder .round_c .jScrollPaneContainer')
		.hide();
	$('.wc_product_e_com').corner("br cc:#0b0b0c");
	$('.wc_product_e_com').corner("bl cc:#0b0b0c");
	/*close popup*/
	$('.wc_home_content_placeholder .wc_links_secured_shopping_con_placeholder .round_c')
		.animate
		(
			{ 
				width				:	102,
				marginLeft			:	71
			}, 
			{
				duration: 'slow',
				easing: 'easeOutExpo', 
				complete: 
				function () 
				{
					$(".wc_links_secured_shopping_con_placeholder")
						.animate
						(
							{ 
								top				: 	0 
							}, 
							{
								duration: 'slow',
								easing: 'easeInOutBack', 
								complete: 
								function () 
								{
									if($('.wc_links_secured_shopping_con_placeholder').css("top") > "0px")
									{
										//
									}
									else
									{
										$(".wc_secured_shopping_link_placeholder")
											.css
											(
												{
													background		:	"#333333"
												}
											);
										$(".wc_secured_shopping_link")
											.css
											(
												{
													color			:	"#ffffff"
												}
											);
										$('.wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_bottom').corner("cc:#333333 bl");
									}
									
								} 
							}
						);
				} 
			}
		);
	/*close popup*/
}
function si_pop_on()
{
	cal_si = true;
	/*bottom left round corder color cccccc*/
	$('.wc_product_e_com').corner("br cc:#cccccc");
	/*bottom left round corder color cccccc*/
	/*Open popup */
	$(".wc_links_shipping_info_cont_placeholder")
		.animate
		(
			{ 
				top				: 	163 
			}, 
			{
				duration: 'slow',
				easing: 'easeInOutBack', 
				complete: 
				function () 
				{
					
					$('.wc_home_content_placeholder .wc_links_shipping_info_cont_placeholder .round_c')
						.animate
						(
							{ 
								width				:	267,
								marginLeft			:	0
							}, 
							{
								duration: 'slow',
								easing: 'easeOutExpo', 
								complete: 
								function () 
								{
									$('.wc_product_e_com').corner("bl cc:#cccccc");
									$('.wc_menu_container_shadow')
										.fadeIn();
									$('.wc_home_content_placeholder .wc_mid .wc_links_shipping_info_con_placeholder .round_c .jScrollPaneContainer')
										.fadeIn();
									$('#wc_links_shipping_info_con_placeholder_details')
										.fadeIn()
										.jScrollPane({showArrows:true});
								} 
							}
						);
				} 
			}
		);
	/*Open popup */	
}
function si_pop_off()
{
	cal_si = false;
	$('.wc_menu_container_shadow')
		.hide();
	$('.wc_home_content_placeholder .wc_mid .wc_links_shipping_info_cont_placeholder .round_c .jScrollPaneContainer')
		.hide();
	/*default wc_product_e_com bottom right corner color*/
	$('.wc_product_e_com').corner("bl cc:#0b0b0c");
	/*default wc_product_e_com bottom right corner color*/
	/*close popup*/
	$('.wc_home_content_placeholder .wc_links_shipping_info_cont_placeholder .round_c')
		.animate
		(
			{ 
				width				:	94,
				marginLeft			:	173
			}, 
			{
				duration: 'slow',
				easing: 'easeOutExpo', 
				complete: 
				function () 
				{
					$(".wc_links_shipping_info_cont_placeholder")
						.animate
						(
							{ 
								top				: 	0 
							}, 
							{
								duration: 'slow',
								easing: 'easeInOutBack', 
								complete: 
								function () 
								{
									$('.wc_product_e_com').corner("br cc:#0b0b0c");
									if($('.wc_links_shipping_info_cont_placeholder').css("top") > "0px")
									{
										//
									}
									else
									{
										$(".wc_shipping_info_link_placeholder")
											.css
											(
												{
													background		:	"#333333"
												}
											);
										$(".wc_shipping_info_link")
											.css
											(
												{
													color			:	"#ffffff"
												}
											);
										$('.wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_bottom').corner("cc:#333333 br");
									}
									
								} 
							}
						);
				} 
			}
		);
		/*close popup*/
}

/*fun_wc_warranty_link_mouseover*/
function fun_wc_warranty_link_mouseenter()
	{
		$(".wc_warranty_link_placeholder")
			.css
			(
				{
					background		:	"#cccccc"
				}
			);
		$(".wc_warranty_link")
			.css
			(
				{
					color			:	"#000000"
				}
			);
		$('.wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_bottom').corner("cc:#cccccc bl");
	}
	function fun_wc_warranty_link_mouseleave()
	{
		$(".wc_warranty_link_placeholder")
			.css
			(
				{
					background		:	"#333333"
				}
			);
		$(".wc_warranty_link")
			.css
			(
				{
					color			:	"#ffffff"
				}
			);
		$('.wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_bottom').corner("cc:#333333 bl");
	}
/*fun_wc_warranty_link_mouseover*/

/*fun_wc_secured_shopping_link_mouseover*/
function fun_wc_secured_shopping_link_mouseenter()
{
	$(".wc_secured_shopping_link_placeholder")
		.css
		(
			{
				background		:	"#cccccc"
			}
		);
	$(".wc_secured_shopping_link")
		.css
		(
			{
				color			:	"#000000"
			}
		);
}
function fun_wc_secured_shopping_link_mouseleave()
{
	$(".wc_secured_shopping_link_placeholder")
		.css
		(
			{
				background		:	"#333333"	,
				color			:	"#ffffff"
			}
		);
	$(".wc_secured_shopping_link")
		.css
		(
			{
				color			:	"#ffffff"
			}
		);
}
/*fun_wc_secured_shopping_link_mouseover*/

/*fun_wc_shipping_info_link_mouseover*/
function fun_wc_shipping_info_link_mouseenter()
{
	$(".wc_shipping_info_link_placeholder")
		.css
		(
			{
				background		:	"#cccccc"
			}
		);
	$(".wc_shipping_info_link")
		.css
		(
			{
				color			:	"#000000"
			}
		);
	$('.wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_bottom').corner("cc:#cccccc br");
}
function fun_wc_shipping_info_link_mouseleave()
{
	$(".wc_shipping_info_link_placeholder")
			.css
			(
				{
					background		:	"#333333"	,
					color			:	"#ffffff"
				}
			);
		$(".wc_shipping_info_link")
			.css
			(
				{
					color			:	"#ffffff"
				}
			);
		$('.wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_bottom').corner("cc:#333333 br");	
}
/*fun_wc_shipping_info_link_mouseover*/
function rotate_theam1()
{
	$(".wc_gear_for_life")
		.stop()
		.scrollTo
			( 
				$('.Theme_1'), 
				1000,
				function()
				{
					ctime = setTimeout("rotate_theam2();",timeSpan);
				} 
			);	
	$(".wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_top")
		.scrollTo
			( 
				$('#product1'), 
				1000,
				function()
				{
					//ctime = setTimeout("rotate_theam2();",timeSpan);
				} 
			);
	$(".wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_bottom .wc_bottom_flat_corner")
		.scrollTo
			( 
				$('#bproduct1'), 
				1000,
				function()
				{
					//ctime = setTimeout("rotate_theam2();",timeSpan);
				} 
			);
	
	$('.wc_image_slider_btn')
		.css({backgroundPosition: "0 -22px"})
	$("#img1")						
		.css({backgroundPosition: "0 0"})						
	$(".select, .unselect").pngfix
	(
		{
			sizingMethod: "scale"
		}
	);
}
function rotate_theam2()
{
	$(".wc_gear_for_life")
		.stop()
		.scrollTo
			( 
				$('.Theme_2'), 
				1000,
				function()
				{
					ctime = setTimeout("rotate_theam3()",timeSpan);
				} 
			);
	$(".wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_top")
		.scrollTo
			( 
				$('#product2'), 
				1000,
				function()
				{
					//ctime = setTimeout("rotate_theam2();",timeSpan);
				} 
			);	
	$(".wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_bottom .wc_bottom_flat_corner")
		.scrollTo
			( 
				$('#bproduct2'), 
				1000,
				function()
				{

				} 
			);
	
	$('.wc_image_slider_btn')
		.css({backgroundPosition: "0 -22px"})
	$("#img2")						
		.css({backgroundPosition: "0 0"})				
	$(".select, .unselect").pngfix
	(
		{
			sizingMethod: "scale"
		}
	);
}
function rotate_theam3()
{
		$('.wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_bottom').corner("cc:#333333 bl");
		$('.wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_bottom').corner("cc:#333333 br");

	$(".wc_gear_for_life")
		.stop()
		.scrollTo
			( 
				$('.Theme_3'), 
				1000,
				function()
				{
					ctime = setTimeout("rotate_theam4()",timeSpan);
				} 
			);	
	$(".wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_top")
		.scrollTo
			( 
				$('#product3'), 
				1000,
				function()
				{
					//ctime = setTimeout("rotate_theam2();",timeSpan);
				} 
			);	
	$(".wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_bottom .wc_bottom_flat_corner")
		.scrollTo
			( 
				$('#bproduct3'), 
				1000,
				function()
				{
					//ctime = setTimeout("rotate_theam2();",timeSpan);
				} 
			);
	$('.wc_image_slider_btn')
		.css({backgroundPosition: "0 -22px"})
	$("#img3")						
		.css({backgroundPosition: "0 0"})						
	$(".select, .unselect").pngfix
	(
		{
			sizingMethod: "scale"
		}
	);
}
function rotate_theam4()
{
	$(".wc_gear_for_life")
		.stop()
		.scrollTo
			( 
				$('.Theme_4'), 
				1000,
				function()
				{
					ctime = setTimeout("rotate_theam5()",timeSpan);
				} 
			);
	$(".wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_top")
		.scrollTo
			( 
				$('#product4'), 
				1000,
				function()
				{
					//ctime = setTimeout("rotate_theam2();",timeSpan);
				} 
			);
	$(".wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_bottom .wc_bottom_flat_corner")
		.scrollTo
			( 
				$('#bproduct4'), 
				1000,
				function()
				{
					//ctime = setTimeout("rotate_theam2();",timeSpan);
				} 
			);
	$('.wc_image_slider_btn')
		.css({backgroundPosition: "0 -22px"})
	$("#img4")						
		.css({backgroundPosition: "0 0"})					
	$(".select, .unselect").pngfix
	(
		{
			sizingMethod: "scale"
		}
	);
}
function rotate_theam5()
{
	$(".wc_gear_for_life")
		.stop()
		.scrollTo
			( 
				$('.Theme_5'), 
				1000,
				function()
				{
					ctime = setTimeout("rotate_theam1()",timeSpan);
				} 
			);	
	$(".wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_top")
		.scrollTo
			( 
				$('#product5'), 
				1000,
				function()
				{
					//ctime = setTimeout("rotate_theam2();",timeSpan);
				} 
			);
	$(".wc_home_content_placeholder .wc_mid .wc_product_e_com .wc_bottom .wc_bottom_flat_corner")
		.scrollTo
			( 
				$('#bproduct5'), 
				1000,
				function()
				{
					//ctime = setTimeout("rotate_theam2();",timeSpan);
				} 
			);
	$('.wc_image_slider_btn')
		.css({backgroundPosition: "0 -22px"})
	$("#img5")						
		.css({backgroundPosition: "0 0"})						
	$(".select, .unselect").pngfix
	(
		{
			sizingMethod: "scale"
		}
	);
}
