var url = 'http://naszpark.pl/';


sIFR.activate(dxcemd);

sIFR.replace(dxcemd, {
    selector: 'h4',
    wmode: 'transparent',
    css: {
        '.sIFR-root': {
            'color': '#4f6d7d',
            'font-weight': 'normal',
            'font-size': '14px'
        }
    },
    filters: {
        DropShadow: {
            knockout: false,
            distance: 0,
            color: '#FFF',
            strenght: 0
        }
    }
});

sIFR.replace(dxcemd, {
    selector: 'h2',
    wmode: 'transparent',
    css: {
        '.sIFR-root': {
            'color': '#4f6d7d',
            'font-weight': 'normal',
            'font-size': '16px'
        }
    },
    filters: {
        DropShadow: {
            knockout: false,
            distance: 0,
            color: '#FFF',
            strenght: 0
        }
    }
});

sIFR.replace(dxcemd, {
    selector: 'h2.news_title a',
    wmode: 'transparent',
    css: {
        '.sIFR-root': {
            'color': '#a80000',
            'font-weight': 'normal',
            'font-size': '16px'
        }
    },
    filters: {
        DropShadow: {
            knockout: false,
            distance: 0,
            color: '#FFF',
            strenght: 0
        }
    }
});

sIFR.replace(dxcemd, {
    selector: 'h3.blue ',
    wmode: 'transparent',
    css: {
        '.sIFR-root': {
            'color': '#4f6d7d',
            'font-weight': 'normal',
            'font-size': '18px'
        }
    },
    filters: {
        DropShadow: {
            knockout: false,
            distance: 0,
            color: '#FFF',
            strenght: 0
        }
    }
});
sIFR.replace(dxcemd, {
    selector: 'h3.green ',
    wmode: 'transparent',
    css: {
        '.sIFR-root': {
            'color': '#71783d',
            'font-weight': 'normal',
            'font-size': '18px'
        }
    },
    filters: {
        DropShadow: {
            knockout: false,
            distance: 0,
            color: '#FFF',
            strenght: 0
        }
    }
});

sIFR.replace(dxcemd, {
    selector: 'h3.orange b',
    wmode: 'transparent',
    css: {
        '.sIFR-root': {
            'color': '#d84a0b',
            'font-weight': 'normal',
            'font-size': '18px'
        }
    },
    filters: {
        DropShadow: {
            knockout: false,
            distance: 0,
            color: '#FFF',
            strenght: 0
        }
    }
});

sIFR.replace(dxcemd, {
    selector: 'h1',
    wmode: 'transparent',
    css: {
        '.sIFR-root': {
            'color': '#71783d',
            'font-weight': 'normal',
            'font-size': '18px'
        }
    },
    filters: {
        DropShadow: {
            knockout: false,
            distance: 0,
            color: '#FFF',
            strenght: 0
        }
    }
});

sIFR.replace(dxcemd, {
    selector: 'h1.green',
    wmode: 'transparent',
    css: {
        '.sIFR-root': {
            'color': '#71783d',
            'font-weight': 'normal',
            'font-size': '18px'
        }
    },
    filters: {
        DropShadow: {
            knockout: false,
            distance: 0,
            color: '#FFF',
            strenght: 0
        }
    }
});
sIFR.replace(dxcemd, {
    selector: 'h1.blue',
    wmode: 'transparent',
    css: {
        '.sIFR-root': {
            'color': '#4f6d7d',
            'font-weight': 'normal',
            'font-size': '18px'
        }
    },
    filters: {
        DropShadow: {
            knockout: false,
            distance: 0,
            color: '#FFF',
            strenght: 0
        }
    }
});


sIFR.replace(dxcemd, {
  selector: 'h1 span.bigOne',
  wmode: 'transparent',
  css: {
	'.sIFR-root': {
		'color': '#9da26b',
		'font-weight': 'normal',
		'font-size': '25px'
	}
  },
  filters: {
	DropShadow: {
		knockout: false,
	    distance: 0,
	    color: '#FFF',
	    strenght: 0
	}
  }
});

sIFR.replace(dxcemd, {
  selector: 'h1 span.smallOne',
  wmode: 'transparent',
  css: {
	'.sIFR-root': {
		'color': '#9da26b',
		'font-weight': 'normal',
		'font-size': '25px'
	}
  },
  filters: {
	DropShadow: {
		knockout: false,
	    distance: 0,
	    color: '#FFF',
	    strenght: 0
	}
  }
});
sIFR.replace(dxcemd, {
  selector: 'h2.profileHeaderSmall span.bigOne',
  wmode: 'transparent',
  css: {
	'.sIFR-root': {
		'color': '#9da26b',
		'font-weight': 'normal',
		'font-size': '20px'
	}
  },
  filters: {
	DropShadow: {
		knockout: false,
	    distance: 0,
	    color: '#FFF',
	    strenght: 0
	}
  }
});

sIFR.replace(dxcemd, {
  selector: 'h2.profileHeaderSmall span.smallOne',
  wmode: 'transparent',
  css: {
	'.sIFR-root': {
		'color': '#9da26b',
		'font-weight': 'normal',
		'font-size': '20px'
	}
  },
  filters: {
	DropShadow: {
		knockout: false,
	    distance: 0,
	    color: '#FFF',
	    strenght: 0
	}
  }
});

$(document).ready(function(){

    $('div#menuCont ul').superfish({
        hoverClass: 'sfHover',
        pathClass: 'current',
        delay: 200, // one second delay on mouseout 
        animation: {
            opacity: 'show',
            height: 'show'
        }, // fade-in and slide-down animation 
        speed: 'fast', // faster animation speed 
        autoArrows: false, // disable generation of arrow mark-up 
        dropShadows: false
    });
    
	$('a[rel*=facebox]').lightBox() 
	
    $('div#menuCont ul li#mPos1, li#mPos2, li#mPos3, li#mPos4, li#mPos5').hover(function(){
        $(this).css('background-position', '0 -34px');
    }, function(){
        $(this).removeClass('activePos1');
        $(this).css('background-position', '0 0px');
    });
    
    
    $('ul.subNav li').hover(function(){
        $(this).css('background-position', '0 -26px');
    }, function(){
        $(this).css('background-position', '0 0px');
    });
    
   
    $("a[href=#]").attr("href", "#underConstruction").lightBox();
        
	
	$('#cycleCont').cycle({
		    fx:     'scrollRight',
		    next:   '#right',
		    timeout: 0,
		    easing:  'backinout'

	});
	
	//IE Supports --------
	
	$('a#logo img, div#partners img, div.anBoxCont, div.anBoxCont2, div.jcarousel_mix2, div.infoBox, div.infoBoxLong').ifixpng();
    //$('div.jcarousel_mix').ifixpng();
	
	if ($.browser.msie & $.browser.version < 7) {
		$('input.search[type="submit"]').css({
			'width' : '88px',
			'height' : '24px',
			'border' : 'none',
			'float' : 'right',
			'cursor' : 'pointer',
			'background' : 'url('+$url+'/images/btnSearch.png) no-repeat top left'
		});
		
		$('input.styleBtn[type="text"]').css({
			'width' : '173px',
			'height' : '14px',
			'border' : '1px solid #dce9f2',
			'padding' : '4px 5px',
			'color' : '#4d6e7d'
		});
		
		$('input.styleBtn2[type="text"]').css({
			'width' : '56px',
			'height' : '14px',
			'border' : '1px solid #dce9f2',
			'padding' : '4px 5px',
			'color' : '#4d6e7d'
		});
		
		$('input.styleBtn[type="password"]').css({
			'width' : '173px',
			'height' : '14px',
			'border' : '1px solid #dce9f2',
			'padding' : '4px 5px',
			'color' : '#4d6e7d'
		});
		
		$('input.register[type="submit"]').css({
			'width' : '156px',
			'height' : '26px',
			'border' : 'none',
			'float' : 'right',
			'cursor' : 'pointer',
			'background' : 'url('+$url+'/images/btnReg.png) no-repeat top left'
		});
		
		$('input.addComment[type="submit"]').css({
			'width' : '156px',
			'height' : '26px',
			'border' : 'none',
			'float' : 'right',
			'cursor' : 'pointer',
			'background' : 'url('+$url+'/images/btnAddComm.png) no-repeat top left'
		});
		
		$('input.add[type="submit"]').css({
			'width' : '88px',
			'height' : '24px',
			'border' : 'none',
			'float' : 'right',
			'cursor' : 'pointer',
			'background' : 'url('+$url+'/images/btnAdd.png) no-repeat top left'
		});
		
		$('input.send[type="submit"]').css({
			'width' : '88px',
			'height' : '24px',
			'border' : 'none',
			'float' : 'right',
			'cursor' : 'pointer',
			'background' : 'url('+$url+'/images/btnSend.png) no-repeat top left'
		});
		
		$('input[type="checkbox"]').css({
			'border' : 'none'
		});
		
		$('input[type="radio"]').css({
			'border' : 'none'
		});
		
		$('div.userPanel td.obokButton').attr('class','obokButtonIE6');
	}
	
	if ($.browser.msie & $.browser.version == 7) {
		$('div.userPanel td.obokButton').attr('class','obokButtonIE7');
	}
	
});


