/*Email Instructions display code. Opens TXT file with necessary code. */
var quote ="'";

var tourHTML = '<style type="text/css"><!-- #emailInstructions { width:400px;} --></style><p>To configure your email accounts directly from your BlackBerry smartphone, <a href="http://demos.blackberry.com/9630/na/us/gen/?c=2&f=0&t=1" onclick="window.open(this.href,'+quote+quote+','+quote+'resizable=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=925,height=674,status/'+quote+'); return false">view the Email Setup instructions in the BlackBerry Tour 9630 smartphone demo</a> or follow the instructions below:</p><ol class="noTopMargin"><li>From the home screen, go to Setup.</li><li>Click <strong>Setup Wizard</strong>. </li><li>Click <strong>Email Setup</strong>. </li> <li>In the setup wizard, on the email setup screen, select the <strong>I want to create or add an email address option</strong>. </li> <li>Click <strong>Next</strong>. </li> <li>Click <strong>Next</strong> to open the email setup website on your smartphone. </li> <li>If you agree to the legal terms and conditions, click <strong>I Agree</strong>. </li> <li>On the Email Setup screen, select your email service provider. If you don&rsquo;t see your email service provider listed, select <strong>Other</strong>. </li> <li>Type the email address information and click <strong>Next</strong>. </li> <li>Click <strong>Ok</strong>. </li> <li>To create a new email address for your smartphone, click <strong>Create</strong>. Type your desired BlackBerry email address and password. </li> <li>Choose a secret question from the list or create your own. Then enter the answer in the space provided. Click <strong>Next</strong>. </li> <li>Click <strong>Ok</strong>. </li> <li>To log out of the email setup website, click <strong>Close</strong>. </li></ol><div class="clear"></div>';


var curve8530HTML = '<style type="text/css"><!-- #emailInstructions { width:400px;} --></style><p>To configure your email accounts directly from your BlackBerry smartphone, <a href="http://demos.blackberry.com/8530/na/us/gen/?c=2&f=0&t=1" onclick="window.open(this.href,'+quote+quote+','+quote+'resizable=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=925,height=674,status/'+quote+'); return false">view the Email Setup instructions in the BlackBerry Curve 8530 smartphone demo</a> or follow the instructions below:</p><ol class="noTopMargin"><li>From the home screen, go to Setup.</li> <li>Click <strong>Setup Wizard</strong>. </li> <li>Click <strong>Email Setup</strong>. </li> <li>In the setup wizard, on the email setup screen, select the <strong>I want to create or add an email address option</strong>. </li> <li>Click <strong>Next</strong>. </li> <li>Click <strong>Next</strong> to open the email setup website on your smartphone. </li> <li>If you agree to the legal terms and conditions, click <strong>I Accept</strong>. </li> <li>On the Email Setup screen, select your email service provider. If you don&rsquo;t see your email service provider listed, select <strong>Other</strong>. </li> <li>Type the email address information and click <strong>Next</strong>. </li> <li>Click <strong>Ok</strong>. </li> <li>To create a new email address for your smartphone, click <strong>Add</strong> and then click <strong>Create New Address</strong>. Type your desired BlackBerry email address and password. </li> <li>Choose a secret question from the list or create your own. Then enter the answer in the space provided. Click <strong>Next</strong>. </li> <li>Click <strong>Ok</strong>. </li> <li>To log out of the email setup website, click <strong>Close</strong>. </li></ol><div class="clear"></div>';


var pearl9100HTML = '<style type="text/css"><!-- #emailInstructions { width:400px;} --></style><p>To configure your email accounts directly from your BlackBerry smartphone, <a href="http://demos.blackberry.com/9100/na/us/gen/?c=2&f=0&t=1" onclick="window.open(this.href,'+quote+quote+','+quote+'resizable=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=925,height=674,status/'+quote+'); return false">view the Email Setup instructions in the BlackBerry Pearl 9100 smartphone demo</a> or follow the instructions below:</p><ol class="noTopMargin"><li>From the home screen, go to Setup.</li> <li>Click <strong>Setup Wizard</strong>. </li> <li>Click <strong>Email Setup</strong>. </li> <li>In the setup wizard, on the email setup screen, select the <strong>I want to create or add an email address option</strong>. </li> <li>Click <strong>Next</strong>. </li> <li>Click <strong>Next</strong> to open the email setup website on your smartphone. </li> <li>If you agree to the legal terms and conditions, click <strong>I Accept</strong>. </li> <li>On the Email Setup screen, select your email service provider. If you don&rsquo;t see your email service provider listed, select <strong>Other</strong>. </li> <li>Type the email address information and click <strong>Next</strong>. </li> <li>Click <strong>Ok</strong>. </li> <li>To create a new email address for your smartphone, click <strong>Add</strong> and then click <strong>Create New Address</strong>. Type your desired BlackBerry email address and password. </li> <li>Choose a secret question from the list or create your own. Then enter the answer in the space provided. Click <strong>Next</strong>. </li> <li>Click <strong>Ok</strong>. </li> <li>To log out of the email setup website, click <strong>Close</strong>. </li></ol><div class="clear"></div>';


var bold9650HTML = '<style type="text/css"><!-- #emailInstructions { width:400px;} --></style><p>To configure your email accounts directly from your BlackBerry smartphone, <a href="http://demos.blackberry.com/9650/na/us/gen/?c=2&f=0&t=1" onclick="window.open(this.href,'+quote+quote+','+quote+'resizable=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=925,height=674,status/'+quote+'); return false">view the Email Setup instructions in the BlackBerry Bold 9650 smartphone demo</a> or follow the instructions below:</p><ol class="noTopMargin"><li>From the home screen, go to Setup.</li> <li>Click <strong>Setup Wizard</strong>. </li> <li>Click <strong>Email Setup</strong>. </li> <li>In the setup wizard, on the email setup screen, select the <strong>I want to create or add an email address option</strong>. </li> <li>Click <strong>Next</strong>. </li> <li>Click <strong>Next</strong> to open the email setup website on your smartphone. </li> <li>If you agree to the legal terms and conditions, click <strong>I Accept</strong>. </li> <li>On the Email Setup screen, select your email service provider. If you don&rsquo;t see your email service provider listed, select <strong>Other</strong>. </li> <li>Type the email address information and click <strong>Next</strong>. </li> <li>Click <strong>Ok</strong>. </li> <li>To create a new email address for your smartphone, click <strong>Add</strong> and then click <strong>Create New Address</strong>. Type your desired BlackBerry email address and password. </li> <li>Choose a secret question from the list or create your own. Then enter the answer in the space provided. Click <strong>Next</strong>. </li> <li>Click <strong>Ok</strong>. </li> <li>To log out of the email setup website, click <strong>Close</strong>. </li></ol><div class="clear"></div>';


var curve8520HTML = '<style type="text/css"><!-- #emailInstructions { width:400px;} --></style><p>To configure your email accounts directly from your BlackBerry smartphone, <a href="http://demos.blackberry.com/8520/na/us/gen/?c=2&f=0&t=1" onclick="window.open(this.href,'+quote+quote+','+quote+'resizable=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=925,height=674,status/'+quote+'); return false">view the Email Setup instructions in the BlackBerry Curve 8520 smartphone demo</a> or follow the instructions below:</p><ol class="noTopMargin"><li>From the home screen, go to Setup.</li> <li>Click <strong>Setup Wizard</strong>. </li> <li>Click <strong>Email Setup</strong>. </li> <li>In the setup wizard, on the email setup screen, select the <strong>I want to create or add an email address option</strong>. </li> <li>Click <strong>Next</strong>. </li> <li>Click <strong>Next</strong> to open the email setup website on your smartphone. </li> <li>If you agree to the legal terms and conditions, click the <strong>Yes</strong> <strong>checkbox</strong> after the statement <strong>I have read and understand the End User Agreement</strong>. Click <strong>I Agree</strong>. </li> <li>To associate an existing, supported email address with your smartphone, click <strong>Add</strong>. </li> <li>On the Email Setup screen, select your email service provider. If you don&rsquo;t see your email service provider listed, select <strong>Other</strong>. </li> <li>Type the email address information and click <strong>Next</strong>. </li> <li>Click <strong>Ok</strong>. </li> <li>To create a new email address for your smartphone, click <strong>Create</strong>. Type your desired BlackBerry email address and password. </li> <li>Choose a secret question from the list or create your own. Then enter the answer in the space provided. Click <strong>Next</strong>. </li> <li>Click <strong>Ok</strong>. </li> <li>To log out of the email setup website, click <strong>Close</strong>. </li></ol><div class="clear"></div>';

var bold9700HTML = '<style type="text/css"><!-- #emailInstructions { width:400px;} --></style><p>To configure your email accounts directly from your BlackBerry smartphone, <a href="http://demos.blackberry.com/9700/na/us/gen/?c=2&f=0&t=1" onclick="window.open(this.href,'+quote+quote+','+quote+'resizable=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=950,height=680,status/'+quote+'); return false">view the Email Setup instructions in the BlackBerry Bold 9700 smartphone demo</a> or follow the instructions below:</p><ol class="noTopMargin"><li>From the home screen, go to Setup.</li><li>Click <strong>Setup Wizard</strong>.</li><li>Click <strong>Email Setup</strong>.</li><li>In the setup wizard, on the email setup screen, select the <strong>I want to create or add an email address option</strong>.</li><li>Click <strong>Next</strong>.</li><li>Click <strong>Next</strong> to open the email setup website on your smartphone.</li><li>If you agree to the legal terms and conditions, click <strong>I Accept</strong>.</li><li>On the Email Setup screen, select your email service provider. If you don&rsquo;t see your email service provider listed, select <strong>Other</strong>.</li><li>Type the email address information and click <strong>Next</strong>. </li><li>Click <strong>Ok</strong>.</li><li>To create a new email address for your smartphone, click <strong>Add</strong> and then click <strong>Create New Address</strong>. Type your desired BlackBerry email address and password.</li><li>Choose a secret question from the list or create your own. Then enter the answer in the space provided. Click <strong>Next</strong>.</li><li>Click <strong>Ok</strong>.</li><li>To log out of the email setup website, click <strong>Close</strong>.</li></ol><div class="clear"></div>';

var boldHTML = '<style type="text/css"><!-- #emailInstructions { width:400px;} --></style><p>To configure your email accounts directly from your BlackBerry smartphone, <a href="http://demos.blackberry.com/emailsetup/na/us/gen/" onclick="window.open(this.href,'+quote+quote+','+quote+'resizable=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=950,height=680,status/'+quote+'); return false">view the email setup demo</a> or follow the instructions below:</p><ol class="noTopMargin"><li>To get to the email setup site: <ul> 	<li>If there&rsquo;s an Email Setup option on your smartphone&rsquo;s home screen, click it. </li> 	<li>Alternately, there&rsquo;s a setup wizard on the smartphone that will either start automatically the first time you turn on your smartphone or be featured as an icon on your smartphone&rsquo;s home screen. When you reach the email setup screen of the setup wizard, select <strong>I want to create or add an email address</strong>. </li>	</ul>  </li> <li>Click <strong>Next</strong>. </li> <li>To accept the terms of the license agreement, select the <strong>I have read and understand the End User Agreement option or check box</strong>. Click <strong>I Agree</strong>. </li> <li>To integrate an email address you already use, enter your full email address and the password for that email account. </li> <li>Click <strong>Next</strong>. The site will confirm if the email address has been successfully added. Click <strong>OK</strong>. </li> <li>If you want to create a new email address for your BlackBerry smartphone (e.g. username@carrier.blackberry.com), you&rsquo;ll need to do one of the following, depending on your smartphone: <ul>	<li>Click <strong>Create a BlackBerry email address</strong>.</li></ul><p>OR</p><ul>	<li>Click <strong>I would like to create a new BlackBerry email address</strong>.</li></ul>  Then, type the user name you want to appear before the @ sign in your new BlackBerry email address. Click <strong>Next</strong>, followed by <strong>OK</strong>.</li> <li>To return to the setup wizard, click <strong>Log Out</strong> or <strong>Close</strong>. </li></ol><div class="clear"></div>';


var storm2HTML = '<style type="text/css"><!-- #emailInstructions { width:400px;} --></style><p>To configure your email accounts directly from your BlackBerry smartphone, <a href="http://demos.blackberry.com/9550/na/us/gen/?c=2&f=0&t=1" onclick="window.open(this.href,'+quote+quote+','+quote+'resizable=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=950,height=680,status/'+quote+'); return false">view the Email Setup instructions in the BlackBerry Storm2 9550 smartphone demo</a> or follow the instructions below:</p><ol class="noTopMargin"><li>From the home screen, go to Setup.</li> <li>Click <strong>Setup Wizard</strong>. </li> <li>Click <strong>Email Setup</strong>. </li> <li>Read the End User Agreement. Select <strong>Yes</strong> and click <strong>I agree</strong>. </li> <li>In the setup wizard, on the Email Accounts screen, select the <strong>Add an existing email account option </strong>by clicking <strong>Add</strong>. </li> <li>On the Email Setup screen, select your email service provider and click <strong>Next</strong>. If you don&rsquo;t see your email service provider listed, select <strong>Other</strong> and click <strong>Next</strong>. </li> <li>Enter your email address and password information, and select <strong>Next</strong>. </li> <li>You&rsquo;ve successfully added an email address to your smartphone. Click <strong>Ok</strong>. </li> <li>To add another email address to your smartphone, repeat steps 5&ndash;8. To exit the email setup wizard, click <strong>Close</strong>. </li></ol><div class="clear"></div>';


var stormHTML = '<style type="text/css"><!-- #emailInstructions { width:400px;} --></style><p>To configure your email accounts directly from your BlackBerry smartphone, <a href="http://demos.blackberry.com/emailsetup_st/na/us/gen/" onclick="window.open(this.href,'+quote+quote+','+quote+'resizable=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=950,height=680,status/'+quote+'); return false">view the BlackBerry smartphone email setup demo</a> or follow the instructions below:</p><ol class="noTopMargin"><li>From the home screen, go to Setup.</li> <li>Click <strong>Setup Wizard</strong>. </li> <li>Click <strong>Email Setup</strong>. </li> <li>Read the End User Agreement. Select <strong>Yes</strong> and click <strong>I agree</strong>. </li> <li>In the setup wizard, on the Email Accounts screen, select the <strong>Add an existing email account option </strong>by clicking <strong>Add</strong>. </li> <li>On the Email Setup screen, select your email service provider and click <strong>Next</strong>. If you don&rsquo;t see your email service provider listed, select <strong>Other</strong> and click <strong>Next</strong>. </li> <li>Enter your email address and password information, and select <strong>Next</strong>. </li> <li>You&rsquo;ve successfully added an email address to your smartphone. Click <strong>Ok</strong>. </li> <li>To add another email address to your smartphone, repeat steps 5&ndash;8. To exit the email setup wizard, click <strong>Close</strong>. </li></ol><div class="clear"></div>';


var otherHTML= '<style type="text/css"><!-- #emailInstructions { width:400px;} --></style><p>To configure your email accounts directly from your BlackBerry smartphone, <a href="http://demos.blackberry.com/emailsetup/na/us/gen/" onclick="window.open(this.href,'+quote+quote+','+quote+'resizable=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=950,height=680,status/'+quote+'); return false">view the email setup demo</a> or follow the instructions below:</p><ol class="noTopMargin"><li>To get to the email setup site: <ul> 	<li>If there&rsquo;s an Email Setup option on your smartphone&rsquo;s home screen, click it. </li> 	<li>Alternately, there&rsquo;s a setup wizard on the smartphone that will either start automatically the first time you turn on your smartphone or be featured as an icon on your smartphone&rsquo;s home screen. When you reach the email setup screen of the setup wizard, select <strong>I want to create or add an email address</strong>. </li>	</ul>  </li> <li>Click <strong>Next</strong>. </li> <li>To accept the terms of the license agreement, select the <strong>I have read and understand the End User Agreement option or check box</strong>. Click <strong>I Agree</strong>. </li> <li>To integrate an email address you already use, enter your full email address and the password for that email account. </li> <li>Click <strong>Next</strong>. The site will confirm if the email address has been successfully added. Click <strong>OK</strong>. </li> <li>If you want to create a new email address for your BlackBerry smartphone (e.g. username@carrier.blackberry.com), you&rsquo;ll need to do one of the following, depending on your smartphone: <ul>	<li>Click <strong>Create a BlackBerry email address</strong>.</li></ul><p>OR</p><ul>	<li>Click <strong>I would like to create a new BlackBerry email address</strong>.</li></ul>  Then, type the user name you want to appear before the @ sign in your new BlackBerry email address. Click <strong>Next</strong>, followed by <strong>OK</strong>.</li> <li>To return to the setup wizard, click <strong>Log Out</strong> or <strong>Close</strong>. </li></ol>';



function deviceSelect(selection){
	
	tourImage="bb101_tour_small.jpg";
	curve8900Image="8900-screen.jpg";
	curve8520Image="8520-screen.jpg";
	curve8530Image="8530-screen.jpg";
	bold9700Image="Bold9700.jpg";
	storm2Image="Storm2.jpg";
	stormImage="Storm.jpg";
	boldImage="Bold.jpg";
	curveImage="8300-screen.jpg";
	pearlImage="pearl8100.jpg";
	pearlflipImage="pearl8200.jpg";
	bb8800Image="8800.jpg";
	bb9100Image="bb9100.jpg";
	bb9650Image="bb9650.jpg";
	
	
	switch (selection.value) {	
case "Tour":
	deviceImage=tourImage;
	codeHTML='<div class="emailDeviceImage"><img src="'+deviceImage+'" alt="Image of the BlackBerry Tour 9630 smartphone" /></div>'+tourHTML;	
	break;

case "Curve8520":
	deviceImage=curve8520Image;
	codeHTML='<div class="emailDeviceImage"><img src="'+deviceImage+'" alt="Image of the BlackBerry Curve 8520 smartphone" /></div>'+curve8520HTML;	
	break;

case "Curve8530":
	deviceImage=curve8530Image;
	codeHTML='<div class="emailDeviceImage"><img src="'+deviceImage+'" alt="Image of the BlackBerry Curve 8530 smartphone" /></div>'+curve8530HTML;	
	break;
	
case "Bold9700":
	deviceImage=bold9700Image;
	codeHTML='<div class="emailDeviceImage"><img src="'+deviceImage+'" alt="Image of the BlackBerry Bold 9700 smartphone" /></div>'+bold9700HTML;	
	break;
	
case "Bold9650":
	deviceImage=bb9650Image;
	codeHTML='<div class="emailDeviceImage"><img src="'+deviceImage+'" alt="Image of the BlackBerry Bold 9650 smartphone" /></div>'+bold9650HTML;	
	break;
	
case "Pearl9100":
	deviceImage=bb9100Image;
	codeHTML='<div class="emailDeviceImage"><img src="'+deviceImage+'" alt="Image of the BlackBerry Pearl 9100 smartphone" /></div>'+pearl9100HTML;	
	break;

case "Curve8900":
	deviceImage=curve8900Image;
	codeHTML='<div class="emailDeviceImage"><img src="'+deviceImage+'" alt="Image of the BlackBerry Curve 8900 smartphone" /></div>'+otherHTML;	
	break;


case "Storm2":
	deviceImage=storm2Image;
	codeHTML='<div class="emailDeviceImage"><img src="'+deviceImage+'" alt="Image of the BlackBerry Storm2 9550 smartphone" /></div>'+storm2HTML;	
	break;
	
case "Storm":
	deviceImage=stormImage;
	codeHTML='<div class="emailDeviceImage"><img src="'+deviceImage+'" alt="Image of the BlackBerry Storm 9530 smartphone" /></div>'+stormHTML;	
	break;
	
case "Bold":
	deviceImage=boldImage;
	codeHTML='<div class="emailDeviceImage"><img src="'+deviceImage+'" alt="Image of the BlackBerry Bold 9000 smartphone" /></div>'+boldHTML;	
	break;
	
case "Curve":
	deviceImage=curveImage;
	codeHTML='<div class="emailDeviceImage"><img src="'+deviceImage+'" alt="Image of a BlackBerry Curve 8300 Series smartphone" /></div>'+otherHTML;	
	break;
	
case "Pearl":
	deviceImage=pearlImage;
	codeHTML='<div class="emailDeviceImage"><img src="'+deviceImage+'" alt="Image of a BlackBerry Pearl 8100 Series smartphone" /></div>'+otherHTML;	
	break;
	
case "PearlFlip":
	deviceImage=pearlflipImage;
	codeHTML='<div class="emailDeviceImage"><img src="'+deviceImage+'" alt="Image of a BlackBerry Pearl Flip 8200 Series smartphone" /></div>'+otherHTML;	
	break;
	
case "8800":
	deviceImage=bb8800Image;
	codeHTML='<div class="emailDeviceImage"><img src="'+deviceImage+'" alt="Image of a BlackBerry 8800 Series smartphone" /></div>'+otherHTML;	
	break;
	
case "Other":
	codeHTML=otherHTML;
	break;
	
	  default:
	codeHTML='';	
	
	}

	document.getElementById("emailInstructions").innerHTML = codeHTML;
 }
