/* 
var setW = 207; // = 15px padding plus single column width of 192px
var setH = 15; // = 15px padding

function winSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  myWidth = myWidth;
  myHeight = myHeight;
}

function winW() {
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }
  return myWidth;
}

function winH() {
  var myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myHeight = document.body.clientHeight;
  }
  return myHeight;
}

function reSize() { 
	var w = winW();
	var h = winH();
//	document.getElementById("stage").style.width = (w-setW)+"px";
//	document.getElementById("stage").style.height = (h-setH)+"px";
}
*/

var getL;
function moveTo(i) { 
	// get x value as offsetLeft
	getL = getLeft('main');
	switch(i) {
		case 1: newx = c1x; break;
		case 2: newx = c2x; break;
		case 3: newx = c3x; break;
		case 4: newx = c4x; break;
		case 5: newx = c5x; break;
		case 6: newx = c6x; break;
		case 7: newx = c7x; break;
		case 8: newx = c8x; break;
	}
	if(getL+newx!=495) { var slide = -(newx-(495-getL)); }
	new Effect.Move ('main',{ x: slide, y: 0, mode: '', duration: .5});
}

function getLeft(obj)
{
if ('string' == typeof obj)
obj = document.getElementById(obj);
var x = 0;
while (obj != null)
{
x += obj.offsetLeft;
obj = obj.offsetParent;
}
return x;
}
