/* Author: 

*/
     $(function() {
        $('.additional').click(function() {
           $('#additional').dialog({
               modal:true,
               width:600,
               height:'auto',
               maxHeight: 600,
               title: $(this).attr('title')
            });
           return false;
        });
        $('#content table').attr('style','');
        $('#content table').attr('width','');
        $('.catalogue').click(function() {
            url = "http://asp-gb.secure-zone.net/v2/index.jsp?id=930/1163/2873&lng=en";
            params  = 'width='+screen.width;
            params += ', height='+screen.height;
            params += ', top=0, left=0'
            params += ', fullscreen=yes';
            newwin=window.open(url,'catalogue', params);
            if (window.focus) {newwin.focus()}
            return false;
        });
        $('.productimage').click(function() { 
            $('#mainproductimage img').attr('src',$('#productimage'+$(this).attr('rel')).attr('src'));
            return false;
        });
        var maxBox;
        var boxHeight = 0;
        var x = 0;
        $('.box h4 a').each(function(i) { 
            if ( $(this).height() > boxHeight ) {
                maxBox = $(this).height();
                boxHeight = maxBox;
            }   
        });
        $('.box h4 a').height(maxBox);
        //var highestCol = Math.max($('#left').height(),$('#right').height(),$('#content').height());
        //$('.column').height(highestCol);
        if (!Modernizr.input.placeholder){
          $("[placeholder]").each(function(){
            $(this).val($(this).attr('placeholder'));
            $(this).bind('focus', function() {
                if ( $(this).val() == $(this).attr('placeholder') ) {
                    $(this).val('');
                }
            });
            $(this).bind('blur', function() {
                if ( $(this).val() == '' || $(this).val() == $(this).attr('placeholder') ) {
                    $(this).val($(this).attr('placeholder'));
                }
            });
          });
        }
     });























