/*function FecharDiv(){
	document.getElementById("bubble").style.display = "none";
}
function abrirDiv(){
	document.getElementById("bubble").style.display = "block";
}*/

// jquery BUBBLE fade animado

$(function(event) {
	$("div#bubble").css('display', 'block');
	$('div#bubble').animate(
		{	top: 115,
            duration: 'fast',
			easing: 'easeOutBack'
           });
});

$(document).ready(function() {
	$("div#trigger").click(function(event) {
		$("div#bubble").css('display', 'block');
		$('div#bubble').animate(
			{	top: 115,
            	duration: 'fast',
				easing: 'easeOutBack'
            });
	});
});

$(document).ready(function() {
	$("div#bubble").click(function(event) {
		$('div#bubble').animate(
			{	top: 105,
            	duration: 'fast',
				easing: 'easeOutBack'
            });
		setTimeout(function() {
        	$('div#bubble').css('display', 'none');
			}, 300); 
	});
});

/*$(document).ready(function() {
	$("div#trigger").toggle(
	function() {
		$("div#bubble").fadeIn(); // ou slideDown()
		},
	function() {
		$("div#bubble").fadeOut(); // ou slideUp()
		}
	);
});*/


// MENU

function OpenSel(op) {

	if (op == 1) {
		document.getElementById('menu').style.background="url(images/design.gif) left top no-repeat";
/*		document.getElementById('design').style.display="block";
		document.getElementById('flash').style.display="none";
		document.getElementById('ilustra').style.display="none";
		document.getElementById('icono').style.display="none";
		document.getElementById('desenv').style.display="none";*/
	}
	else if (op == 2) {
		document.getElementById('menu').style.background="url(images/flash.gif) left top no-repeat";
/*		document.getElementById('design').style.display="none";
		document.getElementById('flash').style.display="block";
		document.getElementById('ilustra').style.display="none";
		document.getElementById('icono').style.display="none";
		document.getElementById('desenv').style.display="none";*/
	}
	else if (op == 3) {
		document.getElementById('menu').style.background="url(images/ilustra.gif) left top no-repeat";
/*		document.getElementById('design').style.display="none";
		document.getElementById('flash').style.display="none";
		document.getElementById('ilustra').style.display="block";
		document.getElementById('icono').style.display="none";
		document.getElementById('desenv').style.display="none";*/
	}
	else if (op == 4) {
		document.getElementById('menu').style.background="url(images/icono.gif) left top no-repeat";
/*		document.getElementById('design').style.display="none";
		document.getElementById('flash').style.display="none";
		document.getElementById('ilustra').style.display="none";
		document.getElementById('icono').style.display="block";
		document.getElementById('desenv').style.display="none";*/
	}
	else if (op == 5) {
		document.getElementById('menu').style.background="url(images/desenv.gif) left top no-repeat";
/*		document.getElementById('design').style.display="none";
		document.getElementById('flash').style.display="none";
		document.getElementById('ilustra').style.display="none";
		document.getElementById('icono').style.display="none";
		document.getElementById('desenv').style.display="block";*/
	}
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

//..............................................//

function ahah(url, target, delay) {
  var req;
  document.getElementById(target).innerHTML = 'Carregando...';
  if (window.XMLHttpRequest) {
    req = new XMLHttpRequest();
  } else if (window.ActiveXObject) {
    req = new ActiveXObject("Microsoft.XMLHTTP");
  }
  if (req != undefined) {
    req.onreadystatechange = function() {ahahDone(req, url, target, delay);};
    req.open("GET", url, true);
    req.send("");
  }
}  

function ahahDone(req, url, target, delay) {
  if (req.readyState == 4) { // only if req is "loaded"
    if (req.status == 200) { // only if "OK"
      document.getElementById(target).innerHTML = req.responseText;
    } else {
      document.getElementById(target).innerHTML="ahah error:\n"+req.statusText;
    }
    if (delay != undefined) {
       setTimeout("ahah(url,target,delay)", delay); // resubmit after delay
	    //server should ALSO delay before responding
    }
  }
}

<!-- HIGHSLIDE -->
hs.graphicsDir = 'highslide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'rounded-white';
	hs.dimmingOpacity = 0.7;
	hs.allowSizeReduction = false;
	hs.captionId = 'the-caption';
	hs.showCredits = false;
	hs.wrapperClassName = 'draggable-header no-footer';
	//hs.fadeInOut = true;
	// always use this with flash, else the movie will be stopped on close:
	hs.preserveContent = false;
	hs.swfOptions = {
		version: '9.0.45.0',
		params:	{quality: 'high', menu: 'false', scale: 'noborder', expressinstall: 'Scripts/expressInstall.swf'}
	};
	// Add the controlbar
	if (hs.addSlideshow) hs.addSlideshow({
		slideshowGroup: 'santorini',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
		opacity: .7,
		position: 'bottom center',
		hideOnMouseOut: true
		}
	});
	if (hs.addSlideshow) hs.addSlideshow({
		slideshowGroup: 'marabraz',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
		opacity: .7,
		position: 'bottom center',
		hideOnMouseOut: true
		}
	});
	if (hs.addSlideshow) hs.addSlideshow({
		slideshowGroup: 'discoworms',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
		opacity: .7,
		position: 'bottom center',
		hideOnMouseOut: true
		}
	});
	if (hs.addSlideshow) hs.addSlideshow({
		slideshowGroup: 'alice',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
		opacity: .75,
		position: 'bottom center',
		hideOnMouseOut: true
		}
	});
	if (hs.addSlideshow) hs.addSlideshow({
		slideshowGroup: 'pyxs',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
		opacity: .7,
		position: 'bottom center',
		hideOnMouseOut: true
		}
	});
	
	