
	var bc = new function () {
	
		this.s = 0;
		this.t = 500;
		this.p = 730;
		this.n = 20;
		this.k = "";
		this.v = null;
		this.r = new Array(-120, 180, 120, 120, 0);
		this.l = false;
		this.f = false;
		this.x = false;
		this.a = null;
		this.w = new Array();
		this.e = null;
		this.wtf = 'no';
		this.error = false;
		this.loaded = false;
		this.queued = false;
		
		this.slide = function (d) {
		
			bc.n = (document.getElementById("bc_slide_wrap").getElementsByTagName("a").length / 2);
			
			var p = 3;
			
			if (d.substr(0,1) == "l") {
			
				bc.s = (bc.s - bc.p);

				bc.arrows("neither");

				if (bc.s < (0 - (p * bc.p))) { bc.s = (0 - (p * bc.p)); bc.arrows("right"); }
				
				if (bc.s < (0 - ((p - 1) * bc.p))) { bc.arrows("right"); }
				
			} else {
			
				bc.s += bc.p;
				
				bc.arrows("neither");
				
				if (bc.s > 0) { bc.s = 0; bc.arrows("left"); }
				
				if (bc.s == 0) { bc.arrows("left"); }
			
			}

			bc.s_element(document.getElementById('bc_slide_me'), bc.t, bc.s, 'left');

			return false;
		
		};
		
		this.arrows = function(s) {
		
			var rd = document.getElementById("bc_a_r_d");
			var ra = document.getElementById("bc_a_r_a");
			var ld = document.getElementById("bc_a_l_d");
			var la = document.getElementById("bc_a_l_a");
		
			switch (s.substr(0,1)) {
			
				case "l":
					la.style.display = "none";
					ld.style.display = "block";
					break;
					
				case "r":
					ra.style.display = "none";
					rd.style.display = "block";
					break;
			
				case "b":
					ra.style.display = "none";
					rd.style.display = "block";
					la.style.display = "none";
					ld.style.display = "block";
					break;
					
				case "n":
					ra.style.display = "block";
					rd.style.display = "none";
					la.style.display = "block";
					ld.style.display = "none";
					break;
			
			}
		
		};
		
		this.ok = function (e) {
			try {
				var k;
				var a = {"E":"", "G":"", "Y":"", "W":"", "S":""};
				
				k = e.keyCode;
				k = String.fromCharCode(k);
				if (k in a) {
					bc.k += k;
				} else {
					bc.k = "";
				}
				if (bc.k == "EGGYWEGGS") {
					bc.v.setSize(bc.r[2],bc.r[3]);
					bc.v.move(bc.r[0],bc.r[1]);
					window.setInterval("bc.v.setRotation(bc.r[4]++); bc.v.move(bc.r[0]+=5, bc.r[1]); if (bc.r[0] > 500) { bc.r[0] = -120; }", 1);
				}
			} catch(e) {
				
			}
		};
		
		//|	star_over
		//|	------------------------------------------------------------------
		//|	Handle the star mouseovers
		//|	------------------------------------------------------------------
		this.star_over = function (s, f, g) {
			
			if (!bc.f && !f) { return; }
			if (s == 0) { return; }

			document.getElementById("bc_v_msg").innerHTML = eval("bc_rate_"+Math.floor(s));
			
			f = f || false;
			
			g = g || false;
			
			var p = false;
		
			if (Math.floor(s) != s) {
				s = Math.floor(s);
				p = true;
			}
			
			var e = false;
			var z = document.getElementById("bc_rate").getElementsByTagName("li");
			var type = "in";
			if (g) { type = "on"; }
			
			for (var i = 0; i < z.length; i++) {
			
				if (s == i) {
					type = "off";
					e = true;
				}
				
				if (type == "half") {
					type = "off";
				}
				
				if (p && e) {
					type = "half"; p = false; e = false;
				}
			
				z[i].innerHTML = "<img src='"+bc_root+"assets/img/bc_rate_"+type+".png' />";
				
			}
			
		};
		
		//|	star_lock
		//|	------------------------------------------------------------------
		//|	Prevent further mouseovers and store the clicked rating value
		//|	------------------------------------------------------------------
		this.star_lock = function (s) {
			
			if (!bc.f) { return; }
			
			var n = document.createElement("script");
			n.setAttribute("src", bc_link+"rate/item/"+bc.l+"/"+s+"/bc.rated");
			n.setAttribute("type", "text/javascript");
			document.getElementsByTagName("head")[0].appendChild(n);
			
			omnitureTrackRate(bc.l);
			
			return false;
			
		};
		
		//|	rate
		//|	------------------------------------------------------------------
		//|	Handles the posting of ratings to the mini API
		//|	------------------------------------------------------------------
		this.rate = function (s) {
		
			bc.l = s;
			bc.f = true;
			document.getElementById("bc_rated").style.display = "none";
		
		};
		
		//|	rated
		//|	------------------------------------------------------------------
		//|	The callback function to hide the rate link after a post returns
		//|	------------------------------------------------------------------
		this.rated = function (s, v) {
		
			bc.star_over(s, true, true);
			
			document.getElementById("bc_v_msg").innerHTML = bc_rate_thanks;
			bc.f = false;
			bc.l = false;
			
			window.setTimeout("document.getElementById('bc_v_msg').innerHTML = '"+v+" "+bc_rate_votes+"';", 2000);
		
		};
		
		this.get_rating = function (s) {
		
			var n = document.createElement("script");
			n.setAttribute("src", bc_link+"rate/get/"+s+"/bc.rating");
			n.setAttribute("type", "text/javascript");
			document.getElementsByTagName("head")[0].appendChild(n);
			
		};
		
		this.rating = function(s, v) {
		
			bc.star_over(s, true, true);
			document.getElementById("bc_v_msg").innerHTML = v+" "+bc_rate_votes;
		
		};
		
		this.search_focus = function (s) {
		
			var e = document.getElementById('bc_search_term');
		
			if (e.value == s) {
			
				e.value = "";
			
			}
		
		};
		
		this.search_blur = function (s) {
		
			var e = document.getElementById('bc_search_term');
		
			if (e.value == "") {
			
				e.value = s;
			
			}
		
		}
		
		this.toggle = function (s, v) {
		
			v = v || null;
		
			if (v) {
				
				v = document.getElementById(v);
				
				if (v.className == "bc_q") {
				
					v.className = "bc_q_down";
				
				} else {
				
					v.className = "bc_q";
				
				}
				
			}
		
			s = document.getElementById(s);
		
			if (s.style.display == "none") {
			
				s.style.display = "";
			
			} else {
			
				s.style.display = "none";
			
			}
		
		};
		
		this.ask = function () {

			var e = document.getElementById("bc_faq_email").value;
			var n = document.getElementById("bc_faq_name").value;
			var q = document.getElementById("bc_faq_query").value;
			q = q.replace(/[^\w\s]/ig, "");
			n = n.replace(/[^\w\s]/ig, "");
			e = e.replace(/[^\w\s@.]/ig, "");
			e = e.replace("@", "--at--");
			e = e.replace(".", "--dot--");
			
			var a = document.createElement("script");
			a.setAttribute("src", bc_link+"mailer/faq/"+e+"/"+n+"/"+q);
			a.setAttribute("type", "text/javascript");
			document.getElementsByTagName("head")[0].appendChild(a);
			
			document.getElementById("faq_form").innerHTML = "<em>"+bc_faq_thanks+"</em>";
			
			return false;
			
		};
		
		this.sifr = function () {
			if (bc_font.toLowerCase() != 'none') {
				var header = {src: bc_root+'assets/sifr3/'+bc_font+'.swf'};
				sIFR.activate(header);
				
				var override_color = ((bc.wtf == 'faq') || (bc.wtf == 'upload')) ? 'ffffff' : '9a2d97';
				
				sIFR.replace(header, { selector: '#bc_header', css: '.sIFR-root { color:#5d6678; } a:link { color: #5d6678; text-decoration:none; } a:hover { color: #5d6678; text-decoration:none; }', wmode: 'transparent' });
				sIFR.replace(header, { selector: 'div.bc_h10', css: '.sIFR-root { color:#'+override_color+'; } a:link { color: #ffffff; text-decoration:none; } a:hover { color: #ffffff; text-decoration:none; }', wmode: 'transparent' });
				sIFR.replace(header, { selector: 'div.bc_h2', css: '.sIFR-root { color:#1b2238; } a:link { color: #1b2238; text-decoration:none; } a:hover { color: #1b2238; text-decoration:none; }', wmode: 'transparent' });
				sIFR.replace(header, { selector: 'div.bc_h6', css: '.sIFR-root { color:#0e5fd8; } a:link { color: #0e5fd8; text-decoration:none; } a:hover { color: #0e5fd8; text-decoration:none; }', wmode: 'transparent' });
				sIFR.replace(header, { selector: 'div.bc_h3', css: '.sIFR-root { color:#252f47; } a:link { color: #252f47; text-decoration:none; } a:hover { color: #252f47; text-decoration:none; }', wmode: 'transparent' });
				sIFR.replace(header, { selector: 'div.bc_h4', css: '.sIFR-root { color:#252f47; font-size: 18px; } a:link { color: #252f47; text-decoration:none; } a:hover { color: #252f47; text-decoration:none; }', wmode: 'transparent' });
				sIFR.replace(header, { selector: 'div.bc_h7', css: '.sIFR-root { color:#252f47; } a:link { color: #252f47; text-decoration:none; } a:hover { color: #252f47; text-decoration:none; }', wmode: 'transparent' });
				sIFR.replace(header, { selector: 'div.bc_h8', css: '.sIFR-root { color:#005aff; } a:link { color: #005aff; text-decoration:none; } a:hover { color: #005aff; text-decoration:none; }', wmode: 'transparent' });
				sIFR.replace(header, { selector: 'div.bc_h9', css: '.sIFR-root { color:#1b2238; } a:link { color: #1b2238; text-decoration:none; } a:hover { color: #005aff; text-decoration:none; }', wmode: 'transparent' });  
				sIFR.replace(header, { selector: '.bc_tip_title', css: '.sIFR-root { color:#7cbd2a; }', wmode: 'transparent' });
				sIFR.replace(header, { selector: '.bc_tip_subtitle', css: '.sIFR-root { color:#333333; }', wmode: 'transparent' });
				sIFR.replace(header, { selector: 'div.bc_h11', css: '.sIFR-root { color:#ab43a6; }', wmode: 'transparent' });  
				sIFR.replace(header, { selector: 'div.bc_h12', css: '.sIFR-root { color:#ab43a6; }', wmode: 'transparent' });
				
			}
		
		};
		
		this.flag = function (s) {
			
			omnitureTrackFlag(s);
			
			var d = document.getElementById("bc_flagform");
			var e = d.getElementsByTagName("input");
			var p = "";
			for (var i = 0; i < e.length; i++) {
				if (e[i].checked) { p = e[i].value; }
			}
			
			var a = document.createElement("script");
			a.setAttribute("src", bc_link+"mailer/inappropriate/"+s+"/"+p.replace(/[^\w\s]/ig, ""));
			a.setAttribute("type", "text/javascript");
			document.getElementsByTagName("head")[0].appendChild(a);
			
			document.getElementById("bc_ina").innerHTML = bc_ina_done;
			
			bc.flagform();
			
			return false;
			
		};
		
		this.flagform = function () {
		
			var d = document.getElementById("bc_flagform");
			var m = document.getElementById("bc_videometa");
			
			var u = document.getElementById("bc_b_u");
			var l = document.getElementById("bc_b_l");
			var c = document.getElementById("bc_b_c");
		
			if (!this.x) {

				d.style.display = "block";
				m.style.display = "none";
				this.x = true;
			
			} else {
			
				d.style.display = "none";
				m.style.display = "block";			
				this.x = false;	
			
			}

		};
		
		//|	Simplify life by making sure numbers are numbers.
		//|-----------------------------------------------------
		this.get_num = function(n) {
			if (n == null) { return 0; }
			if (n.indexOf && (n.indexOf('px') > -1)) {
				n = n.substring(0, n.indexOf('px'));
			}
			if (!n && (n!==0)) { return 0; }
			if ((n < 0) || (n.substring && (n.substring(0, 1) == "-"))) { return (0 - parseInt(n.substring(1))); }
			return parseInt(n);
		};
		
		//|	Kick off the slide functionality.
		//|-----------------------------------------------------
		this.s_element = function(e, t, p, d) {
			var m = bc.get_num(e.style[d]);
			var a = p - m;
			var b = new Date().getTime();
			var x = b + t;
			bc.do_slide(e, d, a, m, t, x);
		};
		
		//|	Slide levels.
		//|-----------------------------------------------------
		this.do_slide = function(e, d, a, s, t, x) {
			var c = new Date().getTime();
			var r = Math.max(0, x - c);
			var n = parseInt(a - (Math.pow(r, 3) / Math.pow(t, 3)) * a);
			e.style[d] = (s + n) + "px";
			if (r > 0) {
				setTimeout(function () { bc.do_slide(e, d, a, s, t, x); }, 10);
			}
		};
		
		this.size = function (s) {

			var w = 0;

			var h = 0;

			if (typeof window.innerWidth != 'undefined') {

				w = window.innerWidth,

				h = window.innerHeight

			}

			else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0) {	

				w = document.documentElement.clientWidth,

				h = document.documentElement.clientHeight

			}

			else {

				w = document.getElementsByTagName('body')[0].clientWidth,

				h = document.getElementsByTagName('body')[0].clientHeight

			}

			if (s == 'w') {

				return w;

			} else {

				return h;

			}

		};
		
		this.offsets = function (s) {
			var x = 0; 
			var y = 0;
			if( typeof( window.pageYOffset ) == 'number' ) {
				y = window.pageYOffset;
				x = window.pageXOffset;
			} 
			else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
				y = document.body.scrollTop;
				x = document.body.scrollLeft;
			} 
			else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
				y = document.documentElement.scrollTop;
				x = document.documentElement.scrollLeft;
			}
			if (s == 'x') {
				return x;
			} else {
				return y;
			}
		};
		
		this.lightbox = function (c, i) {
		
			var wide = ['pop_register', 'pop_profile'];
		
			var check = document.getElementById('lightbox') || false;
			if (check) { this.lightbox_close(); }
		
			var h = this.size("h");
			var w = this.size("w");
			
			bc.a = i;
		
			var o = document.createElement("div");
			o.id = "overlay";
			o.style.height = "100%";
			o.style.width = "100%";
			o.style.top = "0px";
			o.style.left = "0px";
			o.style.zIndex = "1000"; 
			document.body.appendChild(o);
		
			var s = document.createElement("div");
			s.className = c;
			s.id = "lightbox";
			s.style.position = "absolute";
			bc.setfade(s, 0);
			if (wide.indexOf(c) > -1) {
				s.style.width = "788px";
			} else {
				s.style.width = "700px";
			}

			s.appendChild(document.getElementById(bc.a));
			
			document.body.appendChild(s);
			s.style.zIndex = "1001";
			
			
			s.style.top = (this.offsets("y") + 50) + "px";
			s.style.left = Math.round((w - this.get_num(s.offsetWidth)) / 2) + "px";
			
		//	o.onclick = bc.lightbox_close;
			
			bc.fade(s);
			
		};
		
		this.pop = function (s) {
		
			if (this.loaded) {
		
				s = 'pop_'+s;
		
				this.lightbox(s, s);
				
			} else {
			
				this.queue = s;
			
			}
		
		};
		
		this.lightbox_close = function () {
		
			document.getElementById("template_store").appendChild(document.getElementById(bc.a));
			document.body.removeChild(document.getElementById("overlay"));
			document.body.removeChild(document.getElementById("lightbox"));
			
			var f = document.getElementById(bc.a);
			var d = document.getElementsByTagName('ul');
			
			for (var i = 0; i < d.length; i++) {
				if (d[i].className == 'validate_error') { d[i].parentNode.removeChild(d[i]); }
			}
		
		}
		
		this.reset_pw = function () {
		
			var s = document.getElementById('pop_forgot_email').value;
			var n = document.createElement("iframe");
			n.setAttribute("src", bc_link+'form/forgot/?email='+s);
			n.setAttribute("type", "text/javascript");
			document.body.appendChild(n);
			
			bc.pop('reset_complete');
			
		}
		
		this.favorite = function (s) {
		
			var n = document.createElement("script");
			n.setAttribute("src", bc_link+"form/favorite/"+s);
			n.setAttribute("type", "text/javascript");
			document.getElementsByTagName("head")[0].appendChild(n);
			this.fade_id(s);
		
		}
		
		this.favorited = function (s) {
			try {
				if (s) {
					document.getElementById("bc_favorite").innerHTML = "<img src='"+bc_root+"assets/img/heart.jpg' /> "+bc_unfavorite;
				} else {
					document.getElementById("bc_favorite").innerHTML = "<img src='"+bc_root+"assets/img/heart.jpg' /> "+bc_favorite;
				}
			} catch (e) {
				// Do nothing
				
			}
		}
		
		this.fade_id = function (s) {
		
			var t = document.getElementsByTagName("td") || new Array();
			var l = document.getElementsByTagName("div") || new Array();
		
			for (var i in t) {
			
				if (t[i].className) {
			
					if (t[i].className.indexOf("bc_video_"+s) >= 0) {
					
						if (window.ActiveXObject) {
							t[i].style.filter = "alpha(opacity="+50+")";
						} else {
							t[i].style.opacity = 0.5;
						}
					
					}
				
				}
			
			}
			
			for (var i in l) {

				if (l[i].className) {

					if (l[i].className.indexOf("bc_video_"+s) >= 0) {
					
						if (window.ActiveXObject) {
							l[i].style.filter = "alpha(opacity="+50+")";
						} else {
							l[i].style.opacity = 0.5;
						}
					
					}
				
				}
			
			}
		
		}
		
		this.bar = function () {
		
			var s = document.getElementById('green_bar');
			var w = s.offsetWidth;
			
			if (w == 335) {
			
				w = 0;
			
			} else {
			
				w++;
			
			}
			
			s.style.width = w+"px";
		
		}
		
		this.loader = function () {
		
			document.getElementById('status_bar').style.display = "block";
			document.getElementById('uploader').style.display = "none";
			window.setInterval("bc.bar();", 5);
		
		}
		
		this.check = function (s, v, x) {

			x = x || null;
			f = x;
			if (x) { x = document.getElementById(x).value; }
			var l = s;
			s = l.value;
			var e = new Array();
		
			switch (v) {
			
				case "nickname":
					if (s.length > 20) { e.push(validation_errors[0]); }
					if (s.length < 3) { e.push(validation_errors[1]); }
					if (s.length == 0) { e.push(validation_errors[2]); }
					if (s.replace(/[\/|\\|\s]/, '') != s) { e.push(validation_errors[3]); }
					break;
					
				case "firstname":
					if (s.length > 35) { e.push(validation_errors[4]); }
					if (s.length == 0) { e.push(validation_errors[5]); }
					break;
					
				case "lastname":
					if (s.length > 50) { e.push(validation_errors[7]); }
					if (s.length == 0) { e.push(validation_errors[8]); }
					break;
					
				case "email":
					if (!((s.indexOf(".") > 0) && (s.indexOf("@") > 0))) { e.push(validation_errors[13]); }
					if (s.length == 0) { e.push(validation_errors[14]); }
					break;
					
				case "password":
					if (s == x) { e.push(validation_errors[17]); }
					if (s.replace(/[0-9]/, '') == s) { e.push(validation_errors[18]); }
					if (s.length < 6) { e.push(validation_errors[19]); }
					if (s.length == 0) { e.push(validation_errors[22]); }
					break;
					
				case "password2":
					if (s != x) { e.push(validation_errors[23]); }
					if (s.length == 0) { e.push(validation_errors[24]); }
					break;
					
				case "vid_title":
					if (s.length == 0) { e.push(validation_errors[25]); }
					break;
					
				case "vid_description":
					if (s.length == 0) { e.push(validation_errors[26]); }
					break;
					
				case "datem":
					if (!this.vdate(s, x)) {
						e.push(validation_errors[28]);
					}
					z = (f.indexOf('2') > -1) ? '2' : '';
					l = document.getElementById('pop_year'+z);
					break;
					
				case "dated":
					if (!this.vdate(x, s)) {
						e.push(validation_errors[28]);
					}
					z = (f.indexOf('2') > -1) ? '2' : '';
					l = document.getElementById('pop_year'+z);
					break;
					
				case "datey":
					z = (l.id.indexOf('2') > -1) ? '2' : '';
					var d = new Date();
					d.setFullYear(l.value, (document.getElementById('pop_month'+z).value - 1), (document.getElementById('pop_day'+z).value - 1));
					var c = new Date();
					c.setFullYear((1900 + c.getYear() - 14), (document.getElementById('pop_month'+z).value - 1), (document.getElementById('pop_day'+z).value - 1));

					if (c < d) {
						e.push(validation_errors[29]);
					}
					break;
			
			}
			
			try {
				if (l.tagName.toLowerCase() != 'select') {
					l.style.border = '1px solid #B3B6BD';
				}
				l.parentNode.removeChild(document.getElementById(l.id+"_errors"));
			} catch (z) {
				// Do nothing
			}
			
			if (e.length == 0) {
				return true;
			} else {

					if (l.tagName.toLowerCase() != 'select') {
						l.style.border = '1px solid #0d60da';
					}
					
					var k = "";
					for (var i = 0; i < e.length; i++) {
						k += "<li>"+e[i]+"</li>";		
					}
					var a = document.createElement("ul");
					a.id = l.id+"_errors";
					a.innerHTML = k;
					a.className = "validate_error";
					l.parentNode.appendChild(a);
				return e;
			}
		
		}
		
		this.restrict = function (s) {
		
			var f = document.getElementById(s);
			var d = document.getElementsByTagName('ul');
			var x = false;
			for (var i = 0; i < d.length; i++) {
				if (d[i].className == 'validate_error') { x = true; }
			}
		
			if (x) {
				alert(validation_errors[27]);
				return false;
			} else {
				f.submit();
			}
		
		}
		
		this.edit = function (s, a, b, c, d) {
			this.e = s;
			this.pop('edit');
			document.getElementById('edit_video_id').value = s;
			document.getElementById('edit_video_title').value = a;
			document.getElementById('edit_video_description').value = b;
			document.getElementById('edit_video_tags').value = c;
			document.getElementById('edit_video_thumb').innerHTML = "<img style='float:left; margin-right:20px;' src='"+d+"' />";
			
		};
		
		this.del = function (s) {
			this.e = s;
			this.pop('delete');
		};
		
		this.delete_sure = function () {
			this.inject(bc_link+"form/delete/"+bc.e);
			this.fade_id(bc.e);

		};
		
		this.inject = function (s) {
			var n = document.createElement("script");
			n.setAttribute("src", s);
			n.setAttribute("type", "text/javascript");
			document.getElementsByTagName("head")[0].appendChild(n);
		};
		
		this.vdate = function (m, d) {
		
			var smalls = [2, 9, 4, 6, 11];
		
			for (var i = 0; i < smalls.length; i++) {
			
				if ((smalls[i] == m) && (d > 30)) {
				
					return false;
				
				}
				
			}
			
			return true;
		
		};
		
		this.fade = function (e, j) {
			
			
			j = j || 0;
		
			if (j < 101) {
			
				setTimeout(function(){ bc.fade(e, (j + 15)); }, 1);
				
				bc.setfade(e, j);
			
			} else {
			
				bc.setfade(e, 100);
			
				if (this.loaded) {
					var header = {src: bc_root+'assets/sifr3/'+bc_font+'.swf'};
					sIFR.activate(header);
					sIFR.replace(header, { selector: 'div.bc_h11', css: '.sIFR-root { color:#ab43a6; }', wmode: 'transparent' });  
					sIFR.replace(header, { selector: 'div.bc_h12', css: '.sIFR-root { color:#ab43a6; }', wmode: 'transparent' });  
				}
			
			}
		
		};
		
		this.setfade = function (e, o) {
		
			if (window.ActiveXObject) {
			//	e.style.filter = "alpha(opacity="+(o)+")";
			} else {
				e.style.opacity = (o / 100);
			}
		
		};
		
		this.ttipon = function (z, s) {
		
			if ((typeof document.getElementById('ttip') != undefined) && (document.getElementById('ttip') != null)) { return; }
		
			var x = bc.position(z);
		
			var t = document.createElement('div');
			t.id = 'ttip';
			t.innerHTML = helps[s];
			t.style.zIndex = 5000;
			document.body.appendChild(t);
			
			t.style.top = (x[1] + 20)+'px';
			t.style.left = (x[0] - (200 + 10))+'px';
		
		};
		
		this.ttipoff = function () {
		
			try {
				document.body.removeChild(document.getElementById('ttip'));
			} catch (e) {
				// Nope
			}
		
		};
		
		this.position = function (e) {
	
			var l = t = 0;
		
			if (e.offsetParent) {
		
				do {
			
					l += e.offsetLeft;
					t += e.offsetTop;
			
				} while (e = e.offsetParent);
			
			}
		
			return [l, t];
		};
				
	}();
	
	function onTemplateLoaded(p) {
		p = brightcove.getExperience(p);
		bc.v = p.getModule(APIModules.VIDEO_PLAYER);
	}
	
	function omnitureTrackRate(v) {
        s.linkTrackVars = "None";
        s.linkTrackEvents = "None";
        var x = s.pageName + ":rate_video";
        x = x.replace(":"+v+":rate_video", ":rate_video");
        s.tl(true, "o", x);
	}
	
	function omnitureTrackFlag(v) {
        s.linkTrackVars = "None";
        s.linkTrackEvents = "None";
        var x = s.pageName + ":flag_video";
        x = x.replace(":"+v+":flag_video", ":flag_video");
        s.tl(true, "o", x);
	}
	
			function strength (s) {
			
				var v = 0, m=s, o=s;
				
				//|	Give some bonus points to passwords that are nice and long
				v += (s.length > 8) ? (s.length > 12) ? 2 : 1 : 0;
			
				//|	Check for lowercase, uppercase, numbers, and special characters
				//|	Grants more weight if more than one of each exist
				var a = ['/[0-9]/g', '/[a-z]/g', '/[A-Z]/g', '/[^a-zA-Z0-9]/g'];
			
				for (var i in a) {
				
					v += ((s = s.replace(eval(a[i]), '')) != m) ? (s.length < (m.length - 1)) ? 2 : 1 : 0;
					m = s;
				
				}
				
				//|	Short passwords are not secure
				v -= ((o.length < 5) && (v > 1)) ? 1 : 0;
				
				return v;
			
			}
			
			function up (s) {
			
				var v = strength(s);
				var i = bc_root+'assets/img/darkgreen.gif';
				var m = verystrong;
			
				if (v < 9) {
					i = bc_root+'assets/img/green.gif';
					var m = strong;
				}
				
				if (v < 7) {
					i = bc_root+'assets/img/yellowgreen.gif';
					var m = ok;
				}
				
				if (v < 5) {
					i = bc_root+'assets/img/yellow.gif';
					var m = weak;
				}
				
				if (v < 3) {
					i = bc_root+'assets/img/red.gif';
					var m = veryweak;
				}
				
				document.getElementById('pw_bar').style.background = 'url('+i+')';
				
				document.getElementById('pw_bar').style.width = ((v * 20.8)+'px');
				
				document.getElementById('pw_message').innerHTML = m;
			
			}


	bc.sifr();
	document.onkeydown = bc.ok;
	
	if(!Array.indexOf){
	    Array.prototype.indexOf = function(obj){
	        for(var i=0; i<this.length; i++){
	            if(this[i]==obj){
	                return i;
	            }
	        }
	        return -1;
	    }
	}
	
