anchors = document.getElementsByTagName("a");

for (var i=0; i<anchors.length; i++) {

	var rel = anchors[i].getAttribute('rel');
	
	switch (rel) {
	case "archive": 
		anchors[i].onclick = function () {
			Element.toggle('archive');
			close_player();
				
		};
		
	break;

	case "view": 
		anchors[i].onclick = function () {
			play_current_video();
		};
	break;
	
	case "close": 
		anchors[i].onclick = function () {
			close_player();
		};
	break;
	
	case "intro": 
		anchors[i].onclick = function () {
			play_intro();
		};
	break;
	
	
	case "share": 
		anchors[i].onclick = function () {
		window.open('http://www.watchourvideos.com/share_m.php?c=33','Share','width=500,height=415,resizable=yes,scrollbars=yes,status=0');
		return false;
		};
		
		anchors[i].onmouseover = function () {
			if (!$('sec'))
				Element.show('no_join');
		};
		
		anchors[i].onmouseout = function () {
			if (!$('sec'))
				Element.hide('no_join');
		};
	break;

	
	case "join": 
		anchors[i].onclick = function () {
		window.open('http://www.watchourvideos.com/join.php?c=33&lid=51922&mid=33772','Share','width=500,height=460,resizable=yes,scrollbars=yes,status=0'); 
		return false;
		};
		anchors[i].onmouseover = function () {
			if (!$('sec'))
				Element.show('no_spam');
		};
		
		anchors[i].onmouseout = function () {
			if (!$('sec'))
				Element.hide('no_spam');
		};
	break;
	
	
	case "show_pic": 
	
		anchors[i].onmouseover = function (e) {
			Element.show('badge');

		}
		
		anchors[i].onmouseout = function () {
			Element.hide('badge');
		}
	break;
	
	}
	
}