// Shadowbox
Shadowbox.loadSkin('classic', 'shadowbox/src/skin');
Shadowbox.loadLanguage('en', 'shadowbox/src/lang');
Shadowbox.loadPlayer(['flv', 'html', 'iframe', 'img', 'qt', 'swf', 'wmp'], 'shadowbox/src/player');
window.onload = function(){
    Shadowbox.init();
    initDemos();
};

// Disable Right Click
$(document).bind("contextmenu",function(e){
	return false;
});

// Microblog/Twitter
$(function() {
$("#twitter-microblog").getTwitter({
userName: "casaumd",
numTweets: 3,
loaderText: "Loading...",
slideIn: false,
showHeading: false,
showProfileLink: false
});
});

// Photos/Flickr - E-Board & Members
jQuery(function(){
jQuery('#flickr-eboardmember').flickr({
api_key: '569d8533005cf19e50765f923ef74d9f'
, thumb_size: 's'
, size: 'l'
, per_page: 12
, type: 'photoset'
, photoset_id: '72157622332112789'
, sort: 'relevance'
, callback: sbox1 });
});
function sbox1(p){$($($(p).children()).children()).attr('rel', 'shadowbox[photos];options={slideshowDelay:5,continuous:true}');}

// Photos/Flickr - Events & Projects
jQuery(function(){
jQuery('#flickr-eventsprojetcs').flickr({
api_key: '569d8533005cf19e50765f923ef74d9f'
, thumb_size: 's'
, size: 'l'
, per_page: 3
, type: 'photoset'
, photoset_id: '72157622574157484'
, sort: 'relevance'
, callback: sbox2 });
});
function sbox2(s){$($($(s).children()).children()).attr('rel', 'shadowbox[art];options={slideshowDelay:5,continuous:true}');}

// Text Characters Left (load before Form Hint)
$(document).ready(function(){
$('#posText').limit('120','.txtchar')
});

// Form Hint
$(function(){ 
$('input[title!=""]').hint();
$('textarea[title!=""]').hint();
});


// UI Block
/* 
$(function() { 
$.blockUI({ css: { 
border: 'none', 
padding: '5px', 
backgroundColor: '#000', 
'-webkit-border-radius': '10px', 
'-moz-border-radius': '10px', 
opacity: '.5', 
'font-size': '35px', 
'font-weight': 'bold', 
color: '#fff' 
} });
setTimeout($.unblockUI, 1000000000); 
});
*/