/*
Js Function for ByREV Video Gallery Plugin.
Plugin URI: http://byrev.net/2007-12/video-gallery-wordpress-plugin-byrev/
Description: Make Video Gallery verry easy! Video Type support: youtube, yahoo, google, movieweb, ifilm, dailymotion, metacafe ( + trilulilu, myspace ).
Author: ByREV
Author URI: http://byrev.net
Version: 1.45
Plugin Copyright: Creative Commons Attribution-Noncommercial-Share Alike 3.0
*/

function vg_isArray(obj) {
   if (obj.constructor.toString().indexOf("Array") == -1)
      return false;
   else
      return true;
}

function vg_showhideEl(shelement) {
	if (document.getElementById) 
	{ // DOM3 = IE5, NS6
		if (vg_isArray(shelement))
		{
			var thiselem = null;
			var count_el = shelement.length;
			var i=1;
			for (i=0;i<count_el;i++)
				{ 
					document.getElementById(shelement[i]).style.display = 'none';
				}				
			document.getElementById(shelement[0]).style.display = 'block';
		}
	}
}
