
//window.onload = function showTab('vtab1');

  //window.onload=showTab('vtab1');     
  window.onload=function(){showTab('vtab1');}
           
       

	$(document).ready(function(){
		$("#rotator > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 4000, true);
	});

  // For: http://www.webdeveloper.com/forum/showthread.php?t=227746
  
  function showTab(IDS) {
  
     var tabs = document.getElementById('tabContent').getElementsByTagName('div');
  //  var tabs = getElementsByClass('vtInfo',document.getElementById('tabContent'),'div');
     
    for (var i=0; i<tabs.length; i++) { tabs[i].style.display = 'none'; }
    document.getElementById(IDS).style.display = 'block';
  }
  
  // Following from: http://www.dustindiaz.com/getelementsbyclass/
  function getElementsByClass(searchClass,node,tag) {
  	var classElements = new Array();
  	if ( node == null )
  		node = document;
  	if ( tag == null )
  		tag = '*';
  	var els = node.getElementsByTagName(tag);
  	var elsLen = els.length;
  	var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
  	for (i = 0, j = 0; i < elsLen; i++) {
  		if ( pattern.test(els[i].className) ) {
  			classElements[j] = els[i];
  			j++;
  		}
  	}
  	return classElements;
  }
  
  /* Following only to fill up tab area */
  var Words = 'now is the time for all good men to come to the aid of their country '; 
  	 	    'whatever the mind of man can conceive and believe he can achieve ';
  			'the quick red fox jumps over the lazy brown dog ';
  			'those who ignore lessons of history are doomed to repeat them ';
  			'beauty may be skin deep but ugly goes clear to the bone ';
  			'you can never get too old to learn a new way of being stupid ';
  var WordArray = Words.split(' ');
  
  function RandomWords(cnt) {
    var str = '';
    var tmp = '';
    for (var i=0; i<cnt; i++) {
      tmp = WordArray[Math.floor(Math.random()*WordArray.length)];
      str += tmp+' ';	
    }
    return str;
  }
  /* Done with fill up tab area code */
  


