function blankLinks() {
	$("a[rel='e'][href]").attr("target", "_blank");
}

//+ Jonas Raoni Soares Silva
//@ http://jsfromhell.com/array/shuffle [v1.0]
function shuffle(o){ //v1.0
	for(var j, x, i = o.length; i; j = parseInt(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
	return o;
};

function blick() {
    /*
    var bl = $.randomBetween(0,10);
    if (skins[iteration-1] == 36) { bl = 0; }
    if (bl > 4) {
	    return;    
    }
    */
    forceBlick();
}

function forceBlick() {
    for (var i = 1; i < 5; i++) {
	setTimeout(toggleBlick, 50*i);
    }
}

function toggleBlick() {
    $("#effect").toggle();
}

function staticBlicker() {
    $(document).everyTime("5s", function() {
	blick();
    });
}

$(document).ready(function() {
    blankLinks();
    
    /*
    $("#contact-button").overlay({

    	// some mask tweaks suitable for facebox-looking dialogs
	mask: {

		// you might also consider a "transparent" color for the mask
		color: '#eee',

		// load mask a little faster
		loadSpeed: 200,

		// very transparent
		opacity: 0.8
	},

	// disable this for modal dialog-type of overlays
	closeOnClick: false,
    });*/
});
