// Custom jQuery script for alfatex theme
(function ($) {


Drupal.behaviors.initMyScripts = {
  attach: function (context, settings) {


// Add frame to photos
$('.node .content img', context).parent('a').addClass('frame');


// Creating custom :external selector
$.expr[':'].external = function(obj){
    return !obj.href.match(/^mailto\:/) && !obj.href.match(/^javascript\:/) && (obj.hostname != location.hostname);
};
// Add 'external' CSS class to all external links
$('a:external', context).addClass('external');
$('a.external', context).attr('target', '_blank');

$('#alfaShop', context).bind('focus keydown mouseover', function(){
    Drupal.attachBehaviors('#alfaShop');
});


}
};


})(jQuery);				;

