//=================================================================================
function loadContent(src,dest,lang){
		//
		var temp = "";
		if(lang == 'e')temp = "../";
		
		if(src == "home" && lang == "d")$("#" + dest + "_title").html("www.appcode.de");
		if(src == "apps" && lang == "d")$("#" + dest + "_title").html("Applikationen");
		if(src == "contact" && lang == "d")$("#" + dest + "_title").html("Kontakt");
		if(src == "info" && lang == "d")$("#" + dest + "_title").html("Info");
		if(src == "haftungsausschluss" && lang == "d")$("#" + dest + "_title").html("Haftungsausschlu&szlig;");
		if(src == "impressum" && lang == "d")$("#" + dest + "_title").html("Impressum");
		if(src == "idatebook_phone" && lang == "d")$("#" + dest + "_title").html("iDateBook iPhone");
		if(src == "idatebook_server" && lang == "d")$("#" + dest + "_title").html("iDateBook Server");
		
		if(src == "home" && lang == "e")$("#" + dest + "_title").html("www.appcode.de");
		if(src == "apps" && lang == "e")$("#" + dest + "_title").html("Applications");
		if(src == "contact" && lang == "e")$("#" + dest + "_title").html("Contact Me");
		if(src == "info" && lang == "e")$("#" + dest + "_title").html("Information");
		if(src == "haftungsausschluss" && lang == "e")$("#" + dest + "_title").html("Haftungsausschlu&szlig;");
		if(src == "impressum" && lang == "e")$("#" + dest + "_title").html("Impressum");
		if(src == "idatebook_phone" && lang == "e")$("#" + dest + "_title").html("iDateBook iPhone");
		if(src == "idatebook_server" && lang == "e")$("#" + dest + "_title").html("iDateBook Server");
		
		getContent(temp + "includes/" + src + ".inc.php",'language='+lang,dest + "_content",showContent(dest),null);
		$('#main_frame').scrollTo("#" + dest,{duration:400});
}
//=================================================================================
function showContent(dest){
	//
	
}
//=================================================================================
function scrollBack(dest,sFunction){
	//
	$('#main_frame').scrollTo("#" + dest,{duration:300});
	if(sFunction != null){
		$(this).delay(500,function(){
		eval(sFunction);
		});
	}
}
//=================================================================================
function initScroll() {
	//
	$.easing.elasout = function(x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
	};
	
	jQuery.fn.delay = function(time,func){
	this.each(function(){
		setTimeout(func,time);
	});
	
	return this;
};
}
//=================================================================================
function Show_Message(text){
	$("#message_text").html(text);
  $("#i_message").fadeIn("slow");	
  $("#message").fadeIn("normal");
}
//=================================================================================
function Hide_Message(){
	$("#i_message").fadeOut("normal");	
  $("#message").fadeOut("slow");
	$("#message_text").html("");
}
//=================================================================================
