
	Array.prototype.indexOf = function(obj){
		
		for(var i = 0; i < this.length; i++){
			if(this[i] == obj){
				return i
				}
			}
			
		return -1
		}

	Array.prototype.diff = function(arrIn){
	
		var arrOut	= new Array()
		var element	= null
		
		for(var i = 0; i < this.length; i++){
			element = this[i]
			if(arrIn.indexOf(element) == -1){
				arrOut.push(element)
				}
			}
			
		return arrOut
		}

	function pad(str){
		str = str.toString()
		while(str.length < 2){
			str = '0' + str
			}
		return str
		}

	function disableSelection(element) {
		with(element){
			onselectstart = function(){return false}
			style.MozUserSelect	= "none";
			setAttribute('unselectable', 'on')
			}
		}
		
	function mail(s){
		var url		= 'm|a|i|l|t|o|:d|a|v|e|@d|a|v|e|s|t|e|w|a|r|t|.c|o|.u|k'.split('|').join('')
		if(s)url	+='?|s|u|b|j|e|c|t|='.split('|').join('')+s
		window.location.href = url
		}
		
	function buildQuicktimeObject(src, w, h, bgcolor){
		var str = '';
		str	+= '<object '
		str	+= 'width="' +w+ '" height="' +h+ '" '
		str	+= 'classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" '
		str	+= 'codebase="http://www.apple.com/qtactivex/qtplugin.cab">'
		str	+= '<param name="src" value="' +src+ '" />'
		str	+= '<param name="bgcolor" value="' +bgcolor+ '" />'
		str	+= '<param name="showlogo" value="false" />'
		str	+= '<param name="autoplay" value="true" />'
		str	+= '<param name="controller" value="true" />'
		str	+= '<param name="scale" value="aspect" />'
		str	+= '<embed '
		str	+= 'src="' +src+ '" '
		str	+= 'width="' +w+ '" '
		str	+= 'height="' +h+ '" '
		str	+= 'bgcolor="' +bgcolor+ '" '
		str	+= 'showlogo="false" '
		str	+= 'autoplay="true" '
		str	+= 'controller="true" '
		str	+= 'scale="ASPECT" '
		str	+= 'pluginspage="http://www.apple.com/quicktime/download/"></embed>'
		str	+= '</object>'
		return str
		}
