// Copyright 2008-2009 MassMirror.com, Active9.com (ALL RIGHTS RESERVED)
// YOU MAY NOT REDISTRIBUTE or RE-USE ANY/ALL PARTS OF THIS CODE
// For copyright information and licensing please contact mm@massmirror.com

var i = null;

	function get_id(i) {
		var obj = null;
		if (document.all) {
			obj = document.all[i];
		} else if (document.layers) {
			obj = document.layers[i];
		} else if (document.getElementById) {
			obj = document.getElementById(i);
		}
		return obj;
	}

	function changeheight(id,height,end_height) {
			i = get_id(""+id+"");
			if (height<end_height) {
				i.style.height = ""+height+"%";
				height = height+3;
				if (height<end_height) {
					setTimeout("changeheight('"+id+"',"+height+","+end_height+")",24);
				}
			} else {
				i.style.height = ""+height+"%";
				height = height-3;
				if (height<end_height) {
					setTimeout("changeheight('"+id+"',"+height+","+end_height+")",24);
				}
			}
	}

	function startshowad() {
		window.parent.scroll(0,0);
		i = get_id("mmfpdarea");
		i.style.position = "absolute";
		i.style.top = "0px";
		i.style.left = "0px";
		i.style.height = "0%";
		i.style.width = "100%";
		i.style.border = "0px";
		i.style.margin = "0px";
		i.style.padding = "0px";
		changeheight("mmfpdarea",0,100);
		window.parent.document.body.style.overflow = "hidden";
		i.innerHTML = "<iframe frameborder='0' src='fullpagead.php' border='0' style='border:0px;width:100%;height:100%;margin:0px;'></iframe>";
	}

	function closead() {
		i = get_id('mmfpdarea');
		i.style.position = "absolute";
		i.style.top = "-1px";
		i.style.left = "-1px";
		i.style.height = "0px";
		i.style.width = "0px";
		i.style.border = "0px";
		i.style.margin = "0px";
		i.style.padding = "0px";
		i.style.overflow = "hidden";
		window.parent.document.body.style.overflow = "auto";
		i.innerHTML = '';
	}

	function reloadad() {
		closead();
		startshowad();
	}

	function delayed_reloadad(ms) {
		setTimeout("reloadad()",""+ms+"");
	}

	function minibar_ad(url,title) {
		i = get_id('mmfpdarea');
		i.style.position = "absolute";
		i.style.bottom = "0px";
		i.style.left = "0px";
		i.style.padding = "0px";
		i.innerHTML = "<div style='width:98%;background-color:#FFFFFF;padding:5px;'><B>Brought To You By: <a href='"+url+"' target='_new'>"+title+"</a></B></div>";
	}

	function toggle_closed(url,title) {
		closead();
		//minibar_ad(url,title);
	}

/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarkadd(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

function startshowmmfpad() {
	setTimeout("startshowad()",3000);
}

scroll(0,0);
startshowmmfpad();