function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_findObj(n, d) {
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() 
{
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 getOffsetLeft (el) 
{
var ol = el.offsetLeft;
while ((el = el.offsetParent) != null)
ol += el.offsetLeft;
return ol;
}
function getOffsetTop (el) 
{
var ot = el.offsetTop;
while((el = el.offsetParent) != null)
ot += el.offsetTop;
return ot;
}
function findCoordinates(table) 
{

	var startX = getOffsetLeft(table);
	var startY = -2;
	
	document.getElementById('floatdiv').style.left= startX;
	document.getElementById('floatdiv').style.bottom= startY;
	
	
}

function lib_bwcheck()
{
this.ver=navigator.appVersion
this.agent=navigator.userAgent
this.dom=document.getElementById?1:0
this.opera5=this.agent.indexOf("Opera 5")>-1
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
this.ie=this.ie4||this.ie5||this.ie6
this.mac=this.agent.indexOf("Mac")>-1
this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
this.ns4=(document.layers && !this.dom)?1:0;
this.ns7=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
return this
}
/* Splash Screen Script Start here  */
function splashmovie()
{
	/*
document.write("<div id='floatdiv' style='position:absolute; width:450px;height:340px;'><div id='Flash' style='position: absolute; width: 440px; height: 340px; visibility: hidden; display: none; z-index: 103;'>");
document.writeln("<object id='swfmovie' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='450' height='340' title='RISE University'>");
document.writeln("<param name='movie' value='/girl-U.swf' />");
document.writeln("<param name='quality' value='high' />");
document.writeln("<param name='play' value='false' />");
document.writeln("<param name='wmode' value='transparent' />");
document.writeln("</object></div></div>");*/



var bw=new lib_bwcheck()
if (!(bw.ie5||bw.ie6))
{
MM_showHideLayers('Flash','','hide')
}
return false;
}

function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}

function StopFlashMovie()
{
	var flashMovie=getFlashMovieObject("swfmovie");
	flashMovie.StopPlay();
}

function PlayFlashMovie()
{
	var flashMovie=getFlashMovieObject("swfmovie");
	flashMovie.Play();
}
function RewindFlashMovie()
{
	var flashMovie=getFlashMovieObject("swfmovie");
	flashMovie.Rewind();
}

function showswf()
{
	if (document.getElementById('floatdiv') != null && document.getElementById('Flash') != null)
	{
		StopFlashMovie();
		
		var bbb=document.getElementById('floatdiv');
		bbb.style.display="inline";
	
		var abc=document.getElementById('Flash');
		abc.style.display="inline";
		
		var flashMovie=getFlashMovieObject("swfmovie");	
	
		if	(flashMovie.IsPlaying()!=true)
		{
			var abc=document.getElementById('Flash');
			abc.style.visibility="visible";
			abc.style.display="block";
			RewindFlashMovie();
			PlayFlashMovie();
		}
	}	
}
/*
function showswf()
{
	
var movie=document.getElementById('swfmovie');
if	(movie.IsPlaying()!=true)
{
var abc=document.getElementById('Flash');
abc.style.visibility="visible";
abc.style.display="inline";
movie.Rewind();
movie.Play();
}
}*/


function closewindow()
{
	var bbb=document.getElementById('floatdiv');
	bbb.style.display="none";
	
	/*
var abc=document.getElementById('Flash');
abc.style.display="none";
var movie=document.getElementById('swfmovie');
movie.Stop();
*/

}
function readCookie(name)
{
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i = 0; i < ca.length; i++)
  {
        var c = ca[i];
        while (c.charAt(0)==' ') 
              c = c.substring(1, c.length);
        if (c.indexOf(nameEQ) == 0) 
              return c.substring(nameEQ.length, c.length);
  }
  return null;
}
function createCookie(name, value, days)
{
  if (days)
  {
        var date = new Date();
        date.setTime(date.getTime() + (days*24*60*60*1000));
        createCookieByDate(name, value, date);
  }
  else 
    createCookieByDate(name, value, null);
}
function createCookieByDate(name, value, cDate)
{
  if (cDate)
  {
        var expires = "; expires=" + cDate.toGMTString();
  }
  else var expires = "";
  document.cookie = name + "=" + value + expires + "; path=/";
}