var tab_new=1;
var tab_set=1;
jQuery(document).ready(function(){
jQuery(function() {
		jQuery("#tabs").tabs();
	});
	
		jQuery(function() {
		jQuery("#activity").tabs();
	});
	
	
	jQuery(document).ready(function() {
    jQuery('.slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
	});
	
		
	jQuery(document).ready(function() {
    jQuery('.slideshowbanner').cycle({
		fx: 'scrollUp' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
	});
	
		jQuery('#tab_new1').click(function(){
		tab_new=1;
		jQuery('#tab_new1').attr('src','images/tab/tab1_on.gif')
		jQuery('#tab_new2').attr('src','images/tab/tab2_off.gif')
		jQuery('#basicrss1').show()
		jQuery('#basicrss2').hide()
	}).mouseenter(function(){
		jQuery('#tab_new1').attr('src','images/tab/tab1_on.gif')
	}).mouseleave(function(){
		if(tab_new==1){
			jQuery('#tab_new1').attr('src','images/tab/tab1_on.gif')
		}else{
			jQuery('#tab_new1').attr('src','images/tab/tab1_off.gif')
		}
	})

	jQuery('#tab_new2').click(function(){
		tab_new=2;
		jQuery('#tab_new1').attr('src','images/tab/tab1_off.gif')
		jQuery('#tab_new2').attr('src','images/tab/tab2_on.gif')
		jQuery('#basicrss1').hide()
		jQuery('#basicrss2').show()
	}).mouseenter(function(){
		jQuery('#tab_new2').attr('src','images/tab/tab2_on.gif')
	}).mouseleave(function(){
		if(tab_new==2){
			jQuery('#tab_new2').attr('src','images/tab/tab2_on.gif')
		}else{
			jQuery('#tab_new2').attr('src','images/tab/tab2_off.gif')
		}
	})

								})
								
		function onActivity(page) {
		jQuery("#loder_popup").show();
		jQuery("#activity_content").hide();
		var TYPE="GET";
		var URL="activity-ajax.php?PageShow="+page+"&amp;pageset="+page;
		jQuery.ajax({type:TYPE,url:URL,
			success:function(html){
				jQuery("#activity_content").show();
				jQuery("#activity_content").html(html)
				jQuery("#loder_popup").hide();
			}
		}); 
		
		}	
		
		
	function imgSwap(oImg)
{
   var strOver  = "_on"    // image to be used with mouse over
   var strOff = "_off"     // normal image
   var strImg = oImg.src
   if (strImg.indexOf(strOver) != -1) 
      oImg.src = strImg.replace(strOver,strOff)
   else
      oImg.src = strImg.replace(strOff,strOver)
}


pitem=0;
var length=100;
var view=6;
var numPic=11;
last=((numPic*1)-(view*1))*length;

jQuery(document).ready(function(){
	jQuery("#moveL").click(function(){
		if(pitem==0) {
			jQuery(".boxList").animate({'left':-last+'px'},300);
			pitem=numPic-view;
		} else {
			jQuery(".boxList").animate({'left':'+='+length+'px'},300);
			pitem--;
		}
	});
	
	jQuery("#moveR").click(function(){
		if(pitem==numPic-view) {
			jQuery(".boxList").animate({'left':'0px'},300);
			pitem=0;
		} else {
			jQuery(".boxList").animate({'left':'-='+length+'px'},300);
			pitem++;
		}
	});


});





