<!--// browser variables

	function openWin(URLtoOpen, windowName, windowFeatures) {
		newWindow=window.open(URLtoOpen, windowName, windowFeatures);
	}
	// Prefs window always opens the same size, position.
	function openPrefsWin(sURL) {
		var popup = window.open(sURL, 'blank','width=720,height=540,location=no,resizable=no,toolbar=no,scrollbars=no');
	}

	function addCollection(url) {
		var popup = window.open(url, 'blank','width=250,height=348,location=no,resizable=no,toolbar=no,scrollbars=no');
	}

	// Musicvine window
	function openMusicvine(url) {
		var popup = window.open(url, 'Musicvine','width=800,height=600,location=no,resizable=no,toolbar=no,scrollbars=no');
	}

	function openSurveyWin(URL) {
    var popup = window.open(URL, 'pollWin','height=860,width=760,location=no,resizable=no,toolbar=no,scrollbars=yes');
	}

	function track_contact(user,contact_username, mode, force_reload ) {
  	if('undefined' == typeof force_reload) {force_reload = true;}
    	addcontactpop(user, contact_username, mode );

		if ( force_reload ) {
    	// reload the current page with the updated data.
      window.location.reload( force_reload );
    }
	}

	function addcontactpop(user,contact_username,mode) {
  	if (location.href.indexOf("/mp3/www/") != -1) {
    	var prefix = '/mp3/www'
    } else {
    	var prefix = '';
    }
    popupWin = window.open(prefix+'/users/'+user+'/directory.php?bd=nh&popup=true&action=' + mode + '&user=' + contact_username, 'contactpop', 'width=260,height=260,resizable=1,scrollbars=0');
  }

// -->
