/*
 * Site Common Javascript
 *
 * May 10, 2010
 *
 */

// init the local namespace. All functions should be part of this namespace
var $aaoc = window.$aaoc || {};  


jQuery(document).ready(function() {

    //$clxcommon.initExternal();
    //$clxcommon.initWarning();
    //$clxcommon.attachClickAnalytics('clorox-promo');
    //$clxcommon.attachClickAnalytics('clorox-video');
    //$clxcommon.attachClickAnalytics('clorox-download');
    	
 	//LINKED DIVS
 	//HOME
 		//in bubbles
 	//$clxcommon.createLink('#someDiv', '/some-path/');
 
});

// user block functions

function popupWhyRegister(){
	document.getElementById("user_popup_why_register").style.display = 'block';
}
function closePopupWhyRegister(){
	document.getElementById("user_popup_why_register").style.display = 'none';
}

/*
function handleSubmitLogin()
{
	fvLogin = new FormValidator();

	fvLogin.setErrorMsgBoxID("error_box");
	fvLogin.setLabelErrorClass("error");
	fvLogin.setErrorBoxDisplay("block");

	fvLogin.addField("email","Email","email",true,"");
	fvLogin.addField("password","Password","text",true,"");
	return fvLogin.validate();

}
*/

function pngImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=pngImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

/* exit site */
function removePopup() {
	document.getElementById("exitaaoc").style.display = 'none';
}

function exitAAOC() {
	document.getElementById("exitaaoc").style.display = 'block';
	document.getElementById("exitaaoc").style.position = 'absolute';
}
