// Vimukti Ver 1.0 
// Author: Ashfaq Ahmed. S

$(function(){
		   			// hiding glows
		   			$('.glow').hide();
					$(".idleghost").hide();
					$("#gamelatest,#gamerenew,#gamebest,#themelatest,#themerenew,#themebest,#applatest,#apprenew,#appbest").hide();
					$("#bot_anch_cont,#appsection,#medicalsection,#productivitysection,#appoverlay1,#appoverlay2,#appoverlay3,#appoverlay4,#appoverlay5,#appoverlay6,#appoverlay7,#appoverlay8,#appoverlay9,#appoverlay10,#appoverlay,#categories").hide();
					$("#categories_ghost,#categories_ghost_theme").hide();
					$("#themesection,#categories_theme").hide();
					$(".displaypanel").hide();
					$("#local_anch_cont").hide();	
					
					$("#contactus").click(function(){
											
											$("#contact_cont").stop().animate({marginTop:"0px"});
												   
												   });
										
					$("#services").click(function(){
											
											$("#services_cont").stop().animate({marginTop:"0px"});
												   
												   });
					/*$("#faq").click(function(){
											
											$("#faq_cont").stop().animate({marginTop:"0px"});
												   
												   });*/
					
					$("#screenshots_11").click(function(){
													 $("#screen_cont").stop().animate({marginTop:"0px;"});
													 });
					
					$("#close").click(function(){
											  
											  ge("contact_res").innerHTML = "";
											  ge("contactform").reset(); 
											  if(button!=null)
													button.disabled = false;
											   button = null;
											   $("#contact_cont").stop().animate({marginTop:"-1000px"});
											   
											   });			
					$("#close_services").click(function(){
											  
											  ge("service_res").innerHTML = "";
											  ge("servicesform").reset(); 
											  if(button!=null)
													button.disabled = false;
											   button = null;
											   $("#services_cont").stop().animate({marginTop:"-1000px"});
											   
											   });		
					/*$("#close_faq").click(function(){
											  
											   $("#faq_cont").stop().animate({marginTop:"-1000px"});
											   
											   });*/					   
						
					$("#close_screen").click(function(){
											   
											   $("#screen_cont").stop().animate({marginTop:"-1000px"});
											   
											   });									

				//	$(".button").click(function(){
				//									   $("#contact_cont").stop().animate({marginTop:"-1000px"},1000);
				//									   });
													  
													 
					$("#app_folder").hover(function(){
													
													$(".glow").hide();
													$("#cyanglow").fadeIn(500);
													$("#brace").stop().animate({ marginTop:"85px", marginLeft:"276px"},1500,"easeOutBack");
													
													
													});
					$("#app_folder").mouseout(function(){
													
												   $(".glow").hide();
													
													});				

					$("#themes_folder").hover(function(){
													
													$(".glow").hide();
													$("#pinkglow").fadeIn();
													$("#brace").fadeIn();
													$("#brace").stop().animate({ marginTop:"85px", marginLeft:"432px"},1500,"easeOutBack");
													
													});
					$("#themes_folder").mouseout(function(){
													
												   $(".glow").hide();
													
													});		

					$("#gaming_folder").hover(function(){
													
													$(".glow").hide();
													$("#greenglow").fadeIn();
													$("#brace").stop().animate({ marginTop:"85px", marginLeft:"587px"},1500,"easeOutBack");													
													});
					$("#gaming_folder").mouseout(function(){
													
												   $(".glow").hide();
													
													});		
					
					
					$(".ghost").hover(function(){ $("#brace").stop().animate({marginTop:"-500px"},1000); $(".glow").hide();});
					//
					//
					//
					//
					//
					// home click transition..................................
					//
					//
					//
					//
					
					$("#app_folder").click(function(){
													$("#restore").stop().animate({marginTop:"0px"},1000);
													$("#brace").stop().animate({marginTop:"-500"},1500);
													$("#appmaster").stop().animate({ marginLeft:"-250px"},1500, function(){
																	
																//$("#product_panel").stop().animate({marginLeft:"200px"},2000,"easeOutBack");
     										$("#appsection").fadeIn(1000,function(){
																		
																					$("#local_anch_cont").fadeIn(1000);																										
																					
																																					
																		$("#latestcontent,#renewcontent,#bestsellcontent").fadeOut(500,function(){
																								
													$("#applatest").fadeIn(500,function(){	$("#apprenew").fadeIn(500,function(){																                                                                                                $("#appbest").fadeIn();										                                                                                                      });});});});														 
																														 
																														 });
													
				/*$("#homeproductlisting").stop().animate({marginLeft:"200px"},1000,"swing",function(){
																		
																					$("#local_anch_cont").fadeIn(1000);																										
																					
																																					
																		$("#latestcontent,#renewcontent,#bestsellcontent").fadeOut(500,function(){
																								
													$("#applatest").fadeIn(500,function(){	$("#apprenew").fadeIn(500,function(){																                                                                                                $("#appbest").fadeIn();										                                                                                                      });});});});														 
																														 
																														 });*/													
													
													//$("#themesshadow,#gamingshadow").fadeOut();
													//$("#themesreflec,#gamingreflec").fadeOut();
													$("#gamingmaster,#themesmaster").stop().animate({marginLeft:"-1000px"},1500, function(){$("#appghost").show();});
													//$("#pricepanel").stop().animate({marginLeft:"850px"},1500,"easeOutBack");
													
													
													});

					$("#themes_folder").click(function(){
													$("#restore").stop().animate({marginTop:"0px"},1000);													   
													$("#brace").stop().animate({marginTop:"-500"},1500);
													$("#themesmaster").stop().animate({ marginLeft:"-400px"},1500, function(){
																															
																	//$("#product_panel").stop().animate({marginLeft:"200px"},2000,"easeOutBack");																															
         										$("#themesection").fadeIn(1000,function(){
																	
																	$("#renewtag").fadeOut(500,function(){
																					$("#local_anch_cont").fadeIn(1000);																										
																					$("#bestsellerstag").stop().animate({marginLeft:"190px"},1000);
																										});
																		
																		$("#latestcontent,#renewcontent,#bestsellcontent").fadeOut(500,function(){
																								
													$("#themelatest").fadeIn(500,function(){	$("#themerenew").fadeIn(500,function(){																                                                                                                $("#themebest").fadeIn();										                                                                                                      });});});});																			
																															});
													//$("#themesshadow,#gamingshadow").fadeOut();
													//$("#themesreflec,#gamingreflec").fadeOut();
											$("#appmaster,#gamingmaster").stop().animate({marginLeft:"-1000px"},1500, function(){$("#themesghost").show();});
											//$("#pricepanel").stop().animate({marginLeft:"850px"},1500,"easeOutBack");

													});

					$("#gaming_folder").click(function(){
													$("#restore").stop().animate({marginTop:"0px"},1000);	
													$(".displaypanel").hide();
													$("#games_products").fadeIn();
													$("#brace").stop().animate({marginTop:"-500"},1500);
													$("#gamingmaster").stop().animate({ marginLeft:"-560px"},1500, function(){
																	$("#product_panel").stop().animate({marginLeft:"200px"},2000,"easeOutBack", function(){
													$("#homeproductlisting").stop().animate({marginLeft:"200px"},1000,"swing",function(){
																		
																		$("#latestcontent,#renewcontent,#bestsellcontent").fadeOut(500,function(){
																								
													$("#gamelatest").fadeIn(500,function(){	$("#gamerenew").fadeIn(500,function(){																                                                                                                $("#gamebest").fadeIn();										                                                                                                      });});});});});});																																																				

													//$("#themesshadow,#gamingshadow").fadeOut();
													//$("#themesreflec,#gamingreflec").fadeOut();
													$("#appmaster,#themesmaster").stop().animate({marginLeft:"-1000px"},1500, function(){$("#gamingghost").show();});

													
													});
													
									
					
$("#medical_ghost").click(function(){
$("#categories_ghost").fadeIn(500);
$("#appsection").fadeOut(1000,function(){
	$("#medicalsection").fadeIn(1000);				
	});		
});

$("#personal_ghost").click(function(){
$("#categories_ghost").fadeIn(500);
$("#appsection").fadeOut(1000,function(){
	$("#productivitysection").fadeIn(1000);				
	});		
});			

					$("#restore").click(function(){
													$("#restore").stop().animate({marginTop:"-30px"},1000);	
													$(".displaypanel").fadeOut();
													$("#categories").fadeOut();
													$("#categories_theme").fadeOut();
													$("#categories_ghost").fadeOut();
													$("#categories_ghost_theme").fadeOut();
												$("#product_panel").stop().animate({marginLeft:"-1000px"},1000,"swing"); 
     											$("#pricepanel").stop().animate({marginLeft:"-1000px"},1500,"easeOutBack");												
												$("#homeproductlisting").stop().animate({marginLeft:"0px"},1000,"swing");
												$("#appmaster, #themesmaster, #gamingmaster").stop().animate({ marginLeft:"0px"},1500);
												$("#gamelatest,#gamerenew,#gamebest,#themelatest,#themerenew,#themebest,#applatest,#apprenew,#appbest").fadeOut(500,function(){
													
													$("#bestsellerstag").stop().animate({marginLeft:"340px"},1000,function(){
																		$("#renewtag").fadeIn();
																														   });
													
														$("#latestcontent,#renewcontent,#bestsellcontent").fadeIn(500);																                                                                                                             })
												$(".idleghost").hide(); 
												$("#bot_anch_cont").fadeOut();
												$("#local_anch_cont").fadeOut();
												$("#appsection").fadeOut();
												$("#medicalsection").fadeOut();
												$("#productivitysection").fadeOut();
												$("#themesection").fadeOut();
												
												 })
					
					$(".application").click(function(){
													  $("#restore").stop().animate({marginTop:"0px"},1000);
													  $(".displaypanel,#appsection,#medicalsection,#productivitysection").hide();
													  $("#local_display_panel").fadeIn();
													$("#brace").stop().animate({marginTop:"-500"},1500);
													$("#appmaster").stop().animate({ marginLeft:"-250px"},1500);
													$("#gamingmaster,#themesmaster").stop().animate({marginLeft:"-1000px"},1500, function(){$("#appghost").show();});
													  //$("#pricepanel").stop().animate({marginLeft:"650px"},1500,"easeOutBack",function(){
																			
																			$("#bot_anch_cont").fadeIn();
																																	   
														//																			   });
													  
													  });
				$(".game").click(function(){
													  $("#restore").stop().animate({marginTop:"0px"},1000);
													  $(".displaypanel,#appsection").hide();
													  $("#local_display_panel").fadeIn();
													$("#brace").stop().animate({marginTop:"-500"},1500);
													$("#appmaster").stop().animate({ marginLeft:"-250px"},1500);
													$("#appmaster,#themesmaster").stop().animate({marginLeft:"-1000px"},1500, function(){$("#appghost").show();});
													  //$("#pricepanel").stop().animate({marginLeft:"650px"},1500,"easeOutBack",function(){
																			
																			$("#bot_anch_cont").fadeIn();
																																	   
														//																			   });
													  
													  });					
					
					$(".theme").click(function(){
													  $("#restore").stop().animate({marginTop:"0px"},1000);
													  $("#themesection").hide();
													  $(".displaypanel").hide();
													  $("#local_display_panel").fadeIn();
													$("#brace").stop().animate({marginTop:"-500"},1500);
													$("#themesmaster").stop().animate({ marginLeft:"-400px"},1500);
													$("#gamingmaster,#appmaster").stop().animate({marginLeft:"-1000px"},1500, function(){$("#appghost").show();});
													  //$("#pricepanel").stop().animate({marginLeft:"650px"},1500,"easeOutBack",function(){
																			
																			$("#bot_anch_cont").fadeIn();
																																	   
																	//																   });
													  
													  });
										
					$("#displayprod").contents().find(".theme").click(function(){
													  $("#restore").stop().animate({marginTop:"0px"},1000);
													$("#brace").stop().animate({marginTop:"-500"},1500);
													$("#themesmaster").stop().animate({ marginLeft:"-400px"},1500);
													$("#gamingmaster,#appmaster").stop().animate({marginLeft:"-1000px"},1500, function(){$("#appghost").show();});
													  $("#pricepanel").stop().animate({marginLeft:"650px"},1500,"easeOutBack",function(){
																			
																			$("#bot_anch_cont").fadeIn();
																																	   
																																	   });
													  
													  
				
													  
									
					 });
						
				$("#medical_ghost").hover(function(){
												    $("#appoverlay").fadeIn(500);
												   
												   
												   });
				$("#medical1_ghost").hover(function(){
												    $("#appoverlay3").fadeIn(500);
												   
												   
												   });
				$("#medical2_ghost").hover(function(){
												    $("#appoverlay4").fadeIn(500);
												   
												   
												   });
				$("#medical3_ghost").hover(function(){
												    $("#appoverlay5").fadeIn(500);
												   
												   
												   });
				$("#medical4_ghost").hover(function(){
												    $("#appoverlay6").fadeIn(500);
												   
												   
												   });
				$("#personal_ghost").hover(function(){
												   $("#appoverlay1").fadeIn(500);

												   
												   });
				
				$("#productivity1_ghost").hover(function(){
												   $("#appoverlay7").fadeIn(500);

												   
												   });
				
				$("#productivity2_ghost").hover(function(){
												   $("#appoverlay8").fadeIn(500);

												   
												   });
												   
				$("#productivity3_ghost").hover(function(){
												   $("#appoverlay9").fadeIn(500);

												   
												   });
												   
				$("#productivity4_ghost").hover(function(){
												   $("#appoverlay10").fadeIn(500);

												   
												   });
				
				$("#business_ghost").hover(function(){
												   $("#appoverlay2").fadeIn(500);
												   
												   });
				
				$("#medical_ghost").mouseout(function(){
												   
												   $("#appoverlay").fadeOut(500);
												   
												   });
				$("#medical1_ghost").mouseout(function(){
												   
												   $("#appoverlay3").fadeOut(500);
												   
												   });
				$("#medical2_ghost").mouseout(function(){
												   
												   $("#appoverlay4").fadeOut(500);
												   
												   });
				$("#medical3_ghost").mouseout(function(){
												   
												   $("#appoverlay5").fadeOut(500);
												   
												   });
				$("#medical4_ghost").mouseout(function(){
												   
												   $("#appoverlay6").fadeOut(500);
												   
												   });
				$("#personal_ghost").mouseout(function(){
												   
												   $("#appoverlay1").fadeOut(500);
												   
												   });
				$("#productivity1_ghost").mouseout(function(){
												   
												   $("#appoverlay7").fadeOut(500);
												   
												   });
				$("#productivity2_ghost").mouseout(function(){
												   
												   $("#appoverlay8").fadeOut(500);
												   
												   });
				$("#productivity3_ghost").mouseout(function(){
												   
												   $("#appoverlay9").fadeOut(500);
												   
												   });
				$("#productivity4_ghost").mouseout(function(){
												   
												   $("#appoverlay10").fadeOut(500);
												   
												   });
				$("#business_ghost").mouseout(function(){
												   
												   $("#appoverlay2").fadeOut(500);
												   
												   });
				
				
				$("#medical1_ghost").click(function(){
												   $(".displaypanel").hide();
												   $("#medicalsection").fadeOut(500,function(){
																$("#product_panel").stop().animate({marginLeft:"200px"},2000,"easeOutBack");
																$("#medical_products").fadeIn();
																						 });
												    $("#categories").fadeIn(500);
												   
												   
												   });
												   
				$("#medical2_ghost").click(function(){
												   $(".displaypanel").hide();
												   $("#medicalsection").fadeOut(500,function(){
																$("#product_panel").stop().animate({marginLeft:"200px"},2000,"easeOutBack");
																$("#medical_products").fadeIn();
																						 });
												    $("#categories").fadeIn(500);
													$("#categories_ghost").fadeIn(500);
												   
												   
												   });
												   
				$("#medical3_ghost").click(function(){
												   $(".displaypanel").hide();
												   $("#medicalsection").fadeOut(500,function(){
																$("#product_panel").stop().animate({marginLeft:"200px"},2000,"easeOutBack");
																$("#medical_products").fadeIn();
																						 });
												    $("#categories").fadeIn(500);
													$("#categories_ghost").fadeIn(500);
												   
												   
												   });
												   
				$("#medical4_ghost").click(function(){
												   $(".displaypanel").hide();
												   $("#medicalsection").fadeOut(500,function(){
																$("#product_panel").stop().animate({marginLeft:"200px"},2000,"easeOutBack");
																$("#medical_products").fadeIn();
																						 });
												    $("#categories").fadeIn(500);
													$("#categories_ghost").fadeIn(500);
												   
												   
												   });
												   
				$("#productivity1_ghost").click(function(){
												   $(".displaypanel").hide();
												   $("#productivitysection").fadeOut(500,function(){
																$("#product_panel").stop().animate({marginLeft:"200px"},2000,"easeOutBack");
																$("#medical_products").fadeIn();
																						 });
												    $("#categories").fadeIn(500);
												   
												   
												   });
				
				$("#productivity2_ghost").click(function(){
												   $(".displaypanel").hide();
												   $("#productivitysection").fadeOut(500,function(){
																$("#product_panel").stop().animate({marginLeft:"200px"},2000,"easeOutBack");
																$("#medical_products").fadeIn();
																						 });
												    $("#categories").fadeIn(500);
													$("#categories_ghost").fadeIn(500);
												   
												   
												   });
												   
				$("#productivity3_ghost").click(function(){
												   $(".displaypanel").hide();
												   $("#productivitysection").fadeOut(500,function(){
																$("#product_panel").stop().animate({marginLeft:"200px"},2000,"easeOutBack");
																$("#medical_products").fadeIn();
																						 });
												    $("#categories").fadeIn(500);
													$("#categories_ghost").fadeIn(500);
												   
												   
												   });
												   
				$("#productivity4_ghost").click(function(){
												   $(".displaypanel").hide();
												   $("#productivitysection").fadeOut(500,function(){
																$("#product_panel").stop().animate({marginLeft:"200px"},2000,"easeOutBack");
																$("#medical_products").fadeIn();
																						 });
												    $("#categories").fadeIn(500);
													$("#categories_ghost").fadeIn(500);
												   
												   
												   });
												   
				$("#business_ghost").click(function(){
													$(".displaypanel").hide();
												   $("#appsection").fadeOut(500,function(){
																$("#product_panel").stop().animate({marginLeft:"200px"},2000,"easeOutBack");
																$("#business_products").fadeIn();	
																						 });												
												   $("#categories").fadeIn(500);
     											   $("#categories_ghost").fadeIn(500);												   
												   
												   });		
				$("#categories_ghost").click(function(){
													  $(".displaypanel").hide();
													  $("#product_panel").stop().animate({marginLeft:"-1000px"},1000,"easeOutBack",function(){
														  
																							$("#medicalsection").fadeOut(1000,function(){
																								$("#productivitysection").fadeOut(1000,function(){
																										$("#appsection").fadeIn();
																									});				
																							});		
																															
																							
																																			});
													  
													  });
				
				$("#animals_ghost").click(function(){
												   $(".displaypanel").hide();
												   $("#themesection").fadeOut(500,function(){
																$("#product_panel").stop().animate({marginLeft:"200px"},2000,"easeOutBack");
																$("#animals_products").fadeIn();
																						 });
												    $("#categories_theme").fadeIn(500);
													$("#categories_ghost_theme").fadeIn(500);
										   
												   
												   });

				$("#art_ghost").click(function(){
												    $(".displaypanel").hide();
												   $("#themesection").fadeOut(500,function(){
																$("#product_panel").stop().animate({marginLeft:"200px"},2000,"easeOutBack");
																$("#art_products").fadeIn();
																						 });
												    $("#categories_theme").fadeIn(500);
													$("#categories_ghost_theme").fadeIn(500);
										   
												   
												   });
				$("#automotive_ghost").click(function(){
												   $(".displaypanel").hide();
												   $("#themesection").fadeOut(500,function(){
																$("#product_panel").stop().animate({marginLeft:"200px"},2000,"easeOutBack");
																$("#automotive_products").fadeIn();
																						 });
												   
												    $("#categories_theme").fadeIn(500);
													$("#categories_ghost_theme").fadeIn(500);
										   
												   
												   });				
				$("#comics_ghost").click(function(){
												   $(".displaypanel").hide();
												   $("#themesection").fadeOut(500,function(){
																$("#product_panel").stop().animate({marginLeft:"200px"},2000,"easeOutBack");
																$("#comics_products").fadeIn();
																						 });
												    $("#categories_theme").fadeIn(500);
													$("#categories_ghost_theme").fadeIn(500);
										   
												   
												   });				
				$("#justforgirls_ghost").click(function(){
												    $(".displaypanel").hide();
												   $("#themesection").fadeOut(500,function(){
																$("#product_panel").stop().animate({marginLeft:"200px"},2000,"easeOutBack");
																$("#justforgirls_products").fadeIn();
																						 });
												    $("#categories_theme").fadeIn(500);
													$("#categories_ghost_theme").fadeIn(500);
										   
												   
												   });				
				$("#moviesandtv_ghost").click(function(){
												    $(".displaypanel").hide();
												   $("#themesection").fadeOut(500,function(){
																$("#product_panel").stop().animate({marginLeft:"200px"},2000,"easeOutBack");
																$("#moviesandtv_products").fadeIn();
																						 });
												    $("#categories_theme").fadeIn(500);
													$("#categories_ghost_theme").fadeIn(500);
										   
												   
												   });				
				$("#sports_ghost").click(function(){
												    $(".displaypanel").hide();
												   $("#themesection").fadeOut(500,function(){
																$("#product_panel").stop().animate({marginLeft:"200px"},2000,"easeOutBack");
																$("#sports_products").fadeIn();
																						 });
												    $("#categories_theme").fadeIn(500);
													$("#categories_ghost_theme").fadeIn(500);
										   
												   
												   });		
				
				$("#categories_ghost_theme").click(function(){
															$(".displaypanel").hide();
													  $("#product_panel").stop().animate({marginLeft:"-1000px"},1000,"easeOutBack",function(){
																																			
																							$("#themesection").fadeIn();
																																			});
													  
													  });				
		
		   }); // The Curtain Drops

