function centered(whatPrize, windowSize)
	{
	var sw = 640, sh = 480;
	sw = screen.availWidth; sh = screen.availHeight;
	
	var popW = 410, popH = 500;
	
	var windowName="centered";
	
	// default chrome - scrollbars only
	var otherFeatures = ",menubar=0,scrollbars=1,resizable=0,status=0,directories=0,location=0,toolbar=0";

	// no chrome - nothing but bux
	if (windowSize=="no") { var otherFeatures = ",menubar=0,scrollbars=0,resizable=0,status=0,directories=0,location=0,toolbar=0"; }

	// some chrome - season to taste
	if (windowSize == "some") { var otherFeatures = ",menubar=1,scrollbars=1,resizable=0,status=0,directories=0,location=0,toolbar=1"; }

	// all chrome - new window, but controlled size and centered.
	if (windowSize=="all")
		{
		popW = 800;
		popH = 460;
		otherFeatures = ",menubar=1,scrollbars=1,resizable=1,status=1,directories=1,location=1,toolbar=1";
		}

	var topPos = ((sh-popH)/2)-80, leftPos = ((sw-popW)/2-15);
	window.open( (whatPrize),(windowName),"width="+popW+",height="+popH+",top="+topPos+",left="+leftPos+otherFeatures);
	}

function openParent(url)
	{ window.opener.location = url; }

function closeWin()
	{ top.window.close(); }

/*
// regular pop up
<a href="#" onclick="centered(this.href); return false;" target="_blank">Link</a>

// link that closes pop up and opens new info in parent
<a href="#" onclick="openParent(this.href); closeWin(); return false;" target="_blank">Link</a>
*/

if (document.images)
	{

	button_close = new Image();
	button_close.src = "images/splash/button_close.gif";

	}


function box()
	{
	var s = (document.getElementById('popContainer').style.display =="block") ? "none" : "block";
	var newHTML = (document.getElementById('popContainer').style.display =="block") ? "" : getTip();
	document.getElementById('popInnerContainer').innerHTML  =  newHTML;
	document.getElementById('popContainer').style.display=s;
	document.getElementById('popInnerContainer').style.display=s;
	}

function getTip()
	{
	var tip = '<div class="buttonClose"><a href="#" onclick="box(); return false;"><img src="images/splash/button_close.gif" alt="" width="51" height="13" border="0" /></a></div>';
	tip += "<div class='h2'>Real Simple/MasterCard Mobile Program</div>";
	tip +="<p>Terms and Conditions Page </p>";
	tip +="<p>1. Your carrier's standard messaging rates will apply to your entry or submission message, our confirmation, and all subsequent SMS correspondence. Other charges may apply. All charges are billed by and payable to your mobile service provider.</p>";
	tip +="<p>2. We will not be liable for any delays in the receipt of any SMS messages as delivery is subject to effective transmission from your network operator. SMS message services are provided on an AS IS basis.</p>";
	tip +="<p>3. Data obtained from you in connection with this SMS service may include your cell phone number, your carrier's name, and the date, time and content of your messages. We may use this information to contact you and to provide the services you request from us.</p>";
	tip +="<p>4. You can unsubscribe at any time by texting 'STOP' to 58585. You will receive a maximum of 1 message per day. By subscribing, you consent to receiving, from time to time, further text messages from us which may include offers from us, our affiliates and partners.</p>";
	tip +="<p>5. The service is available on these carriers: AT&amp;T, Sprint, Nextel, Boost, T-Mobile&reg;, Verizon, Alltel, Cellular One and Midwest Wireless.</p>";
	tip +="<p>6. If you have any questions, text 'HELP' to 58585, or contact us at 800-971-2271 or <a href='mailto:care@blinko.com'>care@blinko.com</a>. </p>";
	tip +="<p>Buongiorno Marketing Services US Inc., 225 West 34th Street, Suite 300, New York, NY 10122</p>";

	/* tip +="<p>Buongiorno Marketing Services US Inc., 225 West 34th Street, Suite 300, New York, NY 10122</p>"; */

	return tip;
	}
