/*AGF+ JS*/

loadLngv = function(){
$("#lngv a").live('click',function(){
$("#menu").hide();
$("#colb").hide();
$("#text").hide();
var lngvMenu = $(this).attr("href").split("#")[1] + ".htm";
$("#menu").load(lngvMenu).fadeIn(500);
$("#page").load("swf/bg_01.htm");
$("#lngv a").css("color", "#AAA59B");
$("#lngv a:hover").css("color", "#FFF");
});
};

loadFile = function(){
$("#menu a").live('click',function(){
var galleryPath = $(this).attr("href").split("#")[1] + ".htm";
var textPath = $(this).attr("info") + ".htm";
$("#colb").hide();
$("#text").hide();
$("#colb").load(galleryPath).fadeIn(1000);
$("#text").load(textPath).fadeIn(500);
});
};

loadPict = function(){
$("#pict a").live('click',function(){
var largePath = $(this).attr("href").split("#")[1];
var largeAlt = $(this).attr("title");
var bigfPath = $(this).attr("f600");
//$("#text").hide();
$("#foto img").hide();
$("#foto img").attr({ src: largePath, alt: largeAlt }).fadeIn(500);
$("#foto a").attr({ href: bigfPath });
//$("#text").html(largeAlt).show("slow");
});
};

loadBigf = function(){
$("#foto a").live('click',function(){
var fotoPath = $(this).attr("href").split("#")[1];
$("#bigf").show();
$("#bigf img").hide();
$("#bigf img").attr({ src: fotoPath }).fadeIn(500);
});
};

hideBigf = function(){
$("#bigf a").live('click',function(){
$("#bigf img").fadeOut(250);
});
};


$(document).ready(function(){
loadLngv();
loadFile();
loadPict();
loadBigf();
hideBigf();
});
