function openMovieWin(obj) {
	var win = window.open(obj.href, 'Movie', 'height=600,width=1001,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');
	return false;
}

// switch button
function switchButton(radio, btn) {
//	alert(radio);
	for (var i in radio) {
		document.getElementById(radio[i]).onclick = function() {
			for (var j in btn) {
				document.getElementById(btn[j]).style.display = "none";

				if (document.getElementById(btn[j]).id.indexOf(this.id) != -1) {
					document.getElementById(btn[j]).style.display = "block";	
				}
			}
		}
	}
}

// scroll customer image

jQuery(document).ready(function($){ 
	var w = -171;
	var i=0;
	var scrollCustomer = function (){
		j = i==9? 0 : 500;  
		
		i= i % 9; 
		p = i * w;
		
		
		$("#switch_in").animate ( {
			'backgroundPosition' : p +'px 0'
		}, j);
		i ++ ;
		setTimeout(scrollCustomer, 2000);
	}
	scrollCustomer();
		
}
);
