/* Browser Detection */
var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari"
else if (checkIt('omniweb')) browser = "OmniWeb"
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "Internet Explorer"
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
}
else browser = "An unknown browser";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac"
	else if (checkIt('win')) OS = "Windows"
	else OS = "an unknown operating system";
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

Cufon.replace('.cufonttl',{fontSize:'18px', color:'#FFF', hover:{color:'#FFF'},textShadow: '#333 1px 1px'});
Cufon.replace('.cufonh');


jQuery(function(){
			
			
				
				jQuery('ul.sf-menu').superfish(
				{ 
							delay:       300,                            // one second delay on mouseout 
							animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
							speed:       100,                          // faster animation speed 
							autoArrows:  false,                           // disable generation of arrow mark-up 
							dropShadows: false                            // disable drop shadows 
				});
			
		
	
			function startlava(){
           
				$("#menulava").lavaLamp({
					fx: "easeout",
					speed: 400
				});
     
					
				}
				
			
				
				setTimeout(startlava,100);
		
var yourin=0;

$("#wh_tab").mouseenter(function() {
	if (yourin==0){
	$("#wrapper_high").animate({top:-120},400);
	}
	});
	
	$("#wrapper_high").mouseleave(
	function() {
		if (yourin==0){
		$("#wrapper_high").animate({top:-130},400);
		}});
		
$("#wh_tab").click(function() {
	if (yourin==1){yourin=0;$("#wrapper_high").animate({top:-130},400);
	
	$("#wh_arrows").css({'background-position':'0px 0px'});
	
	;}
	else if(yourin==0){yourin=1;$("#wrapper_high").animate({top:0},400);
	
	$("#wh_arrows").css({'background-position':'0px -28px'});
	}

	});


if (browser == "Internet Explorer" && version <= 8){

} else { 


/*
	$('#logo img').mouseenter(
	
function () {
		$('#logo').animate({opacity:0}, 100);
		$('#logo').animate({opacity:1}, 10);
			$('#logo').animate({opacity:0}, 10);
		$('#logo').animate({opacity:1}, 10);
			$('#logo').animate({opacity:0}, 10);
		$('#logo').animate({opacity:1}, 10);
		
    });	
		*/
	}

});


if (browser == "Internet Explorer" && version <= 8){

} else { 

/*
setInterval(
    function () {
		$('#text_seo').animate({opacity:0.3}, 1000);
		$('#text_seo').animate({opacity:1}, 1000);
		
    },
    200
);


setInterval(
    function () {
		$('#logo').animate({opacity:0}, 100);
		$('#logo').animate({opacity:1}, 10);
			$('#logo').animate({opacity:0}, 10);
		$('#logo').animate({opacity:1}, 20);
			$('#logo').animate({opacity:0}, 20);
		$('#logo').animate({opacity:1}, 30);
		$('#logo').animate({opacity:0}, 30);
		$('#logo').animate({opacity:1}, 20);
			$('#logo').animate({opacity:0}, 20);
		$('#logo').animate({opacity:1}, 10);
		$('#logo').animate({opacity:0}, 10);
		$('#logo').animate({opacity:1}, 100);
		
    },
    30000
);
*/

setInterval(
    function () {
		$('#ban01').animate({opacity:0}, 100);
		$('#ban01').animate({opacity:1}, 10);
			$('#ban01').animate({opacity:0}, 10);
		$('#ban01').animate({opacity:1}, 20);
			$('#ban01').animate({opacity:0}, 20);
		$('#ban01').animate({opacity:1}, 30);
		
		$('#ban01').animate({opacity:0}, 30);
		$('#ban01').animate({opacity:1}, 20);
			$('#ban01').animate({opacity:0}, 20);
		$('#ban01').animate({opacity:1}, 10);
		$('#ban01').animate({opacity:0}, 10);
		$('#ban01').animate({opacity:1}, 100);
		$('#ban01').animate({right:20}, 50);
		$('#ban01').animate({right:10}, 50);
		$('#ban01').animate({right:20}, 50);
		$('#ban01').animate({right:10}, 50);
		$('#ban01').animate({right:20}, 50);
		$('#ban01').animate({right:15}, 30);
		
    },
    3000
);

}

$(function(){
	$(".scrollable_content").scrollable();
	if (browser == "Internet Explorer" && version <= 8){

} else { 
/*	$(".tip").tooltip({ effect: 'slide',position: 'top center', opacity: 1});*/
}
});




	$(document).ready(function() {
				$('#center2').animate({opacity:0}, 2000,function(){$('#center2').hide();});
				
				$("#fixedfoot").css({'bottom':'-54px'});
				
				setTimeout(function(){
				$("#fixedfoot").animate({'bottom':'0px'},1000,"easeOutBounce");
				
					$('#fixedfoot').animate({opacity:0}, 100);
		$('#fixedfoot').animate({opacity:1}, 10);
			$('#fixedfoot').animate({opacity:0}, 10);
		$('#fixedfoot').animate({opacity:1}, 20);
			$('#fixedfoot').animate({opacity:0}, 20);
		$('#fixedfoot').animate({opacity:1}, 30);
		
		$('#fixedfoot').animate({opacity:0}, 30);
		$('#fixedfoot').animate({opacity:1}, 20);
			$('#fixedfoot').animate({opacity:0}, 20);
		$('#fixedfoot').animate({opacity:1}, 10);
		$('#fixedfoot').animate({opacity:0}, 10);
		$('#fixedfoot').animate({opacity:1}, 100);
		
		$('#fixedfoot').animate({right:5}, 50);
		$('#fixedfoot').animate({right:-5}, 50);
		$('#fixedfoot').animate({right:5}, 50);
		$('#fixedfoot').animate({right:-5}, 50);
		$('#fixedfoot').animate({right:5}, 50);
		$('#fixedfoot').animate({right:0}, 30);
				
				},2000);
				
				});

