/*--------------------------------------------------------------------
Basic Javascript Sheet - Frontoffice

Version: 1.0
Copyright: 2008, dicode® VOF - understanding internet
W: www.dicode.nl
E: info@dicode.nl
T: 0570-750680
--------------------------------------------------------------------*/

/* Global
--------------------------------------------------------------------*/

/* remove url dotted border */
$(document).ready(function() {

	$('a').bind('focus', function() {
		this.blur();
	});
	
	$('*').ifixpng();
    
    $('.eo').emptyonclick();

    $('img.hover').each(function() {
        if ($(this).attr('src').match(/-on\.(.+)$/i)) {
            $(this).removeClass('hover');
        }
    });

    $('img.hover').hover(function() {
        s = $(this).attr('src').replace(/\.([^.]+)$/i, '-on.$1');
        $(this).attr('src', s);
    }, function() {
        s = $(this).attr('src').replace(/-on\.([^.]+)$/i, '.$1');
        $(this).attr('src', s);
    });

	$('.popupwindow').each( function(index) {
		$(this).popupwindow({ nofollow : {
			height:768,
			width:1024,
			toolbar:1,
			scrollbars:1,
			status:1,
			resizable:1,
			left:0,
			top:0,
			center:1,
			createnew:0,
			location:1,
			menubar:1
		},
		route : {
			height:768,
			width:640,
			toolbar:0,
			scrollbars:1,
			status:0,
			resizable:0,
			left:0,
			top:0,
			center:1,
			createnew:0,
			location:0,
			menubar:0
		}
		});
	});
	
    
});

