
/*
window.onload = function(){

	var refreshed_content = Array('!content');
	// the html-object with id "content" is our primary content area,
	// and will be animated.
	// the html-object with id "sidebar" is our secondary content area
	// and will be refreshed without animation.


	// Restriction liens
	bda.denyURLRules.push('url.contains("/wp-admin/")');
	bda.denyURLRules.push('url.contains("?feed=")');
	bda.denyURLRules.push('url.contains("/trackback/")');
	bda.denyURLRules.push('url.contains("wp-comments-post.php")');
	bda.denyURLRules.push('url.contains("javascript")');
	bda.denyURLRules.push('url.contains("fbconnect_action")');

	// Restriction formulaires
	bda.denyFormRules.push('action.contains("login")');
	bda.denyFormRules.push('action.contains("wp-login.php")');


	bda.transitionTweenType = Tween.regularEaseInOut;
	// optional parameter
	// change the default transition type.
	// the default transition type is "Tween.regularEaseOut".
	// you can select "Tween.None" to disable the tweening.

	bda.transitionAlpha = true;
	// optional parameter
	// this parameter sets if the page should be faded in after parsing or not.
	// default true

	bda.calculateText = "Please wait, I'm parsing the page you requested.";
	// optional parameter
	// this parameter sets the text shown when parsing the page content.
	// default "Parsing images and other content..."

	bda.loadText = "Loading...";
	// optional parameter
	// this parameter sets the text shown when loading a page.
	// default "Loading..."

	bda.errorText = "There has been an error.";
	// optional parameter
	// this parameter sets the text shown when an error occurs.

	bda.externalLocation = "I'm sorry, I can't parse content from an external location";
	// optional parameter
	// this parameter sets the text shown when the user clicked a link to a website without one of the set content area's.

	bda.externalLocationClick = "Click here to open the requested page in a new window: [link]";
	// optional parameter
	// this parameter sets the text shown to open a requested page in a new tab or window.
	// use "[link]" to display the link url in that place

	bda.imageLoadTimeout = 20;
	// optional parameter
	// this parameter sets the time in seconds to wait for images to load.
	// the page will open without the images loaded after this time.
	// default 20

	bda.imagesNotLoadedText = "Some images could not be loaded";
	// optional parameter
	// this parameter sets the text shown when images cannot be loaded
	// text will be shown for 3 seconds before the page will open

	//bda.addEventListener('load_complete','loadCompleteHandler'); 
	//bda.addEventListener('load_begin','loadBeginHandler'); 

	bda.start(refreshed_content); // initiate the script

	//FB.XFBML.Host.parseDomTree();

} 

*/


/*
function loadBeginHandler(e){
	var urlz = e.url;
	if (urlz.indexOf('fbconnect_action_logout') > 0) {
		FB.Connect.logout(function(){
			update_logout_user_box();
		})
	}
	
	if (urlz.indexOf('logout-memberacces') > 0) {
		jQuery.get(
			'index.php?fbconnect_action=logout',
			{  },
			function(data){
				document.getElementById("member-logged").style.display = "none";
				document.getElementById("al_login").style.display = "block";
				bda.getURL( "index.php" );
			}
		);
	}
	
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	if(!isIE){
		var section = gup( 'section' );
		if( section != "" ){
			getFlashMovie( "header" ).changeSection( section );
		}
	}
	
}
 
function loadCompleteHandler(e){
	var urlz = e.url;
	if (urlz.indexOf('show-comments') > 0) {
		overComment();
	}
	var allstatusbox = document.getElementById("wajdiii");
	if(allstatusbox!= null && allstatusbox!=undefined){
		jQuery.get(
			'facebook-platform/index.php',
			{  },
			function(data){
				document.getElementById("wajdiii").innerHTML=data;
				FB.XFBML.Host.parseDomTree();
			}
		);
	}
	var fb_user = FB.Connect.get_loggedInUser();
	if(fb_user!=null){
		hideMemberBox();
	}else{
		//showMemberZone();
	}
	FB.XFBML.Host.parseDomTree();
}

*/


window.addEvent('domready', function() {


		var sociableFade = [];
		var sociableOpacity = [];


		$$('.sociable_fade').each(function(el,i){
				
				sociableFade[i] = new Fx.Morph(el,{duration:500,transition: Fx.Transitions.Expo.easeOut,wait:false}).set({'opacity':0});
				
		});

		$$('a.sharefade').each(function(el,i){

			sociableOpacity[i] = 0;
			
			el.addEvent('click',function(e){
			
				new Event(e).stop();

				if(sociableOpacity[i] == 0)
				{
					sociableFade[i].start({'opacity':1});
					sociableOpacity[i] = 1;
				}
				else
				{
					sociableFade[i].start({'opacity':0});
					sociableOpacity[i] = 0;
				}
				
			});
			
		});

});


	

