function getDisplayFriendID() { return MySpace.ClientContext.DisplayFriendId; }

function writeDisclaimer() { 
	
	var legalContainer = document.getElementById('disclaimer');

	legalContainer.innerHTML = '<p>PLAN B&reg; IS INTENDED TO PREVENT PREGNANCY AFTER KNOWN OR SUSPECTED CONTRACEPTIVE FAILURE OR UNPROTECTED INTERCOURSE. PLAN B&reg; DOES NOT PROTECT AGAINST HIV AND OTHER SEXUALLY TRANSMITTED DISEASES (STD\'s).</p><p>Plan B&reg; isn\'t effective if you\'re already pregnant and it won\'t terminate an existing pregnancy. Side effects may include nausea, abdominal pain, fatigue, headache, changes in your period, dizziness, and breast tenderness. If your period is more than a week late, you may be pregnant. You should not take Plan B&reg; if you are already pregnant. Plan B&reg; should not be used as a routine birth control, as it is not as effective. If you have severe abdominal pain, you may have an ectopic pregnancy, and should get immediate medical help.</p><p>You are encouraged to report negative side effects of prescription drugs to the FDA at <a href="http://www.fda.gov/medwatch" target="_blank">fda.gov/medwatch</a> or call 1-800-FDA-1088.</p><p><a href="http://www.go2planb.com/pdf/PlanBPI.pdf" target="_blank">Click here for prescribing info.</a>.</p><p>PLAN B&reg; is a registered trademark of Woman\'s Capital Corporation, a subsidiary of Duramed Pharmaceuticals, Inc.</p>'; 

}

//Open Popup

function openWindow(URL, windowName, windowFeatures){
	newWindow = window.open(URL, windowName, windowFeatures)
	}


//LIGHTBOX Code

var win = null;
var index = 1;
function openDialog(id,w,h) {
    Dialog.alert($(id).innerHTML, {className: "alphacube",  width:w, height:h, id: "d" + index})
    index++;
	//document.getElementById('videoPlayer').style.display = 'none';
}

function lastDialog(id) {
    Dialog.confirm($(id).innerHTML, {className: "alphacube",  width:250, okLabel: "Close All", ok: closeAllModalWindows})
}

function closeAllModalWindows() {
    Windows.closeAllModalWindows();
    //return true;
	//document.getElementById('videoPlayer').style.display = 'inline';
}


//Accordion JS
//  accordian script load all content on load
Event.observe(window, 'load', loadAccordions, false);	

//	Set up all accordions
function loadAccordions() {
		
	var bottomAccordion = new accordion('vertical_container');
			
	var nestedVerticalAccordion = new accordion('vertical_container', {
		classNames : {
		toggle : 'vertical_accordion_toggle',
		toggleActive : 'vertical_accordion_toggle_active',
		content : 'vertical_accordion_content'
		}
	});
			
	// Open first one
	bottomAccordion.activate($$('#vertical_container .accordion_toggle')[0]);
}