var SITE = {}

SITE.init = function () {
  for (prop in this) {
	if (typeof this[prop].init == 'function') {
	  this[prop].init();
	}
  }
}

/*** galeria imagens ****/
SITE.loginInputs = {
  init: function () {
	$('#username').bind("click", function() {
		$('#username').val('');
	});
	$('#username').bind("blur", function() {
		if($('#username').val()=='')
		{
			$('#username').val('Username');
		}
	});
	
	$('#password').bind("click", function() {
		$('#password').val('');
	});
	$('#password').bind("blur", function() {
		if($('#password').val()=='')
		{
			$('#password').val('Password');
		}
	});
  }
}



/**** Menu ***/


/*** noticias ***/
SITE.galeriaImagens = {
  init: function () {
	$("div#noticiasSlide").slideView({ 
	  easeFunc: "easeInOutBack", 
	  easeTime: 1200 
	});  
  }
}


SITE.formSaveButtons = {
  init: function () {
	$('a.save').bind('click', function() {
	  	$(this).parent('form').submit();
	});
  }
}






$(document).ready(function () {
  SITE.init();
});

/**** cu3er **/
var flashvars = {};
flashvars.xml = "/swf/slideshow/config.xml";
flashvars.font = "font.swf";
var attributes = {};
attributes.wmode = "transparent";
attributes.id = "slider";
swfobject.embedSWF("/swf/slideshow/cu3er.swf", "cu3er-container", "539", "270", "9", "expressInstall.swf", flashvars, attributes);
