// JavaScript Document

var BDPics = new function()
{
	//internal...
	var		g_bigPicObj=0;
	
	//external functional interface...
	return {
	//start collection of export name/value pairs - each name is the function name, and the value is the function - commas allow multiple pairs - ahh, JavaScript...
	//ShowBigPic : function(event, bigPicName, bigPicObj)
	ShowBigPic : function(event, imgName)
	{
//alert("!"+window.nodeType);

		window.parent.BDPics.GetBigPicObj().src = imgName;
		//window.parent.BDPics.GetBigPicObj().src="mm_travel_photo.jpg";
	}, 
	
	Init : function(event, bigPicObj)
	{
		//record the object that the inner frame will use - note that the inner frame doesn't need to call init, since its local g_bigPicObj isn't used...
		g_bigPicObj = bigPicObj;
	}, 
	
	GetBigPicObj : function()
	{
//alert("qwe!");
		return g_bigPicObj;
	}
	
	};
};