function opCreativeSetCookieA(n, v, d, e){var de = new Date;de.setTime(de.getTime() + e * 1000);document.cookie = n + "=" + escape(v) + ((e==null) ? "" : ("; expires=" + de.toGMTString())) + "; path=/" + ((d==null) ? "" : (";domain=" + d));}
function opCreativeGetDocumentSLD(){var sld = document.domain;var dp = sld.split(".");var l = dp.length;if (l < 2) sld = null;else if (!isNaN(dp[l-1]) && !isNaN(dp[l-2])) sld = null;else sld = "." + dp[l-2] + "." + dp[l-1];return sld;}
opCreativeSetCookieA("op331homepagemvtgum", "a00400h02c241vj0dq13i4241vj0ee1yu1f59", opCreativeGetDocumentSLD(), 2592000);
opCreativeSetCookieA("op331homepagemvtliid", "a00400h02c241vj0dq13i4241vj0ee1yu1f59", opCreativeGetDocumentSLD(), 86400);
optimost.addModule("Main", function ()
{
_main = document.getElementById('opmodule_main');
var ELEMENT_NODE = 1; var TEXT_NODE = 3;
function opNextSibling(E) {
E = E.nextSibling;
while (E && E.nodeType != ELEMENT_NODE) { E = E.nextSibling; };
return E;
}
function opPreviousSibling(E) {
E = E.previousSibling;
while (E && E.nodeType != ELEMENT_NODE) { E = E.previousSibling; };
return E;
}
var clkStayInformed = 'http://by.optimost.com/go/331-230/a00400h02c241vj0dq13i4241vj0ee1yu1f59/';
var clkDonate = 'http://by.optimost.com/go/331-225/a00400h02c241vj0dq13i4241vj0ee1yu1f59/';
var clkTakeAction = 'http://by.optimost.com/go/331-231/a00400h02c241vj0dq13i4241vj0ee1yu1f59/';
var clkJoinUs = 'http://by.optimost.com/go/331-226/a00400h02c241vj0dq13i4241vj0ee1yu1f59/';
var clkShop = 'http://by.optimost.com/go/331-229/a00400h02c241vj0dq13i4241vj0ee1yu1f59/';
var clkMusicForHumanRights = 'http://by.optimost.com/go/331-227/a00400h02c241vj0dq13i4241vj0ee1yu1f59/';
var clkOrganicBouquet = 'http://by.optimost.com/go/331-228/a00400h02c241vj0dq13i4241vj0ee1yu1f59/';
if(document.getElementsByTagName('base')[0] != null){ // If we have a base statement, use that to set the root path
daRoot = document.getElementsByTagName('base')[0].href;
var orig = daRoot.split("//");
protocol = orig[0] + '//';
var dir = orig[1].split("/");
var dirs = "";
for(var i=0;i<dir.length-1;i++){
dirs += (dir[i]!=''?dir[i] + '/':'');
}
daBaseDomain = protocol + dir[0];
daDomain = protocol + dir[0] + '/';
daRoot = protocol + dirs;
}
else {
var sPage = window.location.pathname;
var dir = sPage.split("/");
var dirs = "";
var baseURL;
for(var i=0;i<dir.length-1;i++){
dirs += (dir[i]!=''?dir[i] + '/':'');
}
daBaseDomain = location.protocol+"//"  + location.host;
daDomain = location.protocol+"//"  + location.host + '/';
daRoot = location.protocol+"//" + location.host + "/" + dirs;
}
f = document.forms;
if (f) {
for (i=0; i<f.length; i++) {
i0 = f[i].getElementsByTagName('input')[0];
if (i0) {
if (i0.id == 'em') {
var opBase = (f[i].action.match('http'))?'':daBaseDomain;
opFormAction = clkStayInformed + '?oppost=' + opBase + escape(f[i].action).replace('?','&');
f[i].action = opFormAction;
}
}
}
}
e = document.getElementById('touttable');
if (e) {
a = e.getElementsByTagName('a');
for (i=0; i<a.length; i++) {
h = a[i].href;
opExistingMouseOver = '';
if (a[i].onmouseover) {
opExistingMouseOver = a[i].onmouseover.toString();
opExistingMouseOver = opExistingMouseOver.substring(opExistingMouseOver.indexOf("{") + 1, opExistingMouseOver.lastIndexOf("}"));
}
opExistingMouseOut = '';
if (a[i].onmouseout) {
opExistingMouseOut = a[i].onmouseout.toString();
opExistingMouseOut = opExistingMouseOut.substring(opExistingMouseOut.indexOf("{") + 1, opExistingMouseOut.lastIndexOf("}"));
}
if (a[i].innerHTML.match('donateright.gif')) {
h = (h.match('http'))?h:daBaseDomain+h;
a[i].href = clkDonate + '?oplink=' + h.replace('?','&');
oldLink = 'window.status=\''+h+'\'; return true;';
a[i].onmouseover = new Function (opExistingMouseOver + oldLink);
blankLink = 'window.status=\'\'; return true;';
a[i].onmouseout = new Function (opExistingMouseOut + blankLink);
} else if (a[i].innerHTML.match('takeactionright.gif')) {
h = (h.match('http'))?h:daBaseDomain+h;
a[i].href = clkTakeAction + '?oplink=' + h.replace('?','&');
oldLink = 'window.status=\''+h+'\'; return true;';
a[i].onmouseover = new Function (opExistingMouseOver + oldLink);
blankLink = 'window.status=\'\'; return true;';
a[i].onmouseout = new Function (opExistingMouseOut + blankLink);
} else if (a[i].innerHTML.match('joinusright.gif')) {
h = (h.match('http'))?h:daBaseDomain+h;
a[i].href = clkJoinUs + '?oplink=' + h.replace('?','&');
oldLink = 'window.status=\''+h+'\'; return true;';
a[i].onmouseover = new Function (opExistingMouseOver + oldLink);
blankLink = 'window.status=\'\'; return true;';
a[i].onmouseout = new Function (opExistingMouseOut + blankLink);
} else if (a[i].innerHTML.match('shopright.gif')) {
h = (h.match('http'))?h:daBaseDomain+h;
a[i].href = clkShop + '?oplink=' + h.replace('?','&');
oldLink = 'window.status=\''+h+'\'; return true;';
a[i].onmouseover = new Function (opExistingMouseOver + oldLink);
blankLink = 'window.status=\'\'; return true;';
a[i].onmouseout = new Function (opExistingMouseOut + blankLink);
} else if (a[i].href.match('musicforhumanrights')) {
h = (h.match('http'))?h:daBaseDomain+h;
a[i].href = clkMusicForHumanRights + '?oplink=' + h.replace('?','&');
oldLink = 'window.status=\''+h+'\'; return true;';
a[i].onmouseover = new Function (opExistingMouseOver + oldLink);
blankLink = 'window.status=\'\'; return true;';
a[i].onmouseout = new Function (opExistingMouseOut + blankLink);
} else if (a[i].href.match('workingassetswireless.com')) {
h = (h.match('http'))?h:daBaseDomain+h;
a[i].href = clkOrganicBouquet + '?oplink=' + h.replace('?','&');
oldLink = 'window.status=\''+h+'\'; return true;';
a[i].onmouseover = new Function (opExistingMouseOver + oldLink);
blankLink = 'window.status=\'\'; return true;';
a[i].onmouseout = new Function (opExistingMouseOut + blankLink);
}
}
}
if (_main) {
e = document.getElementById('touttable');
if (e) {
e = e.getElementsByTagName('a');
for (i=0; i<e.length; i++) {
if (!(e[i].innerHTML.match('donateright.gif') || e[i].innerHTML.match('takeactionright.gif'))) {
}
if (e[i].innerHTML.match('joinusright.gif')) {
if (e[i].getElementsByTagName('img')[1]) {
if (e[i].getElementsByTagName('img')[1].style.display != 'none') {
e[i].getElementsByTagName('img')[1].style.display = 'none';
p = document.createElement('p'); p.className = 'smallest'; p.style.marginBottom = '0px';
p.innerHTML = '<a style="padding: 0px" href="'+e[i].href+'">JOIN US</a>';
e[i].parentNode.insertBefore(p,opNextSibling(e[i]));
};
};
}
if (e[i].innerHTML.match('shopright.gif')) {
if (e[i].getElementsByTagName('img')[1]) {
if (e[i].getElementsByTagName('img')[1].style.display != 'none') {
e[i].getElementsByTagName('img')[1].style.display = 'none';
p = document.createElement('p'); p.className = 'smallest'; p.style.marginBottom = '0px';
p.innerHTML = '<a style="padding: 0px" href="../../index_files/'+e[i].href+'">SHOP</a>';
e[i].parentNode.insertBefore(p,opNextSibling(e[i]));
};
};
}
}
}
var opForms = new Array();
e = document.getElementById('jump');
if (e) {
e = e.parentNode;
if (e.tagName.toLowerCase() == 'td') {
e = e.getElementsByTagName('img');
for (i=0; i<e.length; i++) {
if (e[i].src.match('stayinformed.gif')) {
e = e[i];
if (e) { opForms[0] = e; };
e = opNextSibling(e);
if (e.tagName.toLowerCase() == 'form') { opForms[1] = e; };
e = opNextSibling(e);
if (e.tagName.toLowerCase() == 'img') { opForms[2] = e; };
opForms[0] = opForms[0].parentNode.removeChild(opForms[0]);
opForms[1] = opForms[1].parentNode.removeChild(opForms[1]);
opForms[2] = opForms[2].parentNode.removeChild(opForms[2]);
}
}
}
}
var opTR = document.createElement('tr');
var opTD = document.createElement('td');
opTR.appendChild(opTD);
opTD.colSpan = '3';
var tr1, tr2, tr3, tr4;
e = document.getElementById('touttable');
if (e) {
e = e.getElementsByTagName('tr')[0];
if (e && e.tagName.toLowerCase() == 'tr') { tr1 = e };
e = opNextSibling(e);
if (e && e.tagName.toLowerCase() == 'tr') { tr2 = e };
e = opNextSibling(e);
if (e && e.tagName.toLowerCase() == 'tr') { tr3 = e };
e = opNextSibling(e);
if (e && e.tagName.toLowerCase() == 'tr') { tr4 = e };
tr1.parentNode.insertBefore(opTR, tr2);
if (opForms) {
for (i=0; i<opForms.length; i++) {
(opForms[i].style.cssFloat)?(opForms[i].style.cssFloat = 'left'):(opForms[i].style.styleFloat='left');
opTD.appendChild(opForms[i]);
}
opTD.innerHTML += '<img width="270" height="20" border="0" alt="break" src="/images/tout_break.gif" style="float: left;"/>';
}
}
}
if (_main) {
e = document.getElementById('touttable');
if (e) {
e = e.getElementsByTagName('img');
for (i=0; i<e.length; i++) {
if (e[i].src.match('donateright.gif')) {
a = e[i].parentNode;
if (a.tagName.toLowerCase() == 'a') {
a.removeChild(e[i]);
a.innerHTML += '<img src="index_files/contributeright.gif" name="contributeright" />';
a.onmouseover = new Function('MM_swapImage(\'contributeright\',\'\',\'contributeright_on.gif\',1)');
a.onmouseout = new Function('MM_swapImage(\'contributeright\',\'\',\'contributeright.gif\',1)');
}
}
}
}
}
if (_main) {
e = document.getElementById('touttable');
if (e) {
e = e.getElementsByTagName('img');
for (i=0; i<e.length; i++) {
if (e[i].src.match('donateright.gif')) {
a = e[i].parentNode;
if (a.tagName.toLowerCase() == 'a') {
a.removeChild(e[i]);
a.innerHTML += '<img src="index_files/donateright_arrow.gif" name="donateright" />';
a.onmouseover = new Function('MM_swapImage(\'donateright\',\'\',\'index_files/donateright_arrow_on.gif\',1)');
a.onmouseout = new Function('MM_swapImage(\'donateright\',\'\',\'index_files/donateright_arrow.gif\',1)');
}
}
if (e[i].src.match('takeactionright.gif')) {
a = e[i].parentNode;
if (a.tagName.toLowerCase() == 'a') {
a.removeChild(e[i]);
a.innerHTML += '<img src="index_files/takeactionright_arrow.gif" name="takeactionright" />';
a.onmouseover = new Function('MM_swapImage(\'takeactionright\',\'\',\'index_files/takeactionright_arrow_on.gif\',1)');
a.onmouseout = new Function('MM_swapImage(\'takeactionright\',\'\',\'index_files/takeactionright_arrow.gif\',1)');
}
}
}
}
}
if (_main) {
e = document.getElementById('utilitynav');
var opUtilityNav = '';
if (e) {
e.style.whiteSpace = 'nowrap';
elem = document.getElementById('searchtext');
if (elem) {
elem.style.width = '200px';
elem.parentNode.style.whiteSpace = 'nowrap';
}
}
}
var clkAreaB_Donate = 'http://by.optimost.com/go/331-232/a00400h02c241vj0dq13i4241vj0ee1yu1f59/';
var clkAreaE_ClickHere = 'http://by.optimost.com/go/331-233/a00400h02c241vj0dq13i4241vj0ee1yu1f59/';
var clkAreaG_Donate = 'http://by.optimost.com/go/331-234/a00400h02c241vj0dq13i4241vj0ee1yu1f59/';
e = document.getElementById('opBodyContentBtn');
if (e) {
h = e.href;
h = (h.match('http'))?h:daBaseDomain+h;
e.href = clkAreaB_Donate + '?oplink=' + h.replace('?','&');
oldLink = 'window.status=\''+h+'\'; return true;';
e.onmouseover = new Function (oldLink);
blankLink = 'window.status=\'\'; return true;';
e.onmouseout = new Function (blankLink);
}
e = document.getElementById('opDonateTakeAction');
if (e) {
h = e.href;
h = (h.match('http'))?h:daBaseDomain+h;
e.href = clkAreaE_ClickHere + '?oplink=' + h.replace('?','&');
oldLink = 'window.status=\''+h+'\'; return true;';
e.onmouseover = new Function (oldLink);
blankLink = 'window.status=\'\'; return true;';
e.onmouseout = new Function (blankLink);
}
e = document.getElementById('opHeaderDonateButton');
if (e) {
h = e.href;
h = (h.match('http'))?h:daBaseDomain+h;
e.href = clkAreaG_Donate + '?oplink=' + h.replace('?','&');
oldLink = 'window.status=\''+h+'\'; return true;';
e.onmouseover = new Function (oldLink);
blankLink = 'window.status=\'\'; return true;';
e.onmouseout = new Function (blankLink);
}
if (_main) {
_main.style.display = 'block';
}
});

document.write('<style type="text/css">' +
'.opDefaultContent_homepagemvt' +
',#opmodule_main' +
'{display:none;}</style>');

