function getElementsByClassName(classname, node) {
			 if(!node) node = document.getElementsByTagName("body")[0];
			 var a = [];
			 var re = new RegExp('\\b' + classname + '\\b');
			 var els = node.getElementsByTagName("*");
			 for(var i = 0,j = els.length; j > i; i++)
			 if(re.test(els[i].className))a.push(els[i]);
			 return a;
		}
		
		//create onDomReady Event
onReady = (function(ie){
 var d = document;
 return ie ? function(c){
   var n = d.firstChild,
    f = function(){
     try{
      c(n.doScroll('left'))
     }catch(e){
      setTimeout(f, 10)
     }
    }; f()
  } : 
  /webkit|safari|khtml/i.test(navigator.userAgent) ? function(c){
   var f = function(){
     /loaded|complete/.test(d.readyState) ? c() : setTimeout(f, 10)
    }; f()
  } : 
  function(c){
   d.addEventListener("DOMContentLoaded", c, false);
  }
})(/*@cc_on 1@*/);

		
