var TRCarWidget = {
	init: function () {
		var w_url='http://yma-bg.com/widget/widget.php?';
		if (typeof w_lang != 'undefined') { w_url += '&w_lang=' + w_lang; }
		if (typeof w_width != 'undefined') { w_url += '&w_width=' + w_width; }
		if (typeof w_height != 'undefined') { w_url += '&w_height=' + w_height; }
		if (typeof w_img_back != 'undefined') { w_url += '&w_img_back=' + encodeURIComponent(w_img_back); }
		if (typeof w_img_top != 'undefined') { w_url += '&w_img_top=' + encodeURIComponent(w_img_top); }
		if (typeof w_img_bottom != 'undefined') { w_url += '&w_img_bottom=' + encodeURIComponent(w_img_bottom); }
		if (typeof w_title != 'undefined') { w_url += '&w_title=' + w_title; }
		if (typeof w_email != 'undefined') { w_url += '&w_email=' + w_email; }
		if (typeof w_theme != 'undefined') { w_url += '&w_theme=' + w_theme; }
		if (typeof w_color_text != 'undefined')	{ w_url += '&w_color_text=' + w_color_text; }
		if (typeof w_color_box != 'undefined')	{ w_url += '&w_color_box=' + w_color_box; }
		if (typeof w_color_border != 'undefined')	{ w_url += '&w_color_border=' + w_color_border; }
		if (typeof w_id != 'undefined')	{ w_url += '&w_id=' + w_id; }
		w_url += '&w_referer=' + encodeURIComponent(document.location.href);
		document.write("<iframe src='"+w_url+"' width='"+w_width+"' height='"+w_height+"' frameborder='no' scrolling='no'></iframe>");
	}
};
TRCarWidget.init();