/**
 * Portions of this code by Seth Banks (webmaster at subimage dot com)
 * http://www.subimage.com/
 *
 * Other potions by Baxter Research Center Inc.
 */

function BRCJS_Website_Survey_addEvent(BRCJS_Website_Survey_obj, BRCJS_Website_Survey_evType, BRCJS_Website_Survey_fn)
{
	if (BRCJS_Website_Survey_obj.addEventListener)
	{
    	BRCJS_Website_Survey_obj.addEventListener(BRCJS_Website_Survey_evType, BRCJS_Website_Survey_fn, false);
	    return true;
	} 
	else if (BRCJS_Website_Survey_obj.attachEvent)
	{
    	var BRCJS_Website_Survey_r = BRCJS_Website_Survey_obj.attachEvent("on"+BRCJS_Website_Survey_evType, BRCJS_Website_Survey_fn);
    	return BRCJS_Website_Survey_r;
 	} 
	else 
	{
    	return false;
 	}
}

function BRCJS_Website_Survey_removeEvent(BRCJS_Website_Survey_obj, BRCJS_Website_Survey_evType, BRCJS_Website_Survey_fn, BRCJS_Website_Survey_useCapture)
{
	if (BRCJS_Website_Survey_obj.removeEventListener)
	{
    	BRCJS_Website_Survey_obj.removeEventListener(BRCJS_Website_Survey_evType, BRCJS_Website_Survey_fn, BRCJS_Website_Survey_useCapture);
    	return true;
  	} 
	else if (BRCJS_Website_Survey_obj.detachEvent)
	{
    	var BRCJS_Website_Survey_r = BRCJS_Website_Survey_obj.detachEvent("on"+BRCJS_Website_Survey_evType, BRCJS_Website_Survey_fn);
    	return BRCJS_Website_Survey_r;
  	} 
	else 
	{
    	//alert("Handler could not be removed");
  	}
}

function BRCJS_Website_Survey_getViewportHeight() 
{
	if (window.innerHeight!=window.undefined) return window.innerHeight;
	if (document.compatMode=='CSS1Compat') return document.documentElement.clientHeight;
	if (document.body) return document.body.clientHeight; 
	return window.undefined; 
}

function BRCJS_Website_Survey_getViewportWidth() 
{
	var BRCJS_Website_Survey_offset = 17;
	var BRCJS_Website_Survey_width = null;
	if (window.innerWidth!=window.undefined) return window.innerWidth; 
	if (document.compatMode=='CSS1Compat') return document.documentElement.clientWidth; 
	if (document.body) return document.body.clientWidth; 
}

function BRCJS_Website_Survey_getScrollTop() 
{
	if (self.pageYOffset) // all except Explorer
	{
		return self.pageYOffset;
	}
	else if (document.documentElement && document.documentElement.scrollTop) // Explorer 6 Strict
	{
		return document.documentElement.scrollTop;
	}
	else if (document.body) // all other Explorers
	{
		return document.body.scrollTop;
	}
}

function BRCJS_Website_Survey_getScrollLeft() 
{
	if (self.pageXOffset) // all except Explorer
	{
		return self.pageXOffset;
	}
	else if (document.documentElement && document.documentElement.scrollLeft) // Explorer 6 Strict
	{
		return document.documentElement.scrollLeft;
	}
	else if (document.body) // all other Explorers
	{
		return document.body.scrollLeft;
	}
}

/**
 * SUBMODAL v1.6
 * Used for displaying DHTML only popups instead of using buggy modal windows.
 *
 * By Subimage LLC
 * http://www.subimage.com
 *
 * Contributions by:
 * 	Eric Angel - tab index code
 * 	Scott - hiding/showing selects for IE users
 *	Todd Huss - inserting modal dynamically and anchor classes
 *
 * Up to date code can be found at http://submodal.googlecode.com
 */


//get root path of website
var websitePath = document.location.href;


var url = document.location.toString() ; //url
var e_url = '' ; //edited url
var p = 0 ; //position
var p2 = 0 ;//position 2
p = url.indexOf("//") ;
e_url = url.substring(p+2) ;
p2 = e_url.indexOf("/") ;
var root_url = url.substring(0,p+p2+3);

var popupPath = root_url + "BRCJS_Website_Survey_modalContent.html";




// Popup code
var BRCJS_Website_Survey_gPopupMask = null;
var BRCJS_Website_Survey_gPopupContainer = null;
var BRCJS_Website_Survey_gPopFrame = null;
var BRCJS_Website_Survey_gReturnFunc;
var BRCJS_Website_Survey_gPopupIsShown = false;
var BRCJS_Website_Survey_gDefaultPage = popupPath;
var BRCJS_Website_Survey_gHideSelects = false;
var BRCJS_Website_Survey_gReturnVal = null;

var BRCJS_Website_Survey_gTabIndexes = new Array();
// Pre-defined list of tags we want to disable/enable tabbing into
var BRCJS_Website_Survey_gTabbableTags = new Array("A","BUTTON","TEXTAREA","INPUT","IFRAME");	

// If using Mozilla or Firefox, use Tab-key trap.
//if (!document.all) {
//	document.onkeypress = BRCJS_Website_Survey_keyDownHandler;
//}


var BRCJS_Website_Survey_ID = "";
var BRCJS_Website_Survey_IDCode = "";
var BRCJS_Website_Survey_Link = "";

function BRCJS_Website_Survey_init() {
	var BRCJS_Website_Survey_Domain = window.location.hostname
	var BRCJS_Website_Survey_Split = BRCJS_Website_Survey_Code.split("*")

	if (BRCJS_Website_Survey_Split.length == 2)
	{
		BRCJS_Website_Survey_ID = BRCJS_Website_Survey_Split[0];
		BRCJS_Website_Survey_IDCode = BRCJS_Website_Survey_Split[1];
		BRCJS_Website_Survey_Link = "http://www.brc.com/ws/?p=s&s=" + BRCJS_Website_Survey_ID + "&c=" + BRCJS_Website_Survey_IDCode;
		BRCJS_Website_Survey_Initialize();
	}
}

function BRCJS_Website_Survey_initPopUp() {
	
	var BRCJS_Website_Survey_Domain = window.location.hostname
	var BRCJS_Website_Survey_Split = BRCJS_Website_Survey_Code.split("*")

	if (BRCJS_Website_Survey_Split.length == 2)
	{
		BRCJS_Website_Survey_ID = BRCJS_Website_Survey_Split[0];
		BRCJS_Website_Survey_IDCode = BRCJS_Website_Survey_Split[1];
		BRCJS_Website_Survey_Link = "http://www.brc.com/ws/?p=s&s=" + BRCJS_Website_Survey_ID + "&c=" + BRCJS_Website_Survey_IDCode;
	}

	// Add the HTML to the body
	BRCJS_Website_Survey_theBody = document.getElementsByTagName('BODY')[0];
	BRCJS_Website_Survey_popmask = document.createElement('div');
	BRCJS_Website_Survey_popmask.id = 'BRCJS_Website_Survey_popupMask';
	BRCJS_Website_Survey_popcont = document.createElement('div');
	BRCJS_Website_Survey_popcont.id = 'BRCJS_Website_Survey_popupContainer';
	BRCJS_Website_Survey_popcont.innerHTML = '' +
		'<div id="BRCJS_Website_Survey_popupInner">' +
			'<div id="BRCJS_Website_Survey_popupTitleBar">' +
				'<div id="BRCJS_Website_Survey_popupTitle"><img src="http://www.brc.com/ws/logos/wsLogo-' + BRCJS_Website_Survey_ID + '.jpg" alt="' + BRCJS_Website_Survey_Magazine + '" /></div>' +
				'<div id="BRCJS_Website_Survey_popupControls">' +
					'<img src="http://www.brc.com/ws/v5/close.gif" alt="close [x]" onclick="BRCJS_Website_Survey_hidePopWin(false);" id="BRCJS_Website_Survey_popCloseBox" />' +
				'</div>' +
			'</div>' +
			'<iframe src="'+ BRCJS_Website_Survey_gDefaultPage +'" style="width:100%;height:100%;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="BRCJS_Website_Survey_popupFrame" name="BRCJS_Website_Survey_popupFrame" width="100%" height="100%"></iframe>' +
		'</div>';
	BRCJS_Website_Survey_theBody.appendChild(BRCJS_Website_Survey_popmask);
	BRCJS_Website_Survey_theBody.appendChild(BRCJS_Website_Survey_popcont);
	
	BRCJS_Website_Survey_gPopupMask = document.getElementById("BRCJS_Website_Survey_popupMask");
	BRCJS_Website_Survey_gPopupContainer = document.getElementById("BRCJS_Website_Survey_popupContainer");
	BRCJS_Website_Survey_gPopFrame = document.getElementById("BRCJS_Website_Survey_popupFrame");	
	
	// check to see if this is IE version 6 or lower. hide select boxes if so
	// maybe they'll fix this in version 7?
	var BRCJS_Website_Survey_brsVersion = parseInt(window.navigator.appVersion.charAt(0), 10);
	if (BRCJS_Website_Survey_brsVersion <= 6 && window.navigator.userAgent.indexOf("MSIE") > -1) {
		BRCJS_Website_Survey_gHideSelects = true;
	}
	
	// Add onclick handlers to 'a' elements of class submodal or submodal-width-height
	var BRCJS_Website_Survey_elms = document.getElementsByTagName('a');
	for (BRCJS_Website_Survey_i = 0; BRCJS_Website_Survey_i < BRCJS_Website_Survey_elms.length; BRCJS_Website_Survey_i++) {
		if (BRCJS_Website_Survey_elms[BRCJS_Website_Survey_i].className.indexOf("submodal") == 0) { 
			// var onclick = 'function (){BRCJS_Website_Survey_showPopWin(\''+BRCJS_Website_Survey_elms[BRCJS_Website_Survey_i].href+'\','+width+', '+height+', null);return false;};';
			// BRCJS_Website_Survey_elms[BRCJS_Website_Survey_i].onclick = eval(onclick);
			BRCJS_Website_Survey_elms[BRCJS_Website_Survey_i].onclick = function(){
				// default width and height
				var BRCJS_Website_Survey_width = 400;
				var BRCJS_Website_Survey_height = 200;
				// Parse out optional BRCJS_Website_Survey_width and BRCJS_Website_Survey_height from className
				BRCJS_Website_Survey_params = this.className.split('-');
				if (BRCJS_Website_Survey_params.length == 3) {
					BRCJS_Website_Survey_width = parseInt(BRCJS_Website_Survey_params[1]);
					BRCJS_Website_Survey_height = parseInt(BRCJS_Website_Survey_params[2]);
				}
				BRCJS_Website_Survey_showPopWin(this.href,BRCJS_Website_Survey_width,BRCJS_Website_Survey_height,null); return false;
			}
		}
	}
	
}
BRCJS_Website_Survey_addEvent(window, "load", BRCJS_Website_Survey_init);

function BRCJS_Website_Survey_showPopWin(BRCJS_Website_Survey_url, BRCJS_Website_Survey_width, BRCJS_Website_Survey_height, BRCJS_Website_Survey_returnFunc, BRCJS_Website_Survey_showCloseBox) 
{

	// show or hide the window close widget
	if (BRCJS_Website_Survey_showCloseBox == null || BRCJS_Website_Survey_showCloseBox == true) 
	{
		document.getElementById("BRCJS_Website_Survey_popCloseBox").style.display = "block";
	} else 
	{
		document.getElementById("BRCJS_Website_Survey_popCloseBox").style.display = "none";
	}

	BRCJS_Website_Survey_gPopupIsShown = true;
	BRCJS_Website_Survey_disableTabIndexes();
	BRCJS_Website_Survey_gPopupMask.style.display = "block";
	BRCJS_Website_Survey_gPopupContainer.style.display = "block";
	// calculate where to place the window on screen
	BRCJS_Website_Survey_centerPopWin(BRCJS_Website_Survey_width, BRCJS_Website_Survey_height);
	
	var BRCJS_Website_Survey_titleBarHeight = parseInt(document.getElementById("BRCJS_Website_Survey_popupTitleBar").offsetHeight, 10);


	BRCJS_Website_Survey_gPopupContainer.style.width = BRCJS_Website_Survey_width + "px";
	BRCJS_Website_Survey_gPopupContainer.style.height = (BRCJS_Website_Survey_height+BRCJS_Website_Survey_titleBarHeight) + "px";
	

	BRCJS_Website_Survey_setMaskSize();

	// need to set the width of the iframe to the title bar width because of the dropshadow
	// some oddness was occuring and causing the frame to poke outside the border in IE6
	BRCJS_Website_Survey_gPopFrame.style.width = parseInt(document.getElementById("BRCJS_Website_Survey_popupTitleBar").offsetWidth, 10) + "px";
	BRCJS_Website_Survey_gPopFrame.style.height = (BRCJS_Website_Survey_height) + "px";
	
	// set the BRCJS_Website_Survey_url
	BRCJS_Website_Survey_gPopFrame.src = BRCJS_Website_Survey_url;
	
	BRCJS_Website_Survey_gReturnFunc = BRCJS_Website_Survey_returnFunc;
	// for IE
	if (BRCJS_Website_Survey_gHideSelects == true) {
		BRCJS_Website_Survey_hideSelectBoxes();
	}
	
	window.setTimeout("BRCJS_Website_Survey_setPopTitle();", 600);
}

//
var BRCJS_Website_Survey_gi = 0;

function BRCJS_Website_Survey_centerPopWin(BRCJS_Website_Survey_width, BRCJS_Website_Survey_height) 
{
	if (BRCJS_Website_Survey_gPopupIsShown == true) 
	{
		if (BRCJS_Website_Survey_width == null || isNaN(BRCJS_Website_Survey_width)) 
		{
			BRCJS_Website_Survey_width = BRCJS_Website_Survey_gPopupContainer.offsetWidth;
		}
		if (BRCJS_Website_Survey_height == null) 
		{
			BRCJS_Website_Survey_height = BRCJS_Website_Survey_gPopupContainer.offsetHeight;
		}
		
		var BRCJS_Website_Survey_theBody = document.getElementsByTagName("BODY")[0];
		var BRCJS_Website_Survey_scTop = parseInt(BRCJS_Website_Survey_getScrollTop(),10);
		var BRCJS_Website_Survey_scLeft = parseInt(BRCJS_Website_Survey_theBody.scrollLeft,10);
	
		BRCJS_Website_Survey_setMaskSize();
		
		var BRCJS_Website_Survey_titleBarHeight = parseInt(document.getElementById("BRCJS_Website_Survey_popupTitleBar").offsetHeight, 10);
		
		var BRCJS_Website_Survey_fullHeight = BRCJS_Website_Survey_getViewportHeight();
		var BRCJS_Website_Survey_fullWidth = BRCJS_Website_Survey_getViewportWidth();
		
		BRCJS_Website_Survey_gPopupContainer.style.top = (BRCJS_Website_Survey_scTop + ((BRCJS_Website_Survey_fullHeight - (BRCJS_Website_Survey_height+BRCJS_Website_Survey_titleBarHeight)) / 2)) + "px";
		BRCJS_Website_Survey_gPopupContainer.style.left =  (BRCJS_Website_Survey_scLeft + ((BRCJS_Website_Survey_fullWidth - BRCJS_Website_Survey_width) / 2)) + "px";
		//alert(BRCJS_Website_Survey_fullWidth + " " + BRCJS_Website_Survey_width + " " + BRCJS_Website_Survey_gPopupContainer.style.left);
	}
}

BRCJS_Website_Survey_addEvent(window, "resize", BRCJS_Website_Survey_centerPopWin);
BRCJS_Website_Survey_addEvent(window, "scroll", BRCJS_Website_Survey_centerPopWin);
window.onscroll = BRCJS_Website_Survey_centerPopWin;

function BRCJS_Website_Survey_setMaskSize() 
{
	var BRCJS_Website_Survey_theBody = document.getElementsByTagName("BODY")[0];
			
	var BRCJS_Website_Survey_fullHeight = BRCJS_Website_Survey_getViewportHeight();
	var BRCJS_Website_Survey_fullWidth = BRCJS_Website_Survey_getViewportWidth();
	
	if (BRCJS_Website_Survey_fullHeight > BRCJS_Website_Survey_theBody.scrollHeight) 
	{
		BRCJS_Website_Survey_popHeight = BRCJS_Website_Survey_fullHeight;
	} 
	else 
	{
		BRCJS_Website_Survey_popHeight = BRCJS_Website_Survey_theBody.scrollHeight;
	}
	
	if (BRCJS_Website_Survey_fullWidth > BRCJS_Website_Survey_theBody.scrollWidth) 
	{
		BRCJS_Website_Survey_popWidth = BRCJS_Website_Survey_fullWidth;
	} else 
	{
		BRCJS_Website_Survey_popWidth = BRCJS_Website_Survey_theBody.scrollWidth;
	}
	
	BRCJS_Website_Survey_gPopupMask.style.height = BRCJS_Website_Survey_popHeight + "px";
	BRCJS_Website_Survey_gPopupMask.style.width = BRCJS_Website_Survey_popWidth + "px";
}

function BRCJS_Website_Survey_hidePopWin(BRCJS_Website_Survey_callReturnFunc) 
{
	BRCJS_Website_Survey_gPopupIsShown = false;
	var BRCJS_Website_Survey_theBody = document.getElementsByTagName("BODY")[0];
	BRCJS_Website_Survey_theBody.style.overflow = "";
	BRCJS_Website_Survey_restoreTabIndexes();
	if (BRCJS_Website_Survey_gPopupMask == null) 
	{
		return;
	}
	BRCJS_Website_Survey_gPopupMask.style.display = "none";
	BRCJS_Website_Survey_gPopupContainer.style.display = "none";
	if (BRCJS_Website_Survey_callReturnFunc == true && BRCJS_Website_Survey_gReturnFunc != null) 
	{
		BRCJS_Website_Survey_gReturnVal = window.frames["BRCJS_Website_Survey_popupFrame"].BRCJS_Website_Survey_returnVal;
		window.setTimeout('BRCJS_Website_Survey_gReturnFunc(BRCJS_Website_Survey_gReturnVal);', 1);
	}
	BRCJS_Website_Survey_gPopFrame.src = BRCJS_Website_Survey_gDefaultPage;
	if (BRCJS_Website_Survey_gHideSelects == true) 
	{
		BRCJS_Website_Survey_displaySelectBoxes();
	}
}

function BRCJS_Website_Survey_setPopTitle() 
{
	return;
	if (window.frames["BRCJS_Website_Survey_popupFrame"].document.title == null) 
	{
		window.setTimeout("BRCJS_Website_Survey_setPopTitle();", 10);
	} 
	else 
	{
		document.getElementById("BRCJS_Website_Survey_popupTitle").innerHTML = window.frames["BRCJS_Website_Survey_popupFrame"].document.title;
	}
}

//function BRCJS_Website_Survey_keyDownHandler(e) 
//{
//    if (BRCJS_Website_Survey_gPopupIsShown && e.keyCode == 9)  return false;
//}

function BRCJS_Website_Survey_disableTabIndexes() 
{
	if (document.all) 
	{
		var BRCJS_Website_Survey_i = 0;
		for (var BRCJS_Website_Survey_j = 0; BRCJS_Website_Survey_j < BRCJS_Website_Survey_gTabbableTags.length; BRCJS_Website_Survey_j++) {
			var BRCJS_Website_Survey_tagElements = document.getElementsByTagName(BRCJS_Website_Survey_gTabbableTags[BRCJS_Website_Survey_j]);
			for (var BRCJS_Website_Survey_k = 0 ; BRCJS_Website_Survey_k < BRCJS_Website_Survey_tagElements.length; BRCJS_Website_Survey_k++) {
				BRCJS_Website_Survey_gTabIndexes[BRCJS_Website_Survey_i] = BRCJS_Website_Survey_tagElements[BRCJS_Website_Survey_k].tabIndex;
				BRCJS_Website_Survey_tagElements[BRCJS_Website_Survey_k].tabIndex="-1";
				BRCJS_Website_Survey_i++;
			}
		}
	}
}

function BRCJS_Website_Survey_restoreTabIndexes() 
{
	if (document.all) 
	{
		var BRCJS_Website_Survey_i = 0;
		for (var BRCJS_Website_Survey_j = 0; BRCJS_Website_Survey_j < BRCJS_Website_Survey_gTabbableTags.length; BRCJS_Website_Survey_j++) 
		{
			var BRCJS_Website_Survey_tagElements = document.getElementsByTagName(BRCJS_Website_Survey_gTabbableTags[BRCJS_Website_Survey_j]);
			for (var BRCJS_Website_Survey_k = 0 ; BRCJS_Website_Survey_k < BRCJS_Website_Survey_tagElements.length; BRCJS_Website_Survey_k++) 
			{
				BRCJS_Website_Survey_tagElements[BRCJS_Website_Survey_k].tabIndex = BRCJS_Website_Survey_gTabIndexes[BRCJS_Website_Survey_i];
				BRCJS_Website_Survey_tagElements[BRCJS_Website_Survey_k].tabEnabled = true;
				BRCJS_Website_Survey_i++;
			}
		}
	}
}


function BRCJS_Website_Survey_hideSelectBoxes() 
{
	var BRCJS_Website_Survey_x = document.getElementsByTagName("SELECT");

  	for (BRCJS_Website_Survey_i=0;BRCJS_Website_Survey_x && BRCJS_Website_Survey_i < BRCJS_Website_Survey_x.length; BRCJS_Website_Survey_i++) 
	{
    	BRCJS_Website_Survey_x[BRCJS_Website_Survey_i].style.visibility = "hidden";
	}
}

function BRCJS_Website_Survey_displaySelectBoxes() 
{
 	var BRCJS_Website_Survey_x = document.getElementsByTagName("SELECT");
 	for (BRCJS_Website_Survey_i=0;BRCJS_Website_Survey_x && BRCJS_Website_Survey_i < BRCJS_Website_Survey_x.length; BRCJS_Website_Survey_i++)
	{
    	BRCJS_Website_Survey_x[BRCJS_Website_Survey_i].style.visibility = "visible";
  	}
}

function BRCJS_Website_Survey_WriteCookie(BRCJS_Website_Survey_name, BRCJS_Website_Survey_value, BRCJS_Website_Survey_expires) 
{
	var BRCJS_Website_Survey_exp =new Date()
	BRCJS_Website_Survey_exp.setTime(BRCJS_Website_Survey_exp.getTime() + (1000 * 60 * 60 * 24 * BRCJS_Website_Survey_expires));     //set it BRCJS_Website_Survey_expires days ahead 
	document.cookie = BRCJS_Website_Survey_name + "=" + escape(BRCJS_Website_Survey_value) + "; path=/" + ((BRCJS_Website_Survey_exp == null) ? "" : "; expires=" + BRCJS_Website_Survey_exp.toGMTString());
} 
	
function BRCJS_Website_Survey_GetCookie (BRCJS_Website_Survey_cookie_name) 
{
    var BRCJS_Website_Survey_cookie_results = document.cookie.match ( '(^|;) ?' + BRCJS_Website_Survey_cookie_name + '=([^;]*)(;|$)' );
	if ( BRCJS_Website_Survey_cookie_results )
    	return ( unescape ( BRCJS_Website_Survey_cookie_results[2] ) );
  	else
    	return null;
}

function BRCJS_Website_Survey_MM_openBrWindow(BRCJS_Website_Survey_theURL,BRCJS_Website_Survey_winName,BRCJS_Website_Survey_features) 
{ //v2.0
 	var BRCJS_Website_Survey_cookie_thewindow = window.open(BRCJS_Website_Survey_theURL,BRCJS_Website_Survey_winName,BRCJS_Website_Survey_features);
 	if(BRCJS_Website_Survey_cookie_thewindow)
	{
		BRCJS_Website_Survey_WriteCookie('BRCJS_Website_Survey_Asked', '1', '365');
		BRCJS_Website_Survey_cookie_thewindow.focus();
	} 
}

var BRCJS_Website_Survey_returnVal = "";

function BRCJS_Website_Survey_HideFloating()
{
	if (document.getElementById) 
	{ // DOM3 = IE5, NS6
		document.getElementById('BRCJS_Website_Survey_Floater').style.visibility = 'hidden';
	}
	else 
	{
		if (document.layers) 
		{ // Netscape 4
			document.BRCJS_Website_Survey_Floater.visibility = 'hidden';
		}
		else 
		{ // IE 4
			document.all.BRCJS_Website_Survey_Floater.style.visibility = 'hidden';
		}
	}
}

function BRCJS_Website_Survey_RejectSurvey()
{
	BRCJS_Website_Survey_WriteCookie('BRCJS_Website_Survey_Asked', '1', '365'); //don't ask again for 1 year
	BRCJS_Website_Survey_HideFloating();
	return false;
}

function BRCJS_Website_Survey_SurveyLater()
{
	BRCJS_Website_Survey_WriteCookie('BRCJS_Website_Survey_Asked', '1', '15');
	BRCJS_Website_Survey_HideFloating(); 
	return false;
}

var BRCJS_Website_Survey_Cookie = BRCJS_Website_Survey_GetCookie("BRCJS_Website_Survey_Asked");
function BRCJS_Website_Survey_Initialize()
{		
	var BRCJS_Website_Survey_RandomNumber=Math.floor(Math.random()*BRCJS_Website_Survey_CallEveryXVisitors)		
	if ((BRCJS_Website_Survey_Cookie != "1") && (BRCJS_Website_Survey_RandomNumber == 0))
	{
		BRCJS_Website_Survey_initPopUp();
		BRCJS_Website_Survey_showPopWin(popupPath, 420, 220, BRCJS_Website_Survey_returnRefresh, true);
	}
}

function BRCJS_Website_Survey_returnRefresh(BRCJS_Website_Survey_returnVal)
{
	if (BRCJS_Website_Survey_returnVal == "Reject")
	{
		BRCJS_Website_Survey_RejectSurvey();
	}
	else if (BRCJS_Website_Survey_returnVal == "Later")
	{
		BRCJS_Website_Survey_SurveyLater();
	}
	else if (BRCJS_Website_Survey_returnVal == "Now")
	{
		BRCJS_Website_Survey_MM_openBrWindow(BRCJS_Website_Survey_Link,'BRCJS_Website_Survey_WebsiteSurvey','scrollbars=yes,resizable=yes,width=650,height=450,screenX=50,screenY=50,top=50,left=50');
	}
}

function BRCJS_Website_Survey_MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function BRCJS_Website_Survey_MM_swapImage() { //v3.0
  var i,j=0,x,a=BRCJS_Website_Survey_MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=BRCJS_Website_Survey_MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function BRCJS_Website_Survey_MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}