function showFlash() {
	//this div positions the flash container it on the page
	obj1 = document.getElementById("container");
	obj1.style.visibility = "visible";
	obj1.style.display = "inline";
	obj1.style.backgroundColor = "#FFF";
	timer('start',10);
}

function hideFlash() {	
	obj1 = document.getElementById("container");
	obj1.style.display = "none";
	obj1.style.visibility = "hidden";
}
var newCount;

function timer(position,count)
{
if (position == 'start') {
document.getElementById("timer").innerHTML=count
newCount = count - 1
setTimeout("timer('go',newCount)",1200)
}

if (position == 'go') {
document.getElementById("timer").innerHTML=count
newCount--;
if (newCount >= 0) {
setTimeout("timer('go',newCount)",1200);
} else {
 hideFlash();
}
}
}


function Masthead () {

}

function toggle_ad(){
	//$('#ad_creative_1').toggle();
	//$('#ad_creative_expand_btn_1').toggle();
	$('#Banner').toggle();
	$('#ad_creative_expand_btn_1').toggle();
}

Masthead.prototype.collapse_ad = function() {
	obj1 = document.getElementById("Banner");
        obj2 = document.getElementById("ad_creative_expand_btn_1");

        obj1.style.display = "none";
        obj1.style.visibility = "hidden";
        obj2.style.display = "block";
        obj2.style.visibility = "visible";
};

var masthead = new Masthead();

