<!-- INI: Zoom in/out -->

    imgLoad1 = new Image();
    imgLoad2 = new Image();
    imgLoad1.src = "/_system_files/images_shop/ani_loading.gif";
    imgLoad2.src = "/_system_files/images_shop/ani_loading.gif";

    function showZoom(img, id, type, width) {
        var browser = navigator.userAgent.toLowerCase();
        var iwidth = width;
//        var iwidth = (width > 131) ? (-37):(-17);
        with(document.getElementById("div_" + id + type)) {
            removeAttribute("style");
            style.position="absolute";
            style.background="#FFFFFF";
            style.minWidth="140px";
            style.width=style.minWidth;
            style.minHeight="120px";
            style.height=style.minHeight;
            style.border="1px solid #CCCCCC";
            style.zIndex="1";
            style.marginTop="-58px";
            style.marginLeft = iwidth;
        }

        with(document.getElementById("img_" + id + type)) {
            removeAttribute("style");
            style.cursor = "url('/_system_files/images_shop/icon_magnifying_glass.gif'), pointer";
            src = (width > 320) ? (imgLoad2.src):(imgLoad1.src);
            src = img;
        }
    }

    function hideZoom(img, id, type, dis) {
        with(document.getElementById("img_" + id + type)) {
            if (dis == 1) {
                style.opacity = 0.3;
                style.filter = "gray alpha(opacity=50)";
            }
            src = img;
        }


        with (document.getElementById("div_" + id + type)) {
            removeAttribute("style");
        }
    }


<!-- FIM -->

function movr(img,file) { 
    img_on = new Image();
    img_on.src = "http://images.techcar.com.br/img/" + file;

    if (document.images) {
        eval('document.img_'+img+'.src=img_on.src');
    }
}

function mout(img,file) {
    img_off = new Image();
    img_off.src = "http://images.techcar.com.br/img/" + file;
    
    if (document.images) {
        eval('document.img_'+img+'.src=img_off.src');
    }
}

function imprimirFlash(arquivo,w,h,transparente,params,id) {
	document.write('<object'+(((typeof id != 'undefined') && (navigator.appVersion.indexOf('MSIE') > -1))?' id="'+id+'"':'')+' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"' + ((typeof w == 'undefined')?'':' width="'+w+'"') + ((typeof h == 'undefined')?'':' height="'+h+'"') + '>');
	document.write('<param name="movie" value="'+arquivo+'">');
	document.write('<param name=quality value=high>');
	document.write('<param name="menu" value="false">');
	if (typeof params != 'undefined') {
		var p = '';

		for (var i in params) {
			p += i + '="' + params[i] + '" ';
			document.write('<param name="'+i+'" value="'+params[i]+'">');
		}
	}
	if (transparente) {
		document.write('<param name="wmode" value="transparent">');
	}
	document.write('<embed'+(((typeof id != 'undefined') && (navigator.appVersion.indexOf('MSIE') < 0))?' id="'+id+'"':'')+' src="'+arquivo+'" quality="high" pluginspage="https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"' + ((typeof w == 'undefined')?'':' width="'+w+'"') + ((typeof h == 'undefined')?'':' height="'+h+'"') + ' ');
	if (transparente) {
		document.write('wmode="transparent" ');
	}
	document.write(p);
	document.write(' menu="false"></embed>');
	document.write('</object>');
}
