var activeMenuIdx2 = 0;
var pageSlider = function(idx2)
	{
		var contentContainera = document.getElementById ("bigPapera");
		var contentsa = contentContainera.getElementsByTagName ("div");
		//onmouseover
		if (idx2 == 1)
			{
				contentsa[1].className = "normalContent2a1";      //little box visible
				contentsa[0].className = "normalContent2a2";      //big box hidden
			}
		//on mouse out	
		if (idx2 == 2)
			{
				contentsa[1].className = "normalContent2b1";      //little box visible
				contentsa[0].className = "normalContent2b2";      //big box hidden
			}
		//onload
		if (idx2 == 3)
			{
				contentsa[1].className = "normalContent2c1";      //little box visible
				contentsa[0].className = "normalContent2a2";      //big box hidden
			}
	}
var swapPop = function(e)
	{
		var el = (new Event(e)).target;
		var cur = el.getProperty('class');
		var coords = $('thermage_logo').getCoordinates();
		// before translations messed up the get('text')  
		//$(el.get('text').replace(/[^\w]/gi,'').toLowerCase()+'Pop').setProperty('class','seoPop').setStyles({'top':coords.top+200,'left':coords.left+700});
		$(el.id.substring(0,4)+'Pop').setProperty('class','seoPop').setStyles({'top':coords.top+200,'left':coords.left+700});
			
	}
var dropPop = function()
	{
		$('body').getElements('.seoPop').each(function(e,i,a){e.setProperty('class','seoOff');});
	}
var init = function()
	{	jQuery.noConflict();
		$('menuContainer').getElements('li').each(function(e,i,a){e.addEvents({'mouseover':swapPop,'mouseout':dropPop});});
		pageSlider (3);
	}

 function getProperties3( o ) {
	     var a = [ 'Properties of object "' + ( o.id || o.toString() ) + '":' ],
	      b = confirm( 'There may be some properties with no value set. List them anyway?' ),
	      c, i, j = 0;
	     for( i in o ) {
	      if( ( c = o[i] ) || b ) { a[++j] = j + ' ' + i + '\t' + c; }
	     }
	     return a.join( '\n' );
	    }

function getProperties2(obj) {
	  var i, v;
	  var count = 0;
	  var props = [];
	  if (typeof(obj) === 'object') {
	    for (i in obj) {
	      v = obj[i];
	      if (v !== undefined && typeof(v) !== 'function') {
	        props[count] = i;
	        count++;
	      }
	    }
	  }
	  return props;
	};

window.addEvent('domready',init);

