	//if (window != top){
	//	top.location.href = window.location.href;
	//}
	function popFullSize(url,width,height) {
	  popupWin = window.open(url,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=' + width + ',height=' + height);
	}

	function popWindow(url,width,height) {
	  popupWin = window.open(url,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=' + width + ',height=' + height);
			  
	 // window.open(url, '_blank',width=' + width + ',height=' + height);
	}

	function popWindowNS(url,width,height) {
	  popupWin = window.open(url,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=' + width + ',height=' + height);
			  
	 // window.open(url, '_blank',width=' + width + ',height=' + height);
	}	

	function addFace(txtFace) {
		document.PostTopic.Message.value = document.PostTopic.Message.value + txtFace;
	}

	/* function forumConfirm(txtDisclaim,strURL) {
		if (confirm(txtDisclaim)) {              
			window.location = strURL
			}
	} */

	// START IDENTIFY NAVIGATOR
		var bName = navigator.appName;
		var bVer = parseInt(navigator.appVersion);
		var bPlat = navigator.appVersion;
		var NS2 = (bName == "Netscape" && bVer == 2);
		var nojava = ((bName.indexOf("Explorer") != -1) && (bPlat.indexOf("Win") == -1) && (bVer == 3));
	// END IDENTIFY NAVIGATOR



	// Show an object
	var arrowoff = new Image();
	arrowoff.src = "/images/graphics/marrowoff.gif";
	var arrowon = new Image();
	arrowon.src = "/images/graphics/marrowon.gif";

	function arrowOver(area) {
		document[area].src = arrowon.src;
	}
	function arrowOut(area) {
		document[area].src = arrowoff.src;
	}
			
	function cb(thetable,col){
		if (!thetable.contains(event.fromElement)) {
			thetable.bgColor = col;
			thetable.style.cursor = "hand";  
		}
		else if (!thetable.contains(event.toElement)) {
			thetable.bgColor = col;
		}
	}
			
	// function:	stopMULTIPLEsubmit
	// parameters:	a form object
	// returns:		nothing
	// abstract:	This function disables the "submit" button once the
	//				button is pressed to disallow multiple submissions:
	//				<form method="POST" onSubmit="stopMULTIPLEsubmit(this)" id=form1 name=form1>
	function stopMULTIPLEsubmit(theform){
		if (document.all||document.getElementById){
		//find the "submit" button
		for (i=0;i<theform.length;i++){
			var tempobj=theform.elements[i]
			if(tempobj.type.toLowerCase()=="submit")
			//disable button
			tempobj.disabled=true
			}
		}
	}	

function openMe(){
  if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
    document.all.civLayer.style.visibility = "visible";
    document.all.civLayer.style.width = available_width;
	document.all.civLayer.style.height = available_height/2;
  }
}
 
function runCloseMe(){
  document.all.civLayer.style.visibility = "hidden";
}
 
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function mumbosnail_DoFSCommand(command, args) {
  var mumbosnailObj = InternetExplorer ? mumbosnail : document.mumbosnail;
 if (command == "theCloseMe") {
  runCloseMe();
 }
}
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
 document.write('<SCRIPT LANGUAGE=VBScript\> \n');
 document.write('on error resume next \n');
 document.write('Sub mumbosnail_FSCommand(ByVal command, ByVal args)\n');
 document.write('  call mumbosnail_DoFSCommand(command, args)\n');
 document.write('end sub\n');
 document.write('</SCRIPT\> \n');
}

// Preload the Navigation Icons
function CV_NavPreload() {
	MM_preloadImages('/images/layout/nav_auctions_on.gif');
	MM_preloadImages('/images/layout/nav_editor_on.gif');
	MM_preloadImages('/images/layout/nav_events_on.gif');
	MM_preloadImages('/images/layout/nav_forum_on.gif');
	MM_preloadImages('/images/layout/nav_listings_on.gif');
	MM_preloadImages('/images/layout/nav_members_on.gif');
	MM_preloadImages('/images/layout/nav_movies_on.gif');
	MM_preloadImages('/images/layout/nav_photos_on.gif');
	MM_preloadImages('/images/layout/nav_poker_on.gif');
	MM_preloadImages('/images/layout/nav_tickets_on.gif');
	MM_preloadImages('/images/layout/nav_travel_on.gif');
	MM_preloadImages('/images/layout/nav_vip_on.gif');
	MM_preloadImages('/images/layout/nav_voting_on.gif');
}
// Dreamweaver Functions

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v='hide')?'none':v; }
    obj.display=v; }
}

function getElementsByClass(searchClass,node,tag) {
  var classElements = new Array();
  if ( node == null )
    node = document;
  if ( tag == null )
    tag = '*';
  var els = node.getElementsByTagName(tag);
  var elsLen = els.length;
  var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
  for (i = 0, j = 0; i < elsLen; i++) {
    if ( pattern.test(els[i].className) ) {
      classElements[j] = els[i];
      j++;
    }
  }
  return classElements;
}

// If you have a bunch of items with class=group-item
// this will hide all of them, except the one with id=id
// Written by Jeremy Hubert - Aug 11, 2006
function openOneOfGroup(id) {
	x = getElementsByClass('group-item')
	for (var i=0;i<x.length;i++)
	{
		if (x[i].id == id)
			Effect.Appear(x[i].id)
		else
			Element.hide(x[i].id)
	}
    return false;
}

// Profile Options
function openProfile(user)
{
	window.opener.document.location.href='/members/view.asp?id=' + user;
	top.close();
}

function closeLink(url)
{
	window.opener.document.location.href=url;
	top.close();
}
function addFriend(name,id) {
	if (confirm('Are you sure you want to add ' + name + ' to your friends?')) {
		window.location.href='/myvibes/addfriend.asp?id=' + id;
	}
}
function removeFriend(name,id) {
	if (confirm('Are you sure you want to remove ' + name + ' from your friends?')) {
		window.location.href='/myvibes/removefriend.asp?id=' + id;
	}
}
function addBlock(name,id) {
	if (confirm('Are you sure you want to block ' + name + '?')) {
		window.location.href='/myvibes/blockednew.asp?mode=add&id=' + id;
	}
}
function removeBlock(name,id) {
	if (confirm('Are you sure you want to remove ' + name + ' from your blocked?')) {
		window.location.href='/myvibes/blockednew.asp?mode=remove&id=' + id;
	}
}