var friends = null;

function launchIC(memberID, destinationMemberID)
	{
	var popupWindowTest = window.open('ic.asp?strDestinationMemberID=' + destinationMemberID, 'ICWindow_' + memberID + '_' + destinationMemberID, 'width=360,height=400,toolbar=0,directories=0,menubar=0,status=0,location=0,scrollbars=0,resizable=0');
	if( popupWindowTest == null )
	{
		alert( "Your popup blocker stopped an Instant Message window from opening\nPlease disable your popup blocker if you wish to receive invitations in the future" )
	}
	}

function openWindow(actiontype) 
	{
	    if (!window.friends) {
        // has not yet been defined

        friends = window.open('friendslistframe.asp?Action=' + actiontype, 'friendswin', 'toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0,resizable=0,width=325,height=500,left=20,top=20');
		if (!window.friends){
		  alert("The Lifestyle Lounge friendslist was blocked from opening.  Please allow popups from the lifestylelounge.com on your popup blocker.  Popups are required in order to send and receive instant messages and live video cam with other members.");
		}
    }
    else {
        // has been defined
        if (!friends.closed) {
            // still open
            friends.focus();
        }
        else {

           friends = window.open('friendslistframe.asp?Action=' + actiontype, 'friendswin', 'toolbars=0,scrollbars=0,location=0,statusbars=1,menubars=0,resizable=0,width=325,height=500,left=20,top=20');
		if (!window.friends){
		  alert("The Lifestyle Lounge friendslist was blocked from opening.  Please allow popups from the lifestylelounge.com on your popup blocker.  Popups are required in order to send and receive instant messages and live video cam with other members.");
		}

        }
    }
}

function popWin(url)	{
	var popWin = open(url,"windowName",'nostatus,resizable=no,width=640,height=400,top=100,left=100');
	}

function popFriendsWin(url)	{
	var FriendsWin = window.open(url, 'myfriends', 'toolbars=0,scrollbars=1,location=0,statusbars=0,menubars=0,resizable=1,width=290,height=500,left=50,top=50');
}

function popWinsizeable(url,width,height)	{
	var myWindow = window.open(url,"windowRef","width=" + width + ",height=" + height+",nostatus,resizable=no,top=20,left=20,screenX=20,screenY=20");
	}

function popWinsizeablescroll(url,width,height)	{
	var myWindow = window.open(url,"windowRef","width=" + width + ",height=" + height+",scrollbars=1,nostatus,resizable=no,top=20,left=20,screenX=20,screenY=20");
	}

function load(file,target) {
    if (target != '')
        target.window.location.href = file;
    else
        window.location.href = file;
}

function myVoid() {;}

function TextColor(color)
{
if (navigator.appName.indexOf("Explorer") != -1) 
{
// we have IE, check if version > 2
var newNum=navigator.appVersion.charAt(0);
     if ( (newNum != '1') && (newNum != '2') )
	{event.srcElement.style.color = color;}
}
}

var message="Sorry, you may not right click on this page...  All photos are copyrighted by their owner, or the Lifestyle Lounge."; 
function rightclick(b) { 
if (navigator.appName == 'Netscape' && (b.which == 3 || b.which == 2))
{ alert(message); return false;}
 
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
{ alert(message); return false;
}
return true;
} document.onmousedown=rightclick;
if (document.layers) window.captureEvents(Event.MOUSEDOWN); window.onmousedown=rightclick;

function ProfileOpen(URL) 
{
profilewin = window.open(URL, 'profilewin', 'toolbar=1,scrollbars=1,location=0,statusbars=0,menubars=0,resizable=1,width=785,height=565,left=20,top=20');
}
function cancelEvent() 
{
   window.event.returnValue = false;
} 