/// RECOMMEND SCRIPT ///

function tellFriend(POP) {
	
			LeftPosition=(screen.width)?(screen.width-450)/2:100;
			TopPosition=(screen.height)?(screen.height-450)/2:100;

	window.open('scr/'+POP,'SMSDaily','top='+TopPosition+',left='+LeftPosition+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=450,height=450')
}
	

/// dynamic menu

document.menuTimer = 0;

var cm=null;
document.onclick = new Function("show(null)")
function getPos(el,sProp) {
	var iPos = 0
	while (el!=null) {
		iPos+=el["offset" + sProp]
		el = el.offsetParent
	}
	return iPos
}

function show(el,m) {
	clearTimeout(document.menuTimer);
	if (m) {
		m.style.display='';
		m.style.pixelLeft = getPos(el,"Left")
		m.style.pixelTop = getPos(el,"Top") + el.offsetHeight - 2
	}
	if ((m!=cm) && (cm)) cm.style.display='none'
	cm=m
}

function menuShow(m){
		clearTimeout(document.menuTimer);
		m.style.display='';
}

function menuOut(){
		document.menuTimer = setTimeout('show(null)', 1000);
}

/*  treew folding menu */

var ns6=(document.getElementById&&!document.all||window.opera)
var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1

function checkcontained(e){
var iscontained=0
cur=ns6? e.target : event.srcElement
i=0
if (cur.id=="foldheader")
iscontained=1
else
while (ns6&&cur.parentNode||(ie4&&cur.parentElement)){
if (cur.id=="foldheader"||cur.id=="foldinglist"){
iscontained=(cur.id=="foldheader")? 1 : 0
break
}
cur=ns6? cur.parentNode : cur.parentElement
}

if (iscontained){
var foldercontent=ns6? cur.nextSibling.nextSibling : cur.all.tags("UL")[0]
if (foldercontent.style.display=="none"){
foldercontent.style.display=""
}
else{
foldercontent.style.display="none"
}
}
}

if (ie4||ns6)
document.onclick=checkcontained

/*  treew folding menu EOF */


//
// Specifies how top 10's of wallpapers should be displayed
//
mm_wizard_table_header_wallpaper_toplist			= "<table border=0 width=100%>"
mm_wizard_table_footer_wallpaper_toplist			= "</table>"
mm_wizard_table_rowstart_odd_wallpaper_toplist		= "<tr>"
mm_wizard_table_rowend_odd_wallpaper_toplist		= "</tr>"
mm_wizard_table_rowstart_even_wallpaper_toplist		= "<tr>"
mm_wizard_table_rowend_even_wallpaper_toplist		= "</tr>"
mm_wizard_table_colstart_odd_wallpaper_toplist		= "<td width=20% align=center>"
mm_wizard_table_colend_odd_wallpaper_toplist		= "</td>"
mm_wizard_table_colstart_even_wallpaper_toplist		= "<td width=20% align=center>"
mm_wizard_table_colend_even_wallpaper_toplist		= "</td>"
mm_wizard_table_content_odd_wallpaper_toplist		= "<table cellspacing=0 cellpadding=0><tr><td><a href='[ORDERURL]'><img src='[IMGURL]' border=0></a></td></tr></table>"
mm_wizard_table_content_even_wallpaper_toplist		= mm_wizard_table_content_odd_wallpaper_toplist;

//
// Specifies how top 10's of javagames should be displayed
//

mm_wizard_table_header_javagame_toplist			= "<table border=0 width=100%>"
mm_wizard_table_footer_javagame_toplist			= "</table>"
mm_wizard_table_rowstart_odd_javagame_toplist		= "<tr>"
mm_wizard_table_rowend_odd_javagame_toplist		= "</tr>"
mm_wizard_table_rowstart_even_javagame_toplist		= "<tr>"
mm_wizard_table_rowend_even_javagame_toplist		= "</tr>"
mm_wizard_table_colstart_odd_javagame_toplist		= "<td width=20% align=center>"
mm_wizard_table_colend_odd_javagame_toplist		= "</td>"
mm_wizard_table_colstart_even_javagame_toplist		= "<td width=20% align=center>"
mm_wizard_table_colend_even_javagame_toplist		= "</td>"
mm_wizard_table_content_odd_javagame_toplist		= "<table cellspacing=0 cellpadding=0><tr><td><a href='[ORDERURL]'><img src='[IMGURL]' border=0></a></td></tr></table>"
mm_wizard_table_content_even_javagame_toplist		= mm_wizard_table_content_odd_javagame_toplist;
