$(document).ready(function() {
	debugging = false;
	forum_open = false;
// Accordion
			        $('#accessories_link').click(function(){
					window.location='http://www.tenori-onusa.com/tenori-on/us/index.php?main_page=index&cPath=2';
				});
				$("#accordion").accordion({ header: "h3" });
	
				// Tabs
				$('#tabs').tabs();
				$('#tabs2').tabs();

				// Dialog			
				$('#dialog').dialog({
					autoOpen: false,
					width: 600,
					buttons: {
						"Ok": function() { 
							$(this).dialog("close"); 
						}, 
						"Cancel": function() { 
							$(this).dialog("close"); 
						} 
					}
				});
				
				// Dialog Link
				$('#dialog_link').click(function(){
					$('#dialog').dialog('open');
					return false;
				});

				// Datepicker
				$('#datepicker').datepicker({
					inline: true
				});
				
				// Slider
				$('#slider').slider({
					range: true,
					values: [17, 67]
				});
				
				// Progressbar
				$("#progressbar").progressbar({
					value: 20 
				});
				
				//hover states on the static widgets
				$('#dialog_link, ul#icons li').hover(
					function() { $(this).addClass('ui-state-hover'); }, 
					function() { $(this).removeClass('ui-state-hover'); }
				);
	$.Juitter.start({

		searchType:"fromUser", // needed, you can use "searchWord", "fromUser", "toUser"

		searchObject:"TenorionUSA", // needed, you can insert a username here or a word to be searched for, if you wish multiple search, separate the words by comma.



		lang:"en", // restricts the search by the given language

		placeHolder:"juitterContainer", // Set a place holder DIV which will receive the list of tweets example <div id="juitterContainer"></div>

		loadMSG: "Loading messages...", // Loading message, if you want to show an image, fill it with "image/gif" and go to the next variable to set which image you want to use on 

		imgName: "loader.gif", // Loading image, to enable it, go to the loadMSG var above and change it to "image/gif"

		total: 1, // number of tweets to be show - max 100

		nameUser:"text", // insert "image" to show avatar of "text" to show the name of the user that sent the tweet 
		openExternalLinks:"newWindow", // here you can choose how to open link to external websites, "newWindow" or "sameWindow"

	});        
});


