$.noConflict();
jQuery(document).ready(function($) {
	jQuery(".additional-photo").lightbox();
	jQuery(".main-photo").lightbox();
	jQuery(".lightbox").lightbox();
	//	jQuery("#searcher").focus();
	//$(".main-photo").colorbox();
    jQuery(".subcategory_list").click(function() {
		if (jQuery(this).attr("checked") == true) {
			return true;
        } else {
			alert('Pamiętaj! Aby usunać produkt z tej kategorii zazbacz ją w liście "usuń z kategorii"');
        }
    });//jQuery(".subcategory_list").click(function() {
	jQuery(".list_category_699 a img").attr("src","images/.kategorie/rowery_typ.jpg").attr("height","170").attr("width","350").attr("alt","BMX, City, Cross, Cruiser, Dirt/ Dual, Dziecięce, Fitness/ Speed, Górskie ( MTB ), Junior, Przyczepki, Elektryczne, Poziome, Rehabilitacyjne, Składane, Specjalne, Szosowe , Transportowe, Trójkołowe, Wodne, Stepperbike, Tandemy, Trekking, Unicykle, Urban");
	jQuery(".list_category_698 a img").attr("src","images/.kategorie/rowery_producent.jpg").attr("height","170").attr("width","350").attr("alt","Accent, AGang, Alpina, Arkus, Romet, Author, BBF, Bico, Bottecchia, Bulls, Checker Pig, CTM, Dahon, Delta, Eastern Bikes, EcoBike, Electra, Gary Fisher, Gepida, Ghost, Grand, GT, Hai Bike, Hello Kitty, Hercules, Interbike, Jamis, Kelly's, Kross, KTM, Leader Fox, Maxim, Merida, Mongoose, Moser, Orbea, Panther, Pegasus, Romet, Schwinn, Torpedo, Trek, Univega, Viva, WattWorld");
	jQuery("#search_manufacturer").change(function(){
		if(jQuery("#search_manufacturer").val() !=0 && jQuery("#search_manufacturer").val()!="") {
	        change_url = "-m-"+jQuery("#search_manufacturer").val()+".html";		
	        window.location = change_url;
		}
	});
});


//Funkcje 
function mainmenu(){
jQuery("#menu").css({display: "none"}); // Opera Fix
jQuery("#menu li").hover(function(){
		jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400);
		},function(){
		jQuery(this).find('ul:first').css({visibility: "hidden"});
		});
}
mainmenu();

function showMe (divtoshow, box, divtohide) {
	var tmp = document.getElementById(divtoshow).style.display;
	if (tmp == "block") { 
		document.getElementById(divtoshow).style.display = "none"; 
		if(divtohide != "undefined") {
			document.getElementById(divtohide).style.display = "block"; 		
		}
	} else { 
		document.getElementById(divtoshow).style.display = "block"; 
		if(divtohide != "undefined") {
			document.getElementById(divtohide).style.display = "none"; 		
		}
	}//if (div == "block") {

}
function showMe_table(divtoshow, box, divtohide) {
	var tmp = document.getElementById(divtoshow).style.display;
	if (tmp == "table-row") { 
		document.getElementById(divtoshow).style.display = "none"; 
		if(divtohide != "undefined") {
			document.getElementById(divtohide).style.display = "table-row"; 		
		}
	} else { 
		document.getElementById(divtoshow).style.display = "table-row"; 
		if(divtohide != "undefined") {
			document.getElementById(divtohide).style.display = "none"; 		
		}
	}//if (div == "table-row") {

}


