	/*
	When given the form_object (radio object)
	we can return the string value
	*/
	function returnRadioValue (form_object)
	{
		for (var i=0; i<form_object.length; i++) {
			if (form_object[i].checked) return form_object[i].value;
		}//Loop
	
		return "";
	}
	
	/*
	When given a select object, return the 
	value of the selected item
	*/
	function returnSelectValue (form_object) 
	{
		for (var i=0; i<form_object.length; i++) {
			if (form_object[i].selected) return form_object[i].value;
		}//Loop
	
		return "";
		
	}
	
	/**
	Creates the zoomed in ziew that gives the user more options
	**/
	function smallItemMouseOver(arg_art_id, arg_thread_id, arg_a2t_id, arg_locked_flag, arg_title, arg_thrivor, arg_path)
	{
		var tmp='<div id=sm_overbkg><div class=white_mo_bkg>';
		tmp+='<ul class="sort_buttons">';

		var locked_warning="";
		if (arg_locked_flag) locked_warning=" onClick=\"alert('This thread is locked. Only the thread creator can add art to it.'); return false;\" ";
		if (arg_thread_id>0) {
			tmp+="<li><a class=\"AddToThread\" href=\"/addToNewThread.php?respond_to_art_id="+arg_a2t_id+"&thread_id="+arg_thread_id+
			"&position=same\" title=\"Add your art to the end of the Thread this piece belongs to - it will appear to the right.\" "+locked_warning+">Add to this Thread</a></li>";
			tmp+="<li><a class=\"Respond\" href=\"addToNewThread.php?respond_to_art_id="+arg_a2t_id+"&thread_id="+arg_thread_id+"&position=new\" ";
			tmp+="title=\"Add your art in response to this piece - it will appear below.\"  "+locked_warning+">Respond to this Piece</a></li>"+
			"<li><a class=\"AddNewArt\" href=\"/addInterface.php\" title=\"Upload art from your computer to My Gallery or create art online with Splash!\">Upload Art</a></li>";
		} else {
			tmp+="<li><a class=\"AddToThread\" href=\"/confirmPostToThread.php?art_id="+arg_art_id+"&position=same\" title=\"Add To This Thread\">Start New Thread</a></li>";

		}

		tmp+="<li><a class=\"help\" target=_blank href=\"/home/index.php?option=com_content&view=article&id=55&no_header=1\" title=\"\">?</a></li>";
		
		tmp+="</ul><div class=clear></div><div class=mo_text_right_sm><p class=overdivtext><b>"+arg_title+"</b><br><i>"+arg_thrivor+"</i>";
		tmp+="<br><a onClick=\"cClick();myLightbox.start(this); return false;\" href='"+arg_path+"_lg.jpg' title='"+arg_title+"'>View In Lightbox</a></p>";
		tmp+='</div></div></div>';
			
		return tmp;
		
	}
	
	/**
	Creates the tiny view voom
	**/
	function tinyItemMouseOver(arg_art_id, arg_thread_id, arg_a2t_id, arg_locked_flag, arg_title, arg_thrivor, arg_path, 
		arg_make_products_flag, arg_logged_in_thrivor)
	{
		var tmp='<div id=overbkg><div class=white_mo_bkg>';
		tmp+='<ul class="sort_buttons">';

		var locked_warning="";
		if (arg_locked_flag) locked_warning=" onClick=\"alert('This thread is locked. Only the thread creator can add art to it.'); return false;\" ";
		if (arg_thread_id>0) {
			tmp+="<li><a class=\"AddToThread\" href=\"/addToNewThread.php?respond_to_art_id="+arg_a2t_id+"&thread_id="+arg_thread_id+
			"&position=same\" title=\"Add your art to the end of the Thread this piece belongs to - it will appear to the right.\" "+locked_warning+">Add to this Thread</a></li>";
			tmp+="<li><a class=\"Respond\" href=\"addToNewThread.php?respond_to_art_id="+arg_a2t_id+"&thread_id="+arg_thread_id+"&position=new\" ";
			tmp+="title=\"Add your art in response to this piece - it will appear below.\"  "+locked_warning+">Respond to this Piece</a></li>"+
			"<li><a class=\"AddNewArt\" href=\"/addInterface.php\" title=\"Upload art from your computer to My Gallery or create art online with Splash!\">Upload Art</a></li>";
		} else {
			tmp+="<li><a class=\"AddToThread\" href=\"/confirmPostToThread.php?art_id="+arg_art_id+"&position=same\" title=\"Add To This Thread\">Start New Thread</a></li>";

		}

		tmp+="<li><a class=\"help\" target=_blank href=\"/home/index.php?option=com_content&view=article&id=55&no_header=1\" title=\"\">?</a></li></ul><div class=clear></div>";
		tmp+="<div class=mo_image_over><a href=\"/art_detail.php?art_id="+arg_art_id+"&a2t_id="+arg_a2t_id+"\"><img src=\""+arg_path+"_sm.jpg\" border=0></a></div>"+
			"<div class=mo_text_right><p class=\"overdivtext\"><b>"+arg_title+"</b><br><i>"+arg_thrivor+"</i></br></P>";
			
		tmp+="<div class=mo_option_background><ul class=\"mo_options\">";
		if (arg_make_products_flag) tmp+="<li><a href=\"products.php?art_id="+arg_art_id+"\" title=\"\" class=\"mo_products\">Make Products</a></li>";
		if (arg_thread_id) tmp+="<li><a href=\"thread_view.php?a2t_id="+arg_a2t_id+"\" title=\"\" class=\"mo_view\">View Thread</a></li>";
		tmp+="<li><a onClick=\"FavoritesObject.makeRequest('"+arg_art_id+"'); return false;\" href=\"#\" title=\"\" class=\"mo_addfav\">"+
			"Add to My Favorites</a></li><li><a href=\"share.php?art_id="+arg_art_id+"&thread_id="+arg_thread_id+"\" title=\"\" "+
			"class=\"mo_share\">Share with a friend!</a></li>";

		if (arg_thrivor==arg_logged_in_thrivor){
				tmp+="<li><a href=\"/confirmPostToThread.php?position=same&art_id="+arg_art_id+"&thread_id=0\" title=\"\" "+
				"class=\"mo_newthread\">Start a new thread</a></li>";
		}		
								
		tmp+="<li><a onClick=\"cClick();myLightbox.start(this); return false;\" href='"+arg_path+"_lg.jpg' title='"+arg_title+"'>View In Lightbox</a></li>";
		
		tmp+="</ul>";
			
		tmp+='</div></div></div></div>';
		
			
		return tmp;		
	}
	