// JavaScript Document
// ---------------------------------------------------------------------
// Browser Detection 
// 
// ---------------------------------------------------------------------
/*
isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false; 
isDOM=(document.getElementById)?true:false
isOpera=isOpera5=window.opera && isDOM
isOpera6=isOpera && window.print
isOpera7=isOpera && navigator.userAgent.indexOf("Opera 7") > 0 || navigator.userAgent.indexOf("Opera/7") >= 0
isMSIE=isIE=document.all && document.all.item && !isOpera
isMSIE4 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 4.")!=-1)) ? true : false; 
isMSIEmac = ((document.all)&&(isMac)) ? true : false; 
isNC=navigator.appName=="Netscape"
isNC4=isNC && !isDOM
isNC6=isNC && isDOM

*/

function dodaj(tyt,url) {

    var tytul = tyt;
    var adres = url;

   //FireFox
    if (window.sidebar) { 

        window.sidebar.addPanel(tytul, adres, ""); 

    //IE
    } else if (window.external) {

        window.external.AddFavorite(adres, tytul); 

    //Opera
    } else if (window.opera && window.print) {

        var a = document.createElement('a');
        a.setAttribute('href', adres);
        a.setAttribute('title', tytul);
        a.setAttribute('rel','sidebar');
        a.click();
    }
}
 
if (window.external || window.sidebar || 
    (window.opera  && window.print) ) {


}

$(document).ready( function(){
	$("#bookmark").click( function(){
		dodaj('Stowarzyszenie Emitentów Giełdowych','http://www.seg.org.pl');					
	 });
	$("#start").click( function(){
		this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.seg.org.pl');			
	 });
	

});


