// PRINT FUNCTION

function printIt(){  
    window.print();  
} 

// look for any elements with class SavedP and highlight them
Event.observe(window, "load", function(){
		$A(document.getElementsByClassName('SavedP')).each(function(elem){
				new Effect.Highlight(elem, {duration: 1, startcolor: '#FDB825' });
			});
		}, false);


// load movies
function openWin(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=auto,resizable=no,height=500,width=600");
}


// external site link
function confirmExit(theLocation, theMessage) {
	if(!theMessage || typeof(theMessage) == 'undefined')
		theMessage = "You are now leaving the lapband.com website.\n\nClick 'OK' to continue or 'Cancel' to remain on this site.";

    if (confirm(theMessage)) {
      window.open(theLocation);
    }
}

function Set_Cookie( name, value, expires ) 
{
	// set time, it's in milliseconds
	var today = new Date();
	today.setTime( today.getTime() );

	/*
	if the expires variable is set, make the correct 
	expires time, the current script below will set 
	it for x number of days, to make it for hours, 
	delete * 24, for minutes, delete * 60 * 24
	*/
	if ( expires )
	{
	expires = expires * 1000 * 60 * 60 * 24;
	}
	var expires_date = new Date( today.getTime() + (expires) );

	document.cookie = name + "=" +escape( value ) +
		( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" );
}


function Get_Cookie(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    { 
    c_start=c_start + c_name.length+1; 
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    } 
  }
return "";
}




function openCommercial(page)
{
	window.open(page,"commercial","toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,height=240,width=320");
}






// FLASH NAVIGATION

function n2()
{ document.location = siteRoot() + 'get_informed/';
}
function n21()
{ document.location = siteRoot() + 'get_informed/about_lapband/';
}
function n211()
{ document.location = siteRoot() + 'get_informed/about_lapband/how_it_works/';
}
function n212()
{ document.location = siteRoot() + 'get_informed/about_lapband/right_for_me/';
}
function n213()
{ document.location = siteRoot() + 'get_informed/about_lapband/risk_information/';
}
function n214()
{ document.location = siteRoot() + 'get_informed/about_lapband/total_care/';
}
function n215()
{ document.location = siteRoot() + 'get_informed/about_lapband/faqs/';
}
function n216()
{ document.location = siteRoot() + 'get_informed/about_lapband/request_info/';
}
function n22()
{ document.location = siteRoot() + 'get_informed/obesity_weight_loss/';
}
function n221()
{ document.location = siteRoot() + 'get_informed/obesity_weight_loss/obesity_and_your_health/';
}
function n222()
{ document.location = siteRoot() + 'get_informed/obesity_weight_loss/options/';
}
function n223()
{ document.location = siteRoot() + 'get_informed/obesity_weight_loss/comparison/';
}
function n224()
{ document.location = siteRoot() + 'get_informed/obesity_weight_loss/supporting/';
}
function n23()
{ document.location = siteRoot() + 'get_informed/costs_payment/';
}
function n231()
{ document.location = siteRoot() + 'get_informed/costs_payment/costs/';
}
function n232()
{ document.location = siteRoot() + 'get_informed/costs_payment/payment_options/';
}
function n233()
{ document.location = siteRoot() + 'get_informed/costs_payment/insurance/';
}
function n24()
{ document.location = siteRoot() + 'get_informed/attend_seminar/';
}
function n241()
{ document.location = siteRoot() + 'get_informed/attend_seminar/find_seminar/';
}
function n25()
{ document.location = siteRoot() + 'get_informed/consult/';
}
function n251()
{ document.location = siteRoot() + 'get_informed/consult/discussing/';
}
function n252()
{ document.location = siteRoot() + 'get_informed/consult/what_to_look_for/';
}
function n253()
{ document.location = siteRoot() + 'get_informed/consult/questions_to_ask/';
}
function n254()
{ document.location = siteRoot() + 'get_informed/consult/find/';
}
function n3()
{ document.location = siteRoot() + 'prepare_for_surgery/';
}
function n31()
{ document.location = siteRoot() + 'prepare_for_surgery/about_the_surgery/';
}
function n311()
{ document.location = siteRoot() + 'prepare_for_surgery/about_the_surgery/lapband_system_procedure/';
}
function n312()
{ document.location = siteRoot() + 'prepare_for_surgery/about_the_surgery/surgery_faqs/';
}
function n313()
{ document.location = siteRoot() + 'prepare_for_surgery/about_the_surgery/prep_checklist/';
}
function n32()
{ document.location = siteRoot() + 'prepare_for_surgery/prep_checklist/';
}
function n33()
{ document.location = siteRoot() + 'prepare_for_surgery/on_surgery_day/';
}
function n34()
{ document.location = siteRoot() + 'prepare_for_surgery/what_to_expect_after_surgery/';
}
function n4()
{ document.location = siteRoot() + 'life_after_surgery/';
}
function n41()
{ document.location = siteRoot() + 'life_after_surgery/life_after_surgery/';
}
function n411()
{ document.location = siteRoot() + 'life_after_surgery/life_after_surgery/first_few_weeks_after_surgery/';
}
function n412()
{ document.location = siteRoot() + 'life_after_surgery/life_after_surgery/first_year_after_surgery/';
}
function n413()
{ document.location = siteRoot() + 'life_after_surgery/life_after_surgery/post_surgery_faqs/';
}
function n42()
{ document.location = siteRoot() + 'life_after_surgery/optimizing_your_weight_loss/';
}
function n43()
{ document.location = siteRoot() + 'life_after_surgery/continued_well_being/';
}
function n44()
{ document.location = siteRoot() + 'life_after_surgery/complications_who_to_call/';
}
function n45()
{ document.location = siteRoot() + 'life_after_surgery/supporting_a_loved_one/';
}
function n5()
{ document.location = siteRoot() + 'success_stories/';
}
function n51()
{ document.location = siteRoot() + 'success_stories/';
}
function n52()
{ document.location = siteRoot() + 'success_stories/edit/';
}
function n6()
{ document.location = siteRoot() + 'news_resources/';
}
function n61()
{ document.location = siteRoot() + 'news_resources/news/';
}
function n62()
{ document.location = siteRoot() + 'news_resources/newsletter/';
}
function n621()
{ document.location = siteRoot() + 'news_resources/newsletter/';
}
function n63()
{ document.location = siteRoot() + 'news_resources/internet_resources/';
}
