var fruitWnd = null;
function printFact(e, w, h)
{
	fruitWnd = window.open('../fruit.htm','','width='+(w+10)+',height='+(h+20)+',history=no,status=no,border=0,resizable=yes,left=50,top=200');	
}

function printContents(e)
{
	//get the content from divContent and print only that
	var wnd = window.open('../print.htm','','width=640,height=480,history=no,status=no,border=0,resizable=yes');
	wnd = null;
}

function printImg(e)
{
	//get the content from divContent and print only that
	var wnd = window.open('../print_Img.htm','','width=640,height=480,history=no,status=no,border=0,resizable=yes');
	wnd = null;
}

var img = null;

function preLoad(src)
{
	img = new Image();
	img.src = src;
}

function showIt(e, arr)
{
	if(e == null)
		return;
		
	if(e=='')
		return;			
			
	if(typeof(e) == typeof('sdfsdf'))
		e = document.getElementById(e);
		
	if(arr !=null)
	{
		var obj = null;
		for(i=0;i<arr.length;i++)
		{
			if(typeof(arr[i]) == typeof('sdfsdf'))
				obj = document.getElementById(arr[i]);
			else
				obj = arr[i];
				
			obj.style.display = 'none';
		}
	}
	
	
	
	if(typeof(e) == typeof('sdfsdf'))
		e = document.getElementById(e);
		
	e.style.display = e.style.display = '';
	
}

function showAll(arr)
{
	var obj = null;
	for(i=0;i<arr.length;i++)
	{
		if(typeof(arr[i]) == typeof('sdfsdf'))
			obj = document.getElementById(arr[i]);
		else
			obj = arr[i];
			
		obj.style.display = '';
	}
}