
	
$(document).ready(function() 
{
	//window.location.href=window.location.href + "#logo_greenthesky";
	
	$('a').click(function(i) 
	{
		//$("#main_content").hide();
		//$("#main_table").hide();
		
		
		//$("#loader_content").fadeIn(500);
		//$("#loader_container").fadeIn(500);
		//window.location.href=window.location.href + "#logo_greenthesky";

	});
	
	//$("#loader_container").fadeOut(1000);
	//$("#loader_content").hide("explode", { pieces: 16 }, 800);
	
	$("#main_content").delay(200).fadeIn(3000);
	
	$("#theHome").delay(1600).fadeIn(1000);
	$("#theAbout").delay(1400).fadeIn(1000);
	$("#theComment").delay(1200).fadeIn(1000);
	$("#theSitemap").delay(1000).fadeIn(1000);
	
	$("#about-box").delay(500).fadeIn(1000);
	$("#theMenu").delay(800).fadeIn(1000);
	$("#theIcon").delay(1100).fadeIn(1000);
	$("#theMenuVideo").delay(1100).fadeIn(1000);
	$("#theLogin").delay(1400).fadeIn(1000);
	$("#theStatistic").delay(1700).fadeIn(1000);
	
	//$("a.next").delay(4000).live( "click" function() { alert( 'Click!' ); } );
	
	setTimeout("$('a.next').click()",2000);
	setTimeout("$('a.prev').click()",4000);
	
		
});

function animate_bubble()
{
	//Build Bubble Machines with the Bubble Engine ------------------------
	var SoapBubbleMachineNumber1 = $('fn').BubbleEngine({
	  particleSizeMin:            0,
	  particleSizeMax:            60,
	  particleSourceX:            $("#logo_greenthesky").offset().left + 30,
	  particleSourceY:            $("#logo_greenthesky").offset().top+30,
	  particleDirection:          'right',
	  particleAnimationDuration:  8000,
	  particleAnimationVariance:  2000,
	  particleScatteringX:        1000,
	  particleScatteringY:        300,
	  gravity:                    150
	});
	//Start Bubble Machine 1 ---------------------------------------------
	SoapBubbleMachineNumber1.addBubbles(50);
}

function bookmark(url,title){
	//ie, ff, nestcape
   if (document.all)
     window.external.AddFavorite(url, title);
   else if (window.sidebar)
     window.sidebar.addPanel(title, url, "")
   else if (window.sidebar&&window.sidebar.addPanel)
     window.sidebar.addPanel(title,url,"");
}


function hideStatus()
{
	window.status= "";
	return true
}
/*
if (document.layers)
	document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
document.onmouseover=hidestatus;
document.onmouseout=hidestatus;
*/
function validasiLogin() 
{
	var obj=document.frmLogin;
	
	var msg="";
	if (obj.txtName.value == "" ) {
		msg = msg + "\n - User name harus diisi !";
	}
	if (obj.txtPass.value == "" ) {
		msg = msg + "\n - Password harus diisi !";
	}
	
	
	if (msg != "") {
		alert("Pesan Kesalahan : " + msg);
	} else {
		obj.action="register/process/";
		obj.submit();
	}
}

function goDelete(url) {
	var sure = confirm("Apakah anda yakin ?");
	if(sure) {
		window.location = url;
	}
}

var first = 100;



function is_ie() 
{
	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent))
	{ 
		//test for MSIE x.x;
	 	/*var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
	 	if (ieversion>=8)
	  		document.write("You're using IE8 or above")
	 	else if (ieversion>=7)
	  		document.write("You're using IE7.x")
	 	else if (ieversion>=6)
	  		document.write("You're using IE6.x")
	 	else if (ieversion>=5)
	  		document.write("You're using IE5.x")*/
	 	return "yes";
	} 
	else 
	{
		/*if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Firefox/x.x or Firefox x.x (ignoring remaining digits);
		 var ffversion=new Number(RegExp.$1) // capture x.x portion and store as a number
		 if (ffversion>=3)
		  document.write("You're using FF 3.x or above")
		 else if (ffversion>=2)
		  document.write("You're using FF 2.x")
		 else if (ffversion>=1)
		  document.write("You're using FF 1.x")
		}*/
		return "no";
	}
	
}

