function setCookie(name, value, expires, path, domain, secure) {
	document.cookie = name + "=" + escape(value) +
	((expires) ? "; expires=" + expires.toGMTString() : "") +
	((path) ? "; path=" + path : "") +
	((domain) ? "; domain=" + domain : "") +
	((secure) ? "; secure" : "")
}

function flash(version, filename, name, width, height, wmode, bgcolor, menu, flashvars) {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+version+"' width='"+width+"' height='"+height+"' id='"+name+"' align='middle'>");
	document.write("<param name='allowScriptAccess' value='sameDomain' />");
	document.write("<param name='wmode' value='"+wmode+"' />");
	document.write("<!-- Flash FIX v0.2 | www.mega.by -->");
	document.write("<param name='bgcolor' value='"+bgcolor+"' />");
	document.write("<param name='salign' value='cc' />");
	document.write("<param name='movie' value='"+filename+"' />");
	document.write("<param name='menu' value='"+menu+"' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='flashvars' value='"+flashvars+"' />");
	document.write("<embed src='"+filename+"' wmode='"+wmode+"' menu='"+menu+"' quality='high' flashvars='"+flashvars+"' salign='lt' width='"+width+"' height='"+height+"' bgcolor='"+bgcolor+"' name='"+name+"' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}

function zoom(url, title, w, h) {
	zoomw=window.open("about:blank", "_blank", "width="+(w+20)+", height="+(h+20));
	zoomw.document.write("<html><head><title>"+title+"</title></head><body style='margin:0px; background:#ffffff;'>");
	zoomw.document.write("<center><table cellpadding='0' cellpading='0' width='100%' height='100%'><tr><td width='100%' height='100%' align='center' valign='middle'>");
	zoomw.document.write("<img src="+url+" width='"+w+"' height='"+h+"'>");
	zoomw.document.write("</td></tr></table>");
	zoomw.document.write("</center></body></html>");
}

function email(name, domain, tld, text, subject) {
	if(subject) {
	} else {
		subject='Письмо с сайта WINBETTING.RU';
	}
	if(text) {
		if(subject) {
			document.write('<a href="mailto:'+name+'@'+domain+'.'+tld+'?Subject='+subject+'">'+text+'</a>');
		} else {
		}
	} else {
		document.write('<a href="mailto:'+name+'@'+domain+'.'+tld+'?Subject='+subject+'">'+name+'@'+domain+'.'+tld+'</a>');
	}
}