- Nueva apariencia

git-svn-id: https://192.168.0.254/svn/Proyectos.Intedi_Web/trunk@12 bb8bf09b-a688-453b-8f8d-2c74b69f9b56
This commit is contained in:
David Arranz 2009-10-26 15:06:30 +00:00
parent 9c81fb86db
commit bd64de4b65
31 changed files with 118 additions and 1606 deletions

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" type="text/css" href="reset.css"/>
<link rel="stylesheet" type="text/css" href="estilos.css"/>
<link rel="stylesheet" type="text/css" href="forms.css"/>
<link rel="stylesheet" type="text/css" href="menu.css"/>
<link rel="stylesheet" href="menu/menu_style.css" type="text/css" />
<script language="JavaScript" type="text/javascript">
<!--
@ -34,17 +34,17 @@
</script>
</head>
<body>
<div id="layout">
<div id="cabecera_layout">
<div id="cabecera">
<div id="logotipo"><span>Intedi</span></div>
<h2>Pocería - Rehabilitaciones - Trabajos verticales<br/>Inspección técnica de edificios</h2>
<h2>Trabajos de pocería, conservación y mantenimiento de redes sanitarias<br/>Rehabilitaciones - Trabajos verticales con y sin andamios<br/>Inspección técnica de edificios</h2>
<div id="menu">
<ul>
<li><a href="index.html">Inicio</a></li>
<li><a href="servicios.html">Servicios</a></li>
<!-- <li><a href="proyectos.html">Obras realizadas</a></li>-->
<li><a href="empresa.html">La Empresa</a></li>
<li class="current">Contacto</li>
<ul id="navmenu">
<li><a href="index.html" target="_self" title="Inicio">Inicio</a></li>
<li><a href="servicios.html" target="_self" title="Servicios">Servicios</a></li>
<li><a href="empresa.html" target="_self" title="La Empresa">La Empresa</a></li>
<li><a href="contacto.html" target="_self" title="Contacto" class="current">Contacto</a></li>
</ul>
</div>
<div class="clear"></div>
@ -84,9 +84,10 @@
</div>
<div id="pie_layout">
<div id="pie">
<p><a href="">Aviso legal</a> | <a href="">Pol&iacute;tica de privacidad</a>
<h2>Cerrajería - Carpintería - Inspección de redes sanitarias - Desatrancos - Picado de zanjas - Realización de trasteros - Localización de fugas<br/> Limpieza de fosas sépticas - Limpieza de sumideros - Instalación de bajadas de agua y canalones - Sellado de juntas<br/>Anclaje de piedras - Revestimientos y pinturas - Alicatados - Solados - Enlucidos - Pintura y decoración de interiores<br/>Pocería - Rehabilitaciones - Trabajos verticales - Inspección técnica de edificios</h2>
<!--<p><a href="">Aviso legal</a> | <a href="">Pol&iacute;tica de privacidad</a></p>-->
<!--<br/>Diseñado por <a href="http://www.rodax-software.com" title="Rodax Software S.L.">Rodax Software S.L.</a> - 2009-->
</p>
</div >
</div>
</div>
</body>

View File

@ -8,21 +8,21 @@
<title>La empresa - INTEDI - Inspecci&oacute;n t&eacute;cnica de edificios (ITE) - Pocer&iacute;a - Rehabilitaciones</title>
<link rel="stylesheet" type="text/css" href="reset.css"/>
<link rel="stylesheet" type="text/css" href="estilos.css"/>
<link rel="stylesheet" type="text/css" href="menu.css"/>
<link rel="stylesheet" href="menu/menu_style.css" type="text/css" />
</head>
<body>
<div id="layout">
<div id="cabecera_layout">
<div id="cabecera">
<div id="logotipo"><span>Intedi</span></div>
<h2>Pocería - Rehabilitaciones - Trabajos verticales<br/>Inspección técnica de edificios</h2>
<h2>Trabajos de pocería, conservación y mantenimiento de redes sanitarias<br/>Rehabilitaciones - Trabajos verticales con y sin andamios<br/>Inspección técnica de edificios</h2>
<div id="menu">
<ul>
<li><a href="index.html">Inicio</a></li>
<li><a href="servicios.html">Servicios</a></li>
<!--<li><a href="proyectos.html">Obras realizadas</a></li>-->
<li class="current">La Empresa</li>
<li><a href="contacto.html">Contacto</a></li>
<ul id="navmenu">
<li><a href="index.html" target="_self" title="Inicio">Inicio</a></li>
<li><a href="servicios.html" target="_self" title="Servicios">Servicios</a></li>
<li><a href="empresa.html" target="_self" title="La Empresa" class="current">La Empresa</a></li>
<li><a href="contacto.html" target="_self" title="Contacto">Contacto</a></li>
</ul>
</div>
<div class="clear"></div>
@ -61,9 +61,10 @@
</div>
<div id="pie_layout">
<div id="pie">
<p><a href="">Aviso legal</a> | <a href="">Pol&iacute;tica de privacidad</a>
<h2>Cerrajería - Carpintería - Inspección de redes sanitarias - Desatrancos - Picado de zanjas - Realización de trasteros - Localización de fugas<br/> Limpieza de fosas sépticas - Limpieza de sumideros - Instalación de bajadas de agua y canalones - Sellado de juntas<br/>Anclaje de piedras - Revestimientos y pinturas - Alicatados - Solados - Enlucidos - Pintura y decoración de interiores<br/>Pocería - Rehabilitaciones - Trabajos verticales - Inspección técnica de edificios</h2>
<!--<p><a href="">Aviso legal</a> | <a href="">Pol&iacute;tica de privacidad</a></p>-->
<!--<br/>Diseñado por <a href="http://www.rodax-software.com" title="Rodax Software S.L.">Rodax Software S.L.</a> - 2009-->
</p>
</div >
</div>
</div>
</body>

View File

@ -10,8 +10,10 @@ html, body {
font-style: normal;
font-variant: normal;
font-weight: normal;
line-height: 150%;
background: #fff url("images/ciudad2.gif") repeat-x fixed center bottom;
line-height: 160%;
/*background: url("images/ciudad2.gif") repeat-x fixed center bottom;*/
background: #fff url(images/fondo.gif) repeat-x scroll center top;
}
body{
@ -19,7 +21,7 @@ body{
text-align: center;
min-width: 960px;
min-height: 600px;
background: #fff url("images/fondo.jpg") no-repeat left top;
background: none;
}
@ -31,7 +33,7 @@ h1, h2, h3, h4 {
font-style: normal;
font-variant: normal;
font-weight: bold;
color: #a15206; /*#4d4994;*/
color: #485e04; /*#4d4994;*/
}
h1 {
@ -82,19 +84,31 @@ li {
strong {
font-weight: bold;
color: #a15206;
}
#layout {
margin: 0 auto;
width: 880px;
padding: 0 60px;
/*min-height: 700px;*/
/*background-image: url(images/fondo-principal.gif);
background-repeat: no-repeat;
background-position: top; */
background: transparent url(images/fondo_contenido.gif) no-repeat scroll center top;
}
#cabecera_layout {
margin: 0;
padding: 20px 0;
width: 100%;
margin: 0 -30px;
padding: 10px 10px;
background: transparent url(images/header.gif) repeat-x left top;
}
#cabecera {
margin: 0 auto;
padding: 0;
width: 960px;
text-align: right;
}
@ -102,7 +116,8 @@ strong {
background-image: url('images/logo.gif');
background-repeat: no-repeat;
width: 300px;
height: 150px;
height: 144px;
position: relative;
float: right;
}
#logotipo span {
@ -110,68 +125,34 @@ strong {
}
#cabecera h2 {
font-size: 14px;
margin: 20px 20px 0 0;
font-size: 13px;
margin: 40px 20px 0 0;
padding: 0;
float: right;
width: auto;
}
#banner {
display: none;
margin: 0 auto 20px auto;
padding: 0;
width: 960px;
height: 300px;
}
#banner #foto {
float: left;
width: 600px;
}
#banner #foto #texto_foto {
display: none;
}
#banner #seleccion {
color: #777;
float: right;
text-align: left;
width: 300px;
padding: 20px 20px 0 0;
}
#banner #seleccion p {
margin-right: 50px;
}
#banner #seleccion h3 {
margin-bottom: 30px;
color: #A15206;
text-align: right;
}
#menu {
width: 100%;
color: #ccc;
font-size: 300%;
font-weight: normal;
line-height: normal;
float: left;
margin: -20px 0 30px 0;
}
#cuerpo_layout {
width: 100%;
padding-bottom: 40px;
}
#cuerpo {
text-align: left;
margin: 0 auto;
padding: 0;
width: 960px;
}
#cuerpo h3 {
padding: 0;
margin-bottom: 10px;
padding-left: 7px;
border-left: 7px solid #faba33;
border-left: 7px solid #f68618;
}
#cuerpo h4 {
@ -192,14 +173,18 @@ strong {
float: left;
margin: 0;
padding: 0;
width: 640px;
width: 560px;
}
#inicio_izquierda p {
margin-bottom: 10px;
}
#inicio_derecha {
float: right;
margin: 0;
padding: 0;
width: 320px;
width: 300px;
}
#inicio_derecha p {
@ -209,7 +194,11 @@ strong {
#inicio_derecha h4 {
padding: 0 0 5px 15px;
font-size: 120%;
color: #a15206;
color: #485E04;
}
.gris {
background-color: #eef;
}
#proyectos_izquierda {
@ -268,33 +257,40 @@ strong {
}
#pie_layout {
text-align: left;
margin: 0 -30px;
padding: 20px 10px;
clear:both;
height: 40px;
margin: 0 auto;
padding: 10px 0 0 0;
width: 100%;
color: #777;
height: 130px;
background: url("images/ciudad3.gif") repeat-x right bottom;
text-align: left;
}
#pie {
line-height: normal;
width: 960px;
margin: 0 auto;
padding: 12px 0 0 0;
color: #723900;
padding: 85px 10px 0px 10px;
color: #95c408;
}
#pie a {
color: #723900;
color: #95c408;
text-decoration: underline;
}
#pie a:hover {
color: #cc9966;
color: #b5e034;
text-decoration: underline;
}
#pie h2 {
font-size: 12px;
margin: 0;
padding: 0;
width: auto;
color: #5da3ef;
text-align: center;
}
#pie h3 {
text-transform:none;
background: none;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

BIN
src/images/ciudad3.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

BIN
src/images/fondo.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
src/images/header.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -8,56 +8,20 @@
<title>INTEDI - Inspecci&oacute;n t&eacute;cnica de edificios (ITE) - Pocer&iacute;a - Rehabilitaciones</title>
<link rel="stylesheet" type="text/css" href="reset.css"/>
<link rel="stylesheet" type="text/css" href="estilos.css"/>
<link rel="stylesheet" type="text/css" href="menu.css"/>
<script type="text/javascript" src="jcarousel/lib/jquery-1.2.3.pack.js"></script>
<script type="text/javascript" src="jcarousel/lib/jquery.jcarousel.pack.js"></script>
<link rel="stylesheet" type="text/css" href="jcarousel/lib/jquery.jcarousel.css" />
<link rel="stylesheet" type="text/css" href="jcarousel/skin.css" />
<script type="text/javascript">
function mycarousel_initCallback(carousel)
{
// Disable autoscrolling if the user clicks the prev or next button.
carousel.buttonNext.bind('click', function() {
carousel.startAuto(0);
});
carousel.buttonPrev.bind('click', function() {
carousel.startAuto(0);
});
// Pause autoscrolling if the user moves with the cursor over the clip.
carousel.clip.hover(function() {
carousel.stopAuto();
}, function() {
carousel.startAuto();
});
};
jQuery(document).ready(function() {
jQuery('#mycarousel').jcarousel({
auto: 5,
wrap: 'last',
initCallback: mycarousel_initCallback
});
});
</script>
<link rel="stylesheet" href="menu/menu_style.css" type="text/css" />
</head>
<body onload="initLightbox()">
<body>
<div id="layout">
<div id="cabecera_layout">
<div id="cabecera">
<div id="logotipo"><span>Intedi</span></div>
<h2>Pocería - Rehabilitaciones - Trabajos verticales<br/>Inspección técnica de edificios</h2>
<h2>Trabajos de pocería, conservación y mantenimiento de redes sanitarias<br/>Rehabilitaciones - Trabajos verticales con y sin andamios<br/>Inspección técnica de edificios</h2>
<div id="menu">
<ul>
<li class="current">Inicio</li>
<li><a href="servicios.html">Servicios</a></li>
<!--<li><a href="proyectos.html">Obras realizadas</a></li>-->
<li><a href="empresa.html">La Empresa</a></li>
<li><a href="contacto.html">Contacto</a></li>
<ul id="navmenu">
<li><a href="index.html" target="_self" title="Inicio" class="current">Inicio</a></li>
<li><a href="servicios.html" target="_self" title="Servicios">Servicios</a></li>
<li><a href="empresa.html" target="_self" title="La Empresa">La Empresa</a></li>
<li><a href="contacto.html" target="_self" title="Contacto">Contacto</a></li>
</ul>
</div>
<div class="clear"></div>
@ -72,26 +36,13 @@
<p>Intedi se limita a terminar los proyectos respetando todas las condiciones acordadas. Ponemos nuestro empeño en obtener el mejor resultado ya que su proyecto es nuestro escaparate para que sus familiares y amigos puedan convertirse en futuros clientes.</p>
<p>
Intedi realiza todo tipo de trabajos relacionados con <strong>pocerías, humedades, tejados, impermeabilizaciones en cubiertas, interiores (portales, viviendas, ...), pintura, albaliñería en general y fontanería (ascendentes, bajantes, etc.)</strong>.<br/>Consulta <a href="servicios.html">nuestros servicios</a>.</p>
<ul id="mycarousel" class="jcarousel-skin-tango">
<li><img src="fotos/trabajos-verticales-3_carousel.jpg" width="150" height="150" alt="" /></li>
<li><img src="fotos/trabajos-verticales-1_small.jpg" width="150" height="150" alt="" /></li>
<li><img src="fotos/trabajos-verticales-2_small.jpg" width="150" height="150" alt="" /></li>
<li><img src="fotos/poceria-antes_small.jpg" width="150" height="150" alt="" /></li>
<li><img src="fotos/poceria-despues_small.jpg" width="150" height="150" alt="" /></li>
<li><img src="fotos/poceria-acabado_small.jpg" width="150" height="150" alt="" /></li>
</ul>
</div>
<div id="inicio_derecha">
<div class="gris">
<h4>Acerca de Intedi</h4>
<p><strong>Realizamos todo tipo de reformas integrales.</strong> Intedi pone a su disposición nuestros amplios conocimientos en este campo y a profesionales altamente cualificados, con el objeto de asegurar la correcta ejecución de la reforma. Todo trabajo que se realice siempre contará con la <strong>supervisión constante</strong> de un encargado, persona responsable de la coordinación y ejecución.<br/>
<a href="empresa.html">Saber más...</a></p>
</div>
<h4>Contacto</h4>
<p><strong>C/ El Torno, nº 17<br/>
28529 - Rivas - Madrid</strong><br/><br/>
@ -104,9 +55,10 @@ Intedi realiza todo tipo de trabajos relacionados con <strong>pocerías, humedad
</div>
<div id="pie_layout">
<div id="pie">
<p><a href="">Aviso legal</a> | <a href="">Pol&iacute;tica de privacidad</a>
<h2>Cerrajería - Carpintería - Inspección de redes sanitarias - Desatrancos - Picado de zanjas - Realización de trasteros - Localización de fugas<br/> Limpieza de fosas sépticas - Limpieza de sumideros - Instalación de bajadas de agua y canalones - Sellado de juntas<br/>Anclaje de piedras - Revestimientos y pinturas - Alicatados - Solados - Enlucidos - Pintura y decoración de interiores<br/>Pocería - Rehabilitaciones - Trabajos verticales - Inspección técnica de edificios</h2>
<!--<p><a href="">Aviso legal</a> | <a href="">Pol&iacute;tica de privacidad</a></p>-->
<!--<br/>Diseñado por <a href="http://www.rodax-software.com" title="Rodax Software S.L.">Rodax Software S.L.</a> - 2009-->
</p>
</div >
</div>
</div>
</body>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 832 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

File diff suppressed because one or more lines are too long

View File

@ -1,49 +0,0 @@
/**
* This <div> element is wrapped by jCarousel around the list
* and has the classname "jcarousel-container".
*/
.jcarousel-container {
position: relative;
}
.jcarousel-clip {
z-index: 2;
padding: 0;
margin: 0;
overflow: hidden;
position: relative;
}
.jcarousel-list {
z-index: 1;
overflow: hidden;
position: relative;
top: 0;
left: 0;
margin: 0;
padding: 0;
}
.jcarousel-list li,
.jcarousel-item {
float: left;
list-style: none;
/* We set the width/height explicitly. No width/height causes infinite loops. */
width: 75px;
height: 75px;
}
/**
* The buttons are added dynamically by jCarousel before
* the <ul> list (inside the <div> described above) and
* have the classnames "jcarousel-next" and "jcarousel-prev".
*/
.jcarousel-next {
z-index: 3;
display: none;
}
.jcarousel-prev {
z-index: 3;
display: none;
}

View File

@ -1,878 +0,0 @@
/**
* jCarousel - Riding carousels with jQuery
* http://sorgalla.com/jcarousel/
*
* Copyright (c) 2006 Jan Sorgalla (http://sorgalla.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Built on top of the jQuery library
* http://jquery.com
*
* Inspired by the "Carousel Component" by Bill Scott
* http://billwscott.com/carousel/
*/
(function($) {
/**
* Creates a carousel for all matched elements.
*
* @example $("#mycarousel").jcarousel();
* @before <ul id="mycarousel" class="jcarousel-skin-name"><li>First item</li><li>Second item</li></ul>
* @result
*
* <div class="jcarousel-skin-name">
* <div class="jcarousel-container">
* <div disabled="disabled" class="jcarousel-prev jcarousel-prev-disabled"></div>
* <div class="jcarousel-next"></div>
* <div class="jcarousel-clip">
* <ul class="jcarousel-list">
* <li class="jcarousel-item-1">First item</li>
* <li class="jcarousel-item-2">Second item</li>
* </ul>
* </div>
* </div>
* </div>
*
* @name jcarousel
* @type jQuery
* @param Hash o A set of key/value pairs to set as configuration properties.
* @cat Plugins/jCarousel
*/
$.fn.jcarousel = function(o) {
return this.each(function() {
new $jc(this, o);
});
};
// Default configuration properties.
var defaults = {
vertical: false,
start: 1,
offset: 1,
size: null,
scroll: 3,
visible: null,
animation: 'normal',
easing: 'swing',
auto: 0,
wrap: null,
initCallback: null,
reloadCallback: null,
itemLoadCallback: null,
itemFirstInCallback: null,
itemFirstOutCallback: null,
itemLastInCallback: null,
itemLastOutCallback: null,
itemVisibleInCallback: null,
itemVisibleOutCallback: null,
buttonNextHTML: '<div></div>',
buttonPrevHTML: '<div></div>',
buttonNextEvent: 'click',
buttonPrevEvent: 'click',
buttonNextCallback: null,
buttonPrevCallback: null
};
/**
* The jCarousel object.
*
* @constructor
* @name $.jcarousel
* @param Object e The element to create the carousel for.
* @param Hash o A set of key/value pairs to set as configuration properties.
* @cat Plugins/jCarousel
*/
$.jcarousel = function(e, o) {
this.options = $.extend({}, defaults, o || {});
this.locked = false;
this.container = null;
this.clip = null;
this.list = null;
this.buttonNext = null;
this.buttonPrev = null;
this.wh = !this.options.vertical ? 'width' : 'height';
this.lt = !this.options.vertical ? 'left' : 'top';
// Extract skin class
var skin = '', split = e.className.split(' ');
for (var i = 0; i < split.length; i++) {
if (split[i].indexOf('jcarousel-skin') != -1) {
$(e).removeClass(split[i]);
var skin = split[i];
break;
}
}
if (e.nodeName == 'UL' || e.nodeName == 'OL') {
this.list = $(e);
this.container = this.list.parent();
if (this.container.hasClass('jcarousel-clip')) {
if (!this.container.parent().hasClass('jcarousel-container'))
this.container = this.container.wrap('<div></div>');
this.container = this.container.parent();
} else if (!this.container.hasClass('jcarousel-container'))
this.container = this.list.wrap('<div></div>').parent();
} else {
this.container = $(e);
this.list = $(e).find('>ul,>ol,div>ul,div>ol');
}
if (skin != '' && this.container.parent()[0].className.indexOf('jcarousel-skin') == -1)
this.container.wrap('<div class=" '+ skin + '"></div>');
this.clip = this.list.parent();
if (!this.clip.length || !this.clip.hasClass('jcarousel-clip'))
this.clip = this.list.wrap('<div></div>').parent();
this.buttonPrev = $('.jcarousel-prev', this.container);
if (this.buttonPrev.size() == 0 && this.options.buttonPrevHTML != null)
this.buttonPrev = this.clip.before(this.options.buttonPrevHTML).prev();
this.buttonPrev.addClass(this.className('jcarousel-prev'));
this.buttonNext = $('.jcarousel-next', this.container);
if (this.buttonNext.size() == 0 && this.options.buttonNextHTML != null)
this.buttonNext = this.clip.before(this.options.buttonNextHTML).prev();
this.buttonNext.addClass(this.className('jcarousel-next'));
this.clip.addClass(this.className('jcarousel-clip'));
this.list.addClass(this.className('jcarousel-list'));
this.container.addClass(this.className('jcarousel-container'));
var di = this.options.visible != null ? Math.ceil(this.clipping() / this.options.visible) : null;
var li = this.list.children('li');
var self = this;
if (li.size() > 0) {
var wh = 0, i = this.options.offset;
li.each(function() {
self.format(this, i++);
wh += self.dimension(this, di);
});
this.list.css(this.wh, wh + 'px');
// Only set if not explicitly passed as option
if (!o || o.size === undefined)
this.options.size = li.size();
}
// For whatever reason, .show() does not work in Safari...
this.container.css('display', 'block');
this.buttonNext.css('display', 'block');
this.buttonPrev.css('display', 'block');
this.funcNext = function() { self.next(); };
this.funcPrev = function() { self.prev(); };
this.funcResize = function() { self.reload(); };
if (this.options.initCallback != null)
this.options.initCallback(this, 'init');
if ($.browser.safari) {
this.buttons(false, false);
$(window).bind('load', function() { self.setup(); });
} else
this.setup();
};
// Create shortcut for internal use
var $jc = $.jcarousel;
$jc.fn = $jc.prototype = {
jcarousel: '0.2.3'
};
$jc.fn.extend = $jc.extend = $.extend;
$jc.fn.extend({
/**
* Setups the carousel.
*
* @name setup
* @type undefined
* @cat Plugins/jCarousel
*/
setup: function() {
this.first = null;
this.last = null;
this.prevFirst = null;
this.prevLast = null;
this.animating = false;
this.timer = null;
this.tail = null;
this.inTail = false;
if (this.locked)
return;
this.list.css(this.lt, this.pos(this.options.offset) + 'px');
var p = this.pos(this.options.start);
this.prevFirst = this.prevLast = null;
this.animate(p, false);
$(window).unbind('resize', this.funcResize).bind('resize', this.funcResize);
},
/**
* Clears the list and resets the carousel.
*
* @name reset
* @type undefined
* @cat Plugins/jCarousel
*/
reset: function() {
this.list.empty();
this.list.css(this.lt, '0px');
this.list.css(this.wh, '10px');
if (this.options.initCallback != null)
this.options.initCallback(this, 'reset');
this.setup();
},
/**
* Reloads the carousel and adjusts positions.
*
* @name reload
* @type undefined
* @cat Plugins/jCarousel
*/
reload: function() {
if (this.tail != null && this.inTail)
this.list.css(this.lt, $jc.intval(this.list.css(this.lt)) + this.tail);
this.tail = null;
this.inTail = false;
if (this.options.reloadCallback != null)
this.options.reloadCallback(this);
if (this.options.visible != null) {
var self = this;
var di = Math.ceil(this.clipping() / this.options.visible), wh = 0, lt = 0;
$('li', this.list).each(function(i) {
wh += self.dimension(this, di);
if (i + 1 < self.first)
lt = wh;
});
this.list.css(this.wh, wh + 'px');
this.list.css(this.lt, -lt + 'px');
}
this.scroll(this.first, false);
},
/**
* Locks the carousel.
*
* @name lock
* @type undefined
* @cat Plugins/jCarousel
*/
lock: function() {
this.locked = true;
this.buttons();
},
/**
* Unlocks the carousel.
*
* @name unlock
* @type undefined
* @cat Plugins/jCarousel
*/
unlock: function() {
this.locked = false;
this.buttons();
},
/**
* Sets the size of the carousel.
*
* @name size
* @type undefined
* @param Number s The size of the carousel.
* @cat Plugins/jCarousel
*/
size: function(s) {
if (s != undefined) {
this.options.size = s;
if (!this.locked)
this.buttons();
}
return this.options.size;
},
/**
* Checks whether a list element exists for the given index (or index range).
*
* @name get
* @type bool
* @param Number i The index of the (first) element.
* @param Number i2 The index of the last element.
* @cat Plugins/jCarousel
*/
has: function(i, i2) {
if (i2 == undefined || !i2)
i2 = i;
if (this.options.size !== null && i2 > this.options.size)
i2 = this.options.size;
for (var j = i; j <= i2; j++) {
var e = this.get(j);
if (!e.length || e.hasClass('jcarousel-item-placeholder'))
return false;
}
return true;
},
/**
* Returns a jQuery object with list element for the given index.
*
* @name get
* @type jQuery
* @param Number i The index of the element.
* @cat Plugins/jCarousel
*/
get: function(i) {
return $('.jcarousel-item-' + i, this.list);
},
/**
* Adds an element for the given index to the list.
* If the element already exists, it updates the inner html.
* Returns the created element as jQuery object.
*
* @name add
* @type jQuery
* @param Number i The index of the element.
* @param String s The innerHTML of the element.
* @cat Plugins/jCarousel
*/
add: function(i, s) {
var e = this.get(i), old = 0, add = 0;
if (e.length == 0) {
var c, e = this.create(i), j = $jc.intval(i);
while (c = this.get(--j)) {
if (j <= 0 || c.length) {
j <= 0 ? this.list.prepend(e) : c.after(e);
break;
}
}
} else
old = this.dimension(e);
e.removeClass(this.className('jcarousel-item-placeholder'));
typeof s == 'string' ? e.html(s) : e.empty().append(s);
var di = this.options.visible != null ? Math.ceil(this.clipping() / this.options.visible) : null;
var wh = this.dimension(e, di) - old;
if (i > 0 && i < this.first)
this.list.css(this.lt, $jc.intval(this.list.css(this.lt)) - wh + 'px');
this.list.css(this.wh, $jc.intval(this.list.css(this.wh)) + wh + 'px');
return e;
},
/**
* Removes an element for the given index from the list.
*
* @name remove
* @type undefined
* @param Number i The index of the element.
* @cat Plugins/jCarousel
*/
remove: function(i) {
var e = this.get(i);
// Check if item exists and is not currently visible
if (!e.length || (i >= this.first && i <= this.last))
return;
var d = this.dimension(e);
if (i < this.first)
this.list.css(this.lt, $jc.intval(this.list.css(this.lt)) + d + 'px');
e.remove();
this.list.css(this.wh, $jc.intval(this.list.css(this.wh)) - d + 'px');
},
/**
* Moves the carousel forwards.
*
* @name next
* @type undefined
* @cat Plugins/jCarousel
*/
next: function() {
this.stopAuto();
if (this.tail != null && !this.inTail)
this.scrollTail(false);
else
this.scroll(((this.options.wrap == 'both' || this.options.wrap == 'last') && this.options.size != null && this.last == this.options.size) ? 1 : this.first + this.options.scroll);
},
/**
* Moves the carousel backwards.
*
* @name prev
* @type undefined
* @cat Plugins/jCarousel
*/
prev: function() {
this.stopAuto();
if (this.tail != null && this.inTail)
this.scrollTail(true);
else
this.scroll(((this.options.wrap == 'both' || this.options.wrap == 'first') && this.options.size != null && this.first == 1) ? this.options.size : this.first - this.options.scroll);
},
/**
* Scrolls the tail of the carousel.
*
* @name scrollTail
* @type undefined
* @param Bool b Whether scroll the tail back or forward.
* @cat Plugins/jCarousel
*/
scrollTail: function(b) {
if (this.locked || this.animating || !this.tail)
return;
var pos = $jc.intval(this.list.css(this.lt));
!b ? pos -= this.tail : pos += this.tail;
this.inTail = !b;
// Save for callbacks
this.prevFirst = this.first;
this.prevLast = this.last;
this.animate(pos);
},
/**
* Scrolls the carousel to a certain position.
*
* @name scroll
* @type undefined
* @param Number i The index of the element to scoll to.
* @param Bool a Flag indicating whether to perform animation.
* @cat Plugins/jCarousel
*/
scroll: function(i, a) {
if (this.locked || this.animating)
return;
this.animate(this.pos(i), a);
},
/**
* Prepares the carousel and return the position for a certian index.
*
* @name pos
* @type Number
* @param Number i The index of the element to scoll to.
* @cat Plugins/jCarousel
*/
pos: function(i) {
if (this.locked || this.animating)
return;
i = $jc.intval(i);
if (this.options.wrap != 'circular')
i = i < 1 ? 1 : (this.options.size && i > this.options.size ? this.options.size : i);
var back = this.first > i;
var pos = $jc.intval(this.list.css(this.lt));
// Create placeholders, new list width/height
// and new list position
var f = this.options.wrap != 'circular' && this.first <= 1 ? 1 : this.first;
var c = back ? this.get(f) : this.get(this.last);
var j = back ? f : f - 1;
var e = null, l = 0, p = false, d = 0;
while (back ? --j >= i : ++j < i) {
e = this.get(j);
p = !e.length;
if (e.length == 0) {
e = this.create(j).addClass(this.className('jcarousel-item-placeholder'));
c[back ? 'before' : 'after' ](e);
}
c = e;
d = this.dimension(e);
if (p)
l += d;
if (this.first != null && (this.options.wrap == 'circular' || (j >= 1 && (this.options.size == null || j <= this.options.size))))
pos = back ? pos + d : pos - d;
}
// Calculate visible items
var clipping = this.clipping();
var cache = [];
var visible = 0, j = i, v = 0;
var c = this.get(i - 1);
while (++visible) {
e = this.get(j);
p = !e.length;
if (e.length == 0) {
e = this.create(j).addClass(this.className('jcarousel-item-placeholder'));
// This should only happen on a next scroll
c.length == 0 ? this.list.prepend(e) : c[back ? 'before' : 'after' ](e);
}
c = e;
var d = this.dimension(e);
if (d == 0) {
alert('jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...');
return 0;
}
if (this.options.wrap != 'circular' && this.options.size !== null && j > this.options.size)
cache.push(e);
else if (p)
l += d;
v += d;
if (v >= clipping)
break;
j++;
}
// Remove out-of-range placeholders
for (var x = 0; x < cache.length; x++)
cache[x].remove();
// Resize list
if (l > 0) {
this.list.css(this.wh, this.dimension(this.list) + l + 'px');
if (back) {
pos -= l;
this.list.css(this.lt, $jc.intval(this.list.css(this.lt)) - l + 'px');
}
}
// Calculate first and last item
var last = i + visible - 1;
if (this.options.wrap != 'circular' && this.options.size && last > this.options.size)
last = this.options.size;
if (j > last) {
visible = 0, j = last, v = 0;
while (++visible) {
var e = this.get(j--);
if (!e.length)
break;
v += this.dimension(e);
if (v >= clipping)
break;
}
}
var first = last - visible + 1;
if (this.options.wrap != 'circular' && first < 1)
first = 1;
if (this.inTail && back) {
pos += this.tail;
this.inTail = false;
}
this.tail = null;
if (this.options.wrap != 'circular' && last == this.options.size && (last - visible + 1) >= 1) {
var m = $jc.margin(this.get(last), !this.options.vertical ? 'marginRight' : 'marginBottom');
if ((v - m) > clipping)
this.tail = v - clipping - m;
}
// Adjust position
while (i-- > first)
pos += this.dimension(this.get(i));
// Save visible item range
this.prevFirst = this.first;
this.prevLast = this.last;
this.first = first;
this.last = last;
return pos;
},
/**
* Animates the carousel to a certain position.
*
* @name animate
* @type undefined
* @param mixed p Position to scroll to.
* @param Bool a Flag indicating whether to perform animation.
* @cat Plugins/jCarousel
*/
animate: function(p, a) {
if (this.locked || this.animating)
return;
this.animating = true;
var self = this;
var scrolled = function() {
self.animating = false;
if (p == 0)
self.list.css(self.lt, 0);
if (self.options.wrap == 'both' || self.options.wrap == 'last' || self.options.size == null || self.last < self.options.size)
self.startAuto();
self.buttons();
self.notify('onAfterAnimation');
};
this.notify('onBeforeAnimation');
// Animate
if (!this.options.animation || a == false) {
this.list.css(this.lt, p + 'px');
scrolled();
} else {
var o = !this.options.vertical ? {'left': p} : {'top': p};
this.list.animate(o, this.options.animation, this.options.easing, scrolled);
}
},
/**
* Starts autoscrolling.
*
* @name auto
* @type undefined
* @param Number s Seconds to periodically autoscroll the content.
* @cat Plugins/jCarousel
*/
startAuto: function(s) {
if (s != undefined)
this.options.auto = s;
if (this.options.auto == 0)
return this.stopAuto();
if (this.timer != null)
return;
var self = this;
this.timer = setTimeout(function() { self.next(); }, this.options.auto * 1000);
},
/**
* Stops autoscrolling.
*
* @name stopAuto
* @type undefined
* @cat Plugins/jCarousel
*/
stopAuto: function() {
if (this.timer == null)
return;
clearTimeout(this.timer);
this.timer = null;
},
/**
* Sets the states of the prev/next buttons.
*
* @name buttons
* @type undefined
* @cat Plugins/jCarousel
*/
buttons: function(n, p) {
if (n == undefined || n == null) {
var n = !this.locked && this.options.size !== 0 && ((this.options.wrap && this.options.wrap != 'first') || this.options.size == null || this.last < this.options.size);
if (!this.locked && (!this.options.wrap || this.options.wrap == 'first') && this.options.size != null && this.last >= this.options.size)
n = this.tail != null && !this.inTail;
}
if (p == undefined || p == null) {
var p = !this.locked && this.options.size !== 0 && ((this.options.wrap && this.options.wrap != 'last') || this.first > 1);
if (!this.locked && (!this.options.wrap || this.options.wrap == 'last') && this.options.size != null && this.first == 1)
p = this.tail != null && this.inTail;
}
var self = this;
this.buttonNext[n ? 'bind' : 'unbind'](this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' : 'addClass'](this.className('jcarousel-next-disabled')).attr('disabled', n ? false : true);
this.buttonPrev[p ? 'bind' : 'unbind'](this.options.buttonPrevEvent, this.funcPrev)[p ? 'removeClass' : 'addClass'](this.className('jcarousel-prev-disabled')).attr('disabled', p ? false : true);
if (this.buttonNext.length > 0 && (this.buttonNext[0].jcarouselstate == undefined || this.buttonNext[0].jcarouselstate != n) && this.options.buttonNextCallback != null) {
this.buttonNext.each(function() { self.options.buttonNextCallback(self, this, n); });
this.buttonNext[0].jcarouselstate = n;
}
if (this.buttonPrev.length > 0 && (this.buttonPrev[0].jcarouselstate == undefined || this.buttonPrev[0].jcarouselstate != p) && this.options.buttonPrevCallback != null) {
this.buttonPrev.each(function() { self.options.buttonPrevCallback(self, this, p); });
this.buttonPrev[0].jcarouselstate = p;
}
},
notify: function(evt) {
var state = this.prevFirst == null ? 'init' : (this.prevFirst < this.first ? 'next' : 'prev');
// Load items
this.callback('itemLoadCallback', evt, state);
if (this.prevFirst !== this.first) {
this.callback('itemFirstInCallback', evt, state, this.first);
this.callback('itemFirstOutCallback', evt, state, this.prevFirst);
}
if (this.prevLast !== this.last) {
this.callback('itemLastInCallback', evt, state, this.last);
this.callback('itemLastOutCallback', evt, state, this.prevLast);
}
this.callback('itemVisibleInCallback', evt, state, this.first, this.last, this.prevFirst, this.prevLast);
this.callback('itemVisibleOutCallback', evt, state, this.prevFirst, this.prevLast, this.first, this.last);
},
callback: function(cb, evt, state, i1, i2, i3, i4) {
if (this.options[cb] == undefined || (typeof this.options[cb] != 'object' && evt != 'onAfterAnimation'))
return;
var callback = typeof this.options[cb] == 'object' ? this.options[cb][evt] : this.options[cb];
if (!$.isFunction(callback))
return;
var self = this;
if (i1 === undefined)
callback(self, state, evt);
else if (i2 === undefined)
this.get(i1).each(function() { callback(self, this, i1, state, evt); });
else {
for (var i = i1; i <= i2; i++)
if (i !== null && !(i >= i3 && i <= i4))
this.get(i).each(function() { callback(self, this, i, state, evt); });
}
},
create: function(i) {
return this.format('<li></li>', i);
},
format: function(e, i) {
var $e = $(e).addClass(this.className('jcarousel-item')).addClass(this.className('jcarousel-item-' + i));
$e.attr('jcarouselindex', i);
return $e;
},
className: function(c) {
return c + ' ' + c + (!this.options.vertical ? '-horizontal' : '-vertical');
},
dimension: function(e, d) {
var el = e.jquery != undefined ? e[0] : e;
var old = !this.options.vertical ?
el.offsetWidth + $jc.margin(el, 'marginLeft') + $jc.margin(el, 'marginRight') :
el.offsetHeight + $jc.margin(el, 'marginTop') + $jc.margin(el, 'marginBottom');
if (d == undefined || old == d)
return old;
var w = !this.options.vertical ?
d - $jc.margin(el, 'marginLeft') - $jc.margin(el, 'marginRight') :
d - $jc.margin(el, 'marginTop') - $jc.margin(el, 'marginBottom');
$(el).css(this.wh, w + 'px');
return this.dimension(el);
},
clipping: function() {
return !this.options.vertical ?
this.clip[0].offsetWidth - $jc.intval(this.clip.css('borderLeftWidth')) - $jc.intval(this.clip.css('borderRightWidth')) :
this.clip[0].offsetHeight - $jc.intval(this.clip.css('borderTopWidth')) - $jc.intval(this.clip.css('borderBottomWidth'));
},
index: function(i, s) {
if (s == undefined)
s = this.options.size;
return Math.round((((i-1) / s) - Math.floor((i-1) / s)) * s) + 1;
}
});
$jc.extend({
/**
* Gets/Sets the global default configuration properties.
*
* @name defaults
* @descr Gets/Sets the global default configuration properties.
* @type Hash
* @param Hash d A set of key/value pairs to set as configuration properties.
* @cat Plugins/jCarousel
*/
defaults: function(d) {
return $.extend(defaults, d || {});
},
margin: function(e, p) {
if (!e)
return 0;
var el = e.jquery != undefined ? e[0] : e;
if (p == 'marginRight' && $.browser.safari) {
var old = {'display': 'block', 'float': 'none', 'width': 'auto'}, oWidth, oWidth2;
$.swap(el, old, function() { oWidth = el.offsetWidth; });
old['marginRight'] = 0;
$.swap(el, old, function() { oWidth2 = el.offsetWidth; });
return oWidth2 - oWidth;
}
return $jc.intval($.css(el, p));
},
intval: function(v) {
v = parseInt(v);
return isNaN(v) ? 0 : v;
}
});
})(jQuery);

File diff suppressed because one or more lines are too long

View File

@ -1,159 +0,0 @@
/* ----------------------------------------------------------------------------------------------------------------*/
/* ---------->>> global settings needed for thickbox <<<-----------------------------------------------------------*/
/* ----------------------------------------------------------------------------------------------------------------*/
*{padding: 0; margin: 0;}
/* ----------------------------------------------------------------------------------------------------------------*/
/* ---------->>> thickbox specific link and font settings <<<------------------------------------------------------*/
/* ----------------------------------------------------------------------------------------------------------------*/
#TB_window {
font: 12px Arial, Helvetica, sans-serif;
color: #333333;
}
#TB_secondLine {
font: 10px Arial, Helvetica, sans-serif;
color:#666666;
}
#TB_window a:link {color: #666666;}
#TB_window a:visited {color: #666666;}
#TB_window a:hover {color: #000;}
#TB_window a:active {color: #666666;}
#TB_window a:focus{color: #666666;}
/* ----------------------------------------------------------------------------------------------------------------*/
/* ---------->>> thickbox settings <<<-----------------------------------------------------------------------------*/
/* ----------------------------------------------------------------------------------------------------------------*/
#TB_overlay {
position: fixed;
z-index:100;
top: 0px;
left: 0px;
background-color:#000;
filter:alpha(opacity=75);
-moz-opacity: 0.75;
opacity: 0.75;
height:100%;
width:100%;
}
* html #TB_overlay { /* ie6 hack */
position: absolute;
height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
}
#TB_window {
position: fixed;
background: #ffffff;
z-index: 102;
color:#000000;
display:none;
border: 4px solid #525252;
text-align:left;
top:50%;
left:50%;
}
* html #TB_window { /* ie6 hack */
position: absolute;
margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
}
#TB_window img#TB_Image {
display:block;
margin: 15px 0 0 15px;
border-right: 1px solid #ccc;
border-bottom: 1px solid #ccc;
border-top: 1px solid #666;
border-left: 1px solid #666;
}
#TB_caption{
height:25px;
padding:7px 30px 10px 25px;
float:left;
}
#TB_closeWindow{
height:25px;
padding:11px 25px 10px 0;
float:right;
}
#TB_closeAjaxWindow{
padding:7px 10px 5px 0;
margin-bottom:1px;
text-align:right;
float:right;
}
#TB_ajaxWindowTitle{
float:left;
padding:7px 0 5px 10px;
margin-bottom:1px;
}
#TB_title{
background-color:#e8e8e8;
height:27px;
}
#TB_ajaxContent{
clear:both;
padding:2px 15px 15px 15px;
overflow:auto;
text-align:left;
line-height:1.4em;
}
#TB_ajaxContent.TB_modal{
padding:15px;
}
#TB_ajaxContent p{
padding:5px 0px 5px 0px;
}
#TB_load{
position: fixed;
display:none;
height:13px;
width:208px;
z-index:103;
top: 50%;
left: 50%;
margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */
}
* html #TB_load { /* ie6 hack */
position: absolute;
margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
}
#TB_HideSelect{
z-index:99;
position:fixed;
top: 0;
left: 0;
background-color:#fff;
border:none;
filter:alpha(opacity=0);
-moz-opacity: 0;
opacity: 0;
height:100%;
width:100%;
}
* html #TB_HideSelect { /* ie6 hack */
position: absolute;
height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
}
#TB_iframeContent{
clear:both;
border:none;
margin-bottom:-1px;
margin-top:1px;
_margin-bottom:1px;
}

View File

@ -1,296 +0,0 @@
/*
* Thickbox 3 - One Box To Rule Them All.
* By Cody Lindley (http://www.codylindley.com)
* Copyright (c) 2007 cody lindley
* Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/
var tb_pathToImage = "images/loadingAnimation.gif";
/*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
//on page load call tb_init
$(document).ready(function(){
tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
imgLoader = new Image();// preload image
imgLoader.src = tb_pathToImage;
});
//add thickbox to href & area elements that have a class of .thickbox
function tb_init(domChunk){
$(domChunk).click(function(){
var t = this.title || this.name || null;
var a = this.href || this.alt;
var g = this.rel || false;
tb_show(t,a,g);
this.blur();
return false;
});
}
function tb_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link
try {
if (typeof document.body.style.maxHeight === "undefined") {//if IE 6
$("body","html").css({height: "100%", width: "100%"});
$("html").css("overflow","hidden");
if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6
$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
$("#TB_overlay").click(tb_remove);
}
}else{//all others
if(document.getElementById("TB_overlay") === null){
$("body").append("<div id='TB_overlay'></div><div id='TB_window'>");
$("#TB_overlay").click(tb_remove);
}
}
if(caption===null){caption="";}
$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");//add loader to the page
$('#TB_load').show();//show loader
var baseURL;
if(url.indexOf("?")!==-1){ //ff there is a query string involved
baseURL = url.substr(0, url.indexOf("?"));
}else{
baseURL = url;
}
var urlString = /\.jpg|\.jpeg|\.png|\.gif|\.bmp/g;
var urlType = baseURL.toLowerCase().match(urlString);
if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images
TB_PrevCaption = "";
TB_PrevURL = "";
TB_PrevHTML = "";
TB_NextCaption = "";
TB_NextURL = "";
TB_NextHTML = "";
TB_imageCount = "";
TB_FoundURL = false;
if(imageGroup){
TB_TempArray = $("a[@rel="+imageGroup+"]").get();
for (TB_Counter = 0; ((TB_Counter < TB_TempArray.length) && (TB_NextHTML === "")); TB_Counter++) {
var urlTypeTemp = TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);
if (!(TB_TempArray[TB_Counter].href == url)) {
if (TB_FoundURL) {
TB_NextCaption = TB_TempArray[TB_Counter].title;
TB_NextURL = TB_TempArray[TB_Counter].href;
TB_NextHTML = "<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>";
} else {
TB_PrevCaption = TB_TempArray[TB_Counter].title;
TB_PrevURL = TB_TempArray[TB_Counter].href;
TB_PrevHTML = "<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>";
}
} else {
TB_FoundURL = true;
TB_imageCount = "Image " + (TB_Counter + 1) +" of "+ (TB_TempArray.length);
}
}
}
imgPreloader = new Image();
imgPreloader.onload = function(){
imgPreloader.onload = null;
// Resizing large images - orginal by Christian Montoya edited by me.
var pagesize = tb_getPageSize();
var x = pagesize[0] - 150;
var y = pagesize[1] - 150;
var imageWidth = imgPreloader.width;
var imageHeight = imgPreloader.height;
if (imageWidth > x) {
imageHeight = imageHeight * (x / imageWidth);
imageWidth = x;
if (imageHeight > y) {
imageWidth = imageWidth * (y / imageHeight);
imageHeight = y;
}
} else if (imageHeight > y) {
imageWidth = imageWidth * (y / imageHeight);
imageHeight = y;
if (imageWidth > x) {
imageHeight = imageHeight * (x / imageWidth);
imageWidth = x;
}
}
// End Resizing
TB_WIDTH = imageWidth + 30;
TB_HEIGHT = imageHeight + 60;
$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>");
$("#TB_closeWindowButton").click(tb_remove);
if (!(TB_PrevHTML === "")) {
function goPrev(){
if($(document).unbind("click",goPrev)){$(document).unbind("click",goPrev);}
$("#TB_window").remove();
$("body").append("<div id='TB_window'></div>");
tb_show(TB_PrevCaption, TB_PrevURL, imageGroup);
return false;
}
$("#TB_prev").click(goPrev);
}
if (!(TB_NextHTML === "")) {
function goNext(){
$("#TB_window").remove();
$("body").append("<div id='TB_window'></div>");
tb_show(TB_NextCaption, TB_NextURL, imageGroup);
return false;
}
$("#TB_next").click(goNext);
}
document.onkeydown = function(e){
if (e == null) { // ie
keycode = event.keyCode;
} else { // mozilla
keycode = e.which;
}
if(keycode == 27){ // close
tb_remove();
} else if(keycode == 190){ // display previous image
if(!(TB_NextHTML == "")){
document.onkeydown = "";
goNext();
}
} else if(keycode == 188){ // display next image
if(!(TB_PrevHTML == "")){
document.onkeydown = "";
goPrev();
}
}
};
tb_position();
$("#TB_load").remove();
$("#TB_ImageOff").click(tb_remove);
$("#TB_window").css({display:"block"}); //for safari using css instead of show
};
imgPreloader.src = url;
}else{//code to show html pages
var queryString = url.replace(/^[^\?]+\??/,'');
var params = tb_parseQuery( queryString );
TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no paramaters were added to URL
TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no paramaters were added to URL
ajaxContentW = TB_WIDTH - 30;
ajaxContentH = TB_HEIGHT - 45;
if(url.indexOf('TB_iframe') != -1){
urlNoQuery = url.split('TB_');
$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' onload='tb_showIframe()'> </iframe>");
}else{
if($("#TB_window").css("display") != "block"){
if(params['modal'] != "true"){
$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");
}else{
$("#TB_overlay").unbind();
$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");
}
}else{
$("#TB_ajaxContent")[0].style.width = ajaxContentW +"px";
$("#TB_ajaxContent")[0].style.height = ajaxContentH +"px";
$("#TB_ajaxContent")[0].scrollTop = 0;
$("#TB_ajaxWindowTitle").html(caption);
}
}
$("#TB_closeWindowButton").click(tb_remove);
if(url.indexOf('TB_inline') != -1){
$("#TB_ajaxContent").html($('#' + params['inlineId']).html());
tb_position();
$("#TB_load").remove();
$("#TB_window").css({display:"block"});
}else if(url.indexOf('TB_iframe') != -1){
tb_position();
if(frames['TB_iframeContent'] === undefined){//be nice to safari
$("#TB_load").remove();
$("#TB_window").css({display:"block"});
$(document).keyup( function(e){ var key = e.keyCode; if(key == 27){tb_remove();}});
}
}else{
$("#TB_ajaxContent").load(url += "&random=" + (new Date().getTime()),function(){//to do a post change this load method
tb_position();
$("#TB_load").remove();
tb_init("#TB_ajaxContent a.thickbox");
$("#TB_window").css({display:"block"});
});
}
}
if(!params['modal']){
document.onkeyup = function(e){
if (e == null) { // ie
keycode = event.keyCode;
} else { // mozilla
keycode = e.which;
}
if(keycode == 27){ // close
tb_remove();
}
};
}
} catch(e) {
//nothing here
}
}
//helper functions below
function tb_showIframe(){
$("#TB_load").remove();
$("#TB_window").css({display:"block"});
}
function tb_remove() {
$("#TB_imageOff").unbind("click");
$("#TB_overlay").unbind("click");
$("#TB_closeWindowButton").unbind("click");
$("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').remove();});
$("#TB_load").remove();
if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
$("body","html").css({height: "auto", width: "auto"});
$("html").css("overflow","");
}
document.onkeydown = "";
return false;
}
function tb_position() {
$("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'});
if ( !(jQuery.browser.msie && typeof XMLHttpRequest == 'function')) { // take away IE6
$("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'});
}
}
function tb_parseQuery ( query ) {
var Params = {};
if ( ! query ) {return Params;}// return empty object
var Pairs = query.split(/[;&]/);
for ( var i = 0; i < Pairs.length; i++ ) {
var KeyVal = Pairs[i].split('=');
if ( ! KeyVal || KeyVal.length != 2 ) {continue;}
var key = unescape( KeyVal[0] );
var val = unescape( KeyVal[1] );
val = val.replace(/\+/g, ' ');
Params[key] = val;
}
return Params;
}
function tb_getPageSize(){
var de = document.documentElement;
var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
arrayPageSize = [w,h];
return arrayPageSize;
}

View File

@ -1,37 +0,0 @@
.jcarousel-skin-tango .jcarousel-container {
height: 200px;
margin: 20px 0px;
}
.jcarousel-skin-tango .jcarousel-container-horizontal {
padding: 0; /*20px 20px;*/
width: 630px;
}
.jcarousel-skin-tango .jcarousel-clip-horizontal {
height: 200px;
}
.jcarousel-skin-tango .jcarousel-clip-vertical {
width: 200px;
height: 245px;
}
.jcarousel-skin-tango .jcarousel-item {
width: 150px;
height: 150px;
}
.jcarousel-skin-tango .jcarousel-item-horizontal {
margin-right: 10px;
}
.jcarousel-skin-tango .jcarousel-item-vertical {
margin-bottom: 10px;
}
.jcarousel-skin-tango .jcarousel-item-placeholder {
background: #fff;
color: #000;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 B

BIN
src/menu/images/menu-bg.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

5
src/menu/menu_style.css Normal file
View File

@ -0,0 +1,5 @@
ul#navmenu { width: 100%; height: 43px; background: url("images/menu-bg.gif") top left repeat-x; font-size: 16px; font-family: "Lucida Grande", Verdana, sans-serif; font-weight: normal; list-style-type: none; margin: 0; padding: 0; }
ul#navmenu li { display: block; float: left; margin: 0 0 0 20px; }
ul#navmenu li a { height: 43px; color: #777; text-decoration: none; display: block; float: left; line-height: 200%; padding: 2px 15px 0; font-weight: normal; }
ul#navmenu li a:hover { color: #333; }
ul#navmenu li a.current{ color: #FFF; background: #FFF url("images/current-bg.gif") top left repeat-x; padding: 2px 15px 0; }

View File

@ -8,7 +8,7 @@
<title>Servicios ofrecidos - INTEDI - Inspecci&oacute;n t&eacute;cnica de edificios (ITE) - Pocer&iacute;a - Rehabilitaciones</title>
<link rel="stylesheet" type="text/css" href="reset.css"/>
<link rel="stylesheet" type="text/css" href="estilos.css"/>
<link rel="stylesheet" type="text/css" href="menu.css"/>
<link rel="stylesheet" href="menu/menu_style.css" type="text/css" />
<link rel="stylesheet" href="litebox/css/lightbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="litebox/js/prototype.lite.js"></script>
@ -16,17 +16,18 @@
<script type="text/javascript" src="litebox/js/litebox-1.0.js"></script>
</head>
<body onload="initLightbox()">
<div id="layout">
<div id="cabecera_layout">
<div id="cabecera">
<div id="logotipo"><span>Intedi</span></div>
<h2>Pocería - Rehabilitaciones - Trabajos verticales<br/>Inspección técnica de edificios</h2>
<h2>Trabajos de pocería, conservación y mantenimiento de redes sanitarias<br/>Rehabilitaciones - Trabajos verticales con y sin andamios<br/>Inspección técnica de edificios</h2>
<div id="menu">
<ul>
<li><a href="index.html">Inicio</a></li>
<li class="current">Servicios</li>
<!-- <li><a href="proyectos.html">Obras realizadas</a></li>-->
<li><a href="empresa.html">La Empresa</a></li>
<li><a href="contacto.html">Contacto</a></li>
<ul id="navmenu">
<li><a href="index.html" target="_self" title="Inicio">Inicio</a></li>
<li><a href="servicios.html" target="_self" title="Servicios" class="current">Servicios</a></li>
<li><a href="empresa.html" target="_self" title="La Empresa">La Empresa</a></li>
<li><a href="contacto.html" target="_self" title="Contacto">Contacto</a></li>
</ul>
</div>
<div class="clear"></div>
@ -119,9 +120,10 @@
</div>
<div id="pie_layout">
<div id="pie">
<p><a href="">Aviso legal</a> | <a href="">Pol&iacute;tica de privacidad</a>
<h2>Cerrajería - Carpintería - Inspección de redes sanitarias - Desatrancos - Picado de zanjas - Realización de trasteros - Localización de fugas<br/> Limpieza de fosas sépticas - Limpieza de sumideros - Instalación de bajadas de agua y canalones - Sellado de juntas<br/>Anclaje de piedras - Revestimientos y pinturas - Alicatados - Solados - Enlucidos - Pintura y decoración de interiores<br/>Pocería - Rehabilitaciones - Trabajos verticales - Inspección técnica de edificios</h2>
<!--<p><a href="">Aviso legal</a> | <a href="">Pol&iacute;tica de privacidad</a></p>-->
<!--<br/>Diseñado por <a href="http://www.rodax-software.com" title="Rodax Software S.L.">Rodax Software S.L.</a> - 2009-->
</p>
</div >
</div>
</div>
</body>