// JavaScript Document

// Creado por Jinik (www.jinik.com.ar) para www.Arkadia-virtual.com.ar, copyright 2009.

$(document).ready(function (){ 

		llamarasincrono('contenidos/home.html', 'contenido');								
		
								
		$(".selector").fadeTo(0,0);
		$(".boton2").not("#homeb").fadeTo(0,0);
		$("#dock").fadeTo(0,0);
		$(".titulo").fadeTo(0,0);
		$("#mesa").fadeTo(0,0);
								
		var w = $(this).width();
		var w2 = (w/2);
		var fw = $("#footer").width();
		var footerleft = w2-(fw/2);
		var dockw = $("#dock").width();
		var ch = $("#contenido").height();
		
		$("#mesa").css("left",w2-340);
		$("#dock").css("left",w2-(dockw/2));
		$(".titulo").css("left",(w2-250));
		$("#fondo").css("left",(w/2)-358);
		$(".boton").css("left",(w/2)-401);
		$(".boton2").css("left",(w/2)-401);
		$("#contenido").css("left",(w/2)-326);	
		$("#footer").css("left",footerleft);
		$("#banner").css("left",w2-250);
		
		
		$(".imgdock").hover(
			function() {
				$("#mouse").css("padding-left",45);
			},
			function() {
				$("#mouse").css("padding-left",50);
			});


		
		$(".imgboton").hover(  
         function () {  
		 
            $(this).stop().fadeTo(300,0);
			
         },  
         function () {  
		 
            $(this).stop().fadeTo(300,1);
			
         } 
      );	
		
		
		$("#home").click( function(){ 
			
			$("#contenido").html('<br /><br /><br /><center><h3>Cargando<span class="cargando">...</span></h3><center>');
			
			
			$("#contenido").css({height:770,top:170});
			$("#dock,#mesa").fadeTo(0,0);	
			
			$("#homeb").css("z-index",5);
			$("#homeb").fadeTo(0,1);
			
			$("#productosb").fadeTo(300,0);
			setTimeout (function(){
			$("#productosb").css("z-index",-5)},300);
			
			$("#reparacionesb").fadeTo(300,0);
			setTimeout (function(){
			$("#reparacionesb").css("z-index",-5)},300);
			
			$("#diswebb").fadeTo(300,0);
			setTimeout (function(){
			$("#diswebb").css("z-index",-5)},300);
			llamarasincrono('contenidos/home.html', 'contenido');

										});
		
		$("#productos").click( function(){ 
			$("#contenido").html('<br /><br /><br /><center><h3>Cargando<span class="cargando">...</span></h3><center>');
			
													 
			$("#productosb").css("z-index",5);
			$("#productosb").fadeTo(0,1);
			
			$("#homeb").fadeTo(300,0);
			setTimeout (function(){
			$("#homeb").css("z-index",-5)},300);
			
			$("#reparacionesb").fadeTo(300,0);
			setTimeout (function(){
			$("#reparacionesb").css("z-index",-5)},300);
			
			$("#diswebb").fadeTo(300,0);
			setTimeout (function(){
			$("#diswebb").css("z-index",-5)},300);
			
			$("#contenido").css({height:650,top:292});
			$("#dock,#mesa").fadeTo(400,1);
			llamarasincrono('contenidos/productos/pc.html', 'contenido');
			
										});
		
		$("#reparaciones").click( function(){ 
			$("#contenido").html('<br /><br /><br /><center><h3>Cargando<span class="cargando">...</span></h3><center>');					   
			
			
			$("#contenido").css({height:770,top:170});
			$("#dock,#mesa").fadeTo(0,0);
													 
			$("#reparacionesb").css("z-index",5);
			$("#reparacionesb").fadeTo(0,1);
			
			$("#homeb").fadeTo(300,0);
			setTimeout (function(){
			$("#homeb").css("z-index",-5)},300);
			
			$("#productosb").fadeTo(300,0);
			setTimeout (function(){
			$("#productosb").css("z-index",-5)},300);
			
			$("#diswebb").fadeTo(300,0);
			setTimeout (function(){
			$("#diswebb").css("z-index",-5)},300);
			llamarasincrono('contenidos/reparaciones.html', 'contenido');
			
			
										});
		
		
		
		$("#disweb").click( function(){ 
			$("#contenido").html('<br /><br /><br /><center><h3>Cargando<span class="cargando">...</span></h3><center>');
			
			
			$("#contenido").css({height:770,top:170});
			$("#dock,#mesa").fadeTo(0,0);
													 
			$("#diswebb").css("z-index",5);
			$("#diswebb").fadeTo(0,1);
			
			$("#homeb").fadeTo(300,0);
			setTimeout (function(){
			$("#homeb").css("z-index",-5)},300);
			
			$("#productosb").fadeTo(300,0);
			setTimeout (function(){
			$("#productosb").css("z-index",-5)},300);
			
			$("#reparacionesb").fadeTo(300,0);
			setTimeout (function(){
			$("#reparacionesb").css("z-index",-5)},300);
			llamarasincrono('contenidos/disweb.html', 'contenido');
			
										});
		
		 	
		
		$("#imgmouse").click( function(){
			$("#contenido").html('<br /><br /><br /><center><h3>Cargando<span class="cargando">...</span></h3><center>');						   
			llamarasincrono('contenidos/productos/mouse.html', 'contenido');			
									   });
		
		$("#imgprint").click( function(){
			$("#contenido").html('<br /><br /><br /><center><h3>Cargando<span class="cargando">...</span></h3><center>');							 
			llamarasincrono('contenidos/productos/print.html', 'contenido');
									   });
		
		$("#imgcase").click( function(){
			$("#contenido").html('<br /><br /><br /><center><h3>Cargando<span class="cargando">...</span></h3><center>');
			llamarasincrono('contenidos/productos/case.html', 'contenido');
									   });
		
		$("#imgmonitor").click( function(){
			$("#contenido").html('<br /><br /><br /><center><h3>Cargando<span class="cargando">...</span></h3><center>');
			llamarasincrono('contenidos/productos/monitor.html', 'contenido');
									   });
		
		$("#imgpc").click( function(){
			$("#contenido").html('<br /><br /><br /><center><h3>Cargando<span class="cargando">...</span></h3><center>');
			llamarasincrono('contenidos/productos/pc.html', 'contenido');
									   });
		
		$("#imgnotebook").click( function(){
			$("#contenido").html('<br /><br /><br /><center><h3>Cargando<span class="cargando">...</span></h3><center>');
			llamarasincrono('contenidos/productos/notebook.html', 'contenido');
									   });
		
		$("#imgplaca").click( function(){
			$("#contenido").html('<br /><br /><br /><center><h3>Cargando<span class="cargando">...</span></h3><center>');
			llamarasincrono('contenidos/productos/placa.html', 'contenido');
									   });
		
		$("#imghomet").click( function(){
			$("#contenido").html('<br /><br /><br /><center><h3>Cargando<span class="cargando">...</span></h3><center>');						   
			llamarasincrono('contenidos/productos/homet.html', 'contenido');
									   });
		
		$("#imgcd").click( function(){
			$("#contenido").html('<br /><br /><br /><center><h3>Cargando<span class="cargando">...</span></h3><center>');						
			llamarasincrono('contenidos/productos/cd.html', 'contenido');
									   });
		
		$("#imgipod").click( function(){
			$("#contenido").html('<br /><br /><br /><center><h3>Cargando<span class="cargando">...</span></h3><center>');						  
			llamarasincrono('contenidos/productos/ipod.html', 'contenido');
									   });
		
		$("#imgmaz").click( function(){
			$("#contenido").html('<br /><br /><br /><center><h3>Cargando<span class="cargando">...</span></h3><center>');						 
			llamarasincrono('contenidos/productos/frikeadas.html', 'contenido');
									   });
		
		
		$("#imgmouse").hover( function(){
			
			$(".titulo").stop().not("#tmouse").fadeTo(100,0);
			$("#tmouse").stop().fadeTo(100,0.5);
									   },
			function(){
				$(".titulo").stop().fadeTo(200,0);			
			});
		
		$("#imgprint").hover( function(){
			
			$(".titulo").stop().not("#tprint").fadeTo(100,0);
			$("#tprint").stop().fadeTo(100,0.5);
									   },
			function(){
				$(".titulo").stop().fadeTo(200,0);
			});
		
		$("#imgcase").hover( function(){
			
			$(".titulo").stop().not("#tcase").fadeTo(100,0);
			$("#tcase").stop().fadeTo(100,0.5);
									   },
			function(){
				$(".titulo").stop().fadeTo(200,0);
			});
		
		$("#imgmonitor").hover( function(){
			
			$(".titulo").stop().not("#tmonitor").fadeTo(100,0);
			$("#tmonitor").stop().fadeTo(100,0.5);
									   },
			function(){
				$(".titulo").stop().fadeTo(200,0);
			});
		
		$("#imgpc").hover( function(){
			
			$(".titulo").stop().not("#tpc").fadeTo(100,0);
			$("#tpc").stop().fadeTo(100,0.5);
									   },
			function(){
				$(".titulo").stop().fadeTo(200,0);
			});
		
		$("#imgnotebook").hover( function(){
			
			$(".titulo").stop().not("#tnotebook").fadeTo(100,0);
			$("#tnotebook").stop().fadeTo(100,0.5);
									   },
			function(){
				$(".titulo").stop().fadeTo(200,0);
			});
		
		$("#imgplaca").hover( function(){
			
			$(".titulo").stop().not("#tplaca").fadeTo(100,0);
			$("#tplaca").stop().fadeTo(100,0.5);
									   },
			function(){
				$(".titulo").stop().fadeTo(200,0);
			});
		
		$("#imghomet").hover( function(){
			
			$(".titulo").stop().not("#thomet").fadeTo(100,0);
			$("#thomet").stop().fadeTo(100,0.5);
									   },
			function(){
				$(".titulo").stop().fadeTo(200,0);
			});
		
		$("#imgcd").hover( function(){
			
			$(".titulo").stop().not("#tcd").fadeTo(100,0);
			$("#tcd").stop().fadeTo(100,0.5);
									   },
			function(){
				$(".titulo").stop().fadeTo(200,0);
			});
		
		$("#imgipod").hover( function(){
		
			$(".titulo").stop().not("#tipod").fadeTo(100,0);
			$("#tipod").stop().fadeTo(100,0.5);
									   },
			function(){
				$(".titulo").stop().fadeTo(200,0);
			});
		
		$("#imgmaz").hover( function(){
			
			$(".titulo").stop().not("#tmaz").fadeTo(100,0);
			$("#tmaz").stop().fadeTo(100,0.5);
									   },
			function(){
				$(".titulo").stop().fadeTo(200,0);
			});
		
								});