﻿function signIn()
{
		//$("embed").hide();
		//$("object").hide();
		var loginUrl =  "http://bookstore.lakewood.cc/signin.aspx?ReturnURL=" + location.host + location.pathname;
		window.location.href = loginUrl;
		/*
     	$.nyroModalManual({
			url: loginUrl, width:'480', height:'300', 
			endRemove: function( elts, settings){
				$("embed").show();
				$("object").show();
			}
		});
		*/
}
function popUrl( purl, pheight, pwidth)
{
		$("embed").hide();
		$("object").hide();
	
     	$.nyroModalManual({
			url: purl, width:pwidth, height:pheight, 
			endRemove: function( elts, settings){
				$("embed").show();
				$("object").show();
			}
		});
}

function signOut()
{
		$("embed").hide();
		$("object").hide();

		var logoutUrl = "http://www.joelosteen.com/_layouts/jsignout.aspx?ReturnURL=http://english.lakewood.cc" //+ location.pathname; 
		/*
     	$.nyroModalManual({
			url: logoutUrl, width:'480', height:'300', 
			endRemove: function( elts, settings){
				$("embed").show();
				$("object").show();
			}
		});*/
		// changing this until we get the signout box sans-skin
		window.location.href= logoutUrl;
}