 jQuery(document).ready(function($) {
     $('.rotate').cycle({ 
    fx:     'fade', 
    timeout: 5000
//    before:  onBefore, 
//    after:   onAfter 
 });
	 
	 var ddmx = new DropDownMenuX('menu');
	 ddmx.type = "horizontal";
	 ddmx.delay.show = 0;
	 ddmx.delay.hide = 400;
	 ddmx.position.levelX.left = 2;
	 ddmx.fixIeSelectBoxBug = true;
	 ddmx.zIndex.visible = 500;
	 ddmx.zIndex.hidden = -1;
	 ddmx.init();
	 $('img[@src$=.png]').ifixpng();
//	 $('#conteudos').ifixpng();
	 $('#rodape').ifixpng();
 });
 
 function PopUp_Barra(url,width,height,halign,valign,parent,scrollbars,resizable)
{
	var top = 0;
	var left = 0;
	box = new Getbox(parent);
	switch(halign) {
		case "":
		case "left":
		left = 0;
		break;
		case "right":
		left = box.width - width;
		break;
		case "center":
		left = (box.width - width) / 2;
		break;
		default:
		if (typeof(halign) == "string") {
			if (halign.search(/%/g) != "-1") {
				left = (box.width - width) * parseInt(halign) / 100;
			}
			else {
				left = parseInt(halign);
			}
		}
		else if (typeof(halign) == "number") {
			left = halign;
		}
	}
	switch(valign){
		case "":
		case "top":
		top = 0;
		break;
		case "bottom":
		top = box.height - height;
		break;
		case "center":
		top = (box.height - height) / 2;
		break;
		default:
		if (typeof(valign) == "string") {
			if (valign.search(/%/g) != "-1") {
				top = (box.height - height) * parseInt(valign) / 100;
			}
			else {
				top = parseInt(valign);
			}
		}
		else if (typeof(valign) == "number"){
			top = valign;
		}
	}
	top += box.top;
	left += box.left;
	
	var menubar = 0;
	var locationbar = 0;
	var directories = 0;
	var statusbar = 0;
	var toolbar = 0;
	
	windowprops = "width=" + width + ",height=" + height + ",top=" + top + ",left=" + left;

	windowprops += (menubar ? ",menubars" : "") +
	(scrollbars ? ",scrollbars" : "") +
	(locationbar ? ",location" : "") +
	(directories ? ",directories" : "") +
	(resizable ? ",resizable" : "") +
	(statusbar ? ",status" : "") +
	(toolbar ? ",toolbar" : "");
	
	window.open(url,"",windowprops);
	return;
}
