$(function() {
	$('li.rss a').css({"opacity":"0.4"});
	$('li.rss a').hover(function() {
		$(this).stop().animate({"opacity":"1.0"});
	}, function() {
		$(this).stop().animate({"opacity":"0.4"});
	});
	
	$('.testimonials').innerfade({ 
		speed: 1000, 
		timeout: 7000, 
		type: 'random', 
		containerheight: '150px' 
	}); 
});

var Main=2;
var imgs=2;
var Mainchk=0;

function circles(value) {
	Main=value;
	imgs=value;
	Mainchk=1;
	for (var i=1; i<4; i++) {
		if (value==i) {
			document.getElementById("circle0"+i).src="/wp-content/themes/bigHeaderFolio/images/screenshotCircle.gif";
			document.getElementById("banner0"+i).style.display="";
		}
		else {
			document.getElementById("circle0"+i).src="/wp-content/themes/bigHeaderFolio/images/screenshotCircles.gif";
			document.getElementById("banner0"+i).style.display="none";
		}
	}
	$('#screenshot .inner img').fadeOut();
	$('#screenshot .inner img.img'+imgs).fadeIn(1000);
}

function MainChange() {
	for (var i=3; i>0; i--) {
		if (i==Main) {
			document.getElementById("banner0"+i).style.display="";
			document.getElementById("circle0"+i).src="/wp-content/themes/bigHeaderFolio/images/screenshotCircle.gif";
		}
		else {
			document.getElementById("banner0"+i).style.display="none";
			document.getElementById("circle0"+i).src="/wp-content/themes/bigHeaderFolio/images/screenshotCircles.gif";
		}
	}
	if (Main==1) {
		Main=3;
	}
	else {
		var count=Main-1;
		Main=count;
	}
	if (Mainchk==1) {
		Mainchk=0;
	}
	else {
		$('#screenshot .inner img').fadeOut();
		$('#screenshot .inner img.img'+imgs).fadeIn(1000);
	}
	if (imgs==1) {
		imgs=3;
	}
	else {
		imgs--;
	}
}

/* 페이징 마우스 온, 오버 효과 */
function pagingOn(This, img) {
	This.style.border="1px solid #62bcd9";
	This.style.backgroundColor="#ffffff";
	This.style.color="#296d83";
	This.childNodes[0].style.color="#296d83";
}

function pagingOff(This, value, img) {
	if (value=="off") {
		This.style.border="1px solid #dddddd";
		This.style.backgroundColor="#ffffff";
		This.style.color="#7d7d7d";
		This.childNodes[0].style.color="#7d7d7d";
	}
	else if (value=="on") {
		This.style.border="1px solid #dddddd";
		This.style.backgroundColor="#ffffff";
		This.style.color="#662d91";
		This.childNodes[0].style.color="#7d7d7d";
	}
}

/* 코멘트 */
function inputForm(This) {
}

function inputFormout(This) {
}

function setPng24(obj) { 
    obj.width=obj.height=1; 
    obj.className=obj.className.replace(/\bpng24\b/i,''); 
    obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
    obj.src='';  
    return ''; 
} 