// JavaScript Document
function goto_url(page){
	
	switch (page){
		case '000': window.location = "http://www.msc-studio.com/about.php"; break;		
		
		case '100': window.location = "http://www.msc-studio.com/"; break;
		case '200': window.location = "http://www.msc-studio.com/about.php"; break;
		
		case '300': window.location = "http://www.msc-studio.com/services.php"; break;
		case '301': window.location = "http://www.msc-studio.com/services_web.php"; break;
		case '302': window.location = "http://www.msc-studio.com/services_logo.php"; break;
		case '303': window.location = "http://www.msc-studio.com/services_printing.php"; break;
		case '304': window.location = "http://www.msc-studio.com/services_photography.php"; break;
		case '305': window.location = "http://www.msc-studio.com/services_character.php"; break;
		case '306': window.location = "http://www.msc-studio.com/services_movie.php"; break;
				
		case '400': window.location = "http://www.msc-studio.com/contact.php"; break;
		
		default: window.location = "http://www.msc-studio.com/"; break;
	}
	
}

/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Mr J | http://www.huntingground.net/ */

scrollStep=1

timerLeft=""
timerRight=""

function toLeft(id){
  document.getElementById(id).scrollLeft=0
}

function scrollDivLeft(id){
  clearTimeout(timerRight) 
  document.getElementById(id).scrollLeft+=scrollStep
  timerRight=setTimeout("scrollDivLeft('"+id+"')",5)
}

function scrollDivRight(id){
  clearTimeout(timerLeft)
  document.getElementById(id).scrollLeft-=scrollStep
  timerLeft=setTimeout("scrollDivRight('"+id+"')",5)
}

function toRight(id){
  document.getElementById(id).scrollLeft=document.getElementById(id).scrollWidth
}

function stopMe(){
  clearTimeout(timerRight) 
  clearTimeout(timerLeft)
}
