function openLogo() {
window.open("index.html","tour","status=no,toolbar=no,directories=no,menubar=no,location=no,resizable=yes,scrollbars=yes,left=50,top=50,width=530, height=475");
}

function Querystring(qs) { // optionally pass a querystring to parse
	this.params = new Object()
	this.get=Querystring_get
	
	if (qs == null)
		qs=location.search.substring(1,location.search.length)

	if (qs.length == 0) return

// Turn <plus> back to <space>
// See: http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4.1
	qs = qs.replace(/\+/g, ' ')
	var args = qs.split('&') // parse out name/value pairs separated via &
	
// split out each name=value pair
	for (var i=0;i<args.length;i++) {
		var value;
		var pair = args[i].split('=')
		var name = unescape(pair[0])

		if (pair.length == 2)
			value = unescape(pair[1])
		else
			value = name
		
		this.params[name] = value
	}
}

function Querystring_get(key, default_) {
	// This silly looking line changes UNDEFINED to NULL
	if (default_ == null) default_ = null;
	
	var value=this.params[key]
	if (value==null) value=default_;
	
	return value
}


var qs = new Querystring();
  
var v = qs.get("v");

if (v != null)
{
	v = v.toLowerCase();
}

function writeLogo()
{	
	switch (v)
	{		
		case 'blue' : document.write('<br><br style="line-height: 8px"><img src="images/landing/dummies/Forex_Logo_152.jpg" width="152" height="34" border="0" />'); break;
    case 'displaydum' : document.write('<img src="images/landing/world/logo_forex.gif" width="152" height="73" border="0" />'); break;
		case 'displaydum2' : document.write('<br><br style="line-height: 8px"><img src="images/landing/dummies/Forex_Logo_152.jpg" width="152" height="34" border="0" />'); break;
		case 'eys' : document.write('<img src="images/landing/world/logo_forex.gif" width="152" height="73" border="0" />'); break;
		case 'searchdum' : document.write('<img src="images/landing/world/logo_forex.gif" width="152" height="73" border="0" />'); break;
		case 'searchdum2' : document.write('<br><br style="line-height: 8px"><img src="images/landing/dummies/Forex_Logo_152.jpg" width="152" height="34" border="0" />'); break;
		case 'webinar' : document.write('<br><br style="line-height: 8px"><img src="images/landing/dummies/Forex_Logo_152.jpg" width="152" height="34" border="0" />'); break;
    default :  document.write('<img src="images/landing/world/logo_forex.gif" width="152" height="73" border="0" />'); break;
	}
}	

function writeHeader()
{	
	switch (v)
	{		
		case 'blue' : document.write('<img src="images/landing/copy/dummies_header_blue.jpg" width="690" height="198" alt="Get a FREE eBook when you open a practice account">'); break;
    case 'displaydum' : document.write('<img src="images/landing/copy/EYSDum6.jpg" width="690" height="198" alt="Learn. Practice. Trade. - FREE eBook and practice account (risk free/no obligation)">'); break;
		case 'displaydum2' : document.write('<img src="images/landing/copy/dummies_header_blue.jpg" width="690" height="198" alt="Get a FREE eBook when you open a practice account">'); break;
		case 'eys' : document.write('<img src="images/landing/copy/EYSDum6.jpg" width="690" height="198" alt="Learn. Practice. Trade. - FREE eBook and practice account (risk free/no obligation)">'); break;
		case 'searchdum' : document.write('<img src="images/landing/copy/EYSDum6.jpg" width="690" height="198" alt="Learn. Practice. Trade. - FREE eBook and practice account (risk free/no obligation)">'); break;
		case 'searchdum2' : document.write('<img src="images/landing/copy/dummies_header_blue.jpg" width="690" height="198" alt="Get a FREE eBook when you open a practice account">'); break;
		case 'webinar' : document.write('<img src="images/landing/copy/EYStodd_chart-headshot.jpg" width="690" height="198" alt="Fibonacci and Elliott Wave - Free currency trading webinar and practice account">'); break;
		default :  document.write('<img src="images/landing/copy/EYSDum6.jpg" width="690" height="198" alt="Learn. Practice. Trade. - FREE eBook and practice account (risk free/no obligation)">'); break;
	}
}	

function writeBullets1()
{	
	switch (v)
	{		
		case 'blue' : document.write('<img src="images/landing/copy/trade_strategy.gif" width="277" height="18" alt="GET INTO CURRENCY TRADING" /><p><span style="font-family:Arial, Verdana, Helvetica, sans-serif; font-size:12px; color:#000000; line-height:18px"><I>Currency Trading for Dummies - Getting Started Edition</i>, will help you get the most out of your practice account.</span><ul class="listStyler"><li>Practical step by step action plan</li><li>Learn the mechanics of forex trading</li><li>Fundamental factors that drive currency markets</li><li>How to develop a risk aware trading plan</li></ul>'); break;
    case 'displaydum' : document.write('<img src="images/landing/copy/trade_strategy.gif" width="277" height="18" alt="GET INTO CURRENCY TRADING" /><p><span style="font-family:Arial, Verdana, Helvetica, sans-serif; font-size:12px; color:#000000; line-height:18px"><I>Currency Trading for Dummies - Getting Started Edition</i>, will help you get the most out of your practice account.</span><ul class="listStyler"><li>Practical step by step action plan</li><li>Learn the mechanics of forex trading</li><li>Fundamental factors that drive currency markets</li><li>How to develop a risk aware trading plan</li></ul>'); break;
		case 'displaydum2' : document.write('<img src="images/landing/copy/trade_strategy.gif" width="277" height="18" alt="GET INTO CURRENCY TRADING" /><p><span style="font-family:Arial, Verdana, Helvetica, sans-serif; font-size:12px; color:#000000; line-height:18px"><I>Currency Trading for Dummies - Getting Started Edition</i>, will help you get the most out of your practice account.</span><ul class="listStyler"><li>Practical step by step action plan</li><li>Learn the mechanics of forex trading</li><li>Fundamental factors that drive currency markets</li><li>How to develop a risk aware trading plan</li></ul>'); break;
		case 'eys' : document.write('<img src="images/landing/copy/trade_strategy.gif" width="277" height="18" alt="GET INTO CURRENCY TRADING" /><p><span style="font-family:Arial, Verdana, Helvetica, sans-serif; font-size:12px; color:#000000; line-height:18px"><I>Currency Trading for Dummies - Getting Started Edition</i>, will help you get the most out of your practice account.</span><ul class="listStyler"><li>Practical step by step action plan</li><li>Learn the mechanics of forex trading</li><li>Fundamental factors that drive currency markets</li><li>How to develop a risk aware trading plan</li></ul>'); break;
		case 'searchdum' : document.write('<img src="images/landing/copy/trade_strategy.gif" width="277" height="18" alt="GET INTO CURRENCY TRADING" /><p><span style="font-family:Arial, Verdana, Helvetica, sans-serif; font-size:12px; color:#000000; line-height:18px"><I>Currency Trading for Dummies - Getting Started Edition</i>, will help you get the most out of your practice account.</span><ul class="listStyler"><li>Practical step by step action plan</li><li>Learn the mechanics of forex trading</li><li>Fundamental factors that drive currency markets</li><li>How to develop a risk aware trading plan</li></ul>'); break;
		case 'searchdum2' : document.write('<img src="images/landing/copy/trade_strategy.gif" width="277" height="18" alt="GET INTO CURRENCY TRADING" /><p><span style="font-family:Arial, Verdana, Helvetica, sans-serif; font-size:12px; color:#000000; line-height:18px"><I>Currency Trading for Dummies - Getting Started Edition</i>, will help you get the most out of your practice account.</span><ul class="listStyler"><li>Practical step by step action plan</li><li>Learn the mechanics of forex trading</li><li>Fundamental factors that drive currency markets</li><li>How to develop a risk aware trading plan</li></ul>'); break;
		case 'webinar' : document.write('<img src="images/landing/copy/heading_enhance_your_trading_strategy.gif" width="325" height="20" alt="GET INTO CURRENCY TRADING" /><p><span style="font-family:Arial, Verdana, Helvetica, sans-serif; font-size:12px; color:#000000; line-height:18px">Take a candid look into the daily trading life of a professional foreign exchange trader.</span><ul class="listStyler"><li style="padding-bottom:8px;">Learn the underlying principles behind his trading strategy</li><li style="padding-bottom:8px;">See past examples of trade executions and outcomes</li><li>Gather tips on identifying actionable trends and patterns</li></ul>'); break;
		default :  document.write('<img src="images/landing/copy/trade_strategy.gif" width="277" height="18" alt="GET INTO CURRENCY TRADING" /><p><span style="font-family:Arial, Verdana, Helvetica, sans-serif; font-size:12px; color:#000000; line-height:18px"><I>Currency Trading for Dummies - Getting Started Edition</i>, will help you get the most out of your practice account.</span><ul class="listStyler"><li>Practical step by step action plan</li><li>Learn the mechanics of forex trading</li><li>Fundamental factors that drive currency markets</li><li>How to develop a risk aware trading plan</li></ul>'); break;
	}
}	

function writeBullets2()
{	
	switch (v)
	{		
		case 'blue' : document.write('<img src="images/landing/world/hdr_forex_advantage.gif" width="318" height="18" alt="THE FOREX.COM ADVANTAGE" /><br /><p><b>Learn why forex traders choose FOREX.com.</b></p><ul class="listStyler"><li>Easy to use trading platform</li><li>Powerful tools and research</li><li>24 hour support during trading hours</li><li>Forex training & education<br /></li></ul><br>'); break;
    case 'displaydum' : document.write('<img src="images/landing/world/hdr_forex_advantage.gif" width="318" height="18" alt="THE FOREX.COM ADVANTAGE" /><br /><p><b>Learn why forex traders choose FOREX.com.</b></p><ul class="listStyler"><li>Easy to use trading platform</li><li>Powerful tools and research</li><li>24 hour support during trading hours</li><li>Forex training & education<br /></li></ul><br>'); break;
		case 'displaydum2' : document.write('<<img src="images/landing/world/hdr_forex_advantage.gif" width="318" height="18" alt="THE FOREX.COM ADVANTAGE" /><br /><p><b>Learn why forex traders choose FOREX.com.</b></p><ul class="listStyler"><li>Easy to use trading platform</li><li>Powerful tools and research</li><li>24 hour support during trading hours</li><li>Forex training & education<br /></li></ul><br>'); break;
		case 'eys' : document.write('<img src="images/landing/world/hdr_forex_advantage.gif" width="318" height="18" alt="THE FOREX.COM ADVANTAGE" /><br /><p><b>Learn why forex traders choose FOREX.com.</b></p><ul class="listStyler"><li>Easy to use trading platform</li><li>Powerful tools and research</li><li>24 hour support during trading hours</li><li>Forex training & education<br /></li></ul><br>'); break;
		case 'searchdum' : document.write('<img src="images/landing/world/hdr_forex_advantage.gif" width="318" height="18" alt="THE FOREX.COM ADVANTAGE" /><br /><p><b>Learn why forex traders choose FOREX.com.</b></p><ul class="listStyler"><li>Easy to use trading platform</li><li>Powerful tools and research</li><li>24 hour support during trading hours</li><li>Forex training & education<br /></li></ul><br>'); break;
		case 'searchdum2' : document.write('<img src="images/landing/world/hdr_forex_advantage.gif" width="318" height="18" alt="THE FOREX.COM ADVANTAGE" /><br /><p><b>Learn why forex traders choose FOREX.com.</b></p><ul class="listStyler"><li>Easy to use trading platform</li><li>Powerful tools and research</li><li>24 hour support during trading hours</li><li>Forex training & education<br /></li></ul><br>'); break;
		case 'webinar' : document.write('<img src="images/landing/world/hdr_forex_advantage.gif" width="318" height="18" alt="THE FOREX.COM ADVANTAGE" /><br /><p><b>Learn why forex traders choose FOREX.com.</b></p><ul class="listStyler"><li style="padding-bottom:8px;">Trade 43 currency and spot metal pairs</li><li style="padding-bottom:8px;">Powerful tools and research</li><li style="padding-bottom:8px;">24 hour support during trading hours</li><li>Forex training & education<br /></li></ul><br>'); break;
		default :  document.write('<img src="images/landing/world/hdr_forex_advantage.gif" width="318" height="18" alt="THE FOREX.COM ADVANTAGE" /><br /><p><b>Learn why forex traders choose FOREX.com.</b></p><ul class="listStyler"><li>Easy to use trading platform</li><li>Powerful tools and research</li><li>24 hour support during trading hours</li><li>Forex training & education<br /></li></ul><br>'); break;
	}
}	

function writeFormHeader()
{	
	switch (v)
	{		
		case 'blue' : document.write('<p><b>Fill out form below and hit Get Started button.<br>A popup will appear with your free eBook.</b></p>'); break;
    case 'displaydum' : document.write('<p><b>Fill out form below and hit Get Started button.<br>A popup will appear with your free eBook.</b></p>'); break;
    case 'displaydum2' : document.write('<p><b>Fill out form below and hit Get Started button.<br>A popup will appear with your free eBook.</b></p>'); break;
		case 'eys' : document.write('<p><b>Fill out form below and hit Get Started button.<br>A popup will appear with your free eBook.</b></p>'); break;
		case 'searchdum' : document.write('<p><b>Fill out form below and hit Get Started button.<br>A popup will appear with your free eBook.</b></p>'); break;
		case 'searchdum2' : document.write('<p><b>Fill out form below and hit Get Started button.<br>A popup will appear with your free eBook.</b></p>'); break;
		case 'webinar' : document.write('<p><b>Fill out the form below and click Get Started.<br />Webinar Registration will begin upon completion.</b></p>'); break;
		default :  document.write('<p><b>Fill out form below and hit Get Started button.<br>A popup will appear with your free eBook.</b></p>'); break;
	}
}	

function writeHearDrop()
{	
	switch (v)
	{		
		case 'blue' : document.write('<s'+'cript language="JavaScript" src="cob-landing10a.js" type="text/javascript"></script>'); break;
    case 'displaydum' : document.write('<s'+'cript language="JavaScript" src="cob-landing10a.js" type="text/javascript"></script>'); break;
    case 'displaydum2' : document.write('<s'+'cript language="JavaScript" src="cob-landing10a.js" type="text/javascript"></script>'); break;
		case 'eys' : document.write('<s'+'cript language="JavaScript" src="cob-landing10a.js" type="text/javascript"></script>'); break;
		case 'searchdum' : document.write('<s'+'cript language="JavaScript" src="cob-landing10a.js" type="text/javascript"></script>'); break;		
		case 'searchdum2' : document.write('<s'+'cript language="JavaScript" src="cob-landing10a.js" type="text/javascript"></script>'); break;
		case 'webinar' : document.write('<s'+'cript language="JavaScript" src="cob-landing13.js" type="text/javascript"></script>'); break;
		default :  document.write('<s'+'cript language="JavaScript" src="cob-landing10a.js" type="text/javascript"></script>'); break;
	}
}	