// $Id: html5.js,v 1.1.2.1 2010/06/24 23:08:55 grendzy Exp $
// html5shiv MIT @rem remysharp.com/html5-enabling-script
// iepp v1.5.1 MIT @jon_neal iecss.com/print-protector
/*@cc_on@if(@_jscript_version<9)(function(p,e){function q(a,b){if(g[a])g[a].styleSheet.cssText+=b;else{var c=r[l],d=e[j]("style");d.media=a;c.insertBefore(d,c[l]);g[a]=d;q(a,b)}}function s(a,b){for(var c=new RegExp("\\b("+m+")\\b(?!.*[;}])","gi"),d=function(k){return".iepp_"+k},h=-1;++h<a.length;){b=a[h].media||b;s(a[h].imports,b);q(b,a[h].cssText.replace(c,d))}}function t(){for(var a,b=e.getElementsByTagName("*"),c,d,h=new RegExp("^"+m+"$","i"),k=-1;++k<b.length;)if((a=b[k])&&(d=a.nodeName.match(h))){c=new RegExp("^\\s*<"+d+"(.*)\\/"+
d+">\\s*$","i");i.innerHTML=a.outerHTML.replace(/\r|\n/g," ").replace(c,a.currentStyle.display=="block"?"<div$1/div>":"<span$1/span>");c=i.childNodes[0];c.className+=" iepp_"+d;c=f[f.length]=[a,c];a.parentNode.replaceChild(c[1],c[0])}s(e.styleSheets,"all")}function u(){for(var a=-1,b;++a<f.length;)f[a][1].parentNode.replaceChild(f[a][0],f[a][1]);for(b in g)r[l].removeChild(g[b]);g={};f=[]}for(var m="abbr article aside audio canvas command datalist details figure figcaption footer header hgroup mark meter nav output progress section summary time video".replace(/ /g,
"|"),n=m.split("|"),r=e.documentElement,i=e.createDocumentFragment(),g={},f=[],o=-1,l="firstChild",j="createElement";++o<n.length;){e[j](n[o]);i[j](n[o])}i=i.appendChild(e[j]("div"));p.attachEvent("onbeforeprint",t);p.attachEvent("onafterprint",u)})(this,document)@end@*/;
jQuery(document).ready(function ($) { 
	
	var opacity = 0.3, toOpacity = 1, duration = 500;

	$("#flash-description div").css('opacity',0);
	$("#block-block-6 .opacity").css('opacity',0);
	
	$('#flash-headline').animate({
		opacity: 1,
		left: '-30'
	}, 1000, function() {



		$('#flash-headline').animate({
			opacity: 1,
			left: '0'
		}, 200, function() {
			// Animation complete.
			$(function() {
				$("#block-block-6 #flash-box-1").css('display',"block");
				$('#flash-box-1').fadeTo(1000,1);
				$("#block-block-6 #flash-box-2").css('display',"block");
				$('#flash-box-2').delay(1000).fadeTo(1000,1);
				$("#block-block-6 #flash-box-3").css('display',"block");
				$('#flash-box-3').delay(2000).fadeTo(1000,1);
				$("#flash-description-0").delay(3000).fadeTo(1000,toOpacity);
			});
			//$('.opacity').fadeTo(1000,opacity);
		});


	});
	
	var durationshort = 100;

	$('#flash-box-1').hover(function() {
		$("#flash-box-2").fadeTo(durationshort,opacity);
		$("#flash-box-3").fadeTo(durationshort,opacity);
		$("#flash-description-0").fadeTo(0,0);
		$("#flash-description-1").fadeTo(durationshort,toOpacity);
		}, function() {
			$("#flash-box-2").fadeTo(durationshort,toOpacity);
			$("#flash-box-3").fadeTo(durationshort,toOpacity);
			$("#flash-description-0").fadeTo(durationshort,toOpacity);
			$("#flash-description-1").fadeTo(durationshort,0);
		}
	);

	$('#flash-box-2').hover(function() {
		$("#flash-box-1").fadeTo(durationshort,opacity);
		$("#flash-box-3").fadeTo(durationshort,opacity);
		$("#flash-description-0").fadeTo(0,0);
		$("#flash-description-2").fadeTo(durationshort,toOpacity);
		}, function() {
			$("#flash-box-1").fadeTo(durationshort,toOpacity);
			$("#flash-box-3").fadeTo(durationshort,toOpacity);
			$("#flash-description-0").fadeTo(durationshort,toOpacity);
			$("#flash-description-2").fadeTo(durationshort,0);
		}
	);

	$('#flash-box-3').hover(function() {
		$("#flash-box-1").fadeTo(durationshort,opacity);
		$("#flash-box-2").fadeTo(durationshort,opacity);
		$("#flash-description-0").fadeTo(0,0);
		$("#flash-description-3").fadeTo(durationshort,toOpacity);
		}, function() {
			$("#flash-box-1").fadeTo(durationshort,toOpacity);
			$("#flash-box-2").fadeTo(durationshort,toOpacity);
			$("#flash-description-0").fadeTo(durationshort,toOpacity);
			$("#flash-description-3").fadeTo(durationshort,0);
		}
	);

});
;
var MP = {
<!-- mp_trans_disable_start --> 
  Version: '1.0.22',
  Domains: {'es':'espanol.apptical.com',
            'pt':'portuguese.apptical.com'},	
  SrcLang: 'en',
<!-- mp_trans_disable_end -->
  UrlLang: 'mp_js_current_lang',
  SrcUrl: unescape('mp_js_orgin_url'),
<!-- mp_trans_disable_start --> 	
  init: function(){
    if (MP.UrlLang.indexOf('p_js_')==1) {
      MP.SrcUrl=window.top.document.location.href;
      MP.UrlLang=MP.SrcLang;
  }
},
getCookie: function(name){
  var start=document.cookie.indexOf(name+'=');
  if(start < 0) return null;
  start=start+name.length+1;
  var end=document.cookie.indexOf(';', start);
  if(end < 0) end=document.cookie.length;
  while (document.cookie.charAt(start)==' '){ start++; }
  return unescape(document.cookie.substring(start,end));
},
setCookie: function(name,value,path,domain){
  var cookie=name+'='+escape(value);
  if(path)cookie+='; path='+path;
  if(domain)cookie+='; domain='+domain;
  var now=new Date();
  now.setTime(now.getTime()+1000*60*60*24*365);
  cookie+='; expires='+now.toUTCString();
  document.cookie=cookie;
},
switchLanguage: function(lang){
  if(lang!=MP.SrcLang){
    var script=document.createElement('SCRIPT');
    script.src=location.protocol+'//'+MP.Domains[lang]+'/'+MP.SrcLang+lang+'/?1023749632;'+encodeURIComponent(MP.SrcUrl);
	document.body.appendChild(script);
  } else if(lang==MP.SrcLang && MP.UrlLang!=MP.SrcLang){
    var script=document.createElement('SCRIPT');
    script.src=location.protocol+'//'+MP.Domains[MP.UrlLang]+'/'+MP.SrcLang+MP.UrlLang+'/?1023749634;'+encodeURIComponent(location.href);
	document.body.appendChild(script);
  }
  return false;
},
switchToLang: function(url) {
  window.top.location.href=url; 
}
<!-- mp_trans_disable_end -->   
};
;

