﻿
  $(document).ready(function(){
    
    $("#splash").click(function(){
	
// splashul jos si fading la transparent
$("#splash").animate({top: "1000px"}, { queue:false, duration:3000 })
			.animate({opacity: "0"}, { queue:false, duration:1500 });
//finger sus simultan cu #bgrafpub			
		$("#finger").animate({top: "280px"}, 2000 );
		$("#bgrafpub").animate({top: "145px"}, { queue:false, duration:2000 });
//finger jos
		$("#finger").animate({top: "935px", left:"370px"}, 500, 
// la terminare 
			function(){
//finger mutat in dreptul lui #btiparituri
	//		$("#finger").animate({left:"370px"}, 0);
//finger sus simultan cu #btiparituri
			$("#btiparituri").animate({top: "165px"}, 2000 );
			$("#finger").animate({top:"300px"}, 2000 )
//finger jos			
			.animate({top:"935px", left:"650px"}, 500,
//finger mutat in dreptul lui #bambalaje
//			.animate({left:"650px"}, 0,
//la terminare			
				function(){
//finger sus simultan cu #bambalaje
				$("#finger").animate({top:"275px"}, 2000);
				$("#bambalaje").animate({top: "150px"}, { queue:false, duration:2000 } );
//finger jos si mutat la #servweb
				$("#finger").animate({top:"935px", left:"180px"}, 500, 
//la terminare	
					function(){
//finger sus simultan cu #bservweb
					$("#finger").animate({top:"600px"}, 2000);
					$("#bservweb").animate({top: "465px"}, {queue:false, duration:2000} );
//finger jos si mutat la #bfoto					
					$("#finger").animate({top:"935px", left:"570px"}, 500,
					
					function(){
//finger sus simultan cu #bfoto
					$("#finger").animate({top:"585px"}, 2000);
					$("#bfoto").animate({top: "450px"}, {queue:false, duration:2000} );
//finger jos si gata					
					$("#finger").animate({top:"935px"}, 500)
					});
					
					});
					});
				});
			});
  
 
  $("#bgrafpub, #bservweb, #bambalaje, #btiparituri").click(function (){
 $("#hand").animate({left : "-500px"}, 6000);
  $("#bambalaje").animate({opacity : "+=0"}, 1440).animate({left : "-500px"}, 4760);
  $("#bfoto").animate({opacity : "+=0"}, 1680).animate({left : "-500px"}, 4320);
  $("#btiparituri").animate({opacity : "+=0"}, 2360).animate({left : "-500px"}, 3640);
  $("#bservweb").animate({opacity : "+=0"}, 3000).animate({left : "-500px"}, 3000);
  $("#bgrafpub").animate({opacity : "+=0"}, 3480).animate({left : "-500px"}, 2320);
  var url1 = "http://www.kamart.ro/index2.html";    
 $(location).attr('href',url1);
  });
  
 $("#bfoto").click(function (){
 $("#hand").animate({left : "-500px"}, 6000);
  $("#bambalaje").animate({opacity : "+=0"}, 1440).animate({left : "-500px"}, 4760);
  $("#bfoto").animate({opacity : "+=0"}, 1680).animate({left : "-500px"}, 4320);
  $("#btiparituri").animate({opacity : "+=0"}, 2360).animate({left : "-500px"}, 3640);
  $("#bservweb").animate({opacity : "+=0"}, 3000).animate({left : "-500px"}, 3000);
  $("#bgrafpub").animate({opacity : "+=0"}, 3480).animate({left : "-500px"}, 2320);
  var url2 = "http://kamart.ro/kd/kamart.html";    
 $(location).attr('href',url2);
  });
  



 
  
  });
 /* 
  $.fn.wipeAll = function() {
  
$("#hand").animate({left : "-500px"}, 6000);
  $("#bambalaje").animate({opacity : "+=0"}, 1000).animate({left : "-500px"}, 6000);
  $("#bfoto").animate({opacity : "+=0"}, 1000).animate({left : "-500px"}, 6000);
  $("#btiparituri").animate({opacity : "+=0"}, 1000).animate({left : "-500px"}, 6000);
  $("#bservweb").animate({opacity : "+=0"}, 1000).animate({left : "-500px"}, 6000);
  $("#bgrafpub").animate({opacity : "+=0"}, 1000).animate({left : "-500px"}, 6000);
  return (this);
  };
  
*/
