		$(document).ready(function(){		
		//configuracion ventana de linux
           var dialogOpcionesVentanaLinux = {
                modal: true,
                bgiframe: true,
                autoOpen: false,
                height: 500,
                width: 650,
                draggable: true,
				show: 'fold',
				hide: 'fold',
                resizeable: false,
				buttons: {
					"OK": function() { 
						$(this).dialog("close"); 
					}
				},
                open: function() {
                //display correct dialog content				            
					$("#contenidoPLANLinux").load("/linux.php");
				}
                };
            $("#contenidoPLANLinux").dialog(dialogOpcionesVentanaLinux);	//end dialog

            $('#tablaLinux a ').click(
                function (){
                    $("#contenidoPLANLinux").dialog("open");
                    return false;
                }
            );
			
			//Ventana windows
           var dialogOpcionesVentanaWindows = {
                modal: true,
                bgiframe: true,
                autoOpen: false,
                height: 500,
                width: 650,
                draggable: true,
				show: 'fold',
				hide: 'fold',
                resizeable: false,
				buttons: {
					"OK": function() { 
						$(this).dialog("close"); 
					}
				},
                open: function() {
	                $("#contenidoPLANWindows").load("/windows.php");
				}
                };
            $("#contenidoPLANWindows").dialog(dialogOpcionesVentanaWindows);	//end dialog

            $('#tablaWindows a ').click(
                function (){
                    $("#contenidoPLANWindows").dialog("open");
                    return false;
                }
            );
			
			//Ventana VPS
           var dialogOpcionesVentanaVPS = {
                modal: true,
                bgiframe: true,
                autoOpen: false,
                height: 500,
                width: 650,
                draggable: true,
				show: 'fold',
				hide: 'fold',
                resizeable: false,
				buttons: {
					"OK": function() { 
						$(this).dialog("close"); 
					}
				},
                open: function() {
                //display correct dialog content
                $("#contenidoPLANVPS").load("/vps.php");
					return false;
				}
                };
            $("#contenidoPLANVPS").dialog(dialogOpcionesVentanaVPS);	//end dialog

            $('#tablaVPS a ').click(
                function (){
                    $("#contenidoPLANVPS").dialog("open");
                    return false;
                }
            );
			
			/*******************************
			
			TABS
			
			********************************/
			/*
            function tabSelect (event, tab){
                //alert('clic en ' + tab.index);
                opcion = '';
                $('#content').hide('slow');
                $("#content").html('');
                $('#detallesVPS').hide();
				$('#detallesDominios').hide();
                $('#detallesWindows').hide();
				$('#detallesLinux').hide();
				window.setTimeout('',1000);
                //cada tab!!
                if(tab.index == 0){                  
					$('#detallesLinux').show('slow');
					$("#lilinux").click();
                }
                if(tab.index == 1){
                    $('#detallesWindows').show('slow');
					$("#liwindows").click();
                }
                if(tab.index == 2){
                    $('#detallesVPS').show('slow');
					$("#livps").click();
                }
                if(tab.index == 3){
                    $('#detallesDominios').show('slow');
					$("#lidominios").click();
                }
                $('#content').show('slow');
                //$.scrollTo( '#tabs', 800, {easing:'elasout'} );
                //$("#content").Focus();
                //alert(opcion);
            }

			
			
            var configuracionTab = {select:tabSelect};
			*/
            $("#accordionLinux").accordion({
                header: "h3",
				event: 'mouseover', 				
			    animated: 'bounceslide', 
				autoHeight:false
            });
            $("#accordionVPS").accordion({
                header: "h3",
				event: 'mouseover', 				
			    animated: 'bounceslide', 
				autoHeight:false
            });
            $("#accordionWindows").accordion({
                header: "h3",
				event: 'mouseover', 				
			    animated: 'bounceslide', 
				autoHeight:false
            });
			/*
			$("#accordionDetallesLinux").accordion({
				header: "h3"
			});           
			*/
            $("#tabs").tabs();

            //esconder los detalles de los productos que no deben aparecer al cargar
            //$('#detallesVPS').hide('fast');
            //$('#detallesDominios').hide('fast');
            //$('#detallesWindows').hide('fast');

            /*var hash = window.location.hash.substr(1);
            var href = $('#navLinux li a').each(function(){
                var href = $(this).attr('href');
                if(hash==href.substr(0,href.length-5)){
                    var toLoad = hash+'.html #content';
                    $('#content').load(toLoad)
                }
            });

            $('#navContent li a').click(function(){
                var toLoad = $(this).attr('href')+' #content';
                $('#content').hide('fast',loadContent);
                $('#load').remove();
                $('#wrapper').append('<span id="load" class="loader"><img src="miniimages/ajax-loader.gif" alt=""/></span>');
                $('#load').fadeIn('normal');
                //window.location.hash = $(this).attr('href').substr(0,$(this).attr('href').length-5);
                function loadContent() {
                    $('#content').load(toLoad,'',showNewContent())
                }
                function showNewContent() {
                    $('#content').show('normal',hideLoader());
                }
                function hideLoader() {
                    $('#load').fadeOut('normal');
                }
                return false;
            });*/
			
			//$(window).scroll(function () { 
      			//$("span").css("display", "inline").fadeOut("slow"); 
				//var pos= $(window).scrollTop();
				//$('#image_live').scrollTo( '+=100px', 800 );
//				$('#image_live').hide();
	//			$('#image_live').show('slow');
				//( {top:'110px', left:'290px'}, 800 );
    		//});					

        });