// Mediawire Communications, Inc.

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v3.0
  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); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function openWindow(page, width, height, top, left, menu, id)
{
	popupwindow = window.open(page,id,"resizable=no,scrollbars=yes,menubar=" + menu + ",width=" + width+ ",height=" + height + ",top=" + top + ",left=" + left);
	if(popupwindow !=null){
		if (popupwindow.opener==null){
			popupwindow.opener=self;
		}
	}
	popupwindow.focus()
}
 

function movieInfo(MovieID)
{
	document.forms[0].action="/movieinfo.asp"
	document.forms[0].MovieID.value = MovieID
	document.forms[0].submit()
}

function TrinCitymovieInfo(MovieID)
{
	document.forms[0].action="/trincity/movieinfo.asp"
	document.forms[0].MovieID.value = MovieID
	document.forms[0].submit()
}

function movieReviewInfo(MovieID)
{
	document.forms[0].action="/movieinfo_review.asp"
	document.forms[0].MovieID.value = MovieID
	document.forms[0].submit()
}

function movieReviewAdd(MovieID)
{
	document.forms[0].action="/add_review.asp"
	document.forms[0].MovieID.value = MovieID
	document.forms[0].submit()
}

function purchaseTickets(MovieID, MovieTheaterID, ScreenNumber, ShowTime)
{
	document.forms[0].action="/tickets/default.asp"
	document.forms[0].MovieID.value = MovieID
	document.forms[0].MovieTheaterID.value = MovieTheaterID
	if (ScreenNumber != null)
	{
		document.forms[0].ScreenNumber.value = ScreenNumber
	}
	if (ShowTime != null)
	{
		document.forms[0].ShowTime.value = ShowTime
	}
		document.forms[0].submit()
}

function purchaseTicketsCS(MovieID, MovieTheaterID, ScreenNumber, ShowTime, PlayDate)
{
	document.forms[0].action="/tickets/default.asp?SelectedDate=" + PlayDate
	document.forms[0].MovieID.value = MovieID
	document.forms[0].MovieTheaterID.value = MovieTheaterID
	if (ScreenNumber != null)
	{
		document.forms[0].ScreenNumber.value = ScreenNumber
	}
	if (ShowTime != null)
	{
		document.forms[0].ShowTime.value = ShowTime
	}
		document.forms[0].submit()
}
function movieTheaterInfo(MovieTheaterID)
{
	document.forms[0].action="/movie_theaters.asp"
	document.forms[0].MovieTheaterID.value = MovieTheaterID
	document.forms[0].submit()
}

function changeReviewPage(Page)
{
	document.forms[0].action="/movieinfo.asp"
	document.forms[0].Page.value = Page
	document.forms[0].submit()
}


function changeLanguage(LanguageID)
{
	document.forms[0].action="/changelanguage.asp"
	document.forms[0].LanguageID.value = LanguageID
	document.forms[0].submit()
}

onLoad="MM_preloadImages('images/boton_arrow.gif','images/spacer.gif')"

 function Top(src,clrOver) {
    if (!src.contains(event.fromElement)) {
	  src.style.cursor = 'hand';
	  src.bgColor = clrOver;
	}
  }
  function Ent(src) {
    if(event.srcElement.tagName=='TD'){
	  src.children.tags('A')[0].click();
    }
   }
  function Out(src,clrIn) {
	if (!src.contains(event.toElement)) {
	  src.style.cursor = 'default';
	  src.bgColor = clrIn;
	}
  }

function popUpVeriSign(url) {
sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450');
self.name = "mainWin";
}

function goHome()
{
document.location = 'http://' + document.location.hostname + '/'
}