// main.js



/*function toggle(eid) {

	

	$("#"+eid).toggle("normal");

	

}*/



/*

function center(eid) {

	

	var x = $(window).width()/2-$("#"+eid).width()/2;

	var y = $(window).height()/2-$("#"+eid).height()/2;

	

	$("#"+eid).css("top", y);

	$("#"+eid).css("left", x);

	

}

*/

function accordion(eid) {
	
	$("#"+eid).toggle("blind", {}, 500);
	
}

function gotourl(url) {

	

	window.location = url;

	

}



function gotourlinnewwindow(url) {

	

	window.open(url);

	

}



function submit_form(id) {

	

	$("#"+id).submit();

	

}



function rollover(eid) {

	

	$("#"+eid).css("");

	

}





$(document).ready(function() {

	

	$("input, textarea").focus(function() {

		

		$(this).attr("class", "highlighted");

		

	});

	

	$("input, textarea").blur(function() {

		

		$(this).removeAttr("class");

		

	});

	

	//centering, exemple: $("div").center()

	jQuery.fn.center = function(loaded) {

		

		var eid = this;

		

		if(!loaded) {

			

			var x = $(window).width()/2-this.width()/2;

			var y = $(window).height()/2-this.height()/2;

			

			eid.css("top", y);

			eid.css("left", x);

			

		}

		

	}

	

});



