/* CSS Document */
body {
background-color : #C0CBDB;;
background-position : left;
background-repeat : repeat-y;
margin-left : 0;
margin-top : 0;
font-family : Verdana;
font-size: 75%;
line-height:120%; }

p,ul,ol,li,div,td,th,address,nobr,b,i,hr { font-size:12px; font-family: Verdana, Arial, Sans-Serif; color:#000000}

h1,h2,h3,h4 { font-family: Verdana, Arial, Sans-Serif; font-weight:normal;}
h1 {FONT-SIZE: 13px;  margin: 0 0 0 0; font-weight:bold;}
h2 {font-size: 1.4em; color: #600; margin: 0 0 0.4em 0; padding-top: 0.5em; line-height:120%; }
h3 {font-size: 1.2em; color: #006; margin: 0 0 0.25em 0; padding-top: 0.5em; }
h4 {font-size: 1.1em; color: #396B6B; margin: 0 0 0.5em 0; padding-top: 1em; font-weight:bold; border-bottom: 1px #ddd solid;}
h5 {font-size: 1.0em; color: #444; margin: 0 0 0.30em 0; font-style:italic; }
h6 {font-size: 1.0em; color: #888; margin: 0 0 0.30em 0; font-style:italic; }

a { font-family: VERDANA; color: #000000; text-decoration: underline; }
a:hover { color: #F4B35C; text-decoration: underline; }
a.popup { position: relative; color: gray; text-decoration: none; }
a.popup div { display: none; }
a.popup:hover div { position: absolute; top:5px; left:20px; display:block; }
a.tops { font-family: VERDANA; color:#396B6B; text-decoration:none; font-size:11px; font-weight:bold; }
a.tops:HOVER { color: #F4B35C; text-decoration:underline; }
a.logo { font-family: VERDANA; color: #396B6B; text-decoration: none; font-size:18px; font-weight: bold; font-style: italic; margin:5px 5px 5px 5px; }
a.logo:HOVER { color: #F4B35C; text-decoration: underline; }
a.menu { font-family: VERDANA; color: #FFFFFF; text-decoration: none; font-size:12px; line-height:150%; }
a.menu:HOVER { color: #F4B35C; text-decoration: underline; }
a.menu1 { font-family: VERDANA; color: #FFFFFF; text-decoration: none; font-size:12px; margin:5px 5px 5px 5px; line-height:150%; }
a.menu1:HOVER { color: #F4B35C; text-decoration: underline; }
a.menu_kl { font-family: VERDANA; color: #000000; text-decoration: none; font-size:10px; }
a.menu_kl:HOVER { color: #F4B35C; text-decoration: underline; }
a.menu2 { font-family: VERDANA; color: #000000; text-decoration: underline; font-size:12px; }
a.menu2:HOVER { color: #F4B35C; text-decoration: underline; }
a.down {color: #000000; text-decoration:none; font-size: 0.9em;}
a.down:hover {color: #e23319; text-decoration:underline;}
a.down:visited {color: #6F6F6F; text-decoration:none;}
a.gelb { BACKGROUND-COLOR: #FDCE26; FONT-WEIGHT: bold; FONT-SIZE: 13px; COLOR: #000000; FONT-FAMILY: arial,sans-serif,helvetica; TEXT-DECORaTION: none}
a.gelb:hover { BACKGROUND-COLOR: #FDCE26; FONT-WEIGHT: bold; FONT-SIZE: 13px; COLOR: #000000; FONT-FAMILY: arial,sans-serif,helvetica; TEXT-DECORaTION: underline}
a.gelb:active {BACKGROUND-COLOR: #FDCE26; FONT-WEIGHT: bold; FONT-SIZE: 13px; COLOR: #000000; FONT-FAMILY: arial,sans-serif,helvetica; TEXT-DECORaTION: none}


/* ######################################################################################################
** ### Hauptnavigation ##################################################################################
** ######################################################################################################
*/
@media all
{
ul#mainnav { margin: 0;	padding: 0; list-style: url(../none) none; }
#aktiv ul { margin: 0; padding: 0; list-style: url(../none) none; }
#col1 h2 {margin: 0; padding:0;}
#col1 #mainnav li h2 a {
	display:block;
	width:188px;
	font-weight:normal;
	border-top: 1px solid #FFFFFF;
	padding: 0.3em 0em 0.3em 10px;
	color: #FFFFFF;
	font-size:12px;
	text-decoration:none;
}

#aktiv #col1 #mainnav li ul li a {
	display:block;
	width:188px;
	font-weight:normal;
	border-top: 1px solid #FFFFFF;
	padding: 0.3em 0em 0.3em 10px;
	color: #FFFFFF;
	font-size:12px;
	text-decoration:none;
	}

#aktiv #col1 #mainnav li h2 a.aktiv:hover, #col1 #mainnav li h2 a.aktiv:hover, #aktiv #col1 #mainnav li h2 a.aktiv:hover {background: #396B6B;}
#aktiv #col1 #mainnav li h2 a.aktiv {background: #396B6B;color: #fff;}
#aktiv #col1 #mainnav   li ul li a {background: #396B6B;color: #fff; }
#aktiv #col1 #mainnav li ul li a {background: #519797;font-size:11px;}
#aktiv #col1 #mainnav li ul li a:hover {background: #808080;color: #fff; }
#aktiv #col1 #mainnav li ul li a.aktiv {background: #98C9C9;color: #fff; }
#first #col1 #mainnav li h2 a.first:hover,  #col1 #mainnav li h2 a.first:hover, #sommer #col1 #mainnav li h2 a.first:hover {background: #808080; }
#first #col1 #mainnav li h2 a.aktiv {background: #d34b28;color: #fff;}
#first #col1 #mainnav li ul li a {background: #f6d4be;}
#first #col1 #mainnav li ul li a:hover {background: #eaa780;color: #000; }
#first #col1 #mainnav li ul li a.aktiv {background: #eaa780;color: #000; }
}

span.head {font-size:12px ;  margin:5px 5px 5px 5px}
span.trenn {font-size:10px ;  color: #FFFFFF; font-family: aRIaL;}
span.willkommen {font-size:13px ;  margin:5px 5px 5px 5px; font-weight: bold;}
span.text_kl {font-size:10px ;  color: #000000;}

div.search { padding-left: 1em; margin: 0em 0em 0em 1em; }
div.s_pd { padding-left: 1em; padding-bottom: 0.4em; }
div.s_opt { width:280px; margin: 1em 0em 0em 0em; background: #eef1f8; padding: 0.3em 0.3em 0.3em 0.3em; }
p.s_head { font-size:1.1em; font-weight: bold; margin: 0.6em 0em 0.5em 0em;}
p.s_op { font-size:1em;  margin: 0.6em 1em 0.5em 1em;}

** ### Tabellen ################################################################################**
/* Tabelle Infos rechts */
table.infos_rechts  { border-collapse: collapse;  border-spacing:0px; margin:0; padding:0;width:276px;  background: #E6E6E6; }
table.popup { background: #F3F3F3; text-decoration:none; border: 2px solid #3B6Ca6; color:black; display: block; padding:12; }
td.boxhead {border-width: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;  line-height: 2em; background:  url(img/menu_top_rechts.gif) repeat-x top;text-align:center; font-size: 13px; color: #FFFFFF; font-weight: bold; }
td.boxhead a, td.boxhead a:visited {color: #FFFFFF;}
td.boxhead a:Hover {color: #F4B35C;}
td.boxtext { border-width: 0px 0px 0px 0px; text-align:block; font-size: 11px; padding: 0.5em 1em 0em 0.5em;background: #E6E6E6; }
td.boxtext_1 { border-width: 0px 0px 0px 0px; text-align:block; font-size: 12px; padding: 0.5em 1em 0em 0.5em;background: #E6E6E6; }
td.infos_rechts_down { background: #FFFFFF; padding: 0px; background:  url(img/menu_down_rechts.gif) repeat-x top; }
td.bg1img {background-image: url('img/start_bild_1.jpg')}
td.bg2img {background-image: url('img/start_bild_2.jpg')}
td.bg3img {background-image: url('img/hinter_menu.gif')}
p.cart { background: #F2F2F2;border-width: 0px 0px 0px 0px; padding: 3px 0px 3px 0px;  line-height: 2em;text-align:center; font-size: 13px; color: #FFFFFF; font-weight: bold;background-image: url('img/back_title1.gif') }
p.login { background: #DF0000;border-width: 0px 0px 0px 0px; padding: 0px 3px 0px 0px;  line-height: 1.2em;text-align:right; font-size: 11px; color: #FFFFFF;# }
p.login a {background: #DF0000;border-width: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;  line-height: 1.2em;text-align:right; font-size: 11px; color: #FFFFFF;#text-decoration: underline; }

ul#boxtext   {
	margin: 0;
	padding-left	: .8em;
}

.gelb { BACKGROUND-COLOR: #FFFFFF; FONT-WEIGHT: bold; FONT-SIZE: 13px; COLOR: #000000; FONT-FaMILY: arial, Helvetica, sans serif; TEXT-DECORaTION: none; BACKground-image: url('img/back_title1.gif'); }

div.s_pd {
	padding-left: 1em;
	padding-bottom: 0.4em;
}
div.s_opt {
	width:300px;
	margin: 1em 0em 0em 0em;
	BACKground: #eef1f8;
	padding: 0.3em 0.3em 0.3em 0.3em;
}
p.s_head { font-size:1.1em; font-weight: bold; margin: 0.6em 0em 0.5em 0em;}
p.s_op { font-size:1em;  margin: 0.6em 1em 0.5em 1em;}
.s_br { width: 200px; }

/* ######################################################################################################
** ### Komplettrad Konfigurator Styles ##################################################################
** ######################################################################################################
*/

#felgenbezeichung_unter_bild {
		height:17px;
		background-image:url(../img/bg_felgen_modell.jpg);
			}

#felgenbezeichung_unter_bild_text {
		padding: 2px 0px 0px 5px;
		font-weight: bold;
		}

#felgenauswahl_aendern {
	    float:right;
        position:right;
        font-weight: bold;
		}

#reifenauswahl_aendern {
	 	font-weight: bold;
		}

#felge_gross_auswahl {
		margin: 10px 20px 10px 0px;
		height:288px;
		width:251px;
		background-image:url(../img/bg_anzeige_gr.jpg);
		}

#felge_gross_auswahl_1 {
		padding-top: 5px;
		padding-left: 5px;
        font-weight: bold;
        }

#felge_gross_auswahl_2 {
		padding-top: 2px;
		padding-left: 5px;
		line-height: 14px;
        font-weight: bold;
        font-size: 11px;
		}

#felge_gross_auswahl_3 {
		margin: 2px 0px 0px 28px;
		}

#felge_gross_auswahl_4 {
		margin: 0px 5px 0px 5px;
		}

#felge_klein_auswahl {
		margin: 10px 0px 10px 0px;
		height:237px;
		width:145px;
		background-image:url(../img/bg_anzeige_kl.jpg);
		}

td.felge_klein_auswahl {
		vertical-align: bottom;
        padding: 0px 10px 0px 0px;
		}

#felge_klein_auswahl_1 {
		text-align: center;
     	}

#felge_klein_auswahl_1 a {
	    text-decoration: none;
        font-size: 11px;
        font-weight: bold;
		color: #000000;
		}

#felge_klein_auswahl_1 a:hover{
		color: #797979;
	   }

#felge_klein_auswahl_2 {
		padding-top: 5px;
		padding-left: 5px;
        font-weight: bold;
       	}

#felge_klein_auswahl_3 {
		padding-top: 2px;
		padding-left: 5px;
		line-height: 14px;
        font-weight: bold;
        font-size: 11px;
		}

#felge_klein_auswahl_4 {
		margin: 2px 0px 0px 12px;
        height: 125px;
		}

#felge_klein_auswahl_5 {
    	margin: 0px 5px 0px 5px;
		}

#uebersicht_reifen {
        height:73px;
		width: 681px;
		background-image:url(../img/bg_uebersicht.jpg);
        }

#uebersicht_reifen_1 {
        height:30px;
		width: 681px;
		background-image:url(../img/bg_uebersicht_1.jpg);
        }

td.uebersicht_head_txt_1 {
        width: 351px;
        font-weight: bold;
        margin-top : 4px;
        }

td.uebersicht_eigenschaft_txt_1 {
        width: 300px;
        margin-top : 4px;
        font-size : 9px;
        text-align: right;
        }

td.uebersicht_zus_txt_1 {
        font-size : 9px;
        color: #cc6600;
        }

td.uebersicht_groesse_txt_1 {
        width: 300px;
        font-size : 12px;
        padding-top : 0px;
        font-weight: bold;
        padding-left : 30px;
        }

#uebersicht_groesse {
        margin-left : 35px;
        font-size : 12px;
        padding-top : 0px;
        }

#uebersicht_price   {
	   font-size: 14px;
	   font-weight: bold;
	   text-align: right;
	   margin-top: 0px;
	   margin-bottom: 0px;
	   margin-right: 10px;
       font-style: italic;
        }

#uebersicht_head_txt {
        font-weight: bold;
        margin-top : 8px;
        }

#uebersicht_zus_txt {
        margin-left : 110px;
        font-size : 9px;
        color: #cc6600;
        }

#uebersicht_eigenschaft_txt {
        margin-top : 6px;
        font-size : 9px;
        }

td.details_beschreibung_top {
        margin-top : 6px;
		padding-left: 5px;
        height:23px;
		background-image:url(../img/bg_detail_tabelle.jpg);
        }


/*
/* ######################################################################################################
** ### Komplettrad HSN_TSN ##############################################################################
** ######################################################################################################
*/

.selectBoxContainer {
	FLOAT: left; WIDTH: auto; MARGIN-RIGHT: 5px
}
.miniTableContainer {
	CLEAR: left; FLOAT: left
}
.miniTableContainer TD {
	PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 2px; CURSOR: pointer; PADDING-TOP: 2px
}
.vehicle_filter_wrapper {
	FLOAT: left; BACKGROUND-COLOR: white
}
.typeBox .content {
	BORDER-RIGHT: #94969c 1px solid; BORDER-TOP: #94969c 1px solid; OVERFLOW-Y: auto; OVERFLOW-X: hidden; BORDER-LEFT: #94969c 1px solid; WIDTH: 350px; BORDER-BOTTOM: #94969c 1px solid; HEIGHT: 360px
}
.filter_header {
	CLEAR: both; DISPLAY: none; FONT-WEIGHT: bold; FONT-SIZE: 14px; FLOAT: left; MARGIN: 12px 0px 0px 12px; WIDTH: auto
}
.makeBox {
	MARGIN-LEFT: 5px
}
.modelSelect {
	WIDTH: 170px; HEIGHT: 360px
}
.makeSelect {
	WIDTH: 130px; HEIGHT: 360px
}
.miniTableContainer TABLE {
	WIDTH: 100%
}
.modelBox {
	DISPLAY: none
}
.typeBox {
	DISPLAY: none
}
.typeBoxHeader {
	DISPLAY: none
}
.series_engineTable {
	TEXT-ALIGN: right
}
.right_side {
	RIGHT: 0px; MARGIN-RIGHT: 12px; POSITION: absolute
}
.right_side_hide {
	RIGHT: -320px; FILTER: alpha(opacity=70); opacity: 0.7; -moz-opacity: 0.7; -khtml-opacity: 0.7
}
.right_side_lookup {
	RIGHT: -305px; FILTER: alpha(opacity=100); opacity: 1; -moz-opacity: 1; -khtml-opacity: 1
}
.direct_search_wrapper {
	PADDING-RIGHT: 12px; PADDING-LEFT: 12px; FLOAT: left; PADDING-BOTTOM: 12px; PADDING-TOP: 12px
}
.select_search_wrapper {
	BORDER-RIGHT: #909799 1px solid; PADDING-RIGHT: 0px; BORDER-TOP: #909799 1px solid; PADDING-LEFT: 0px; FLOAT: left; PADDING-BOTTOM: 12px; BORDER-LEFT: #909799 1px solid; PADDING-TOP: 12px; BORDER-BOTTOM: #909799 1px solid; HEIGHT: 270px
}
.borderText {
	PADDING-RIGHT: 6px; PADDING-LEFT: 6px; FONT-WEIGHT: bold; FONT-SIZE: 14px; FLOAT: left; PADDING-BOTTOM: 12px; MARGIN-LEFT: 12px; CURSOR: hand; COLOR: white; PADDING-TOP: 12px; HEIGHT: 272px; BACKGROUND-COLOR: #909799; TEXT-ALIGN: center
}
.sn_search {
	FLOAT: left; WIDTH: 100%; BACKGROUND-COLOR: #ecf4e7
}
.sn_search TD {
	BORDER-RIGHT: #8dc391 1px solid; BORDER-TOP: #8dc391 1px solid; BORDER-LEFT: #8dc391 0px solid; BORDER-BOTTOM: #8dc391 0px solid
}
.black_text {
	FONT-WEIGHT: bold; FONT-SIZE: 14px! important; COLOR: #333333; TEXT-INDENT: 7px; FONT-FAMILY: 'Courier New', 'courier','Times New Roman',times,serif
}
.fz_desc_text {
	FONT-WEIGHT: bold; COLOR: #65b36b; FONT-FAMILY: Arial,Helvetica,sans-serif; BACKGROUND-COLOR: #ecf4e7; TEXT-ALIGN: center
}
.fz_desc_text_small {
	FONT-WEIGHT: bold; COLOR: #65b36b; FONT-FAMILY: Arial,Helvetica,sans-serif; BACKGROUND-COLOR: #ecf4e7; TEXT-ALIGN: center
}
.fz_desc_text_small {
	FONT-SIZE: 10px
}
.fz_header {
	FONT-WEIGHT: bold; FONT-SIZE: 14px; TEXT-INDENT: 0px; BORDER-RIGHT-WIDTH: 0px
}
.fz_first_td {
	BORDER-LEFT-WIDTH: 1px! important
}
.fz_last_row TD {
	BORDER-BOTTOM-WIDTH: 1px
}
.sn_search_green_row {
	BACKGROUND-COLOR: #cfe4c2
}
.type_kba_search {
	FLOAT: left; WIDTH: 50px; TEXT-ALIGN: center
}
.sn_search INPUT {
	BORDER-RIGHT: red 1px solid; BORDER-TOP: red 1px solid; FLOAT: left; BORDER-LEFT: red 1px solid; WIDTH: 100%; BORDER-BOTTOM: red 1px solid; BACKGROUND-COLOR: white; TEXT-ALIGN: left
}
#HSN {
	WIDTH: 50px; TEXT-INDENT: 0px
}
#TSN {
	WIDTH: 90px; TEXT-INDENT: 0px
}
#type_kba {
	WIDTH: 110px
}
.type_kba {
	MARGIN-TOP: 6px; FLOAT: left; WIDTH: 100px; TEXT-ALIGN: left
}
.sn_search_wrapper {
	CLEAR: both; FLOAT: left; WIDTH: 350px
}
.type_search_wrapper {
	CLEAR: both; MARGIN-TOP: 24px; FLOAT: left; MARGIN-LEFT: 7px
}
.type_search_wrapper {
	MARGIN-TOP: 4px; MARGIN-LEFT: 16px
}
.type_search_description {
	WIDTH: 300px
}
.prod_years_cell {
	WIDTH: 75px
}
.type_kba_cell {
	FONT-WEIGHT: bold; WIDTH: 50px
}
.series_name_cell {
	WIDTH: 85%
}

/* This notice must be untouched at all times.

wz_tooltip.js    v. 3.45

The latest version is available at
http://www.walterzorn.com
or http://www.devira.com
or http://www.walterzorn.de

Copyright (c) 2002-2005 Walter Zorn. All rights reserved.
Created 1. 12. 2002 by Walter Zorn (Web: http://www.walterzorn.com )
Last modified: 17. 2. 2007

Cross-browser tooltips working even in Opera 5 and 6,
as well as in NN 4, Gecko-Browsers, IE4+, Opera 7+ and Konqueror.
No onmouseouts required.
Appearance of tooltips can be individually configured
via commands within the onmouseovers.

LICENSE: LGPL

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License (LGPL) as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

For more details on the GNU Lesser General Public License,
see http://www.gnu.org/copyleft/lesser.html
*/



////////////////  GLOBAL TOOPTIP CONFIGURATION  /////////////////////
var ttAbove       = false;        // tooltip above mousepointer? Alternative: true
var ttBgColor     = "#e6ecff";
var ttBgImg       = "";           // path to background image;
var ttBorderColor = "#003399";
var ttBorderWidth = 1;
var ttClickClose  = false;
var ttDelay       = 500;          // time span until tooltip shows up [milliseconds]
var ttFontColor   = "#000066";
var ttFontFace    = "arial,helvetica,sans-serif";
var ttFontSize    = "11px";
var ttFontWeight  = "normal";     // alternative: "bold";
var ttLeft        = false;        // tooltip on the left of the mouse? Alternative: true
var ttOffsetX     = 12;           // horizontal offset of left-top corner from mousepointer
var ttOffsetY     = 15;           // vertical offset                   "
var ttOpacity     = 100;          // opacity of tooltip in percent (must be integer between 0 and 100)
var ttPadding     = 3;            // spacing between border and content
var ttShadowColor = "";
var ttShadowWidth = 0;
var ttStatic      = false;        // tooltip NOT move with the mouse? Alternative: true
var ttSticky      = false;        // do NOT hide tooltip on mouseout? Alternative: true
var ttTemp        = 0;            // time span after which the tooltip disappears; 0 (zero) means "infinite timespan"
var ttTextAlign   = "left";
var ttTitleColor  = "#ffffff";    // color of caption text
var ttWidth       = 300;
////////////////////  END OF TOOLTIP CONFIG  ////////////////////////



//////////////  TAGS WITH TOOLTIP FUNCTIONALITY  ////////////////////
// List may be extended or shortened:
var tt_tags = new Array("a","area","b","big","caption","center","code","dd","div","dl","dt","em","h1","h2","h3","h4","h5","h6","i","img","input","li","map","ol","p","pre","s", "select", "small","span","strike","strong","sub","sup","table","td","textarea","th","tr","tt","u","var","ul","layer");
/////////////////////////////////////////////////////////////////////



///////// DON'T CHANGE ANYTHING BELOW THIS LINE /////////////////////
var tt_obj = null,         // current tooltip
tt_ifrm = null,            // iframe to cover windowed controls in IE
tt_objW = 0, tt_objH = 0,  // width and height of tt_obj
tt_objX = 0, tt_objY = 0,
tt_offX = 0, tt_offY = 0,
xlim = 0, ylim = 0,        // right and bottom borders of visible client area
tt_sup = false,            // true if T_ABOVE cmd
tt_sticky = false,         // tt_obj sticky?
tt_wait = false,
tt_act = false,            // tooltip visibility flag
tt_sub = false,            // true while tooltip below mousepointer
tt_u = "undefined",
tt_mf = null,              // stores previous mousemove evthandler
// Opera: disable href when hovering <a>
tt_tag = null;             // stores hovered dom node, href and previous statusbar txt


var tt_db = (document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body? document.body : null,
tt_n = navigator.userAgent.toLowerCase(),
tt_nv = navigator.appVersion;
// Browser flags
var tt_op = !!(window.opera && document.getElementById),
tt_op6 = tt_op && !document.defaultView,
tt_op7 = tt_op && !tt_op6,
tt_ie = tt_n.indexOf("msie") != -1 && document.all && tt_db && !tt_op,
//tt_ie7 = tt_ie && typeof document.body.style.maxHeight != tt_u,
tt_ie6 = tt_ie && parseFloat(tt_nv.substring(tt_nv.indexOf("MSIE")+5)) >= 5.5,
tt_ie7 = tt_ie && !tt_ie6,
tt_n4 = (document.layers && typeof document.classes != tt_u),
tt_n6 = (!tt_op && document.defaultView && typeof document.defaultView.getComputedStyle != tt_u),
tt_w3c = !tt_ie && !tt_n6 && !tt_op && document.getElementById,
tt_ce = document.captureEvents && !tt_n6;

function tt_Int(t_x)
{
	var t_y;
	return isNaN(t_y = parseInt(t_x))? 0 : t_y;
}
function wzReplace(t_x, t_y)
{
	var t_ret = "",
	t_str = this,
	t_xI;
	while((t_xI = t_str.indexOf(t_x)) != -1)
	{
		t_ret += t_str.substring(0, t_xI) + t_y;
		t_str = t_str.substring(t_xI + t_x.length);
	}
	return t_ret+t_str;
}
String.prototype.wzReplace = wzReplace;
function tt_N4Tags(tagtyp, t_d, t_y)
{
	t_d = t_d || document;
	t_y = t_y || new Array();
	var t_x = (tagtyp=="a")? t_d.links : t_d.layers;
	for(var z = t_x.length; z--;) t_y[t_y.length] = t_x[z];
	for(z = t_d.layers.length; z--;) t_y = tt_N4Tags(tagtyp, t_d.layers[z].document, t_y);
	return t_y;
}
function tt_Htm(tt, t_id, txt)
{
	var t_bgc = (typeof tt.T_BGCOLOR != tt_u)? tt.T_BGCOLOR : ttBgColor,
	t_bgimg   = (typeof tt.T_BGIMG != tt_u)? tt.T_BGIMG : ttBgImg,
	t_bc      = (typeof tt.T_BORDERCOLOR != tt_u)? tt.T_BORDERCOLOR : ttBorderColor,
	t_bw      = (typeof tt.T_BORDERWIDTH != tt_u)? tt.T_BORDERWIDTH : ttBorderWidth,
	t_ff      = (typeof tt.T_FONTFACE != tt_u)? tt.T_FONTFACE : ttFontFace,
	t_fc      = (typeof tt.T_FONTCOLOR != tt_u)? tt.T_FONTCOLOR : ttFontColor,
	t_fsz     = (typeof tt.T_FONTSIZE != tt_u)? tt.T_FONTSIZE : ttFontSize,
	t_fwght   = (typeof tt.T_FONTWEIGHT != tt_u)? tt.T_FONTWEIGHT : ttFontWeight,
	t_opa     = (typeof tt.T_OPACITY != tt_u)? tt.T_OPACITY : ttOpacity,
	t_padd    = (typeof tt.T_PADDING != tt_u)? tt.T_PADDING : ttPadding,
	t_shc     = (typeof tt.T_SHADOWCOLOR != tt_u)? tt.T_SHADOWCOLOR : (ttShadowColor || 0),
	t_shw     = (typeof tt.T_SHADOWWIDTH != tt_u)? tt.T_SHADOWWIDTH : (ttShadowWidth || 0),
	t_algn    = (typeof tt.T_TEXTALIGN != tt_u)? tt.T_TEXTALIGN : ttTextAlign,
	t_tit     = (typeof tt.T_TITLE != tt_u)? tt.T_TITLE : "",
	t_titc    = (typeof tt.T_TITLECOLOR != tt_u)? tt.T_TITLECOLOR : ttTitleColor,
	t_w       = (typeof tt.T_WIDTH != tt_u)? tt.T_WIDTH  : ttWidth;
	if(t_shc || t_shw)
	{
		t_shc = t_shc || "#c0c0c0";
		t_shw = t_shw || 5;
	}
	if(tt_n4 && (t_fsz == "10px" || t_fsz == "11px")) t_fsz = "12px";

	var t_optx = (tt_n4? '' : tt_n6? ('-moz-opacity:'+(t_opa/100.0)) : tt_ie? ('filter:Alpha(opacity='+t_opa+')') : ('opacity:'+(t_opa/100.0))) + ';';
	var t_y = '<div id="'+t_id+'" style="position:absolute;z-index:1010;';
	t_y += 'left:0px;top:0px;width:'+(t_w+t_shw)+'px;visibility:'+(tt_n4? 'hide' : 'hidden')+';'+t_optx+'">' +
		'<table border="0" cellpadding="0" cellspacing="0"'+(t_bc? (' bgcolor="'+t_bc+'" style="background:'+t_bc+';"') : '')+' width="'+t_w+'">';
	if(t_tit)
	{
		t_y += '<tr><td style="padding-left:3px;padding-right:3px;" align="'+t_algn+'"><font color="'+t_titc+'" face="'+t_ff+'" ' +
			'style="color:'+t_titc+';font-family:'+t_ff+';font-size:'+t_fsz+';"><b>' +
			(tt_n4? '&nbsp;' : '')+t_tit+'</b></font></td></tr>';
	}
	t_y += '<tr><td><table border="0" cellpadding="'+t_padd+'" cellspacing="'+t_bw+'" width="100%">' +
		'<tr><td'+(t_bgc? (' bgcolor="'+t_bgc+'"') : '')+(t_bgimg? ' background="'+t_bgimg+'"' : '')+' style="text-align:'+t_algn+';';
	if(tt_n6) t_y += 'padding:'+t_padd+'px;';
	t_y += '" align="'+t_algn+'"><font color="'+t_fc+'" face="'+t_ff+'"' +
		' style="color:'+t_fc+';font-family:'+t_ff+';font-size:'+t_fsz+';font-weight:'+t_fwght+';">';
	if(t_fwght == 'bold') t_y += '<b>';
	t_y += txt;
	if(t_fwght == 'bold') t_y += '</b>';
	t_y += '</font></td></tr></table></td></tr></table>';
	if(t_shw)
	{
		var t_spct = Math.round(t_shw*1.3);
		if(tt_n4)
		{
			t_y += '<layer bgcolor="'+t_shc+'" left="'+t_w+'" top="'+t_spct+'" width="'+t_shw+'" height="0"></layer>' +
				'<layer bgcolor="'+t_shc+'" left="'+t_spct+'" align="bottom" width="'+(t_w-t_spct)+'" height="'+t_shw+'"></layer>';
		}
		else
		{
			t_optx = tt_n6? '-moz-opacity:0.85;' : tt_ie? 'filter:Alpha(opacity=85);' : 'opacity:0.85;';
			t_y += '<div id="'+t_id+'R" style="position:absolute;background:'+t_shc+';left:'+t_w+'px;top:'+t_spct+'px;width:'+t_shw+'px;height:1px;overflow:hidden;'+t_optx+'"></div>' +
				'<div style="position:relative;background:'+t_shc+';left:'+t_spct+'px;top:0px;width:'+(t_w-t_spct)+'px;height:'+t_shw+'px;overflow:hidden;'+t_optx+'"></div>';
		}
	}
	return(t_y+'</div>');
}
function tt_EvX(t_e)
{
	var t_y = tt_Int(t_e.pageX || t_e.clientX || 0) +
		tt_Int(tt_ie? tt_db.scrollLeft : 0) +
		tt_offX;
	if(t_y > xlim) t_y = xlim;
	var t_scr = tt_Int(window.pageXOffset || (tt_db? tt_db.scrollLeft : 0) || 0);
	if(t_y < t_scr) t_y = t_scr;
	return t_y;
}
function tt_EvY(t_e)
{
	var t_y2;

	var t_y = tt_Int(t_e.pageY || t_e.clientY || 0) +
		tt_Int(tt_ie? tt_db.scrollTop : 0);
	if(tt_sup && (t_y2 = t_y - (tt_objH + tt_offY - 15)) >= tt_Int(window.pageYOffset || (tt_db? tt_db.scrollTop : 0) || 0))
		t_y -= (tt_objH + tt_offY - 15);
	else if(t_y > ylim || !tt_sub && t_y > ylim-24)
	{
		t_y -= (tt_objH + 5);
		tt_sub = false;
	}
	else
	{
		t_y += tt_offY;
		tt_sub = true;
	}
	return t_y;
}
function tt_ReleasMov()
{
	if(document.onmousemove == tt_Move)
	{
		if(!tt_mf && tt_ce) document.releaseEvents(Event.MOUSEMOVE);
		document.onmousemove = tt_mf;
	}
}
function tt_ShowIfrm(t_x)
{
	if(!tt_obj || !tt_ifrm) return;
	if(t_x)
	{
		tt_ifrm.style.width = tt_objW+'px';
		tt_ifrm.style.height = tt_objH+'px';
		tt_ifrm.style.display = "block";
	}
	else tt_ifrm.style.display = "none";
}
function tt_GetDiv(t_id)
{
	return(
		tt_n4? (document.layers[t_id] || null)
		: tt_ie? (document.all[t_id] || null)
		: (document.getElementById(t_id) || null)
	);
}
function tt_GetDivW()
{
	return tt_Int(
		tt_n4? tt_obj.clip.width
		: (tt_obj.offsetWidth || tt_obj.style.pixelWidth)
	);
}
function tt_GetDivH()
{
	return tt_Int(
		tt_n4? tt_obj.clip.height
		: (tt_obj.offsetHeight || tt_obj.style.pixelHeight)
	);
}

// Compat with DragDrop Lib: Ensure that z-index of tooltip is lifted beyond toplevel dragdrop element
function tt_SetDivZ()
{
	var t_i = tt_obj.style || tt_obj;
	if(t_i)
	{
		if(window.dd && dd.z)
			t_i.zIndex = Math.max(dd.z+1, t_i.zIndex);
		if(tt_ifrm) tt_ifrm.style.zIndex = t_i.zIndex-1;
	}
}
function tt_SetDivPos(t_x, t_y)
{
	var t_i = tt_obj.style || tt_obj;
	var t_px = (tt_op6 || tt_n4)? '' : 'px';
	t_i.left = (tt_objX = t_x) + t_px;
	t_i.top = (tt_objY = t_y) + t_px;
	//  window... to circumvent the FireFox Alzheimer Bug
	if(window.tt_ifrm)
	{
		tt_ifrm.style.left = t_i.left;
		tt_ifrm.style.top = t_i.top;
	}
}
function tt_ShowDiv(t_x)
{
	tt_ShowIfrm(t_x);
	if(tt_n4) tt_obj.visibility = t_x? 'show' : 'hide';
	else tt_obj.style.visibility = t_x? 'visible' : 'hidden';
	tt_act = t_x;
}
function tt_DeAlt(t_tag)
{
	if(t_tag)
	{
		if(t_tag.alt) t_tag.alt = "";
		if(t_tag.title) t_tag.title = "";
		var t_c = t_tag.children || t_tag.childNodes || null;
		if(t_c)
		{
			for(var t_i = t_c.length; t_i; )
				tt_DeAlt(t_c[--t_i]);
		}
	}
}
function tt_OpDeHref(t_e)
{
	var t_tag;
	if(t_e)
	{
		t_tag = t_e.target;
		while(t_tag)
		{
			if(t_tag.hasAttribute("href"))
			{
				tt_tag = t_tag
				tt_tag.t_href = tt_tag.getAttribute("href");
				tt_tag.removeAttribute("href");
				tt_tag.style.cursor = "hand";
				tt_tag.onmousedown = tt_OpReHref;
				tt_tag.stats = window.status;
				window.status = tt_tag.t_href;
				break;
			}
			t_tag = t_tag.parentElement;
		}
	}
}
function tt_OpReHref()
{
	if(tt_tag)
	{
		tt_tag.setAttribute("href", tt_tag.t_href);
		window.status = tt_tag.stats;
		tt_tag = null;
	}
}
function tt_Show(t_e, t_id, t_sup, t_clk, t_delay, t_fix, t_left, t_offx, t_offy, t_static, t_sticky, t_temp)
{
	if(tt_obj) tt_Hide();
	tt_mf = document.onmousemove || null;
	if(window.dd && (window.DRAG && tt_mf == DRAG || window.RESIZE && tt_mf == RESIZE)) return;
	var t_sh, t_h;

	tt_obj = tt_GetDiv(t_id);
	if(tt_obj)
	{
		t_e = t_e || window.event;
		tt_sub = !(tt_sup = t_sup);
		tt_sticky = t_sticky;
		tt_objW = tt_GetDivW();
		tt_objH = tt_GetDivH();
		tt_offX = t_left? -(tt_objW+t_offx) : t_offx;
		tt_offY = t_offy;
		if(tt_op7) tt_OpDeHref(t_e);
		if(tt_n4)
		{
			if(tt_obj.document.layers.length)
			{
				t_sh = tt_obj.document.layers[0];
				t_sh.clip.height = tt_objH - Math.round(t_sh.clip.width*1.3);
			}
		}
		else
		{
			t_sh = tt_GetDiv(t_id+'R');
			if(t_sh)
			{
				t_h = tt_objH - tt_Int(t_sh.style.pixelTop || t_sh.style.top || 0);
				if(typeof t_sh.style.pixelHeight != tt_u) t_sh.style.pixelHeight = t_h;
				else t_sh.style.height = t_h+'px';
			}
		}

		xlim = tt_Int((tt_db && tt_db.clientWidth)? tt_db.clientWidth : window.innerWidth) +
			tt_Int(window.pageXOffset || (tt_db? tt_db.scrollLeft : 0) || 0) -
			tt_objW -
			(tt_n4? 21 : 0);
		ylim = tt_Int(window.innerHeight || tt_db.clientHeight) +
			tt_Int(window.pageYOffset || (tt_db? tt_db.scrollTop : 0) || 0) -
			tt_objH - tt_offY;

		tt_SetDivZ();
		if(t_fix) tt_SetDivPos(tt_Int((t_fix = t_fix.split(','))[0]), tt_Int(t_fix[1]));
		else tt_SetDivPos(tt_EvX(t_e), tt_EvY(t_e));

		var t_txt = 'tt_ShowDiv(\'true\');';
		if(t_sticky) t_txt += '{'+
				'tt_ReleasMov();'+
				(t_clk? ('window.tt_upFunc = document.onmouseup || null;'+
				'if(tt_ce) document.captureEvents(Event.MOUSEUP);'+
				'document.onmouseup = new Function("window.setTimeout(\'tt_Hide();\', 10);");') : '')+
			'}';
		else if(t_static) t_txt += 'tt_ReleasMov();';
		if(t_temp > 0) t_txt += 'window.tt_rtm = window.setTimeout(\'tt_sticky = false; tt_Hide();\','+t_temp+');';
		window.tt_rdl = window.setTimeout(t_txt, t_delay);

		if(!t_fix)
		{
			if(tt_ce) document.captureEvents(Event.MOUSEMOVE);
			document.onmousemove = tt_Move;
		}
	}
}
var tt_area = false;
function tt_Move(t_ev)
{
	if(!tt_obj) return;
	if(tt_n6 || tt_w3c)
	{
		if(tt_wait) return;
		tt_wait = true;
		setTimeout('tt_wait = false;', 5);
	}
	var t_e = t_ev || window.event;
	tt_SetDivPos(tt_EvX(t_e), tt_EvY(t_e));
	if(window.tt_op6)
	{
		if(tt_area && t_e.target.tagName != 'AREA') tt_Hide();
		else if(t_e.target.tagName == 'AREA') tt_area = true;
	}
}
function tt_Hide()
{
	if(window.tt_obj)
	{
		if(window.tt_rdl) window.clearTimeout(tt_rdl);
		if(!tt_sticky || !tt_act)
		{
			if(window.tt_rtm) window.clearTimeout(tt_rtm);
			tt_ShowDiv(false);
			tt_SetDivPos(-tt_objW, -tt_objH);
			tt_obj = null;
			if(typeof window.tt_upFunc != tt_u) document.onmouseup = window.tt_upFunc;
		}
		tt_sticky = false;
		if(tt_op6 && tt_area) tt_area = false;
		tt_ReleasMov();
		if(tt_op7) tt_OpReHref();
	}
}
function tt_Init()
{
	if(!(tt_op || tt_n4 || tt_n6 || tt_ie || tt_w3c)) return;

	var htm = tt_n4? '<div style="position:absolute;"></div>' : '',
	tags,
	t_tj,
	over,
	t_b,
	esc = 'return escape(';
	for(var i = tt_tags.length; i;)
	{--i;
		tags = tt_ie? (document.all.tags(tt_tags[i]) || 1)
			: document.getElementsByTagName? (document.getElementsByTagName(tt_tags[i]) || 1)
			: (!tt_n4 && tt_tags[i]=="a")? document.links
			: 1;
		if(tt_n4 && (tt_tags[i] == "a" || tt_tags[i] == "layer")) tags = tt_N4Tags(tt_tags[i]);
		for(var j = tags.length; j;)
		{--j;
			if(typeof (t_tj = tags[j]).onmouseover == "function" && t_tj.onmouseover.toString().indexOf(esc) != -1 && !tt_n6 || tt_n6 && (over = t_tj.getAttribute("onmouseover")) && over.indexOf(esc) != -1)
			{
				if(over) t_tj.onmouseover = new Function(over);
				var txt = unescape(t_tj.onmouseover());
				htm += tt_Htm(
					t_tj,
					"tOoLtIp"+i+""+j,
					txt.wzReplace("& ","&")
				);
				// window. to circumvent the FF Alzheimer Bug
				t_tj.onmouseover = new Function('e',
					'if(window.tt_Show && tt_Show) tt_Show(e,'+
					'"tOoLtIp' +i+''+j+ '",'+
					((typeof t_tj.T_ABOVE != tt_u)? t_tj.T_ABOVE : ttAbove)+','+
					((typeof t_tj.T_CLICKCLOSE != tt_u)? t_tj.T_CLICKCLOSE : ttClickClose)+','+
					((typeof t_tj.T_DELAY != tt_u)? t_tj.T_DELAY : ttDelay)+','+
					((typeof t_tj.T_FIX != tt_u)? '"'+t_tj.T_FIX+'"' : '""')+','+
					((typeof t_tj.T_LEFT != tt_u)? t_tj.T_LEFT : ttLeft)+','+
					((typeof t_tj.T_OFFSETX != tt_u)? t_tj.T_OFFSETX : ttOffsetX)+','+
					((typeof t_tj.T_OFFSETY != tt_u)? t_tj.T_OFFSETY : ttOffsetY)+','+
					((typeof t_tj.T_STATIC != tt_u)? t_tj.T_STATIC : ttStatic)+','+
					((typeof t_tj.T_STICKY != tt_u)? t_tj.T_STICKY : ttSticky)+','+
					((typeof t_tj.T_TEMP != tt_u)? t_tj.T_TEMP : ttTemp)+
					');'
				);
				t_tj.onmouseout = tt_Hide;
				tt_DeAlt(t_tj);
			}
		}
	}
	if(tt_ie6) htm += '<iframe id="TTiEiFrM" src="javascript:false" scrolling="no" frameborder="0" style="filter:Alpha(opacity=0);position:absolute;top:0px;left:0px;display:none;"></iframe>';
	t_b = document.getElementsByTagName? document.getElementsByTagName("body")[0] : tt_db;
	if(t_b && t_b.insertAdjacentHTML) t_b.insertAdjacentHTML("AfterBegin", htm);
	else if(t_b && typeof t_b.innerHTML != tt_u && document.createElement && t_b.appendChild)
	{
		var t_el = document.createElement("div");
		t_b.appendChild(t_el);
		t_el.innerHTML = htm;
	}
	else
		document.write(htm);
	if(document.getElementById) tt_ifrm = document.getElementById("TTiEiFrM");
}
tt_Init();
var queryIsRunning = false;


$(document).ready(function (){
    fctInitAjaxProgressBar();
    fctHighlight(".tyreTable tr, .series_engineTable tr, .highlightRows tr, .wheel_box");
    $('a[rel*=facebox]').facebox();



    /*
    $("[title]").mbTooltip({ // also $([domElement]).mbTooltip
        opacity : 1,       //opacity
        wait:100,           //before show
        cssClass:"default",  // default = default
        timePerWord:70,      //time to show in milliseconds per word
        hasArrow:true,                 // if you whant a little arrow on the corner
        hasShadow:false,
        imgPath:"images/",
        anchor:"parent", //or "parent" you can ancor the tooltip to the mouse  or to the element
        shadowColor:"black", //the color of the shadow
        mb_fade:50 //the time to fade-in
      });*/
});



function fctCheckValues ( aObjects, check_type, minlength )
{
    var failcount = 0;

    for ( i=0; i < aObjects.length; i++ )
    {
        maxlength = $(aObjects[i]).attr('maxlength');
        value = $(aObjects[i]).val();
        value = $.trim (value);

        if ( value == '' )
            failcount++;

        if ( minlength > value.length && check_type == 'minlength' )
            failcount++;

        if ( maxlength > value.length && check_type == 'exactlength' )
            failcount++;
    }

    if (failcount == 0)
        return true;
    else
        return false;
}


function fctInitAjaxProgressBar ()
{
    $(".progress_bar")
            .ajaxStart(function(){
                    queryIsRunning = true;
                    $(this).show();
            })
            .ajaxComplete(function(){
                    queryIsRunning = false;
                    $(this).hide();
            })
            .ajaxError(function(){
                    queryIsRunning = false;
                    alert ("Es gab einen Fehler");
                    $(this).hide();
            });
}

function fctHighlight( selector )
{
    $(selector).mouseover(function(){
            //alert ("hallo");
          $(this).addClass("highlight");
        }).mouseout(function(){
          $(this).removeClass("highlight");
        });
}



function fctToggle ( selector )
{
    $(selector).slideToggle();
}

function fctSetSelctedElement (selector, value)
{
    $(selector).val(value);

}

function fctClearText (startText, oCaller)
{
    if ( $(oCaller).val() == startText )
        $(oCaller).val('');
}
/*
 * jQuery Tools 1.2.4 - The missing UI library for the Web
 *
 * [tabs, tooltip, overlay, scrollable]
 *
 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 *
 * http://flowplayer.org/tools/
 *
 * File generated: Wed Aug 18 09:10:12 GMT 2010
 */
(function(c){function p(d,b,a){var e=this,l=d.add(this),h=d.find(a.tabs),i=b.jquery?b:d.children(b),j;h.length||(h=d.children());i.length||(i=d.parent().find(b));i.length||(i=c(b));c.extend(this,{click:function(f,g){var k=h.eq(f);if(typeof f=="string"&&f.replace("#","")){k=h.filter("[href*="+f.replace("#","")+"]");f=Math.max(h.index(k),0)}if(a.rotate){var n=h.length-1;if(f<0)return e.click(n,g);if(f>n)return e.click(0,g)}if(!k.length){if(j>=0)return e;f=a.initialIndex;k=h.eq(f)}if(f===j)return e;
g=g||c.Event();g.type="onBeforeClick";l.trigger(g,[f]);if(!g.isDefaultPrevented()){o[a.effect].call(e,f,function(){g.type="onClick";l.trigger(g,[f])});j=f;h.removeClass(a.current);k.addClass(a.current);return e}},getConf:function(){return a},getTabs:function(){return h},getPanes:function(){return i},getCurrentPane:function(){return i.eq(j)},getCurrentTab:function(){return h.eq(j)},getIndex:function(){return j},next:function(){return e.click(j+1)},prev:function(){return e.click(j-1)},destroy:function(){h.unbind(a.event).removeClass(a.current);
i.find("a[href^=#]").unbind("click.T");return e}});c.each("onBeforeClick,onClick".split(","),function(f,g){c.isFunction(a[g])&&c(e).bind(g,a[g]);e[g]=function(k){k&&c(e).bind(g,k);return e}});if(a.history&&c.fn.history){c.tools.history.init(h);a.event="history"}h.each(function(f){c(this).bind(a.event,function(g){e.click(f,g);return g.preventDefault()})});i.find("a[href^=#]").bind("click.T",function(f){e.click(c(this).attr("href"),f)});if(location.hash&&a.tabs==="a"&&d.find(a.tabs+location.hash).length)e.click(location.hash);
else if(a.initialIndex===0||a.initialIndex>0)e.click(a.initialIndex)}c.tools=c.tools||{version:"1.2.4"};c.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:false,history:false},addEffect:function(d,b){o[d]=b}};var o={"default":function(d,b){this.getPanes().hide().eq(d).show();b.call()},fade:function(d,b){var a=this.getConf(),e=a.fadeOutSpeed,l=this.getPanes();e?l.fadeOut(e):l.hide();l.eq(d).fadeIn(a.fadeInSpeed,b)},slide:function(d,
b){this.getPanes().slideUp(200);this.getPanes().eq(d).slideDown(400,b)},ajax:function(d,b){this.getPanes().eq(0).load(this.getTabs().eq(d).attr("href"),b)}},m;c.tools.tabs.addEffect("horizontal",function(d,b){m||(m=this.getPanes().eq(0).width());this.getCurrentPane().animate({width:0},function(){c(this).hide()});this.getPanes().eq(d).animate({width:m},function(){c(this).show();b.call()})});c.fn.tabs=function(d,b){var a=this.data("tabs");if(a){a.destroy();this.removeData("tabs")}if(c.isFunction(b))b=
{onBeforeClick:b};b=c.extend({},c.tools.tabs.conf,b);this.each(function(){a=new p(c(this),d,b);c(this).data("tabs",a)});return b.api?a:this}})(jQuery);
(function(f){function p(a,b,c){var h=c.relative?a.position().top:a.offset().top,e=c.relative?a.position().left:a.offset().left,i=c.position[0];h-=b.outerHeight()-c.offset[0];e+=a.outerWidth()+c.offset[1];var j=b.outerHeight()+a.outerHeight();if(i=="center")h+=j/2;if(i=="bottom")h+=j;i=c.position[1];a=b.outerWidth()+a.outerWidth();if(i=="center")e-=a/2;if(i=="left")e-=a;return{top:h,left:e}}function u(a,b){var c=this,h=a.add(c),e,i=0,j=0,m=a.attr("title"),q=a.attr("data-tooltip"),r=n[b.effect],l,s=
a.is(":input"),v=s&&a.is(":checkbox, :radio, select, :button, :submit"),t=a.attr("type"),k=b.events[t]||b.events[s?v?"widget":"input":"def"];if(!r)throw'Nonexistent effect "'+b.effect+'"';k=k.split(/,\s*/);if(k.length!=2)throw"Tooltip: bad events configuration for "+t;a.bind(k[0],function(d){clearTimeout(i);if(b.predelay)j=setTimeout(function(){c.show(d)},b.predelay);else c.show(d)}).bind(k[1],function(d){clearTimeout(j);if(b.delay)i=setTimeout(function(){c.hide(d)},b.delay);else c.hide(d)});if(m&&
b.cancelDefault){a.removeAttr("title");a.data("title",m)}f.extend(c,{show:function(d){if(!e){if(q)e=f(q);else if(m)e=f(b.layout).addClass(b.tipClass).appendTo(document.body).hide().append(m);else if(b.tip)e=f(b.tip).eq(0);else{e=a.next();e.length||(e=a.parent().next())}if(!e.length)throw"Cannot find tooltip for "+a;}if(c.isShown())return c;e.stop(true,true);var g=p(a,e,b);d=d||f.Event();d.type="onBeforeShow";h.trigger(d,[g]);if(d.isDefaultPrevented())return c;g=p(a,e,b);e.css({position:"absolute",
top:g.top,left:g.left});l=true;r[0].call(c,function(){d.type="onShow";l="full";h.trigger(d)});g=b.events.tooltip.split(/,\s*/);e.bind(g[0],function(){clearTimeout(i);clearTimeout(j)});g[1]&&!a.is("input:not(:checkbox, :radio), textarea")&&e.bind(g[1],function(o){o.relatedTarget!=a[0]&&a.trigger(k[1].split(" ")[0])});return c},hide:function(d){if(!e||!c.isShown())return c;d=d||f.Event();d.type="onBeforeHide";h.trigger(d);if(!d.isDefaultPrevented()){l=false;n[b.effect][1].call(c,function(){d.type="onHide";
h.trigger(d)});return c}},isShown:function(d){return d?l=="full":l},getConf:function(){return b},getTip:function(){return e},getTrigger:function(){return a}});f.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(d,g){f.isFunction(b[g])&&f(c).bind(g,b[g]);c[g]=function(o){f(c).bind(g,o);return c}})}f.tools=f.tools||{version:"1.2.4"};f.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,position:["top","center"],offset:[0,0],relative:false,cancelDefault:true,
events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(a,b,c){n[a]=[b,c]}};var n={toggle:[function(a){var b=this.getConf(),c=this.getTip();b=b.opacity;b<1&&c.css({opacity:b});c.show();a.call()},function(a){this.getTip().hide();a.call()}],fade:[function(a){var b=this.getConf();this.getTip().fadeTo(b.fadeInSpeed,b.opacity,a)},function(a){this.getTip().fadeOut(this.getConf().fadeOutSpeed,
a)}]};f.fn.tooltip=function(a){var b=this.data("tooltip");if(b)return b;a=f.extend(true,{},f.tools.tooltip.conf,a);if(typeof a.position=="string")a.position=a.position.split(/,?\s/);this.each(function(){b=new u(f(this),a);f(this).data("tooltip",b)});return a.api?b:this}})(jQuery);
(function(a){function t(d,b){var c=this,i=d.add(c),o=a(window),k,f,m,g=a.tools.expose&&(b.mask||b.expose),n=Math.random().toString().slice(10);if(g){if(typeof g=="string")g={color:g};g.closeOnClick=g.closeOnEsc=false}var p=b.target||d.attr("rel");f=p?a(p):d;if(!f.length)throw"Could not find Overlay: "+p;d&&d.index(f)==-1&&d.click(function(e){c.load(e);return e.preventDefault()});a.extend(c,{load:function(e){if(c.isOpened())return c;var h=q[b.effect];if(!h)throw'Overlay: cannot find effect : "'+b.effect+
'"';b.oneInstance&&a.each(s,function(){this.close(e)});e=e||a.Event();e.type="onBeforeLoad";i.trigger(e);if(e.isDefaultPrevented())return c;m=true;g&&a(f).expose(g);var j=b.top,r=b.left,u=f.outerWidth({margin:true}),v=f.outerHeight({margin:true});if(typeof j=="string")j=j=="center"?Math.max((o.height()-v)/2,0):parseInt(j,10)/100*o.height();if(r=="center")r=Math.max((o.width()-u)/2,0);h[0].call(c,{top:j,left:r},function(){if(m){e.type="onLoad";i.trigger(e)}});g&&b.closeOnClick&&a.mask.getMask().one("click",
c.close);b.closeOnClick&&a(document).bind("click."+n,function(l){a(l.target).parents(f).length||c.close(l)});b.closeOnEsc&&a(document).bind("keydown."+n,function(l){l.keyCode==27&&c.close(l)});return c},close:function(e){if(!c.isOpened())return c;e=e||a.Event();e.type="onBeforeClose";i.trigger(e);if(!e.isDefaultPrevented()){m=false;q[b.effect][1].call(c,function(){e.type="onClose";i.trigger(e)});a(document).unbind("click."+n).unbind("keydown."+n);g&&a.mask.close();return c}},getOverlay:function(){return f},
getTrigger:function(){return d},getClosers:function(){return k},isOpened:function(){return m},getConf:function(){return b}});a.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(e,h){a.isFunction(b[h])&&a(c).bind(h,b[h]);c[h]=function(j){a(c).bind(h,j);return c}});k=f.find(b.close||".close");if(!k.length&&!b.close){k=a('<a class="close"></a>');f.prepend(k)}k.click(function(e){c.close(e)});b.load&&c.load()}a.tools=a.tools||{version:"1.2.4"};a.tools.overlay={addEffect:function(d,
b,c){q[d]=[b,c]},conf:{close:null,closeOnClick:true,closeOnEsc:true,closeSpeed:"fast",effect:"default",fixed:!a.browser.msie||a.browser.version>6,left:"center",load:false,mask:null,oneInstance:true,speed:"normal",target:null,top:"10%"}};var s=[],q={};a.tools.overlay.addEffect("default",function(d,b){var c=this.getConf(),i=a(window);if(!c.fixed){d.top+=i.scrollTop();d.left+=i.scrollLeft()}d.position=c.fixed?"fixed":"absolute";this.getOverlay().css(d).fadeIn(c.speed,b)},function(d){this.getOverlay().fadeOut(this.getConf().closeSpeed,
d)});a.fn.overlay=function(d){var b=this.data("overlay");if(b)return b;if(a.isFunction(d))d={onBeforeLoad:d};d=a.extend(true,{},a.tools.overlay.conf,d);this.each(function(){b=new t(a(this),d);s.push(b);a(this).data("overlay",b)});return d.api?b:this}})(jQuery);
(function(e){function n(f,c){var a=e(c);return a.length<2?a:f.parent().find(c)}function t(f,c){var a=this,l=f.add(a),g=f.children(),k=0,m=c.vertical;j||(j=a);if(g.length>1)g=e(c.items,f);e.extend(a,{getConf:function(){return c},getIndex:function(){return k},getSize:function(){return a.getItems().size()},getNaviButtons:function(){return o.add(p)},getRoot:function(){return f},getItemWrap:function(){return g},getItems:function(){return g.children(c.item).not("."+c.clonedClass)},move:function(b,d){return a.seekTo(k+
b,d)},next:function(b){return a.move(1,b)},prev:function(b){return a.move(-1,b)},begin:function(b){return a.seekTo(0,b)},end:function(b){return a.seekTo(a.getSize()-1,b)},focus:function(){return j=a},addItem:function(b){b=e(b);if(c.circular){g.children("."+c.clonedClass+":last").before(b);g.children("."+c.clonedClass+":first").replaceWith(b.clone().addClass(c.clonedClass))}else g.append(b);l.trigger("onAddItem",[b]);return a},seekTo:function(b,d,h){b.jquery||(b*=1);if(c.circular&&b===0&&k==-1&&d!==
0)return a;if(!c.circular&&b<0||b>a.getSize()||b<-1)return a;var i=b;if(b.jquery)b=a.getItems().index(b);else i=a.getItems().eq(b);var q=e.Event("onBeforeSeek");if(!h){l.trigger(q,[b,d]);if(q.isDefaultPrevented()||!i.length)return a}i=m?{top:-i.position().top}:{left:-i.position().left};k=b;j=a;if(d===undefined)d=c.speed;g.animate(i,d,c.easing,h||function(){l.trigger("onSeek",[b])});return a}});e.each(["onBeforeSeek","onSeek","onAddItem"],function(b,d){e.isFunction(c[d])&&e(a).bind(d,c[d]);a[d]=function(h){e(a).bind(d,
h);return a}});if(c.circular){var r=a.getItems().slice(-1).clone().prependTo(g),s=a.getItems().eq(1).clone().appendTo(g);r.add(s).addClass(c.clonedClass);a.onBeforeSeek(function(b,d,h){if(!b.isDefaultPrevented())if(d==-1){a.seekTo(r,h,function(){a.end(0)});return b.preventDefault()}else d==a.getSize()&&a.seekTo(s,h,function(){a.begin(0)})});a.seekTo(0,0,function(){})}var o=n(f,c.prev).click(function(){a.prev()}),p=n(f,c.next).click(function(){a.next()});!c.circular&&a.getSize()>1&&a.onBeforeSeek(function(b,
d){setTimeout(function(){if(!b.isDefaultPrevented()){o.toggleClass(c.disabledClass,d<=0);p.toggleClass(c.disabledClass,d>=a.getSize()-1)}},1)});c.mousewheel&&e.fn.mousewheel&&f.mousewheel(function(b,d){if(c.mousewheel){a.move(d<0?1:-1,c.wheelSpeed||50);return false}});c.keyboard&&e(document).bind("keydown.scrollable",function(b){if(!(!c.keyboard||b.altKey||b.ctrlKey||e(b.target).is(":input")))if(!(c.keyboard!="static"&&j!=a)){var d=b.keyCode;if(m&&(d==38||d==40)){a.move(d==38?-1:1);return b.preventDefault()}if(!m&&
(d==37||d==39)){a.move(d==37?-1:1);return b.preventDefault()}}});c.initialIndex&&a.seekTo(c.initialIndex,0,function(){})}e.tools=e.tools||{version:"1.2.4"};e.tools.scrollable={conf:{activeClass:"active",circular:false,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:null,items:".items",keyboard:true,mousewheel:false,next:".next",prev:".prev",speed:400,vertical:false,wheelSpeed:0}};var j;e.fn.scrollable=function(f){var c=this.data("scrollable");if(c)return c;f=e.extend({},
e.tools.scrollable.conf,f);this.each(function(){c=new t(e(this),f);e(this).data("scrollable",c)});return f.api?c:this}})(jQuery);

