rem: return "http: 
add: return this.url + "?"; 
context: function Asset() {		//properties        this.url = "";        this.rank = 1;        this.labels = new Array();        this.assetId = "";		this.type = "";		this.parent = null;        this.title = "";        this.size = 0;        this.lastUpdate = "";        this.icon = "";        this.div = null;        this.dragEnabled = true;        this.allowMultiSelect = true;        this.isParent=false;		//---------Method Implementations -------------this.registerEvents = function() {		    //if there is a div associated with the asset, register event handlers	    if (this.div) {		this.div.ondblclick=Asset_doubleClick;			this.div.onmousedown=Asset_mouseDown;			this.div.oncontextmenu=Asset_rightClick;	    }}//Moving to a new parent (move)//----------------------//url + ?||& + func=setParent&assetId= + assetId 		this.setParent = function(asset) {	//parentURL	location.href = this.getWrappedURL() + "func=setParent&assetId="+ asset.assetId;		}				//Set the rank of an asset amongst its siblings (move)//---------------------------------------------//url + ?||& + func=setRank&rank= + newRankthis.setRank = function(rank) {	//to child	location.href = this.getWrappedURL() + "func=setRank&rank="+ rank;		}//url + ?||& + func=editTree 				this.editTree = function() {		//parentURL	location.href = this.getWrappedURL() + "func=editTree";		}//Edit the properties of an asset (edit)//-------------------------------//url + ?||& + func=editthis.edit = function() {	location.href = this.getWrappedURL() + "func=edit&proceed=manageAssets";		}//Edit the properties of an asset (edit)//-------------------------------//url + ?||& + func=editthis.go = function() {	location.href = this.getWrappedURL() + "func=manageAssets";		}//View an asset (view)//-------------//url + ?||& + func=viewthis.view = function() {	location.href = this.getWrappedURL();		}//returns a string that returns a reference to the asset when evaledthis.evalReference = function() {	return "document.getElementById('" + this.div.id + "').asset";}//displays the right click context menuthis.getContextMenu = function () {    var arr = new Array();        if (AssetManager_getManager().display.overObjects.length == 1) {    	arr[arr.length] = new ContextMenuItem(this.labels["go"],"javascript:" + this.evalReference() + ".go()");   	 	arr[arr.length] = new ContextMenuItem("<img src='/extras/assetManager/breakerLine.gif'>","");	    arr[arr.length] = new ContextMenuItem(this.labels["view"],"javascript:" + this.evalReference() + ".view()");    	arr[arr.length] = new ContextMenuItem(this.labels["edit"],"javascript:" + this.evalReference() + ".edit()");    }    	arr[arr.length] = new ContextMenuItem(this.labels["delete"],"javascript:" + this.evalReference() + ".remove()");         	arr[arr.length] = new ContextMenuItem("<img src='/extras/assetManager/breakerLine.gif'>","");  	arr[arr.length] = new ContextMenuItem(this.labels["cut"],"javascript:" + this.evalReference() + ".cut()");           	arr[arr.length] = new ContextMenuItem(this.labels["copy"],"javascript:" + this.evalReference() + ".copy()");       	if (AssetManager_getManager().display.overObjects.length ==1) {    	arr[arr.length] = new ContextMenuItem("<img src='/extras/assetManager/breakerLine.gif'>","");    	arr[arr.length] = new ContextMenuItem(this.labels["editTree"],"javascript:" + this.evalReference() + ".editTree()");        	}    	return arr;    }this.select= function() {	this.div.className="am-grid-row-over";				}this.deselect = function() {	this.div.className="am-grid-row";				}//Copy an asset to the clipboard (copy)//------------------------------//url + ?||& + func=copythis.copy = function() {	location.href = this.parent.getWrappedURL() + "func=copyList"  + AssetManager_getManager().getSelectedAssetIds();		}//Cut an asset to the clipboard (cut)//-----------------------------//url + ?||& + func=cutthis.cut = function() {	location.href = this.parent.getWrappedURL() + "func=cutList"  + AssetManager_getManager().getSelectedAssetIds();	}//Delete an asset. (delete)//----------------//url + ?||& + func=delete (do a javascript confirm on this)this.remove = function() {		if (window.confirm("Are you sure you want to delete this asset?  Click OK to continue, or Cancel if you made a mistake.")) {										location.href = this.parent.getWrappedURL() + "func=deleteList"  + AssetManager_getManager().getSelectedAssetIds();			}}//adds http, the hostname, and a trailing parameter delimiter to the urlthis.getWrappedURL = function() {	if (this.url.indexOf("?") == -1) {		return "http://" + AssetManager_getManager().tools.getHostName(location.href) + this.url + "?";	}else {		return "http://" + AssetManager_getManager().tools.getHostName(location.href) + this.url + "&";    }}}//end object		
meta: 5314	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5314/504c88e293497791f0f6f33481414f42732189da/Asset.js/buggy/www/extras/assetManager/Asset.js