/***********************************************
* Pop-it menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var defaultMenuWidth="150px" //set default menu width.

var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT

linkset[0]='<a href="index.asp">Home</a>'
linkset[0]+='<hr>' //Optional Separator
linkset[0]+='<a href="product/prodsection.asp?All,New_Additions">New Additions</a>'
linkset[0]+='<a href="product/prodsection.asp?All,Most_Viewed">Most Viewed</a>'
linkset[0]+='<a href="product/prodsection.asp?All,We_Recommend">We Recommend</a>'
linkset[0]+='<a href="product/prodsection.asp?All,Coming_Soon">Coming Soon</a>'
//linkset[0]+='<a href="product/prodsection.asp?All,Eros_Exclusive">Eros Exclusive</a>'

linkset[1]='<a href="streaming-movies-download.asp">Movie</a>'
linkset[1]+='<hr>' //Optional Separator
linkset[1]+='<a href="product/prodsection.asp?Movie,New_Additions">New Additions</a>'
linkset[1]+='<a href="product/prodsection.asp?Movie,Most_Viewed">Most Viewed</a>'
linkset[1]+='<a href="product/prodsection.asp?Movie,We_Recommend">We Recommend</a>'
linkset[1]+='<a href="product/prodsection.asp?Movie,Coming_Soon">Coming Soon</a>'
//linkset[1]+='<a href="product/prodsection.asp?Movie,Eros_Exclusive">Eros Exclusive</a>'
linkset[1]+='<a href="product/prodsection.asp?Movie,Top_100_Movies">Top 100 Movies</a>'
linkset[1]+='<a href="product/prodsection.asp?Movie,Download_To_Rent">Download To Rent</a>'
linkset[1]+='<a href="product/prodsection.asp?Movie,Download_To_Own">Download To Own</a>'
linkset[1]+='<a href="product/prodsection.asp?Movie,Free_Movies">Free Movies</a>'
linkset[1]+='<a href="product/prodsection.asp?Movie,View_All">View All</a>'

linkset[2]='<a href="bollywood-music.asp">Music</a>'
linkset[2]+='<hr>' //Optional Separator
linkset[2]+='<a href="product/prodsection.asp?Music,New_Additions">New Additions</a>'
linkset[2]+='<a href="product/prodsection.asp?Music,Most_Viewed">Most Viewed</a>'
linkset[2]+='<a href="product/prodsection.asp?Music,We_Recommend">We Recommend</a>'
linkset[2]+='<a href="product/prodsection.asp?Music,Coming_Soon">Coming Soon</a>'
linkset[2]+='<a href="product/prodsection.asp?Music,All_Time_Classics">All Time Classics</a>'
//linkset[2]+='<a href="product/prodsection.asp?Music,Eros_Exclusive">Eros Exclusive</a>'
linkset[2]+='<a href="product/prodsection.asp?Music,View_All">View All</a>'
linkset[2]+='<a href="jukebox/selectsong.asp">Jukebox</a>'

linkset[3]='<a href="tv-shows-online.asp">TV Shows</a>'
linkset[3]+='<hr>' //Optional Separator
linkset[3]+='<a href="product/prodsection.asp?TV_Shows,New_Additions">New Additions</a>'
linkset[3]+='<a href="product/prodsection.asp?TV_Shows,Most_Viewed">Most Viewed</a>'
linkset[3]+='<a href="product/prodsection.asp?TV_Shows,We_Recommend">We Recommend</a>'
linkset[3]+='<a href="product/prodsection.asp?TV_Shows,View_All">View All</a>'
linkset[3]+='<a href="product/prodchannels.asp?Zoom,All">Zoom</a>'
linkset[3]+='<a href="product/prodchannels.asp?Star_Plus,All">Star Plus</a>'

linkset[4]='<a href="bollywood-movie-clips.asp">Movie Clips</a>'
linkset[4]+='<hr>' //Optional Separator
linkset[4]+='<a href="product/prodsection.asp?Movie_Clips,New_Additions">New Additions</a>'
linkset[4]+='<a href="product/prodsection.asp?Movie_Clips,Most_Viewed">Most Viewed</a>'
linkset[4]+='<a href="product/prodsection.asp?Movie_Clips,We_Recommend">We Recommend</a>'
//linkset[4]+='<a href="product/prodsection.asp?Movie_Clips,Eros_Exclusive">Eros Exclusive</a>'
linkset[4]+='<a href="product/prodsection.asp?Movie_Clips,View_All">View All</a>'
linkset[4]+='<a href="product/prodchannels.asp?Bollywood_Babes,All">Bollywood Babes</a>'
linkset[4]+='<a href="product/prodchannels.asp?Classics,All">Classics</a>'

linkset[5]='<a href="bollywood-parties-events.asp">Parties And Events</a>'
linkset[5]+='<hr>' //Optional Separator
linkset[5]+='<a href="product/prodsection.asp?Parties_And_Events,New_Additions">New Additions</a>'
linkset[5]+='<a href="product/prodsection.asp?Parties_And_Events,Most_Viewed">Most Viewed</a>'
linkset[5]+='<a href="product/prodsection.asp?Parties_And_Events,We_Recommend">We Recommend</a>'
//linkset[5]+='<a href="product/prodsection.asp?Parties_And_Events,Eros_Exclusive">Eros Exclusive</a>'
linkset[5]+='<a href="product/prodsection.asp?Parties_And_Events,View_All">View All</a>'

linkset[6]='<a href="product/prodchannels.asp?Trailers,New_Additions">New Additions</a>'
linkset[6]+='<a href="product/prodchannels.asp?Trailers,Most_Viewed">Most Viewed</a>'
linkset[6]+='<a href="product/prodchannels.asp?Trailers,We_Recommend">We Recommend</a>'
linkset[6]+='<a href="product/prodchannels.asp?Trailers,All">View All</a>'

linkset[7]='<a href="product/prodchannels.asp?Making_of_Movie,New_Additions">New Additions</a>'
linkset[7]+='<a href="product/prodchannels.asp?Making_of_Movie,Most_Viewed">Most Viewed</a>'
linkset[7]+='<a href="product/prodchannels.asp?Making_of_Movie,We_Recommend">We Recommend</a>'
linkset[7]+='<a href="product/prodchannels.asp?Making_of_Movie,All">View All</a>'

linkset[8]='<a href="product/prodchannels.asp?Classics,New_Additions">New Additions</a>'
linkset[8]+='<a href="product/prodchannels.asp?Classics,Most_Viewed">Most Viewed</a>'
linkset[8]+='<a href="product/prodchannels.asp?Classics,We_Recommend">We Recommend</a>'
linkset[8]+='<a href="product/prodchannels.asp?Classics,All">View All</a>'

linkset[9]='<a href="product/prodchannels.asp?Bollywood_Babes,New_Additions">New Additions</a>'
linkset[9]+='<a href="product/prodchannels.asp?Bollywood_Babes,Most_Viewed">Most Viewed</a>'
linkset[9]+='<a href="product/prodchannels.asp?Bollywood_Babes,We_Recommend">We Recommend</a>'
linkset[9]+='<a href="product/prodchannels.asp?Bollywood_Babes,All">View All</a>'

linkset[10]='<a href="product/prodchannels.asp?Animation,New_Additions">New Additions</a>'
linkset[10]+='<a href="product/prodchannels.asp?Animation,Most_Viewed">Most Viewed</a>'
linkset[10]+='<a href="product/prodchannels.asp?Animation,We_Recommend">We Recommend</a>'
linkset[10]+='<a href="product/prodchannels.asp?Animation,All">View All</a>'
linkset[10]+='<a href="product/prodchannels.asp?Karadi_Tales,All">Karadi Tales</a>'
linkset[10]+='<a href="product/prodchannels.asp?Super_Audio,All">Super Audio</a>'

linkset[11]='<a href="product/prodchannels.asp?Spiritual,New_Additions">New Additions</a>'
linkset[11]+='<a href="product/prodchannels.asp?Spiritual,Most_Viewed">Most Viewed</a>'
linkset[11]+='<a href="product/prodchannels.asp?Spiritual,We_Recommend">We Recommend</a>'
linkset[11]+='<a href="product/prodchannels.asp?Spiritual,All">View All</a>'
linkset[11]+='<a href="product/prodchannels.asp?Iskcon,All">Iskcon</a>'
linkset[11]+='<a href="product/prodchannels.asp?Parmarth_Ashram,All">Parmarth Ashram</a>'

////No need to edit beyond here

var ie5=document.all && !window.opera
var ns6=document.getElementById

if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')

function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}

function showmenu(e, which, optWidth){
if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX
eventY=ie5? event.clientY : e.clientY
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+"px" : window.pageXOffset+eventX+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight+"px" : window.pageYOffset+eventY-menuobj.contentheight+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY+"px" : window.pageYOffset+eventY+"px"
menuobj.style.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.style.visibility="hidden"
}

function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

if (ie5||ns6)
document.onclick=hidemenu
