// JavaScript Document
function pollAnim() {
		t3 = new Tween(document.getElementById('poll224').style,'width',Tween.regularEaseOut,0,19,2.0,'%');
		t3.start();
		t4 = new Tween(document.getElementById('poll225').style,'width',Tween.regularEaseOut,0,81,2.0,'%');
		t4.start();
}
function submitimageform()
{
  	document.postimageform.submit();
}
function submitimageformupload()
{
  	document.postimageform2.submit();
}
function submitwordform()
{
  	document.postwordform.submit();
}
function submitcommentinput()
{
  	document.postcommentform.submit();
}
function submitwebattachform()
{
  	document.webattachform.submit();
}

function showupload() {
			document.getElementById('postimg_url').style.display = "none";
			document.getElementById('postimg_upload').style.display = "block";
			document.getElementById('postimgmode2').style.color = "#333";
			document.getElementById('postimgmode2').style.textDecoration = "underline";
			document.getElementById('postimgmode1').style.color = "#4C737B";
			document.getElementById('postimgmode1').style.textDecoration = "none";
}
function showurl() {
			document.getElementById('postimg_url').style.display = "block";
			document.getElementById('postimg_upload').style.display = "none";
			document.getElementById('postimgmode1').style.color = "#333";
			document.getElementById('postimgmode1').style.textDecoration = "underline";
			document.getElementById('postimgmode2').style.color = "#4C737B";
			document.getElementById('postimgmode2').style.textDecoration = "none";

}
post1=1;
function showwordedit() {
	if (post1==1){
		document.getElementById('word_edit').style.display = "block";
		document.getElementById('word_default').style.display = "none";
		post1=0;
	}else{
		document.getElementById('word_edit').style.display = "none";
		document.getElementById('word_default').style.display = "block";
		post1=1;
	}
}
post2=1;
function showcommententry() {
	if (post2==1){
		document.getElementById('commententry').style.display = "block";
		document.getElementById('commentsub_cancel').style.display = "inline";
		document.getElementById('leavecomment').style.display = "none";
		post2=0;
	}else{
		document.getElementById('commententry').style.display = "none";
		document.getElementById('commentsub_cancel').style.display = "none";
		document.getElementById('leavecomment').style.display = "inline";
		post2=1;
	}
}

function showlogintext2() {
		document.getElementById('logintext2').style.display = "block";
		document.getElementById('readmore2').style.display = "none";

}

post3=1;
function showwebattach() {
	if (post3==1){
		document.getElementById('webattachform1').style.display = "block";
		document.getElementById('webattachform2').style.display = "none";
		post3=0;
	}else{
		document.getElementById('webattachform1').style.display = "none";
		document.getElementById('webattachform2').style.display = "block";
		post3=1;
	}

}
