Phase transitions in networks of chaotic elements with short and long range interactions