function loadfunction(){
	ajaxfunction("list1", "second", "home");
	ajaxfunction("list2", "second", "empty");
	ajaxfunction("third", "third", "home");
	gohome();
	//dojo.byId("secondtwo").style.display = "none";
	//dojo.query("#list1").style("width","169px");
}

function onmouseoverfunction(t){
	dojo.query("#list1").style("width","90px");

	t.style.color = "#d53621";

  	dojo.query(".menu").forEach(
    	function(element) {
    		if(element.id == t.id){
	        	element.style.color = "#d53621";
	        }else{
	        	element.style.color = "black";
	        }
   		}
	);

  if(t.id == "information"){

  	dojo.query("#bodyid").removeClass("backgroundwithoutimage");//style("background-image", "../img/hindergrund.jpg");
  	dojo.query("#bodyid").addClass("backgroundimage");

	dojo.byId("third").style.display = "block";
	dojo.byId("thirdpics").style.display = "none";
	dojo.byId("secondtwo").style.display = "none";

  	dojo.byId("third").style.width = "363px";
  	dojo.byId("third").style.height = "540px";
  	dojo.byId("third").style.background = "#a592ad";

  	dojo.byId("secondone").style.height = "auto";


	ajaxfunction("list1", "second", "menu");
	ajaxfunction("list2", "second", "empty");
	ajaxfunction("third", "third", "about");

  }

  if(t.id == "photographs"){
 	//dojo.byId("bodyid").style.background = "none";
 	dojo.query("#bodyid").removeClass("backgroundimage");//style("background-image", "../img/hindergrund.jpg");
  	dojo.query("#bodyid").addClass("backgroundwithoutimage");

	dojo.byId("secondtwo").style.display = "block";

	//dojo.byId("secondone").style.height = "109px"; //hier die höhe anpassen

	dojo.byId("third").style.display = "none";
	dojo.byId("thirdpics").style.display = "block";


    ajaxfunction("list1", "second", "weeksmenu");
    ajaxfunction("list2", "second", "week1");

    //ajaxfunction("list1", "third", "commingsoon");
    dojo.byId("pic_place").src = "img/pics/week1_001.jpg";
    ajaxfunction("secondtwo", "second","week1_001");

  }
}

function onmouseoversubmenufunction(t){
	dojo.query(".sub").forEach(
    	function(element) {
    		if(element.id == t.id){
	        	element.style.color = "#d53621";
	        }else{
	        	element.style.color = "black";
	        }
   		}
	);
   	ajaxfunction("third", "third", t.id);
}

function gohome(){
  dojo.query("#bodyid").removeClass("backgroundwithoutimage");//style("background-image", "../img/hindergrund.jpg");
  dojo.query("#bodyid").addClass("backgroundimage");


  dojo.byId("third").style.display = "block";
  dojo.byId("thirdpics").style.display = "none";
  dojo.byId("secondone").style.height = "auto";
  dojo.byId("secondtwo").style.display = "none";
  dojo.query("#list1").style("width","169px");

  dojo.byId("third").style.width = "540px";
  dojo.byId("third").style.height = "363px";
  dojo.byId("third").style.background = "#e4996b";

  dojo.query(".menu").forEach(
    	function(element) {
    		element.style.color = "black";
    	}
  );

  ajaxfunction("list1", "second", "home");
  ajaxfunction("list2", "second", "empty");
  ajaxfunction("third", "third", "home");
}
function showSangeeta(){
	dojo.query("#bodyid").removeClass("backgroundimage");//style("background-image", "../img/hindergrund.jpg");
  	dojo.query("#bodyid").addClass("backgroundwithoutimage");

	dojo.byId("secondtwo").style.display = "block";

	dojo.byId("third").style.display = "none";
	dojo.byId("thirdpics").style.display = "block";


    ajaxfunction("list1", "second", "weeksmenusangeeta");
    ajaxfunction("list2", "second", "week5sangeeta");
	dojo.query("#list1").style("width","90px");
    dojo.byId("pic_place").src = "img/pics/sangeeta017.jpg";
    ajaxfunction("secondtwo", "second","sangeeta017");
	dojo.byId("photographs").style.color = "#d53621";


}



function showweek(week){
	dojo.query(".week").forEach(
    	function(element) {

    		if(element.id == week.id){
	        	element.style.color = "#d53621";
	        }else{
	        	element.style.color = "black";
	        }
   		}
	);
	ajaxfunction("list2", "second", week.id);

	if(week.id == "week5"){
		dojo.byId("third").style.display = "block";
		dojo.byId("thirdpics").style.display = "none";

	  	dojo.byId("third").style.width = "363px";
	  	dojo.byId("third").style.height = "540px";
	  	dojo.byId("third").style.background = "#a592ad";

		showtext(null);
	} else{
		dojo.byId("third").style.display = "none";
  		dojo.byId("thirdpics").style.display = "block";
		dojo.byId("pic_place").src = "img/pics/"+week.id+"_001.jpg";
	}

	if(week.id == "week5"){
		ajaxfunction("secondtwo", "second", "empty");
	} else {

		ajaxfunction("secondtwo", "second", week.id+"_001");
	}
}

function showpic(p){
	dojo.byId("third").style.display = "none";
  	dojo.byId("thirdpics").style.display = "block";
	var pic_nr = p.id;

	p.style.color = "#d53621";

	dojo.query(".pic").forEach(
    	function(element) {
    		if(element.id == p.id){
	        	element.style.color = "#d53621";
	        }else{
	        	element.style.color = "black";
	        }
   		}
	);
	dojo.byId("third").style.display = "none";
	dojo.byId("pic_place").src = "img/pics/"+pic_nr+".jpg";
/*
	if(pic_nr.indexOf("sangeeta") == 0){
		ajaxfunction("secondtwo", "second", "empty");
	}else {
*/
		ajaxfunction("secondtwo", "second", pic_nr);
//	}

}

function showtext(t){
	if(t == null){
		var t = new Object();
		t.id = 'sangeeta000';
	}

	dojo.query(".pic").forEach(
    	function(element) {
    		if(element.id == t.id){
	        	element.style.color = "#d53621";
	        }else{
	        	element.style.color = "black";
	        }
   		}
	);

	dojo.byId("third").style.display = "block";
  	dojo.byId("thirdpics").style.display = "none";
	ajaxfunction("third", "third", "week5text");
}

function ajaxfunction(id, area, content) {
	dojo.xhrGet( {
     	// The following URL must match that used to test the server.
   		url: "http://www.vidarbha-project.com/content/"+area+"/"+content+".html",
      	//url: "http://localhost/websites/vidarbha/content/"+area+"/"+content+".html",
      	//url: "content/"+area+"/"+content+".html",
        handleAs: "text",
        timeout: 10000,
        load: function(response, ioArgs) {
        	dojo.byId(id).innerHTML = response;
          	return response;
        },
        error: function(response, ioArgs) {
          	console.error("HTTP status code: ", ioArgs.xhr.status);
          	return response;
         }
	});
}