function resize( width, height, posx, posy){
	window.focus();
	if (posx=='') posx=100;
	if (posy=='') posy=50;
	window.moveTo(posx, posy)
	window.resizeTo(width, height)
	
}

function display(id) {
	dnxt =	document.getElementById('newsNext'+id);
	detc =	document.getElementById('newsEtc'+id);
	dimg =	document.getElementById('puce'+id);
	if (dnxt) {
		if (dnxt.style.display == 'none' || dnxt.style.display == '') {
			dnxt.style.display = 'block';
			if (detc)	detc.style.display = 'none';
			if (dimg) dimg.src = dimg.src.split('.gif').join('_.gif');
		}
		else {
			dnxt.style.display = 'none';
			if (detc) detc.style.display = 'block';
			if (dimg) dimg.src = dimg.src.split('_.gif').join('.gif');
		}
	}
};

function openForum() {
	window.open("http://www.wearephoenix.com/forum/","Forum","height=680,width=850,status=no,toolbar=yes,menubar=yes,location=yes,resizable=yes,scrollbars=yes");
};

function ajaxUpdateFunc(){
	//alert(this.settings.zoneid);
	if (this.settings.divid) $(this.settings.divid).innerHTML = this.XMLobject.responseText;
	
}
/*
- - - - - - - - - -
GALERRY
- - - - - - - - - -
*/
function showImage(image, divid) {
	
	var ajaxObj = new apAjax();
	ajaxObj.data = 'image='+image;
	ajaxObj.isLoaded = ajaxUpdateFunc;
	ajaxObj.url = "../../ajax/files/showImage.php";
	ajaxObj.settings.divid = divid;
	apAjax_postData(ajaxObj);
}

