
function MM_reloadPage(init) {  //reloads the window if Nav4 resized

  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {

    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}

  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();

}

MM_reloadPage(true);



function MM_findObj(n, d) { //v4.01

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

  if(!x && d.getElementById) x=d.getElementById(n); return x;

}



function MM_showHideLayers() { //v6.0

  var i,p,v,obj,args=MM_showHideLayers.arguments;

  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];

    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }

    obj.visibility=v; }

}

function hideAllLayers() {

	MM_showHideLayers('Home','','hide');

	MM_showHideLayers('Movies','','hide');
		
        MM_showHideLayers('Locations','','hide');
        
        MM_showHideLayers('ShowTimes','','hide');
        
        MM_showHideLayers('Subscribe','','hide');

        MM_showHideLayers('Reviews','','hide');

        MM_showHideLayers('WallPapers','','hide');
        
        MM_showHideLayers('Company','','hide');        

}



function writeMenu()

{

writeMainMenu(writeMenu.arguments[0]);

writeHomeMenu(writeMenu.arguments[0]);

writeMoviesMenu(writeMenu.arguments[0]);

writeLocationsMenu(writeMenu.arguments[0]);

writeShowTimesMenu(writeMenu.arguments[0]);

writeSubscribeMenu(writeMenu.arguments[0]);

writeReviewsMenu(writeMenu.arguments[0]);

//writeWallPapersMenu(writeMenu.arguments[0]);

writeMapsMenu(writeMenu.arguments[0]);

writeUpcomingMenu(writeMenu.arguments[0]);

writeBookingMenu(writeMenu.arguments[0]);

writeCompanyMenu(writeMenu.arguments[0]);
}

function openWindow() {

	alert("hello");

	document.open("home.php");
}


function writeMainMenu(returnURL) {


document.write("<table width='100%'  border='0' cellpadding='0' cellspacing='0'>");

document.write("<tr><td width='15'>&nbsp;</td>");

document.write("<td><a href='../php/home.php' onMouseOver=\"hideAllLayers(); MM_showHideLayers('Home','','show')\">");

document.write("<h6 id=\"hori_top_menu_ft\">Home</a></td>");

document.write("<td><h6 id=\"hori_top_menu_ft\"><a href='#' onMouseOver=\"hideAllLayers(); MM_showHideLayers('Movies','','show')\">");

document.write("<h6 id=\"hori_top_menu_ft\">Movies</a></td>");

document.write("<td><h6 id=\"hori_top_menu_ft\"><a href='#' onMouseOver=\"hideAllLayers(); MM_showHideLayers('Reviews','','show')\">");

document.write("<h6 id=\"hori_top_menu_ft\">Reviews</a></td>");


document.write("<td><h6 id=\"hori_top_menu_ft\"><a href='../php/subscribe.php?ret_url="+ returnURL + "' onMouseOver=\"hideAllLayers(); MM_showHideLayers('Subscribe','','show')\">");

document.write("<h6 id=\"hori_top_menu_ft\">Subscribe</a></td>");


//document.write("<td width=><a href='../php/photo_gallery.php' onMouseOver=\"hideAllLayers(); MM_showHideLayers('WallPapers','','show')\">");

//document.write("<h6 id=\"hori_top_menu_ft\">Photo Gallery</a></td>");

document.write("<td><h6 id=\"hori_top_menu_ft\"><a href='../php/map.php' onMouseOver=\"hideAllLayers(); MM_showHideLayers('Maps','','show')\">");

document.write("<h6 id=\"hori_top_menu_ft\">Maps</a>&nbsp;&nbsp;&nbsp;</td>");

document.write("<td><h6 id=\"hori_top_menu_ft\"><a href='../php/book.php' onMouseOver=\"hideAllLayers(); MM_showHideLayers('Booking','','show')\">");

document.write("<h6 id=\"hori_top_menu_ft\">Booking</a>&nbsp;&nbsp;&nbsp;</td>");

document.write("<td><h6 id=\"hori_top_menu_ft\"><a href='../php/upcoming.php' onMouseOver=\"hideAllLayers(); MM_showHideLayers('Upcoming','','show')\">");

document.write("<h6 id=\"hori_top_menu_ft\">Upcoming Movie</a>&nbsp;</td>");



document.write("<td><h6 id=\"hori_top_menu_ft\"><a href='#' onMouseOver=\"hideAllLayers(); MM_showHideLayers('Locations','','show')\">");

document.write("<h6 id=\"hori_top_menu_ft\">Locations</a></td>");

document.write("<td><h6 id=\"hori_top_menu_ft\"><a href='#' onMouseOver=\"hideAllLayers(); MM_showHideLayers('ShowTimes','','show')\">");

document.write("<h6 id=\"hori_top_menu_ft\">ShowTimes</a></td>");


document.write("<td><h6 id=\"hori_top_menu_ft\"><a href='#' onMouseOver=\"hideAllLayers(); MM_showHideLayers('Company','','show')\">");

document.write("<h6 id=\"hori_top_menu_ft\">Company</a></td>");

document.write("</tr>");

document.write("</table>");

}



function writeHomeMenu() {

document.write("<div id=\"Home\" style='position:absolute ; left:0px; top:1px; width:40px;  visibility: hidden;'>");

document.write("<a href='../php/home.php' onMouseOut=\"MM_showHideLayers('home','','hide')\"></a>");

document.write("</div>");

}

function writeMoviesMenu(returnURL) {

document.write("<div id='Movies' style='position:absolute; left:35px; top:0px; width:106px;  visibility: hidden;'>");

document.write("<a href='#' onMouseOut=\"MM_showHideLayers('Movies','','hide')\" ></a>");

document.write("<div class='dropdown' style='position:absolute;background-color:#660066;left:10px ; top=16px' onMouseOver=\"MM_showHideLayers('Movies','','show')\" onMouseOut=\"hideAllLayers()\" >");

document.write("<table width='100%' cellpadding='0' cellspacing='1' height=100% border=0>");

document.write("<tr><td><a href='../php/all_movie.php?ret_url=" +returnURL+ "'>All Movies</a></td></tr>");

document.write("<tr><td><a href='../php/hindi_movie.php?ret_url=" +returnURL+ "'>Hindi Movies</a></td></tr>");

document.write("<tr><td><a href='../php/marathi_movie.php?ret_url=" +returnURL+ "'>Marathi Movies</a></td></tr>");

document.write("<tr><td><a href='../php/english_movie.php?ret_url=" +returnURL+ "'>English Movies</a></td></tr>");

document.write("<tr><td><a href='../php/other_movie.php?ret_url=" +returnURL+ "'>Other Movies</a></td></tr>");

document.write("</table>"); 

document.write("</div>");

document.write("</div>");

}



function writeSubscribeMenu(returnURL) {

document.write("<div id=\"Subscribe\" style='position:absolute ; left:403px; top:1px; width:126px;  visibility: hidden;' >");

document.write("<a href='../php/subscription.php?ret_url='+returnURL+' onMouseOut=\"MM_showHideLayers('Subscribe','','hide')\"></a>");

document.write("</div>");

}

	




function writeWallPapersMenu(returnURL) {


document.write("<div id=\"WallPapers\" style='position:absolute ; left:590px; top:1px; width:126px;  visibility: hidden;' >");

document.write("<a href='../php/home.php?ret_url='+returnURL+' onMouseOut=\"MM_showHideLayers('WallPapers','','hide')\"></a>");

document.write("</div>");

}

function writeMapsMenu(returnURL) {

document.write("<div id='Maps' style='position:absolute; left:0px; top:0px; width:100px;  visibility: hidden;'>");

document.write("<a href='../php/map.php?ret_url='+returnURL+' onMouseOut=\"MM_showHideLayers('Maps','','hide')\" ></a>");

document.write("</div>");

}


function writeBookingMenu(returnURL) {

document.write("<div id='Maps' style='position:absolute; left:650px; top:0px; width:16px;  visibility: hidden;'>");

document.write("<a href='../php/book.php?ret_url='+returnURL+' onMouseOut=\"MM_showHideLayers('Booking','','hide')\" ></a>");

document.write("</div>");

}

function writeUpcomingMenu(returnURL) {

document.write("<div id='Maps' style='position:absolute; left:700px; top:0px; width:16px;  visibility: hidden;'>");

document.write("<a href='../php/upcoming.php?ret_url='+returnURL+' onMouseOut=\"MM_showHideLayers('Upcoming','','hide')\" ></a>");

document.write("</div>");

}


function writeReviewsMenu(returnURL) {

document.write("<div id='Reviews' style='position:absolute; left:90px; top:0px; width:106px;  visibility: hidden;'>");

document.write("<a href='#' onMouseOut=\"MM_showHideLayers('Reviews','','hide')\" ></a>");

document.write("<div class='dropdown' style='position:absolute;background-color:#660066;left:10px ; top=16px' onMouseOver=\"MM_showHideLayers('Reviews','','show')\" onMouseOut=\"hideAllLayers()\" >");

document.write("<table width='100%' cellpadding='0' cellspacing='1' height=100% border=0>");

document.write("<tr><td><a href='../php/all_review.php?ret_url=" + returnURL + "'>All Movies</a></td></tr>");

document.write("<tr><td><a href='../php/sel_mov_review.php?ret_url=" + returnURL + "'>Selected Movies</a></td></tr>");

document.write("</table>"); 

document.write("</div>");

document.write("</div>");

}

function writeLocationsMenu(returnURL) {

document.write("<div id='Locations' style='position:absolute; left:520px; top:0px; width:106px;  visibility: hidden;'>");

document.write("<a href='#' onMouseOut=\"MM_showHideLayers('Locations','','hide')\" ></a>");

document.write("<div class='dropdown' style='position:absolute;background-color:#660066;left:0px ; top=16px' onMouseOver=\"MM_showHideLayers('Locations','','show')\" onMouseOut=\"hideAllLayers()\" >");

document.write("<table width='100%' cellpadding='0' cellspacing='1' height=100% border=0>");

document.write("<tr><td><a href='../php/locationwise.php?loc_code=001&&ret_url=" +returnURL+ "'>Kothrud</a></td></tr>");

document.write("<tr><td><a href='../php/locationwise.php?loc_code=002&&ret_url=" +returnURL+ "'>Satara Road</a></td></tr>");

document.write("<tr><td><a href='../php/locationwise.php?loc_code=003&&ret_url=" +returnURL+ "'>Mangala</a></td></tr>");


document.write("</table>"); 

document.write("</div>");

document.write("</div>");

}


function writeShowTimesMenu(returnURL) {


document.write("<div id='ShowTimes' style='position:absolute; left:590px; top:0px; width:106px;  visibility: hidden;'>");

document.write("<a href='#' onMouseOut=\"MM_showHideLayers('ShowTimes','','hide')\" ></a>");

document.write("<div class='dropdown' style='position:absolute;background-color:#660066;left:0px ; top=16px' onMouseOver=\"MM_showHideLayers('ShowTimes','','show')\" onMouseOut=\"hideAllLayers()\" >");

document.write("<table width='100%' cellpadding='0' cellspacing='1' height=100% border=0>");

document.write("<tr><td><a href='../php/show_time.php?loca=0&&ret_url=" +returnURL+ "'>All Locations</a></td></tr>");

document.write("<tr><td><a href='../php/show_time.php?loca=1&&ret_url=" +returnURL+ "'>Kothrud</a></td></tr>");

document.write("<tr><td><a href='../php/show_time.php?loca=2&&ret_url=" +returnURL+ "'>Satara Road</a></td></tr>");

document.write("<tr><td><a href='../php/show_time.php?loca=3&&ret_url=" +returnURL+ "'>Mangala</a></td></tr>");

document.write("</table>"); 

document.write("</div>");

document.write("</div>");

}


function writeCompanyMenu(returnURL) {

document.write("<div id='Company' style='position:absolute; left:675px; top:0px; width:90px;  visibility: hidden;'>");

document.write("<a href='#' onMouseOut=\"MM_showHideLayers('Company','','hide')\" ></a>");

document.write("<div class='dropdown' style='position:absolute;background-color:#660066;left:0px ; top=16px' onMouseOver=\"MM_showHideLayers('Company','','show')\" onMouseOut=\"hideAllLayers()\" >");

document.write("<table width='100%' cellpadding='0' cellspacing='1' height=100% border=0>");

document.write("<tr><td><a href='../php/home.php?ret_url='+returnURL+'>About Us</a></td></tr>");

document.write("<tr><td><a href='../php/enquiry.php?ret_url='+returnURL+'>Contact Us</a></td></tr>");

document.write("<tr><td><a href='../php/feedback.php?ret_url='+returnURL+'>Feedback</a></td></tr>");

document.write("<tr><td><a href='../event/event.php?ret_url='+returnURL+'>Events</a></td></tr>");

document.write("<tr><td><a href='#'>Corporate</a></td></tr>");


document.write("</table>"); 

document.write("</div>");

document.write("</div>");

}
