document.write("<div class='masthead' style='width:742px; background-color:#fff; height:155px; border:0px solid red; float:right; margin-right:5px'>");



var home="";
var xmlHttp=null;

if (document.all){
 home +="<div style='float:left; width:15px; height:15px;'><img src='http://content.cricketnirvana.com/images/home-button.jpg' border='0' alt='Make this site your Home Page' align='left'></div><div style='float:left; border:0px solid red; margin-left:3px; margin-top:2px;'><A HREF='#' class='link-drkblue' onClick=\"this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.cricketnirvana.com\')\";>";
  home +='Make this site your Home Page</a>';
}

else if (document.getElementById){
 home +="<div style='float:left; width:15px; height:15px; border:0px solid red'><img src='http://content.cricketnirvana.com/images/home-button.jpg' border='0' alt='Drag this link onto your Home button to make this your Home Page'  title='Drag this link onto your Home button in your tool bar to make this your Home Page' align='left'></div><div style='float:left; border:0px solid blue; margin-left:3px; margin-top:1px;'><a href='http://www.cricketnirvana.com' onclick='return test();' class='link-drkblue'  title='Drag this link onto your Home button to make this your Home Page'>&nbsp;Make this site your Home Page </a>";
}

// If it's Netscape 4 or lower, give instructions to set Home Page
else if (document.layers){
 home +="<div style='float:left; width:15px; height:15px;'><img src='http://content.cricketnirvana.com/images/home-button.jpg' border='0' alt='Drag this link onto your Home button to make this your Home Page' title='Drag this link onto your Home button in your tool bar to make this your Home Page' align='left'></div><div style='float:left; border:0px solid red; margin-left:3px; margin-top:1px;'><a href='http://www.cricketnirvana.com' onclick='return test();' class='link-drkblue'  title='Drag this link onto your Home button to make this your Home Page'>&nbsp;Make this site your Home Page </a>";
}
//document.write("<div class='make-homepage' style='width:735px; float:right;padding-left:0px;'><div>"+home+"&nbsp;&nbsp;|&nbsp;&nbsp; <a class='link-drkblue' href=\"javascript:bookmarksite('Cricket Nirvana','http://www.cricketnirvana.com')\">Bookmark this site</a></div><a href=\"javascript:open_cdn_matchcast('insa2402&1','yes')\"><div class='top-right-corner'><iframe src='http://c1.zedo.com/jsc/c1/ff2.html?n=1234;c=1;s=1;d=20;w=400;h=86' frameborder=0 marginheight=0 marginwidth=0 scrolling='no' allowTransparency='true' width=400 height=86></iframe></div></a><br><div style='float:left; width:360px; padding-top:3px;padding-left:22px;'><a href='http://livescores.cricketnirvana.com/livescores/default.html' class='link-drkblue' title='Live Cricket Scores'><h1><span style='font-size:12px;'>Live Cricket Scores</span></h1></a></div></div>");

document.write("<div class='make-homepage' style='width:445px; margin:0; float:right; padding:2px 0 5px 295px; border:0px solid orange'><div style='width:445px; float:right; border:0px solid green'>"+home+"&nbsp;&nbsp;|&nbsp;&nbsp; <a class='link-drkblue' href=\"javascript:bookmarksite('Cricket Nirvana','http://www.cricketnirvana.com')\">Bookmark this site</a><a href=\"javascript:open_cdn_matchcast('insa2402&1','yes')\"></a>&nbsp;&nbsp;|&nbsp;&nbsp; <a href='http://livescores.cricketnirvana.com/livescores/default.html' class='link-drkblue' title='Live Cricket Scores'><span style='font-size:12px;'><b>Live Cricket Scores</b></span></a></div></div>");

//document.write("<div class='make-homepage' style='width:735px; float:right;padding-left:0px;'><div>"+home+"&nbsp;&nbsp;|&nbsp;&nbsp; <a class='link-drkblue' href=\"javascript:bookmarksite('Cricket Nirvana','http://www.cricketnirvana.com')\">Bookmark this site</a></div><div class='top-right-corner'>Due to an ongoing maintenance initiative, some of you may experience problems accessing the site. We apologize for the inconvenience.</div><br><div style='float:left; width:360px; padding-top:3px;padding-left:22px;'><a href='http://livescores.cricketnirvana.com/livescores/default.html' class='link-drkblue' title='Live Cricket Scores'><h1><span style='font-size:12px;'>Live Cricket Scores</span></h1></a></div></div>");

document.write("</div>");
document.write("<div class='top-banner-holder' style='width:735px; float:right;'>");
//document.write("<img src='/flash/top90.gif' border='0'>");
document.write("<iframe src='http://content.cricketnirvana.com/scripts/728x90-home.html' width='100%' height='90px' scrolling='no' frameborder='no' marginwidth='0' marginheight='0'></iframe>");
document.write("</div>");
document.write("</div>");

function resizeFrame(f) {
if(f!=null && document.getElementById(f.id) != null) {
	f.style.height = f.contentWindow.document.body.scrollHeight + "px";
    } 
}

function openmatchcast(filename)
{
	nwin=window.open("http://www.cricketnirvana.com/flash/matchcast/scorecenter.aspx?"+ filename +"&1","cricketcentre","top=0,left=0,menubar=no,toolbar=no,location=no,resizable=no,scrollbars=no,status=no,width=998px,height=740px")
}

function openmatchcast_domestic(filename)
{
	nwin=window.open("http://www.cricketnirvana.com/flash/matchcast/scorecenter.aspx?"+ filename +"&0","cricketcentre","top=0,left=0,menubar=no,toolbar=no,location=no,resizable=no,scrollbars=no,status=no,width=998px,height=740px")
}

function open_cdn_matchcast(filename,vidstatus)
{
    if(vidstatus=="yes")
    {
	    nwin=window.open("http://livescores.cricketnirvana.com/flash/matchcast/scorecenter_vid.html?"+ filename +"","cricketcentre","top=0,left=0,menubar=no,toolbar=no,location=no,resizable=no,scrollbars=no,status=no,width=998px,height=740px")
    }
    else
    {
	    nwin=window.open("http://livescores.cricketnirvana.com/flash/matchcast/scorecenter_nonvid.html?"+ filename +"","cricketcentre","top=0,left=0,menubar=no,toolbar=no,location=no,resizable=no,scrollbars=no,status=no,width=998px,height=740px")
    }
}


function open_live_chat()
{
	nwin=window.open("http://www.cricketnirvana.com/nirvana_chat.html","cricketchat","top=0,left=0,menubar=no,toolbar=no,location=no,resizable=no,scrollbars=no,status=no,width=430px,height=300px")
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



