//head decorator
var shown = false;
function overTop(e, elm){
    //elm.style.backgroundColor = '#222200';        
    if(!shown){
        var i = new SZN.CSSInterpolator(elm, 100, {endCallback: function(){shown = true;}});
        i.addColorProperty('backgroundColor', '#111100', '#222200');
        i.start();
    }
}
function outTop(e, elm){
    //elm.style.backgroundColor = '#111100';
    if(shown){
        var i = new SZN.CSSInterpolator(elm, 200, {endCallback: function(){shown = false;}});
        i.addColorProperty('backgroundColor', '#222200', '#111100');
        i.start();
    }
}

//logo decorator
function logoOver(e, elm){
    //elm.style.backgroundColor = '#222200';        
    var i = new SZN.CSSInterpolator(elm, 450, {frequency: 50});
    i.addProperty('backgroundPosition', -60, -600, 'px top');
    i.start();
}
function logoOut(e, elm){
    elm.style.backgroundPosition = '-0px top';
}


//description decorator
function showInfo(){
    var desc = SZN.gEl("picture-description");
    desc.style.display = 'block';
}
function hideInfo(){
    var desc = SZN.gEl("picture-description");
    desc.style.display = 'none';
}
//share decorator
var shareShow = false;
function showHideShare(){
    var share = SZN.gEl("picture-share");
    
    if(!shareShow){
        share.style.display = 'block';
    }else{
        share.style.display = 'none';
    }
    shareShow = !shareShow;
}
function hideShare(){
    var share = SZN.gEl("picture-share");
    share.style.display = 'none';
    shareShow = false;
}

function fbs_click() {
	var u=location.href;
	var t=document.title;
	hideShare();
	window.open(
		'http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&amp;t='+encodeURIComponent(t),
		'sharer',
		'toolbar=0,status=0,width=626,height=436');
	return false;
}

