// External Links
function externalLinks() {
	$("a[rel='external']").attr('target','_blank');
}
// Print Page
function createPrintlink() {
	 $('#print-page').click (function() { window.print(); return false;});
}

function insertFlash(base_url, movie, width, height) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width + '" height="' + height + '">');
      document.write('<param name="movie" value="' + base_url + '/_flash/' + movie + '.swf" />');
	  document.write('<param name="wmode" value="transparent" />');
      document.write('<param name="quality" value="best" />');
      document.write('<embed src="' + base_url + '/_flash/' + movie + '.swf"  quality="best" swLiveConnect="true" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" wmode="transparent" />');
	document.write('</object>');
}

function popProfile(url) {
	newwindow=window.open(url,'profile','height=650,width=600,top=15,left=15,scrollbars=yes');
	newwindow.focus();
}


// Do these functions when DOM has loaded
$(document).ready(function() {
	createPrintlink();
	externalLinks();
});
