	var browser = function(elemGuid, cid){
		this.instID = 'editPointBrowser.' + parseInt(Math.random()*1000000);
		this.elemID = elemGuid;
		this.cid = cid; // not used (yet)
		this.init = false;
		this.page = 0;
	} 
	
	browser = browser.extendsFrom(wps.base);
	
	browser.prototype.next = function(){
		if (this.page == 0){
			sendEvent('playitem',(1));
		}else{
			sendEvent('playitem',((this.page/2) + 1) );
		}
		//loadFile({file:'upload/Home/' + (this.page  + 1) + '.flv'});
		this.hide(this.contentObjects[this.page]);
		this.hide(this.contentObjects[(this.page + 1)]);
		this.show(this.contentObjects[(this.page + 2)]);
		this.show(this.contentObjects[(this.page + 3)]);
		this.page = (this.page + 2);
		this.showNavigators();
	}
	
	browser.prototype.previous = function(){
		if (this.page == 0){
			sendEvent('playitem',(1));
		}else{
			sendEvent('playitem',((this.page/2)-1));
		}
		this.hide(this.contentObjects[this.page]);
		this.hide(this.contentObjects[(this.page + 1)]);
		this.show(this.contentObjects[(this.page - 1)]);
		this.show(this.contentObjects[(this.page - 2)]);
		this.page = (this.page - 2);
		this.showNavigators();
	} 
	
	browser.prototype.initialize = function(){
		//gather div's belonging to this object
		this.contentObjects = document.getElementsByClassName(this.elemID);
		this.show(this.contentObjects[0]);
		this.show(this.contentObjects[1]);
		this.page = 0;
		if (!thisMovie("mpl")) return;
		if (this.is_function(thisMovie("mpl").sendEvent)){
			sendEvent('playitem',0);
		}else{
			setTimeout(function(){sendEvent('playitem', 0);}, 1000);
		}
		this.showNavigators(); 
	}
	
	browser.prototype.show = function(elem){
		if (!elem) return;
		if (elem.style.display == 'none') new Effect.Appear(elem);
	}
	
	browser.prototype.hide = function(elem){
		if (!elem) return;
		if ( (elem.style.display == '') || (elem.style.display == 'block') )elem.style.display = 'none';
	}
	
	browser.prototype.showNavigators = function(){
		var divCount = this.contentObjects.length;
		if ( (divCount > 2) && ( (this.page  + 2) < divCount) ){
			this.show($(this.elemID + "_next"));
		}else{
			this.hide($(this.elemID + "_next"));
		}
		if ( (divCount > 2) && (this.page > 0) ){
			this.show($(this.elemID + "_previous"));
		}else{
			this.hide($(this.elemID + "_previous"));
		}
	}