$(document).ready(function() {
	
		//FORMS
	$(function(){
$('select').jqTransSelect();		});	
		
		
		// VALORES INICIAS INPUT TEXT
	  $('input[type="text"], textarea').each(function(){
		$(this).focus(function(){
			initialValue = $(this).attr('value');
			if(this.value == $(this).attr('value')) {
				this.value = '';
			}
		});
		
		$(this).blur(function(){
			if(this.value == '') {
				this.value = initialValue;
			}
		});
	});
		
	//MAPA DE REPRESENTANTES
	$(function() {
		$.fn.maphilight.defaults = {
		  defaultPosition: "top",
		  fill: true,
		  fillColor: '000000',
		  fillOpacity: 0.2,
		  stroke: false,
		  strokeColor: '000000',
		  strokeOpacity: 1,
		  strokeWidth: 5,
		  fade: true,
		  alwaysOn: false,
		  neverOn: false,
		  delay:1,
		  groupBy: false
		}
		
		$(function() {
		  $('.map-image').maphilight();
		});
	
		$(function(){
		  $(".tiptip").tipTip({attribute: "alt", edgeOffset: 10});
		});
	
		var mousex = 0;
		var mousey = 0;
	
		$("html").mousemove(function(mouse){
		  mousex = mouse.pageX;
		  mousey = mouse.pageY;
		
		  $("#tiptip_holder").css("left",mouse.pageX);
		  $("#tiptip_holder").css("top",mouse.pageY);
		});
	});
		
});
