	$(function() {
		$('#container-1 ul').tabs();
		$('#container-2 ul').tabs(1);
		$('#container-3 ul').tabs({ fxSlide: true });
		$('#container-4 ul').tabs({ fxFade: true, fxSpeed: 'fast' });
		$('#container-5 ul').tabs({ fxSlide: true, fxFade: true, fxSpeed: 'normal' });
		$('#container-6 ul').tabs({
			fxFade: true,
			fxSpeed: 'fast',
			click: function() {
				alert('click callback');
			},
			hide: function() {
				alert('hide callback');
			},
			show: function() {
				alert('show callback');
			}
		});
		$('#container-7 ul').tabs({ fxShow: { height: 'show', opacity: 'show' }, fxSpeed: 'normal' });
		$('#container-8 ul').tabs({ cache: false });
		$('#container-9 ul').tabs({ disabled: [3] });
		$('Remove tab').prependTo('#fragment-22').find('a').click(function() {
			$('#container-9 ul').tabsRemove(4);
			return false;
		});
		$('Add tab').prependTo('#fragment-22').find('a').click(function() {
			$('#container-9 ul').tabsAdd('#new-tab', 'New Tab', 4);
			return false;
		});
		$('Disable third tab').prependTo('#fragment-22').find('a').click(function() {
			$('#container-9 ul').tabsDisable(3);
			return false;
		});
		$('Enable third tab').prependTo('#fragment-22').find('a').click(function() {
			$('#container-9 ul').tabsEnable(3);
			return false;
		});
		$('Click third tab').prependTo('#fragment-22').find('a').click(function() {
			$('#container-9 ul').tabsClick(3);
			return false;
		});
		$('Get selected tab').prependTo('#fragment-22').find('a').click(function() {
			alert( $('#container-9 ul').tabsSelected() );
			return false;
		});
		$('#container-10 ul').tabs({ unselected: true });
		$('#container-11 ul').tabs({ event: 'mouseover' }).find('a').click(function() {
			return false;
		});
	});
	
//  TABS OF HOT NEWS, HOT IMAGES... etc....
	var v2;
	function showTopTab1( tab ){
	document.getElementById('hot-img1').style.display = 'none'
	document.getElementById('news-img1').style.display = 'none'
	document.getElementById('hot-title1').style.backgroundColor='#FFFFFF'
	document.getElementById('news-title1').style.backgroundColor='#FFFFFF'
	if(tab=='S'){
	 document.getElementById('hot-img1').style.display = 'block'
	 document.getElementById('hot-title1').style.backgroundColor='#E8E8E8'
	}else if(tab=='E'){
	 document.getElementById('news-img1').style.display = 'block'
	 document.getElementById('news-title1').style.backgroundColor='#E8E8E8' 
	}
	}
	if(v2==null || v2=="1"){
	 showTopTab1('S');
	}else if(v1=="2"){
	 showTopTab1('E');
	}
	window.onload=initScrollLayer

//  TABS OF HOT NEWS, HOT IMAGES... etc....
	var v1;
	function showTopTab( tab ){
	 document.getElementById('hot-img').style.display = 'none'
	 document.getElementById('news-img').style.display = 'none'
	 document.getElementById('hot-title').style.backgroundColor='#FFFFFF'
	 document.getElementById('news-title').style.backgroundColor='#FFFFFF'
	if(tab=='S'){
	 document.getElementById('hot-img').style.display = 'block'
	 document.getElementById('hot-title').style.backgroundColor='#E8E8E8'
	}else if(tab=='E'){
	 document.getElementById('news-img').style.display = 'block'
	 document.getElementById('news-title').style.backgroundColor='#E8E8E8' 
	} }
	if(v1==null || v1=="1"){
	 showTopTab('S');
	}else if(v1=="2"){
	 showTopTab('E');
	}
	window.onload=initScrollLayer
	
/* <![CDATA[ */
	var polls_ajax_url = 'http://www.chitramala.com/wp/wp-content/plugins/wp-polls/wp-polls.php';
	var polls_text_wait = 'Your last request is still being processed. Please wait a while ...';
	var polls_text_valid = 'Please choose a valid poll answer.';
	var polls_text_multiple = 'Maximum number of choices allowed:';
	var poll_show_loading = 1;
	var poll_show_fading = 1;
/* ]]> */
function checkEmail(val)
{
	var patt = /^\w(\.?[\w-])*@\w(\.?[\w-])*\.[a-z]{2,6}$/i;
	var result;
	
	result = patt.test(val);
	return result;
}


function validate_form(form1)
{

var err;
	if(form1.email.value=="")
	{
		err = "Please enter your Email Address.";
		alert(err);
		form1.email.focus();
		return false;
	}
	 if(!checkEmail(form1.email.value))
	{
		err = "Please enter valid Email Address.";
		alert(err);
		form1.email.focus();
		return false;
	}
	if(form1.vercode1.value=="")
	{
		err = "Please enter the verification code .";
		alert(err);
		form1.vercode1.focus();
		return false;
	}
return true;
}
