/*
 * open_window
 *  simple script to open a new pop-up window
 */
function open_window (url, name, width, height)
{
	window.open(url, name, 'width=' + width + ',' + 'height=' + height + 'top=50,left=50,scrollbars=1,titlebar=1,resizable=1');
	return false;
}


/*
 * include_script
 *  takes the filename passed to it and includes it
 */
function include_script (filename)
{
	var html_doc = document.getElementsByTagName('head').item(0);
	var js = document.createElement('script');
	js.setAttribute('language', 'javascript');
	js.setAttribute('type', 'text/javascript');
	js.setAttribute('src', filename);
	html_doc.appendChild(js);
	return false;
}


// include our extra scripts
include_script('http://dune2k.com/js/corners.js');

// roundify!
window.onload = function()
{
	if (!NiftyCheck())
	{
		return;
	}

	//Rounded(class, type, outer, inner, border)
	Rounded('div.content', 'bottom', '#000', '#333', 'small border #EEE');
	Rounded('h1.title', 'all', '#333', 'transparent', 'small');
	Rounded('h2.title', 'tr', '#333', 'transparent', 'smooth');
	Rounded('h2.news', 'tr', '#333', 'transparent', 'small');
	Rounded('h3.title', 'all', '#333', 'transparent', 'small');
	Rounded('div.box', 'bottom tr', '#333', 'transparent', 'smooth');
	Rounded('div.news', 'bottom tr', '#333', 'transparent', 'smooth');
}

