/**
 * @author brandon neil richards
 */

// no conflicts with other frameworks
var $j = jQuery.noConflict();

// popupwindow

var profiles =
{

	window800:
	{
		height:600,
		width:820,
		status:1,
		scrollbars:1, // determines whether scrollbars appear on the window {1 (YES) or 0 (NO)}.
		resizable:1, // whether the window can be resized {1 (YES) or 0 (NO)}. Can also be overloaded using resizable.
		location:1 // determines whether the address bar is displayed {1 (YES) or 0 (NO)}.
	},

	window200:
	{
		height:200,
		width:200,
		status:1,
		resizable:0
	},

	windowCenter:
	{
		height:300,
		width:400,
		center:1
	},
	
	windowNotNew:
	{
		height:300,
		width:400,
		center:1,
		createnew:0
	}

};

//


$j(function() 
{
		//open windows without embedding target="_blank"
		$j('a[@rel$=external]').click(function()
			{
				this.target = "_blank";
			});
			
		// round corners
		//$j('.sidebar').corner("top 14px");
		$j('.sidebar').corner({
					  tl: { radius: 14 },
					  tr: { radius: 14 },
					  bl: false,
					  br: false,
					  antiAlias: true,
					  autoPad: true,
					  validTags: ["div"] });
		//$j('.sidebar-about').corner("cc:#104C71 bottom 14px");
		$j('.sidebar-about').corner({
			  		  tl: false,
			  		  tr: false,
					  bl: { radius: 14 },
					  br: { radius: 14 },
					  antiAlias: true,
					  autoPad: false,
					  validTags: ["div"] });
		//
		$j(".popupwindow").popupwindow(profiles);
		
});