

var milisec=0;
var seconds1=20000;//totale dei secondi trascorsi dalla data x
var seconds2=20000;
var seconds3=20000;
var increment1=2;//moltiplicatore per secondo
var increment2=4;//moltiplicatore per secondo
var increment3=6;


$(document).ready(function() {
		if($('#layout').is('div')){
			 $('#layout').css({"width":document.body.clientWidth});
			}
			
	
	
	if($('.testo').is('div')){
		imageAlign();
		}
/*if($('#imagehpint').is('div')){
		slide_hp.init();
		}*/
if($('#layout').is('div')){

  	setLayoutSt();
}
if($('#login').is('form')){

  	setAreaReserved();
}


if($('.text_right').is('div')){
		//setContatori();
}
if($('#themap').is('div')){
loadMap();
}
if($('.homes').is('div')){
		//initHomes();
		  //	setCornerHp();
}
});
function controlData(){
var f= document.getElementById("login");
if(f.username.value=='' || f.password.value==''){
alert("Inserire username e password!");
}else{
f.submit();
}
}

function setAreaReserved(){

$('#username').click(function() {
  if($('#username').val()==' Username'){
 
    $('#username').val("");
  }
});
$('#password').click(function() {
  if($('#password').val()==' Password'){
    $('#password').val("");
  }
});

}
function imageAlign(){
	var images=$('.testo').find('img');
	images.each(function(i){
 		var alignImg=$(this).attr('align');
 		if(alignImg=='left'){
 		
 		var im=$(this).attr("width");
 		if($(this).parent().is('td')){
 			
 			}else
       {$(this).css({"float":"left"});}
       }
 	/*	if(im!='' && im>0 && im<500){
 			$(this).parent().css({"clear":"both;"});
 	   	$(this).css({"float":"left"});
 	  	$(this).css({"display":"inline"});
 		  $(this).css({"width":im});
 		  var textDiv=$(this).parent().html();
      var text=textDiv.replace(/(<([^>]+)>)/ig,"");
      var s=textDiv.indexOf("<img");
      var e=textDiv.substring(s,textDiv.length).indexOf(">");
      var image=textDiv.substring(s,e);
      var newhtml=image+"<div  style=\"display:inline;float:left;width:"+(575-im)+"px;\">"+text+"</div>";
      $(this).parent().html(newhtml);

 			} */
		});
	
	
	}
function setLayoutSt(){
	var user_sh=$(window).height();
	var user_sw=$('body').innerWidth();
	var content = $('.content').height();
		var txt = $('.content_main_left').height()+100;
//alert(txt+100);
//alert("sec"+$('.content_second').height());
	var min=460;
	if(min<txt)
	min=txt;
	if (content<min)
	 content=min;
	$('.content_second').css({height:content+9});
	$('.content_main_left').css({height:content+21});
	$('.content_main_right').css({height:content+21});
	//
};


function setCornerHp(){
//$('#red-hp-cont').corner();
//$(this).corner("tr 8px");
//$('#red-hp-cont').corner("cc:#d32a2a tl 8px");
$('#red-hp-cont').corner();
$('#red-hp').corner();
$('#blue-hp-cont').corner();
$('#blue-hp').corner();
$('#green-hp-cont').corner();
$('#green-hp').corner();


};
function initHomes(){
 /*var elssupport=$('.homes').find('a');
 elssupport.each(function(i){
 var classImg=$(this).attr('class');
  $(this).mouseover(function(){
  	$('#'+classImg+'-hp-cont').show();
			  		 $('#'+classImg+'-hp-cont').mouseover(function(){
			  				$('#'+classImg+'-hp-cont').show();
			  		  });
						$('#'+classImg+'-hp-cont').mouseout(function(){
							$('#'+classImg+'-hp-cont').hide();
					  });

  });
   $(this).mouseout(function(){
  //	$('#'+classImg+'-hp-cont').hide();
  });
});*/
}
/*
function initHomes(){
 var elssupport=$('.homes').find('a');
 elssupport.each(function(i){
  $(this).mouseover(function(){
  	$('red-hp').show();
  });
 $(this).mouseout(function(){
 $('red-hp').hide();
 });
)};

}
*/

function listenEvs(){
		$('#imagehpint>div>p>a>img').css({opacity:1});
    	$('#imagehpint>div>p>a>img').hover(function(e){
		var el=e.target;
		if(e.target.tagName=='IMG'){
			var imgsrc=$(el).attr('src').substr(0,$(el).attr('src').lastIndexOf('_'));
			var imgexts=$(el).attr('src').substr($(el).attr('src').lastIndexOf('.'));
			//$(el).attr('src',imgsrc+'_on'+imgexts);
			$(el).css({opacity:0.9});
		}
	},
	function(e){
		var el=e.target;
		if(e.target.tagName=='IMG'){
			var imgsrc=$(el).attr('src').substr(0,$(el).attr('src').lastIndexOf('_'));
			var imgexts=$(el).attr('src').substr($(el).attr('src').lastIndexOf('.'));
			//$(el).attr('src',imgsrc+'_off'+imgexts);
			$(el).css({opacity:1});
		}
	});
}


var slide_hp = {
	init	: function(){
			  var els=$('#imagehpint>div>p');
			  slide_hp.cloned=els;
			  $(els[0]).before($(els).clone());
			  listenEvs();
			  $('#imagehpint>div').css({top:-(els.length*128)});
			  slide_hp.slideto=-(els.length*125);
			 // alert(slide_hp.slideto);
			  slide_hp.slide()
		},
	cloned : null,
	slideto : null,
	timer : null,
	slide : function(){
	slide_hp.slideto=slide_hp.slideto+125;
			if(slide_hp.slideto>0){
				//alert('reset')
				window.clearTimeout(slide_hp.timer);
				for(i=0;i<slide_hp.cloned.length;i++){
					//alert('remove '+i)
					$(slide_hp.cloned[i]).remove();
					}
					//alert('call init')
				slide_hp.init();
				return;
				}
			$('#imagehpint>div').animate({top:(slide_hp.slideto)});


			 // alert("++"+slide_hp.slideto);
			slide_hp.timer=window.setTimeout("slide_hp.slide()",2000);
		}
	}
function MM_showHideLayers() {
    var i, p, v, obj, args = MM_showHideLayers.arguments;
    for (i = 0; i < args.length - 2; i += 3) {
    	//alert(args[i]);
        with (document) {
            if (getElementById && (obj = getElementById(args[i])) != null) {
                v = args[i + 2];
                if (obj.style) {
                    obj = obj.style;
                    v = v == "show" ? "block" : v == "hide" ? "none" : v;
                }
                obj.display = v;
            }
        }
    }
    //alert(args[2]);
    //alert(args[1]);
     var plist=args[1].split("|");
     for (i = 0; i < plist.length ;i++) {
     	 with (document) {
     	     if (getElementById && (obj = getElementById(plist[i])) != null) {
                v = args[2];
                if (obj.style) {
                    obj = obj.style;
                    v = v == "show" ? "none" : v == "hide" ? "block" : v;
                }
                obj.display = v;
            }
          }
    }
}

/*
function setContatori(){

document.cont1.cont1.value=seconds1;
document.cont2.cont2.value=seconds2;
$('#cont3').html(seconds3);




displayc1();
displayc2();
displayc3();
}


function displayc2(){

	seconds2+=(1*increment2)
document.cont2.cont2.value=seconds2
setTimeout("displayc2()",100)
}


function displayc1(){

	seconds1+=(1*increment1)
document.cont1.cont1.value=seconds1
setTimeout("displayc1()",100)
}
function displayc3(){

	seconds3+=(1*increment3)
	var fin=""
  var tst=seconds3+'';
  var a=0;

	for(a=0;a<tst.length; a++){


  fin+='<span>'+tst.charAt(a)+'</span>';
  }
	$('#cont3').html(fin);

setTimeout("displayc3()",100)
}
*/
function setContatori(){
$('#second').html(seconds);
displaySecond();

$('#ton').html(seconds/ton);
displayTon();
$('#m3').html(seconds/mt);
displayM3();
}


function displaySecond(){
	seconds++;
	var fin=""
	var tst=seconds+'';
	var a=0;
	for(a=0;a<tst.length; a++){fin+='<span>'+tst.charAt(a)+'</span>';}
	$('#second').html(fin);
	setTimeout("displaySecond()",100)
}


function displayTon(){
	var tonnellata=seconds/ton
	var fin=""
	var tst=tonnellata+'';
	var a=0;
	var stop=1;
	tst+='.0';
	for(a=0;a<tst.length; a++){
	  fin+='<span>'+tst.charAt(a)+'</span>';
	  if(stop==0){
	  	break
	  	}
	  	if(tst.charAt(a)=='.'){
		stop=0;
		}
	 }
	$('#ton').html(fin);
	setTimeout("displayTon()",100)
}




function displayM3(){
	var metri=seconds/mt;
	var fin="";
	var tst=metri+'';
	var stop=1;
	var a=0;
	tst+='.0';
	for(a=0;a<tst.length; a++){
	  fin+='<span>'+tst.charAt(a)+'</span>';
	  	if  (stop==0){
	  	break
	  	}
	  	if(tst.charAt(a)=='.'){
		stop=0;
		}

	 }
	$('#m3').html(fin);
	setTimeout("displayM3()",100)
}

function loadMap(){

 if (GBrowserIsCompatible()) {
 var map = new GMap(document.getElementById("themap"));
 map.addControl(new GSmallMapControl());
 map.addControl(new GMapTypeControl());
//45075340,7664710,3406598691727911945
map.centerAndZoom(new GPoint(7.664710,45.075340), 1);
 var point = new GPoint(7.664710,45.075340);
/* map.centerAndZoom(new GPoint(7.66864,45.093065), 1);
 var point = new GPoint(7.66864,45.093065);*/
 var mark = new GMarker(point);

 var html = "<p id=\"gm-lachesi\">Lachesi S.r.l.</p>";
 html+="<p id=\"gm-address\">Via Gropello Giambattista (Conte Di Borgone), 9<br />Torino (Italy)<br /> Tel: +39 011.483.1111 <br /> Fax: +39 011.434.3691 <br /> E.mail: info@lachesi.com</p>";
 GEvent.addListener(mark, 'click', function() {
 mark.openInfoWindowHtml(html);

 });
 map.addOverlay(mark);
 }
 }
//////////////////************************LIBS&PLUGINS************************//////////////////

/*
 * jQuery corner plugin
 *
 * version 1.92 (12/18/2007)
 *
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */

/**
 * The corner() method provides a simple way of styling DOM elements.
 *
 * corner() takes a single string argument:  $().corner("effect corners width")
 *
 *   effect:  The name of the effect to apply, such as round or bevel.
 *            If you don't specify an effect, rounding is used.
 *
 *   corners: The corners can be one or more of top, bottom, tr, tl, br, or bl.
 *            By default, all four corners are adorned.
 *
 *   width:   The width specifies the width of the effect; in the case of rounded corners this
 *            will be the radius of the width.
 *            Specify this value using the px suffix such as 10px, and yes it must be pixels.
 *
 * For more details see: http://methvin.com/jquery/jq-corner.html
 * For a full demo see:  http://malsup.com/jquery/corner/
 *
 *
 * @example $('.adorn').corner();
 * @desc Create round, 10px corners
 *
 * @example $('.adorn').corner("25px");
 * @desc Create round, 25px corners
 *
 * @example $('.adorn').corner("notch bottom");
 * @desc Create notched, 10px corners on bottom only
 *
 * @example $('.adorn').corner("tr dog 25px");
 * @desc Create dogeared, 25px corner on the top-right corner only
 *
 * @example $('.adorn').corner("round 8px").parent().css('padding', '4px').corner("round 10px");
 * @desc Create a rounded border effect by styling both the element and its parent
 *
 * @name corner
 * @type jQuery
 * @param String options Options which control the corner style
 * @cat Plugins/Corner
 * @return jQuery
 * @author Dave Methvin (dave.methvin@gmail.com)
 * @author Mike Alsup (malsup@gmail.com)
 */
(function($) {

$.fn.corner = function(o) {
    var ie6 = $.browser.msie && /MSIE 6.0/.test(navigator.userAgent);
    function sz(el, p) { return parseInt($.css(el,p))||0; };
    function hex2(s) {
        var s = parseInt(s).toString(16);
        return ( s.length < 2 ) ? '0'+s : s;
    };
    function gpc(node) {
        for ( ; node && node.nodeName.toLowerCase() != 'html'; node = node.parentNode ) {
            var v = $.css(node,'backgroundColor');
            if ( v.indexOf('rgb') >= 0 ) {
                if ($.browser.safari && v == 'rgba(0, 0, 0, 0)')
                    continue;
                var rgb = v.match(/\d+/g);
                return '#'+ hex2(rgb[0]) + hex2(rgb[1]) + hex2(rgb[2]);
            }
            if ( v && v != 'transparent' )
                return v;
        }
        return '#ffffff';
    };
    function getW(i) {
        switch(fx) {
        case 'round':  return Math.round(width*(1-Math.cos(Math.asin(i/width))));
        case 'cool':   return Math.round(width*(1+Math.cos(Math.asin(i/width))));
        case 'sharp':  return Math.round(width*(1-Math.cos(Math.acos(i/width))));
        case 'bite':   return Math.round(width*(Math.cos(Math.asin((width-i-1)/width))));
        case 'slide':  return Math.round(width*(Math.atan2(i,width/i)));
        case 'jut':    return Math.round(width*(Math.atan2(width,(width-i-1))));
        case 'curl':   return Math.round(width*(Math.atan(i)));
        case 'tear':   return Math.round(width*(Math.cos(i)));
        case 'wicked': return Math.round(width*(Math.tan(i)));
        case 'long':   return Math.round(width*(Math.sqrt(i)));
        case 'sculpt': return Math.round(width*(Math.log((width-i-1),width)));
        case 'dog':    return (i&1) ? (i+1) : width;
        case 'dog2':   return (i&2) ? (i+1) : width;
        case 'dog3':   return (i&3) ? (i+1) : width;
        case 'fray':   return (i%2)*width;
        case 'notch':  return width;
        case 'bevel':  return i+1;
        }
    };
    o = (o||"").toLowerCase();
    var keep = /keep/.test(o);                       // keep borders?
    var cc = ((o.match(/cc:(#[0-9a-f]+)/)||[])[1]);  // corner color
    var sc = ((o.match(/sc:(#[0-9a-f]+)/)||[])[1]);  // strip color
    var width = parseInt((o.match(/(\d+)px/)||[])[1]) || 10; // corner width
    var re = /round|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dog/;
    var fx = ((o.match(re)||['round'])[0]);
    var edges = { T:0, B:1 };
    var opts = {
        TL:  /top|tl/.test(o),       TR:  /top|tr/.test(o),
        BL:  /bottom|bl/.test(o),    BR:  /bottom|br/.test(o)
    };
    if ( !opts.TL && !opts.TR && !opts.BL && !opts.BR )
        opts = { TL:1, TR:1, BL:1, BR:1 };
    var strip = document.createElement('div');
    strip.style.overflow = 'hidden';
    strip.style.height = '1px';
    strip.style.backgroundColor = sc || 'transparent';
    strip.style.borderStyle = 'solid';
    return this.each(function(index){
        var pad = {
            T: parseInt($.css(this,'paddingTop'))||0,     R: parseInt($.css(this,'paddingRight'))||0,
            B: parseInt($.css(this,'paddingBottom'))||0,  L: parseInt($.css(this,'paddingLeft'))||0
        };

        if ($.browser.msie) this.style.zoom = 1; // force 'hasLayout' in IE
        if (!keep) this.style.border = 'none';
        strip.style.borderColor = cc || gpc(this.parentNode);
        var cssHeight = $.curCSS(this, 'height');

        for (var j in edges) {
            var bot = edges[j];
            // only add stips if needed
            if ((bot && (opts.BL || opts.BR)) || (!bot && (opts.TL || opts.TR))) {
                strip.style.borderStyle = 'none '+(opts[j+'R']?'solid':'none')+' none '+(opts[j+'L']?'solid':'none');
                var d = document.createElement('div');
                $(d).addClass('jquery-corner');
                var ds = d.style;

                bot ? this.appendChild(d) : this.insertBefore(d, this.firstChild);

                if (bot && cssHeight != 'auto') {
                    if ($.css(this,'position') == 'static')
                        this.style.position = 'relative';
                    ds.position = 'absolute';
                    ds.bottom = ds.left = ds.padding = ds.margin = '0';
                    if ($.browser.msie)
                        ds.setExpression('width', 'this.parentNode.offsetWidth');
                    else
                        ds.width = '100%';
                }
                else if (!bot && $.browser.msie) {
                    if ($.css(this,'position') == 'static')
                        this.style.position = 'relative';
                    ds.position = 'absolute';
                    ds.top = ds.left = ds.right = ds.padding = ds.margin = '0';

                    // fix ie6 problem when blocked element has a border width
                    var bw = 0;
                    if (ie6 || !$.boxModel)
                        bw = sz(this,'borderLeftWidth') + sz(this,'borderRightWidth');
                    ie6 ? ds.setExpression('width', 'this.parentNode.offsetWidth - '+bw+'+ "px"') : ds.width = '100%';
                }
                else {
                    ds.margin = !bot ? '-'+pad.T+'px -'+pad.R+'px '+(pad.T-width)+'px -'+pad.L+'px' :
                                        (pad.B-width)+'px -'+pad.R+'px -'+pad.B+'px -'+pad.L+'px';
                }

                for (var i=0; i < width; i++) {
                    var w = Math.max(0,getW(i));
                    var e = strip.cloneNode(false);
                    e.style.borderWidth = '0 '+(opts[j+'R']?w:0)+'px 0 '+(opts[j+'L']?w:0)+'px';
                    bot ? d.appendChild(e) : d.insertBefore(e, d.firstChild);
                }
            }
        }
    });
};

$.fn.uncorner = function(o) { return $('.jquery-corner', this).remove(); };

})(jQuery);

/********************** UTILS ************************/
//dimension
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(9($){l e=$.1q.C,r=$.1q.r;$.1q.M({C:9(){3(!1[0])f();3(1[0]==p)3($.7.O||($.7.E&&U($.7.13)>11))6 n.19-(($(5).C()>n.19)?i():0);k 3($.7.E)6 n.19;k 6 $.I&&5.P.1E||5.o.1E;3(1[0]==5)6 1C.1y(($.I&&5.P.1w||5.o.1w),5.o.1u);6 e.1T(1,1P)},r:9(){3(!1[0])f();3(1[0]==p)3($.7.O||($.7.E&&U($.7.13)>11))6 n.1b-(($(5).r()>n.1b)?i():0);k 3($.7.E)6 n.1b;k 6 $.I&&5.P.1N||5.o.1N;3(1[0]==5)3($.7.1M){l a=n.1p;n.1a(27,n.1o);l b=n.1p;n.1a(a,n.1o);6 5.o.1c+b}k 6 1C.1y((($.I&&!$.7.E)&&5.P.1L||5.o.1L),5.o.1c);6 r.1T(1,1P)},19:9(){3(!1[0])f();6 1[0]==p||1[0]==5?1.C():1.14(\':N\')?1[0].1u-h(1,\'q\')-h(1,\'1I\'):1.C()+h(1,\'1h\')+h(1,\'1H\')},1b:9(){3(!1[0])f();6 1[0]==p||1[0]==5?1.r():1.14(\':N\')?1[0].1c-h(1,\'s\')-h(1,\'1F\'):1.r()+h(1,\'1v\')+h(1,\'1D\')},21:9(a){3(!1[0])f();a=$.M({A:w},a||{});6 1[0]==p||1[0]==5?1.C():1.14(\':N\')?1[0].1u+(a.A?(h(1,\'L\')+h(1,\'1x\')):0):1.C()+h(1,\'q\')+h(1,\'1I\')+h(1,\'1h\')+h(1,\'1H\')+(a.A?(h(1,\'L\')+h(1,\'1x\')):0)},1Y:9(a){3(!1[0])f();a=$.M({A:w},a||{});6 1[0]==p||1[0]==5?1.r():1.14(\':N\')?1[0].1c+(a.A?(h(1,\'K\')+h(1,\'1U\')):0):1.r()+h(1,\'s\')+h(1,\'1F\')+h(1,\'1v\')+h(1,\'1D\')+(a.A?(h(1,\'K\')+h(1,\'1U\')):0)},m:9(a){3(!1[0])f();3(a!=1S)6 1.1Q(9(){3(1==p||1==5)p.1a(a,$(p).u());k 1.m=a});3(1[0]==p||1[0]==5)6 n.1p||$.I&&5.P.m||5.o.m;6 1[0].m},u:9(a){3(!1[0])f();3(a!=1S)6 1.1Q(9(){3(1==p||1==5)p.1a($(p).m(),a);k 1.u=a});3(1[0]==p||1[0]==5)6 n.1o||$.I&&5.P.u||5.o.u;6 1[0].u},12:9(a){6 1.1O({A:w,J:w,v:1.z()},a)},1O:9(b,c){3(!1[0])f();l x=0,y=0,H=0,G=0,8=1[0],4=1[0],T,10,Z=$.D(8,\'12\'),F=$.7.1M,S=$.7.26,18=$.7.O,1n=$.7.E,R=$.7.E&&U($.7.13)>11,1m=w,1l=w,b=$.M({A:Q,15:w,1k:w,J:Q,1K:w,v:5.o},b||{});3(b.1K)6 1.1J(b,c);3(b.v.1j)b.v=b.v[0];3(8.B==\'Y\'){x=8.V;y=8.X;3(F){x+=h(8,\'K\')+(h(8,\'s\')*2);y+=h(8,\'L\')+(h(8,\'q\')*2)}k 3(18){x+=h(8,\'K\');y+=h(8,\'L\')}k 3((S&&1g.I)){x+=h(8,\'s\');y+=h(8,\'q\')}k 3(R){x+=h(8,\'K\')+h(8,\'s\');y+=h(8,\'L\')+h(8,\'q\')}}k{17{10=$.D(4,\'12\');x+=4.V;y+=4.X;3((F&&!4.B.1G(/^t[d|h]$/i))||S||R){x+=h(4,\'s\');y+=h(4,\'q\');3(F&&10==\'1i\')1m=Q;3(S&&10==\'25\')1l=Q}T=4.z||5.o;3(b.J||F){17{3(b.J){H+=4.m;G+=4.u}3(18&&($.D(4,\'24\')||\'\').1G(/23-22|20/)){H=H-((4.m==4.V)?4.m:0);G=G-((4.u==4.X)?4.u:0)}3(F&&4!=8&&$.D(4,\'1e\')!=\'N\'){x+=h(4,\'s\');y+=h(4,\'q\')}4=4.1B}W(4!=T)}4=T;3(4==b.v&&!(4.B==\'Y\'||4.B==\'1d\')){3(F&&4!=8&&$.D(4,\'1e\')!=\'N\'){x+=h(4,\'s\');y+=h(4,\'q\')}3(((1n&&!R)||18)&&10!=\'1r\'){x-=h(T,\'s\');y-=h(T,\'q\')}1A}3(4.B==\'Y\'||4.B==\'1d\'){3(((1n&&!R)||(S&&$.I))&&Z!=\'1i\'&&Z!=\'1z\'){x+=h(4,\'K\');y+=h(4,\'L\')}3(R||(F&&!1m&&Z!=\'1z\')||(S&&Z==\'1r\'&&!1l)){x+=h(4,\'s\');y+=h(4,\'q\')}1A}}W(4)}l a=j(8,b,x,y,H,G);3(c){$.M(c,a);6 1}k{6 a}},1J:9(b,c){3(!1[0])f();l x=0,y=0,H=0,G=0,4=1[0],z,b=$.M({A:Q,15:w,1k:w,J:Q,v:5.o},b||{});3(b.v.1j)b.v=b.v[0];17{x+=4.V;y+=4.X;z=4.z||5.o;3(b.J){17{H+=4.m;G+=4.u;4=4.1B}W(4!=z)}4=z}W(4&&4.B!=\'Y\'&&4.B!=\'1d\'&&4!=b.v);l a=j(1[0],b,x,y,H,G);3(c){$.M(c,a);6 1}k{6 a}},z:9(){3(!1[0])f();l a=1[0].z;W(a&&(a.B!=\'Y\'&&$.D(a,\'12\')==\'1r\'))a=a.z;6 $(a)}});l f=9(){1Z"1X: 1g 1W 14 1V";};l h=9(a,b){6 U($.D(a.1j?a[0]:a,b))||0};l j=9(a,b,x,y,d,c){3(!b.A){x-=h(a,\'K\');y-=h(a,\'L\')}3(b.15&&(($.7.E&&U($.7.13)<11)||$.7.O)){x+=h(a,\'s\');y+=h(a,\'q\')}k 3(!b.15&&!(($.7.E&&U($.7.13)<11)||$.7.O)){x-=h(a,\'s\');y-=h(a,\'q\')}3(b.1k){x+=h(a,\'1v\');y+=h(a,\'1h\')}3(b.J&&(!$.7.O||a.V!=a.m&&a.X!=a.m)){d-=a.m;c-=a.u}6 b.J?{1f:y-c,1t:x-d,u:c,m:d}:{1f:y,1t:x}};l g=0;l i=9(){3(!g){l a=$(\'<1s>\').D({r:16,C:16,1e:\'2d\',12:\'1i\',1f:-1R,1t:-1R}).2c(\'o\');g=16-a.2b(\'<1s>\').2a(\'1s\').D({r:\'16%\',C:29}).r();a.28()}6 g}})(1g);',62,138,'|this||if|parent|document|return|browser|elem|function|||||||||||else|var|scrollLeft|self|body|window|borderTopWidth|width|borderLeftWidth||scrollTop|relativeTo|false|||offsetParent|margin|tagName|height|css|safari|mo|st|sl|boxModel|scroll|marginLeft|marginTop|extend|visible|opera|documentElement|true|sf3|ie|op|parseInt|offsetLeft|while|offsetTop|BODY|elemPos|parPos|520|position|version|is|border|100|do|oa|innerHeight|scrollTo|innerWidth|offsetWidth|HTML|overflow|top|jQuery|paddingTop|absolute|jquery|padding|relparent|absparent|sf|pageYOffset|pageXOffset|fn|static|div|left|offsetHeight|paddingLeft|scrollHeight|marginBottom|max|fixed|break|parentNode|Math|paddingRight|clientHeight|borderRightWidth|match|paddingBottom|borderBottomWidth|offsetLite|lite|scrollWidth|mozilla|clientWidth|offset|arguments|each|1000|undefined|apply|marginRight|empty|collection|Dimensions|outerWidth|throw|inline|outerHeight|row|table|display|relative|msie|99999999|remove|200|find|append|appendTo|auto'.split('|'),0,{}));

/**
 * --------------------------------------------------------------------
 * jQuery-Plugin "pngFix"
 * Version: 1.1, 11.09.2007
 * by Andreas Eberhard, andreas.eberhard@gmail.com
 *                      http://jquery.andreaseberhard.de/
 *
 * Copyright (c) 2007 Andreas Eberhard
 * Licensed under GPL (http://www.opensource.org/licenses/gpl-license.php)
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(s($){3.1s.1k=s(j){j=3.1a({12:\'1m.1j\'},j);8 k=(n.P=="r 10 Z"&&U(n.v)==4&&n.v.E("14 5.5")!=-1);8 l=(n.P=="r 10 Z"&&U(n.v)==4&&n.v.E("14 6.0")!=-1);o(3.17.16&&(k||l)){3(2).L("1r[@m$=.M]").z(s(){3(2).7(\'q\',3(2).q());3(2).7(\'p\',3(2).p());8 a=\'\';8 b=\'\';8 c=(3(2).7(\'K\'))?\'K="\'+3(2).7(\'K\')+\'" \':\'\';8 d=(3(2).7(\'A\'))?\'A="\'+3(2).7(\'A\')+\'" \':\'\';8 e=(3(2).7(\'C\'))?\'C="\'+3(2).7(\'C\')+\'" \':\'\';8 f=(3(2).7(\'B\'))?\'B="\'+3(2).7(\'B\')+\'" \':\'\';8 g=(3(2).7(\'R\'))?\'1d:\'+3(2).7(\'R\')+\';\':\'\';8 h=(3(2).1c().7(\'1b\'))?\'19:18;\':\'\';o(2.9.y){a+=\'y:\'+2.9.y+\';\';2.9.y=\'\'}o(2.9.t){a+=\'t:\'+2.9.t+\';\';2.9.t=\'\'}o(2.9.w){a+=\'w:\'+2.9.w+\';\';2.9.w=\'\'}8 i=(2.9.15);b+=\'<x \'+c+d+e+f;b+=\'9="13:11;1q-1p:1o-1n;O:W-V;N:1l;\'+g+h;b+=\'q:\'+3(2).q()+\'u;\'+\'p:\'+3(2).p()+\'u;\';b+=\'J:I:H.r.G\'+\'(m=\\\'\'+3(2).7(\'m\')+\'\\\', D=\\\'F\\\');\';b+=i+\'"></x>\';o(a!=\'\'){b=\'<x 9="13:11;O:W-V;\'+a+h+\'q:\'+3(2).q()+\'u;\'+\'p:\'+3(2).p()+\'u;\'+\'">\'+b+\'</x>\'}3(2).1i();3(2).1h(b)});3(2).L("*").z(s(){8 a=3(2).T(\'N-S\');o(a.E(".M")!=-1){8 b=a.X(\'1g("\')[1].X(\'")\')[0];3(2).T(\'N-S\',\'1f\');3(2).Q(0).Y.J="I:H.r.G(m=\'"+b+"\',D=\'F\')"}});3(2).L("1e[@m$=.M]").z(s(){8 a=3(2).7(\'m\');3(2).Q(0).Y.J=\'I:H.r.G\'+\'(m=\\\'\'+a+\'\\\', D=\\\'F\\\');\';3(2).7(\'m\',j.12)})}1t 3}})(3);',62,92,'||this|jQuery||||attr|var|style|||||||||||||src|navigator|if|height|width|Microsoft|function|padding|px|appVersion|margin|span|border|each|class|alt|title|sizingMethod|indexOf|scale|AlphaImageLoader|DXImageTransform|progid|filter|id|find|png|background|display|appName|get|align|image|css|parseInt|block|inline|split|runtimeStyle|Explorer|Internet|relative|blankgif|position|MSIE|cssText|msie|browser|hand|cursor|extend|href|parent|float|input|none|url|after|hide|gif|pngFix|transparent|blank|line|pre|space|white|img|fn|return'.split('|'),0,{}))