$(document).ready(function() {
	debugging = false;
	forum_open = false;
	$.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"
	});        
	//$(".videobox").ceebox();
	$("#videobox_home a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});
    $('.rollover').hover(function() {
        var currentImg = $(this).attr('src');
        $(this).attr('src', $(this).attr('hover'));
        $(this).attr('hover', currentImg);
    }, function() {
        var currentImg = $(this).attr('src');
        $(this).attr('src', $(this).attr('hover'));
        $(this).attr('hover', currentImg);
    });
$('#forum_header_link').click(function() { $('#forum_iframe').toggle("slow"); if (forum_open) {forum_open = false; $('#forum_link').attr('src', 'img/forum_expand.png'); $('#verb').text('Expand'); $('#outerdownloadsbox_home').animate({'marginTop':"-=604px"}); $('#outereventsbox_home').animate({'marginTop':"-=604px"}); $('#footer').animate({'marginTop':"-=604px"});} else { forum_open = true; $('#forum_link').attr('src', 'img/forum_contract.png');$('#verb').text('Contract');$('#outerdownloadsbox_home').animate({'marginTop':"+=604px"});$('#outereventsbox_home').animate({'marginTop':"+=604px"});$('#footer').animate({'marginTop':"+=604px"});} });
$('#filelist').load('fileops.php?f=Manuals',{s:0,n:20});
$('#filelist2').load('fileops.php?f=voice',{s:0,n:20});
$('#filelist3').load('fileops.php?f=mp3demo',{s:0,n:20});
$('#filelist4').load('fileops.php?f=images',{s:0,n:20});
$('#forum_link').click(function() { $('#forum_iframe').toggle("slow"); if (forum_open) {forum_open = false; $('#forum_link').attr('src', 'img/forum_expand.png'); $('#verb').text('Expand'); $('#outerdownloadsbox_home').animate({'marginTop':"-=604px"}); $('#outereventsbox_home').animate({'marginTop':"-=604px"}); $('#footer').animate({'marginTop':"-=604px"});} else { forum_open = true; $('#forum_link').attr('src', 'img/forum_contract.png');$('#verb').text('Contract');$('#outerdownloadsbox_home').animate({'marginTop':"+=604px"});$('#outereventsbox_home').animate({'marginTop':"+=604px"});$('#footer').animate({'marginTop':"+=604px"});} });
$("#fileInput").uploadify({
		'uploader'       : '/scripts/uploadify.swf',
		'script'         : '/scripts/uploadify.php',
		'folder'         : '/downloads',
		'buttonImg'      : '/img/footer_choose_file.png',
		'cancelImg'	 : '/img/close.png',
		'multi'		 : false
	}); 
});
