/*
 * Investors Observer custom jQuery functions
 *
 * Copyright (c) 2009
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-08-14
 * Revision: 2
 */

$(document).ready(function(){
	$('a[rel^="external"]').attr("target", "_blank");
	$(':last-child').addClass("last-child");
	
	$('table[align^="center"]').addClass("center");
	
	$('table').each(function() {
		
		if($(this).attr('cellpadding')) {
			var padding = $(this).attr('cellpadding') + 'px';
			$(this).find('td').each(function() {
				$(this).css('padding',padding);
			});
		}
		
		if($(this).attr('border')) {
			$(this).addClass('separate');
		}
	});
});

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function openpopupSPPP(param){
var popurl="SPPPApopup.asp?p=" + param
winpops=window.open(popurl,"","width=420,height=195,")
}

function MM_popupMsg(msg) { //v1.0
  alert(msg);
}

function openpopupSR(userid){
var popurl="stockr_editselections.asp?userid=" + userid
winpops=window.open(popurl,"","width=550,height=450,status=yes,scrollbars=yes")
}