
var yo = 0;
		 $(document).ready(function(){
		        $('.yoxview').yoxview({lang: 'sv'});
				/*$("#thumbnails").yoxview({
					backgroundColor: 'Blue',
					playDelay: 5000
				}); */
				$('div.cat').mouseenter(function() {
						$(this).css('background-color','#eee');
						$(this).find("div.alternativ").slideDown('fast', function() {	
							//$(this).find("div.alternativ").css('background-color','#eee');
						});
						yo++;
							/*
							var e = $(this);
							setTimeout(function() {
												
								if (yo == 1) {
									$(e).css('background-color','#eee');
									$(e).find("div.alternativ").slideDown('fast', function() {													  
									});
									}
									if (yo > 0) {
										yo--;
									}
								},200);
							*/
							
				  }).mouseleave(function() {
					if (yo > 0) {
						yo--;
					}
					$(this).find("div.alternativ").slideUp('fast', function() {
					 $(this).parent().css('background-color','');
  					});
					$(this).css('background-color','#fafafa');
				  });
				$('#linkVehicles').click(function() {
					if($.browser.msie && $.browser.version=="6.0") {
						//$("body").attr({ scrollTop: $("body").attr("scrollHeight") }); 
						$('html, body').animate({ scrollTop: 3000 }, 'slow'); 
					} else {
						//alert($('.menuFooterDiv').height());
						if ($('.menuFooterDiv').height() != 155) {
							$('.menuFooterDiv').animate({ height: "155px"}, 300 );
						} else {
							$('.menuFooterDiv').animate({ height: "26px"}, 800 );
						}
					}
				  
				  
				});
		    });

		 


function view_productimage(src,imgid) {
	document.getElementById(imgid).src = "/images/" + src;
}
	
function view_hirez(imagename) {
	var d = new Date();
	window.open("/view_hirez.asp?imagename="+imagename, "view" + d.getMilliseconds());
}

function write_email(dom,top,usr) {
	document.write('<a href=\"mailto:' + usr + '@' + dom + '.' + top + '\">');
	document.write(usr + '@' + dom + '.' + top + '</a>');
}

function openwin(url,args) {
	var d = new Date();
	window.open(url, "view" + d.getMilliseconds(), args);
}
