$(document).ready(function(){
	//remove the crap corner classes for ie6
	if (jQuery.browser.msie) {
	  	version = parseInt(jQuery.browser.version);
		if(version == '6'){
			$(".roundedcornr_box_777099").attr('class','ie6');
			$(".roundedcornr_top_777099").attr('class','ie6');
			$(".roundedcornr_content_777099").attr('class','ie6');
			$(".roundedcornr_bottom_777099").attr('class','ie6');
		}
	}
	$("#loggedIn").queue(function(){
		$("#loginFormBox")
		    .animate({opacity: 1.0}, 5000)
		    .fadeOut('slow', function() {
		      //$(this).remove();
			  window.location.href = "software.php";
		    });
	});
	$("form").submit(function(){
		$("#loginFormBox")
		    .animate({opacity: 1.0}, 1000)
		    .fadeOut('slow', function() {
		      //return true;
		    });
		return true;
	});
	//open up the help dialog box
	$("#help").click(function(){
		$("#theHelp").show();
		$("#theHelp").dialog({'modal':true,'resizable':false,'width':'400px','height':'400px'});
	}).mouseover(function(e){
		$(this).find("img").effect("bounce", { times: 3 }, 200);
	});
	
	//open up the epete tutorials box
	//open up the help dialog box
	$("#ePeteTutorial").click(function(){
		$("#ePeteTutorialHelp").show();
		$("#ePeteTutorialHelp").dialog({'modal':true,'resizable':false,'width':'400px','height':'400px'});
	}).mouseover(function(e){
		$(this).find("img.bouncer").effect("bounce", { times: 3 }, 200);
	});
});