/*********************/
/*    Misc Popups    */
/*********************/

function marketcastPopup() {
	// Track the marketcast view event
	var marketcastTrackingVars = {
		"omniturePageName" : "investools:marketcast view",
		"parameters" : {
			"prop6"		: "marketcast"
		}
	}
	omnitureTracking(marketcastTrackingVars, true);
	var popup = window.open('http://education.investools.com/content/podCasts/mp3Player.html','marketcast', 'left=20, top=20, width=420,height=370,scrollbars=no,menubar=no,status=no,resizable=yes');
	popup.focus();
	return false;
}

function twoMinutePreviewPopup() {
	var url = contextPath + 'popups/twoMinutePreview' + actionExtension;
	var popup = window.open(url, 'popup', 'height=408,width=415,left=20,top=20,scrollbars=no,resizable=yes,scrollbars=1');
	popup.focus();
	return false;
}

function takeOurQuizPopup() {
	var url = contextPath + linkContext + 'popups/testYourself' + actionExtension;
	var popup =  window.open(url , 'testYourself', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=467,height=485');
	popup.focus();
	return false;
}

function top10TradingPitfallsPopup() {
	var url = contextPath + 'popups/top10TradingPitfalls' + actionExtension;
	var popup =  window.open(url , 'top10TradingPitfalls', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=467,height=521');
	popup.focus();
	return false;
}

function coveredCallsDemo() {
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:covered calls webinar view",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "webinar demo",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	urchinTracker('/content/right nav/webcasts/earn income on your stocks');
	var popup = window.open('http://education.investools.com/content/website/demos/coveredCallsDemo/coveredCallsDemo.html' , 'popup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=830,height=680');
	popup.focus();
	return false;
}

function stopLossDemo() {
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:stop loss webinar view",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "webinar demo",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	urchinTracker('/content/right nav/webcasts/protect yourself');
	var popup = window.open('http://education.investools.com/content/website/demos/stopLossDemo/stopLossDemo.html' , 'popup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=830,height=680');
	popup.focus();
	return false;
}

/*************************/
/*   News Story Popups   */
/*************************/

function barronsArticlePopup() {
	var popup = window.open('http://webreprints.djreprints.com/1910461305884.pdf','barronsArticle', 'left=20, top=20, scrollbars=no,menubar=no,status=no,resizable=yes');
	popup.focus();
	return false;
}

function chicagoConferenceHighlightsPopup() {
	var popup = window.open('http://education.investools.com/content/website/Chicago2007/Chicago2007_SlideShow.html' , 'popup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=763,height=520');
	popup.focus();
	return false;
}

function vegasConferenceHighlightsPopup() {
	var popup = window.open('http://education.investools.com/content/website/Vegas2008/VegasSlideshow2008Preloader.html' , 'popup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=760,height=500');
	popup.focus();
	return false;
}

function nasdaqPopup() {
	var url = contextPath + 'content/news/NameChangeRelease.pdf';
	var popup =  window.open(url , 'nasdaqPopup');
	popup.focus();
	return false;
}

function nasdaqVideoPopup() {
	var url = "http://education.investools.com/content/website/demos2/nasdaqCeremonySm.html";
	var popup =  window.open(url , 'nasdaqVideoPopup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=422,height=370');
	popup.focus();
	return false;
}

function baby401kPopup() {
	var url = contextPath + 'content/news/401_k_New_Years_Baby_Scholarship.pdf';
	var popup =  window.open(url , 'baby401kPopup');
	popup.focus();
	return false;
}

function baby40lkPRWeekArticle()
{
	var url = "http://www.prweekus.com/Online-brokerage-firm-spurns-baby-talk-in-new-effort/article/122830/";
	var popup =  window.open(url , 'baby401kPRWeek');
	popup.focus();
	return false;
}

function baby401kVideoPopup() {
	var url = "http://www.youtube.com/watch?v=aWWxkcwsIzE";
	var popup =  window.open(url , 'baby401kVideoVideoPopup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=650,height=500');
	popup.focus();
	return false;
}

function foxBabyCoverage() {
	var movieWidth = 300 ;
	var movieHeight = 294;
	
	var windowWidth = movieWidth + 20;
	var windowHeight = movieHeight + 38;
	
	if( navigator.appName == "Netscape" )
	{
		windowHeight = movieHeight + 45;
	}
	
	var popup =  window.open('' , 'foxBabyCoverage', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width='+ windowWidth + ',height='+windowHeight);

	var content = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
	content += '<html>';
	content += '<head>';
	content += '<title>Joe Kinahan discusses Investools\' Baby Scholarship</title>';
	content += '</head>';
	content = content + " <body style='margin: 20px auto;'><div style='margin: 0 auto; text-align:center; vertical-align:middle'>";

	content += "<iframe id='flashvideoplayer' width='" + movieWidth + "' height='" + movieHeight + "' topmargin='0' leftmargin='0' marginwidth='0' border='0' frameborder='0' scrolling='no' allowtransparency='true' src='http://video.fox61.com/global/video/flash/flashvideoplayer.asp?playerName=miniplayer.swf&clipId=3336386&autoStart=false&mute=false'></iframe>";

	content += '</div></body></html>';

	popup.document.write(content);
	popup.document.close();
	popup.focus();
	return false;
}

var audioWin = null;
function closeAudioCast(){
	
	if(audioWin != null) audioWin.close();
}

function baby401kAudioPopup() {
	var url = "http://online.investools.com/images/upload/SWIM_12908.wma";
	audioWin =  window.open(url , 'baby401kAudioPopup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=650,height=500');
	audioWin.focus();
	setTimeout(closeAudioCast, 5000);
	return false;
}

function cnbcOptionsActionPopup() {
	var url = contextPath + 'content/news/cnbc_option_action_FNL.pdf';
	var popup =  window.open(url , 'cnbcOptionsActionPopup');
	popup.focus();
	return false;
}
	
function cnbcOptionsActionShowPage() {
	var disclaimer = "You are now leaving the Investools website. The third party website you have chosen to enter is created and maintained by a third party who has no affiliation whatsoever with Investools or any of its related entities. Investools is not responsible for the privacy practices of this website, nor does it endorse or warrant the accuracy or content of the products or services of such website. We recommend that you review the website's policies regarding privacy and security. Use of this site and its services and products is at the user's own risk, and without guarantee or warranty of any kind from thinkorswim.";
	alert(disclaimer);
	var url = 'http://www.optionsaction.cnbc.com';
	var popup = window.open(url, 'cnbcOptionsActionShowPage');
	popup.focus();
	return false;
}

function tdaMergerPressRelease() {
	var url = '/content/tda/TDA_Press_Release.pdf';
	var popup = window.open(url, 'tdaMergerPressRelease');
	popup.focus();
	return false;
}

function barronsNewsArticle_20090316_Popup() {
	var url = "http://online.barrons.com/article/SB123698734062425763.html?page=1";
	var popup =  window.open(url , 'barronsPDFPopup');
	popup.focus();
	return false;
}

function barronsNewsArticlePDF_20090316_Popup() {
	var url = "http://webreprints.djreprints.com/2150810784950.pdf";
	var popup =  window.open(url , 'barronsPopup');
	popup.focus();
	return false;
}

/***********************/
/*    Webinar Popups   */
/***********************/

function wallStreetsWildRideWebcastPopup() {
	var popup = window.open('http://webex.investools.com/webexTracking.jsp?FileName=http://webex.investools.com/content/openhouses/MarketReview_09_19_2008.wrf' , 'popup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes');
	popup.focus();
	return false;
}

function wallStreetWrapupWebcastPopup() {
	var popup = window.open('http://webex.investools.com/webexTracking.jsp?FileName=http://webex.investools.com/content/openhouses/MarketReview_09_26_2008.wrf' , 'popup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes');
	popup.focus();
	return false;
}

function wallStreetTradingTheCrisisWebcastPopup() {
	// Track the marketcast view event
	var wallStreetTradingTheCrisisTrackingVars = {
		"omniturePageName" : "investools:wall street trading the crisis webcast",
		"parameters" : {
			"prop6"		: "webcast"
		}
	}
	omnitureTracking(wallStreetTradingTheCrisisTrackingVars, true);
	var popup = window.open('http://webex.investools.com/webexTracking.jsp?FileName=http://webex.investools.com/content/openhouses/MarketReview_09_29_2008.wrf' , 'popup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes');
	popup.focus();
	return false;
}

// Volatile Market Spotlight with TOS Instructor Tom Preston     Wednesday, May 28  5:00 pm ET
function volatileMarket_05_28_08() {
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:volatile markets webinar view 05-28-08",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "webinar demo",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	var popup = window.open('http://webex.investools.com/webexTracking.jsp?FileName=http://webex.investools.com/content/openhouses/volatilemarket_05_28_2008.wrf' , 'popup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes');
	popup.focus();
	return false;
}

// Volatile Market Spotlight with TOS Instructor Cindy Faber     Wednesday, May 21  5:00 pm ET
function volatileMarket_05_21_08() {
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:volatile markets webinar view 05-21-08",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "webinar demo",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	var popup = window.open('http://webex.investools.com/webexTracking.jsp?FileName=http://webex.investools.com/content/openhouses/volatilemarket_05_21_2008.wrf' , 'popup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes');
	popup.focus();
	return false;
}

// Volatile Market Spotlight with David Johnson
function volatileMarket_05_14_08() {
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:volatile markets webinar view 05-14-08",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "webinar demo",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	var popup = window.open('http://webex.investools.com/webexTracking.jsp?FileName=http://webex.investools.com/content/openhouses/volatilemarket_05_14_2008.wrf' , 'popup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes');
	popup.focus();
	return false;
}

// Volatile Market Spotlight with TOS Instructor Tom Preston
function volatileMarket_05_07_08() {
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:volatile markets webinar view 05-07-08",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "webinar demo",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	var popup = window.open('http://webex.investools.com/webexTracking.jsp?FileName=http://webex.investools.com/content/openhouses/volatilemarket_05_07_2008.wrf' , 'popup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes');
	popup.focus();
	return false;
}

function tomSosnoffTimKnightWebinar() {
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:tom sosnoff webinar view",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "webinar demo",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	var popup = window.open('http://webex.investools.com/webexTracking.jsp?FileName=http://webex.investools.com/content/openhouses/MarketDiscussion_03_17_2008.wrf' , 'popup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes');
	popup.focus();
	return false;
}

function volatileMarketSpotlightWebinar() {
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:volatile markets webinar view",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "webinar demo",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	var popup = window.open('http://webex.investools.com/webexTracking.jsp?FileName=http://webex.investools.com/content/openhouses/volatilemarket_03_24_2008.wrf' , 'popup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes');
	popup.focus();
	return false;
}

/***************************/
/*  Course Demo Popups     */
/***************************/

function foundationPopup() {
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:investing foundation demo view",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "course demo:foundationDemo8",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	var popup = window.open('http://education.investools.com/content/website/demos2/foundationDemo8.html', 'investingFoundation', 'scrollbars=no, status=no, width=821,height=579');
	popup.focus();
	return false;
}

function basicOptionsPopup() {
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:basic options demo view",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "course demo:basicOptions8",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	var popup = window.open('http://education.investools.com/content/website/demos2/basicOptions8.html', 'basicOptions', 'scrollbars=no, status=no, width=821,height=579');
	popup.focus();
	return false;
}

function advancedTechnicalAnalysisPopup() {
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:advanced technical analysis demo view",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "course demo:advancedTechnicals8",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	var popup = window.open('http://education.investools.com/content/website/demos2/advancedTechnicals8.html', 'advancedTechnicalAnalysis', 'scrollbars=no, status=no, width=821,height=579');
	popup.focus();
	return false;
}

function advancedOptionsPopup() {
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:advanced options demo view",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "course demo:advancedOptions8a",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	var popup = window.open('http://education.investools.com/content/website/demos2/advancedOptions8a.html', 'advancedOptions', 'scrollbars=no, status=no, width=821,height=579');
	popup.focus();
	return false;
}

function forexPopup() {
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:forex demo view",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "course demo:forexDemo8",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	var popup = window.open('http://education.investools.com/content/website/demos2/forexDemo8.html', 'forex', 'scrollbars=no, status=no, width=821,height=579');
	popup.focus();
	return false;
}

function advancedForexPopup() {
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:advanced forex demo view",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "course demo:advancedForex8a",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	var popup = window.open('http://education.investools.com/content/website/demos2/advancedForex8a.html', 'advancedForex', 'scrollbars=no, status=no, width=821,height=579');
	popup.focus();
	return false;
}

/***********************/
/*     Demo Popups     */
/***********************/

function toolboxTourPopup() {
	// Track the demo view event
	
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:toolbox tour demo view",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "tools demo:toolboxTour",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	var popup = window.open('http://education.investools.com/content/website/demos2/toolboxTour.html' , 'toolboxTour', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=821,height=617');
	popup.focus();
	return false;
}

function prophetChartsPopup() {
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:prophetcharts demo view",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "tools demo:prophetCharts8",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	var popup = window.open('http://education.investools.com/content/website/demos2/prophetCharts8.html', 'prophetCharts', 'scrollbars=no, status=no, width=821,height=579');
	popup.focus();
	return false;
}

function paperMoneyDemoPopup() {
	//var url = 'http://webex.investools.com/content/demos/paperMoney/paperMoneyTM.html';
	//var popup = window.open(url, 'paperMoneyTutorial', 'scrollbars=yes,resizable=yes, width=1050, height=630');
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:paperMoney demo view",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "tools demo:papermoney8",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	var url = 'http://education.investools.com/content/website/demos2/papermoney8.html';
	var popup = window.open(url, 'paperMoneyTutorial', 'scrollbars=no,resizable=no, width=821,height=579');
	popup.focus();
	return false;
}

function thinkPodDemo() {
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:thinkpod demo view",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "tools demo:thinkPod_05",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	var popup = window.open('http://education.investools.com/content/website/demos2/thinkPod_05.html', 'thinkPod', 'scrollbars=no, status=no, width=821,height=579');
	popup.focus();
	return false;
}

function coachingPopup() {
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:coaching demo view",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "tools demo:coachingDemo8a",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	var popup = window.open('http://education.investools.com/content/website/demos2/coachingDemo8a.html', 'coaching', 'scrollbars=no, status=no, width=821,height=579');
	popup.focus();
	return false;
}

function virtualCoachingPopup() {
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:virtual coaching demo view",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "tools demo:virtualCoaching8",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	var popup = window.open('http://education.investools.com/content/website/demos2/virtualCoaching8.html', 'virtualCoaching', 'scrollbars=no, status=no, width=821,height=579');
	popup.focus();
	return false;
}

function investorTalksPopup() {
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:investor talks demo view",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "tools demo:talksDemo8",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	var popup = window.open('http://education.investools.com/content/website/demos2/talksDemo8.html', 'investorTalks', 'scrollbars=no, status=no, width=821,height=579');
	popup.focus();
	return false;
}

function tradingRoomsPopup() {
	// Track the demo view event
	var demoVideoTrackingVars = {
		"omniturePageName" : "investools:trading rooms demo view",
		"linkTrackEvents" : "event2",
		"parameters" : {
			"prop6"		: "demo video",
			"eVar26"	: "tools demo:tradingRooms8",
			"events"	: "event2"
		}
	}
	omnitureTracking(demoVideoTrackingVars, true);
	//var popup = window.open('http://webex.investools.com/webexTracking.jsp?FileName=http://webex.investools.com/content/tradingrooms/ifc_1_01_25_2008.wrf', 'tradingRooms', 'scrollbars=no, status=no');
	var popup = window.open('http://education.investools.com/content/website/demos2/tradingRooms8.html', 'tradingRooms', 'scrollbars=no, status=no, width=821, height=579');
	popup.focus();
	return false;
}

/***************************/
/*     PaperMoney Popups   */
/***************************/

function downloadPaperMoneyPopup() {
	var url = 'http://www.thinkorswim.com/installer/install.html';
	var popup = window.open(url, 'softwareDownload', 'scrollbars=yes,resizable=yes');
	popup.focus();
	return false;
}

/***********************/
/*    Utility Popups   */
/***********************/

function symbolLookupPopup() {
	var popup = window.open('/popups/symbolLookup' + actionExtension , 'symbolLookup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=630,height=400');
	popup.focus();
	return false;
}

function forgotPasswordPopup() {
	var popup = window.open('http://online.investools.com/authentication/forgotPassword.iedu', 'forgotPassword', 'height=301, width=470, scrollbars=no, status=no');
	popup.focus();
	return false;
}

function liveChatPopup() {
	// Track the liveChat popup event
	var liveChatTrackingVars = {
		"omniturePageName" : "investools:user signed in",
		"linkTrackEvents" : "event13",
		"parameters" : {
			"prop6"		: "live chat",
			"events"	: "event13"
		}
	}
	omnitureTracking(liveChatTrackingVars, true);
	//this function is defined in /InvestoolsDeploy/AllEnvironments/CommonSiteFilesForWebOnly/javascript/popups.js
	return liveChatInvestoolsDotCom();
}

/******************************/
/*    Video Preview Popups    */
/******************************/

function videoPreviewPopup() {
	var url = contextPath + linkContext + 'popups/videoPreview' + actionExtension;
	var popup = window.open(url, 'videoPreviewIF', 'height=520,width=500,left=20,top=20,scrollbars=no,resizable=yes');
	popup.focus();
	return false;
}

function videoPreviewBOPopup() {
	var url = contextPath + linkContext + 'popups/videoPreviewBO' + actionExtension;
	var popup = window.open(url, 'videoPreviewBO', 'height=520,width=500,left=20,top=20,scrollbars=no,resizable=yes');
	popup.focus();
	return false;
}

function videoPreviewFXPopup() {
	var url = contextPath + linkContext + 'popups/videoPreviewFX' + actionExtension;
	var popup = window.open(url, 'videoPreviewFX', 'height=520,width=500,left=20,top=20,scrollbars=no,resizable=yes');
	popup.focus();
	return false;
}

function videoPreviewBOCapGeminiPopup() {
	var url = contextPath + linkContext + 'popups/videoPreviewBOCapGemini' + actionExtension;
	var popup = window.open(url, 'videoPreviewBO', 'height=520,width=500,left=20,top=20,scrollbars=no,resizable=yes');
	popup.focus();
	return false;
}

function videoPreviewFXCapGeminiPopup() {
	var url = contextPath + linkContext + 'popups/videoPreviewFXCapGemini' + actionExtension;
	var popup = window.open(url, 'videoPreviewFX', 'height=520,width=500,left=20,top=20,scrollbars=no,resizable=yes');
	popup.focus();
	return false;
}

function guaranteePopup(todaysDate, trialEndDate, endDate) {
	var url = contextPath + linkContext + 'popups/guarantee' + actionExtension;
	var parameters = "";
	if (todaysDate && trialEndDate && endDate) {
		parameters += "?todaysDate=" + todaysDate;
		parameters += "&trialEndDate=" + trialEndDate;
		parameters += "&endDate=" + endDate;
	}
	var popup = window.open(url + parameters, 'popup', 'height=465,width=500,left=20,top=20,scrollbars=no,resizable=yes,scrollbars=1');
	popup.focus();
	return false;
}


function brochurePopup() {
	var url = contextPath + linkContext + 'content/courseSyllabi/Brochure_InvestingFoundationCourse.pdf';
	var popup = window.open(url , 'popup', 'height=465,width=500,left=20,top=20,scrollbars=no,resizable=yes,scrollbars=1');
	popup.focus();
	return false;
}

function freeTrialGuaranteePopup() {
	var url = contextPath + linkContext + 'popups/freeTrialGuarantee' + actionExtension;
	var popup = window.open(url , 'popup', 'height=465,width=500,left=20,top=20,scrollbars=no,resizable=yes,scrollbars=1');
	popup.focus();
	return false;
}
/***********************/
/*    Footer Popups    */
/***********************/

function privacyPolicyPopup() {
	var url = contextPath + linkContext + 'popups/privacyPolicy' + actionExtension;
	var popup = window.open(url, 'popup', 'height=515,width=500,left=20,top=20,scrollbars=no,resizable=yes,scrollbars=1');
	popup.focus();
	return false;
}

function trademarkNoticePopup() {
	var url = contextPath + linkContext + 'popups/trademarkNotice' + actionExtension;
	var popup = window.open(url, 'popup', 'height=350,width=400,left=20,top=20,scrollbars=no,resizable=yes,scrollbars=1');
	popup.focus();
	return false;
}

function termsOfUsePopup() {
	var url = contextPath + linkContext + 'popups/termsOfUse' + actionExtension;
	var popup = window.open(url, 'popup', 'height=515,width=500,left=20,top=20,scrollbars=no,resizable=yes,scrollbars=1');
	popup.focus();
	return false;
}
