function degree(url)
{	
	var iMyWidth;
	var iMyHeight;
	//half the screen width minus half the new window width (plus 5 pixel borders).
	iMyWidth = (window.screen.width/2) - (450 + 10);
	//half the screen height minus half the new window height (plus title and status bars).
	iMyHeight = (window.screen.height/2) - (370 + 50);

	url = url.replace('degree.com','degree.elearners.com');
	window.open(url,'degreecom', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=900,height=740,top='+iMyHeight+',left='+iMyWidth);
}
function quin(url)
{	
	var iMyWidth;
	var iMyHeight;
	//half the screen width minus half the new window width (plus 5 pixel borders).
	iMyWidth = (window.screen.width/2) - (450 + 10);
	//half the screen height minus half the new window height (plus title and status bars).
	iMyHeight = (window.screen.height/2) - (370 + 50);

	url = url.replace('http://degree.com/school/','http://www.inrdx.com/?tag=203708606&VKEY=');
	window.open(url,'degreecom', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=900,height=740,top='+iMyHeight+',left='+iMyWidth);
}
jQuery(document).ready(function(){
	jQuery('.deleteDegree').click(function() {
		if(confirm('Are you sure you wish to delete this degree?'))
		{
			parent = jQuery(this).parent().parent().parent();
			parent.fadeTo(500,.25);
			jQuery.get('/?delete=true&id='+jQuery(this).attr('id').replace('degree-',''), function(data) {
				parent.slideUp('fast');
			});
			return false;
		}
	});
});
