function goto( param ) { this.location.href = param; } 

function toggleCF() {
	var e_cf = $('#contentFlow');
	if( e_cf.is(':visible') ) {
		e_cf.slideUp();
		$('#pf-btn').toggleClass( 'close' );
	}
	else {
		e_cf.slideDown();
		$('#pf-btn').toggleClass( 'close' );
	}
	return false;
}

var cf = new ContentFlow('contentFlow', 
										{ reflectionColor: "#333333",
											reflectionHeight: 0.3,
											scaleFactor: 0.9,
											flowSpeedFactor: 0.5
										}
);

var _item = new Object();
cf.setClickActiveItem( function (event, el) {
						var active = cf.getActiveItem();
						var index = el.itemIndex;
						var e_cap = cf.itemsCaption[index];
						_item = $(cf.items[index]);
						var el_id = _item[0].Caption['id'];
						var nid = el_id.substr(7);
						var path = 'http://localhost' + base_path + '?q=' + lang + '/node/' + nid;
						//$('#contentFlow').slideUp('slow');
         		//$('#content').load( base_path + "?q=asynch/load/19" );
						/*
	         	$("#content").load( base_path + "?q=asynch/load/19", function(){
            	var result = Drupal.parseJson($("#content").html());
            	$("#content").html(result["content"]);
         		});
						*/
            //if (this.itemsContentImage[index]) window.open(this.itemsContent[index].src).focus();
            //alert( path );
            location.href = base_path + '?q=it/node/' + nid;
    });

