﻿/* Simple and fake console */
if (!window.console) {
    window.console = {
        log: function (a1,a2,a3,a4,a5,a6) {
            //var console = document.getElementById('myconsole');
            //if (console)
            //console.innerHTML += [a1,a2,a3,a4,a5,a6].join(', ') + '<br />';
        }
    };
}

function createBookmarkLink(obj) {
    var title = "Pamediakopes.gr",
        url = document.getElementById('homepagelink').href;

    if (window.sidebar) 
    { // Mozilla
        window.sidebar.addPanel(title, url,'');
    } 
    else if( window.external ) 
    { // IE Favorite
        window.external.AddFavorite( url, title); 
    }
    else if(window.opera && window.print) { // Opera 
        obj.setAttribute('href',url);
        obj.setAttribute('title',title);
        obj.setAttribute('rel','sidebar');
        obj.click();
    }
    return false;
}

/* Patch for the space between different elements inside boxes */
$(document).ready(function(){
/*@cc_on @*/
/*@if (@_jscript_version <= 5.6)
    $('.boxcontent p+h3').add('.boxcontent p+p').css('margin-top','10px');
@end @*/ 
    /* Patches other layouts too */
});




