function updateImage ( img_id )
{
	return true;
	var myimg = $(img_id).getProperty('src');

		if(myimg == 'img/arrowRight.gif')
			myimg = 'img/arrowUp.gif';
		else
			myimg = 'img/arrowRight.gif';
				
		$( img_id ).setProperty('src', myimg );
}

function toggleBox ( box_id, hideme )
{	
	var myVerticalSlide = new Fx.Slide('vbox'+box_id);
	
	$('toggle_v'+box_id).addEvent('click', function(e){
		e.stop();
		myVerticalSlide.toggle();
		updateImage ('img'+box_id);
	});
	
	if(!hideme)
		myVerticalSlide.hide();
	
}

window.addEvent('domready', function() {
	var status = {
		'true': 'open',
		'false': 'close'
};
	
	toggleBox ('01', false);
	
	window.addEvent('load', function () {	

	});

});


function popupZoom(url, height, width) {
	pageWidth = window.getScrollWidth();
	pageHeight = window.getScrollHeight();
	body = document.getElementsByTagName('body');
	body = body[0];
	
	fullDiv = new Element('div', {
		'styles': {
			'height': pageHeight + "px",
			'width': pageWidth + "px",
			'background-color': "black",
			'position': "absolute",
			'z-index': "9999",
			'top': 0,
			'bottom': 0,
			'left': 0
		},
		'id': 'zoomBack'
	});
	middleDiv = new Element('div', {
		'styles': {
			'height': height + "px",
			'width': width + "px",
			'background-color': "white",
			'z-index': "999999",
			'position': "absolute",
			'top': "25%",
			'left': "50%",
			'margin-left': "-" + width/2 + "px",
			'margin-top': "-120px",
			'overflow': "hidden",
            'border': "5px solid #ffeb98",
            'id': 'zoomPopupTarget'
		},
		'id': 'zoomMain'
	});
	
	new Fx.Style(fullDiv, 'opacity').set(0);
	fullDiv.inject(body);
	middleDiv.inject(body);
	new Fx.Style(fullDiv, 'opacity').start(0,0.5);

	window.addEvent('resize', function(event) {
		$(fullDiv).style.height = window.getScrollHeight() + "px";
		$(fullDiv).style.width  = window.getScrollWidth() + "px";
	});
	
	new Ajax(url, { method: 'get', evalScripts: true, update: middleDiv }).request();
	try {window.scrollTo(0,0);} catch(exception){}
}

function killZoomPopup() {
	if($type($('zoomBack'))) {
		$('zoomBack').remove();
	}
	if($type($('zoomMain'))) {
		$('zoomMain').remove();
	}
}
