		var myriadpro = {
			//src: '/doga/media/flash/myriad-pro.swf'
			src: '/media/flash/myriad-pro.swf'
		};					
	
		sIFR.useStyleCheck = true;
		sIFR.activate(myriadpro);
		sIFR.replace(myriadpro, {
			selector: 'h2.title, #sidebar h3, #additional h3',
			css: [
				'.sIFR-root { color: #ffffff; font-size: 18px; }'
			],
			paddingRight: 5,
			paddingLeft: 5,
			offsetTop: 3,
			wmode: 'transparent'
		});
	
	$(document).ready(function(){		
		$('#logo, #logos').pngFix();
		
		$("#navigation ul li").hover(
			function () {
					$(this).addClass('hover');
					$(this).find("ul").show();
					},
			function () {			
				 $(this).find("ul").hide('fast');
				 $(this).removeClass('hover');
		});
		
		$("#productMenu").treeview({
			animated: "fast",
			collapsed: true,
			unique: true,
			persist: "location"
		});	
		
		$("#sitemap").treeview({
			animated: "fast",
			collapsed: true,
			unique: true,
			persist: "location"
		});			
		
		$('#products').accordion({
			active: false,
			autoheight: false,
			header: 'h3.category'
		});
		
		$('.products').accordion({
			active: false,
			autoheight: false,
			header: 'h3.subcategory'
		});
		
		$('#new_products a, .new_products a').click(function (e) {
			e.preventDefault();
			var toOpen = this.href;
			//$.modal('<div id="panorama"><iframe id="imageZoom" src="/doga/product.php?view=' + toOpen + '" height=\"400\" width=\"670\" frameborder="0" ></iframe></div>');
			$.modal('<div id="panorama"><iframe id="imageZoom" src="/product.php?view=' + toOpen + '" height=\"400\" width=\"670\" frameborder="0" ></iframe></div>');
			$('#modalContainer a.modalCloseImg').pngFix();
		});
		
		$('input[name="satisfied"]').change(function(){
			if(this.value == "no"){
				$('.sreason').show();
			}
			else{
				$('.sreason').hide();
			}
		});		
		
		$('input[name="priority"]').change(function(){
			if(this.value == "no"){
				$('.preason').show();
			}
			else{
				$('.preason').hide();
			}
		});
		
		$('input[name="service"]').change(function(){
			if(this.value == "no"){
				$('.ssreason').show();
			}
			else{
				$('.ssreason').hide();
			}
		});
		
		$('input[name="pvisit"]').change(function(){
			if(this.value == "no"){
				$('.visittime').hide();
			}
			else{
				$('.visittime').show();
			}
		});					
		
		$('.howOther').click(function(){
				if(this.checked){
					$('#howdetails').show();
				}
				else{
					$('#howdetails').hide();
				}
		});			
		
		$('.whyOther').click(function(){
				if(this.checked){
					$('#whydetails').show();
				}
				else{
					$('#whydetails').hide();
				}
		});	
	});
	
	$(window).load(function(){
		var h = $('#pageText').height();
		if(h < 330){
			var nH = 330 - h;
			$('#pageText').append('<div style="height:'+nH+'px;"<\/div>');	
		}
		
		var ph = $('#new_products, #submenu, #productMenu').height();
		if(ph < 330){
			var npH = 330 - ph;
			$('#new_products').append('<div style="height:'+npH+'px;"<\/div>');
			$('#submenu').append('<div style="height:'+npH+'px;"<\/div>');
			$('#productMenu').append('<div style="height:'+npH+'px;"<\/div>');
		}				
	});
