ddsmoothmenu.init({
	mainmenuid: "smoothmenu1", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};


$(document).ready(function(){
		   //mainmenu();	
		   		   			
		   $.featureList(
				$("#mycarousel ul li a, #tabs li a"),
				$("#output li"), {
					start_item	:	0,
					transition_interval : 6050
				}
			);
		   
		 		   
		   $('#mycarousel').jcarousel({
				auto: 24,
				scroll: 4,
				wrap: 'last',
				initCallback: mycarousel_initCallback
				});
		   
			$("area").easyTooltip({
				xOffset:-70,
				yOffset:75
				});
		
		   $("#languages_sl").hide();
		   $("#languages_gl").hide();
		   $("#languages_td").hide();
		   $("#languages_vr").hide();
		   $("#languages_wt").hide();
		   $("#languages_mdt").hide();
		   $("#languages_ogl").hide();
		   $("#languages_mmorpg").hide();
		   $("#languages_at").hide();

			$("#add2").hide();
			$("#add3").hide();
			$("#add4").hide();
			$("#add5").hide();
		  
		   	$("#sl").click(function ()
			{$("#languages_sl").toggle();
			});
			
			$("#gl").click(function ()
			{$("#languages_gl").toggle();
			});
			
			$("#td").click(function ()
			{$("#languages_td").toggle();
			});
			
			$("#vr").click(function ()
			{$("#languages_vr").toggle();
			});

			$("#wt").click(function ()
			{$("#languages_wt").toggle();
			});
			
			$("#mdt").click(function ()
			{$("#languages_mdt").toggle();
			});
			
			$("#ogl").click(function ()
			{$("#languages_ogl").toggle();
			});	
			
			$("#mmorpg").click(function ()
			{$("#languages_mmorpg").toggle();
			});	
			
			$("#at").click(function ()
			{$("#languages_at").toggle();
			});	
			
		 });


function attach1(id)
{

	if(id == 'sampletxt_1') 
			document.getElementById('add2').style.display = 'block';
	else
		document.getElementById('add2').style.display = 'none';

}
function attach2(id)
{

	if(id == 'sampletxt_2')
			document.getElementById('add3').style.display = 'block';
	else
		document.getElementById('add3').style.display = 'none';

}
function attach3(id)
{

	if(id == 'sampletxt_3')
			document.getElementById('add4').style.display = 'block';
	else
		document.getElementById('add4').style.display = 'none';

}
function attach4(id)
{

	if(id == 'sampletxt_4')
			document.getElementById('add5').style.display = 'block';
	else
		document.getElementById('add5').style.display = 'none';

}

