$(document).ready(function() {
	$("#detail_devam").click(function() {
		$('#preview_detail').hide('slow');
		$('#full_detail').show('slow');
	});
	$("#hide_detail").click(function() {
		$('#full_detail').hide('slow');
		$('#preview_detail').show('slow');
	});
	$(".slider_fade").cycle({ 
    fx:     'fade',
	timeout: 7000,
	prev:    '#prev',
    next:    '#next'
    });
	$('.image').click(function(event) {
	event.preventDefault();
	var imagePath = $(this).attr("href");
	var newImg = new Image;
	newImg.onload = function(){
		$('#big_picture2').hide();
		$('#big_picture2').attr('src', imagePath);
		$('.product_image_large').attr('href', imagePath);
		$('#big_picture2').fadeIn('slow');
	};
	newImg.src = imagePath;
    });
		
	$('.upper_menu_link').attr('target', '_blank');
	
	$('.form_input2').each(function(index, element) {
    var $element = $(element);
    var defaultValue = $element.val();
    $element.focus(function() {
        var actualValue = $element.val();
        if (actualValue == defaultValue) {
            $element.val('');
        }
    });
    $element.blur(function() {
        var actualValue = $element.val();
        if (!actualValue) {
            $element.val(defaultValue);
        }
    });
	});
	
	$('.second_menu_link2').attr('href','javascript://');
	
	$("#gotoPage").click(function(){
		var abr = $("#txtPageNumber").val();
		paging_go_page_('paging_cf_pages_form_name1',abr);
	});
	
	$("[name='eol_input']").click(function(){
		var el = $(this);
		if(el.is(":checked")){
		//is checked
		window.location = "/index.cfm?fuseaction=objects2.view_product_list&eol=1";
		} else {
		//not checked
		window.location = "/index.cfm?fuseaction=objects2.view_product_list";
		}
	});
});
	function yorum_ekle() {
		$('#error_bg2').show();
		$('#yorum_close').show();
	}
	function yorum_kapat2() {
		$('#error_bg2').hide();
		$('#yorum_close').hide();
		$('.comment_div').hide();
	}
	function error_close() {
		$('#error_bg').hide();
		$('#error_msg').hide();
	}
