<!--
// Copyright © DeshiTV.com
// Author: Dr. Khan Khoda
// Revised: May 27, 2006

var alertText   = "Copyright (c) Shuprioti Innovations. \n\nThis site is best viewed in Internate Explorer at 1280 x 1024 pixels. Please adjust accordingly.";
var windowClose = "0";

function putIEAlert(e) 
{
     if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
     {
          alert(alertText); if(windowClose=="1") self.close();
          return false;
     }
}

function putNSAlert(e) 
{
     if (document.layers || (document.getElementById && !document.all))
     {
          if (e.which==2 || e.which==3)
          {
               alert(alertText); if(windowClose=="1") self.close();
               return false;
          }
     }
}

document.onmousedown=putIEAlert;document.onmouseup=putNSAlert;document.oncontextmenu=new Function("return false");

function k_HomeEnter(url){
doPopUpWindow = window.open(url,"Shuprioti"," status=no, left=0, top=0, screenX=0, screenY=0, width=785, height=775");
}

function k_Enter2(url,width, height){
doPopUpWindow = window.open(url,"Shuprioti"," status=no, left=0, top=0, screenX=0, screenY=0, width=785, height=630");
}

function k_Enter(url,width, height){
doPopUpWindow = window.open(url,"Shuprioti"," status=no, left=0, top=0, screenX=0, screenY=0, width=" + width + ",height=" + height);
}

function OpenWin(url, width, height){
		gSubWindow = window.open(url, "Shuprioti", "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=yes,width=" + width + ",height=" + height);
		gSubWindow.focus();
                
}

function OpenWin2(url, width, height){
		var gSubWindow = window.open(url, "win", "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no,width=" + width + ",height=" + height);
		gSubWindow.focus();
}

function FirstOpeningWin(url, width, height){
		gSubWindow = window.open(url, "win", "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=yes,width=" + width + ",height=" + height);
		gSubWindow.focus();
                window.close();
}
function CloseWin(){
		window.close();
}

function setOpacity(aImage, aType) {
	if (aType == 1){
		aImage.filters.alpha.opacity=100;
	}
	else{
		aImage.filters.alpha.opacity=79;
	}
}
function k_setOpacity(aImage, aType, aOpacity) {
	if (aType == 1){
		aImage.filters.alpha.opacity=100;
	}
	else{
		aImage.filters.alpha.opacity=aOpacity;
	}
}

function Playfile(sfile) {
	document.PlayerWindow.mediaplayer.URL=sfile;
}
function uMouseMove()
{
document.PlayerWindow.test.value = "Shuprioti Innovations Inc, Canada";
}

function uMouseOut()
{
document.PlayerWindow.test.value = "Deshi Television, Toronto Canada";
}

function uMouseDown()
{
document.PlayerWindow.test.hideFocus=true;
}

function startSong(aUrl) {
	var aName = "song";
	var aType = "top=0, left=0, width=200, height=100";
 	var songPage = window.open(aUrl, aName, aType);
}

function openGallery(aUrl, aName, aType) {
 	var galleryPage = window.open(aUrl, aName, aType);
 	galleryPage.focus();
}

function openPicWeek(aUrl, aName, aType) {
 	var picWeekPage = window.open(aUrl, aName, aType);
 	picWeekPage.focus();
}


function showPhoto(aName) {
	document.albumPage.src = aName;
}

function popupNews(aUrl, aName, aType) {
 	var popupPage = window.open(aUrl, aName, aType);
 	popupPage.focus();
}

//----------------------
var bWin32IE;
    var req = null;
    if ((navigator.userAgent.indexOf("IE") > -1) && (navigator.platform == "Win32")) {
         bWin32IE = true;
    } else {
         bWin32IE = false;
    }

    var stateTimer = null;

    function playFullscreen() {
      // Verifies that the video is playing when the Full Screen button is clicked.
      // If it is, it goes full screen.
      // If not, it moves on to checkState to keep an eye on the player to move to full screen when it does.
      if (bWin32IE == true) {
        if (3 == mediaplayer.playState) {
          mediaplayer.fullscreen = 'true';
        } else {
          mediaplayer.controls.play();
          if (!stateTimer) stateTimer = window.setInterval( checkState, 500 );
        }
      }
    }

    function checkState() {
      // Initiated if video is not playing when FullScreen button is clicked.
      // Checks every 500ms to see when the player starts playing the video.
      // Once it does start playing, this code makes the video go fullscreen.
      if (3 == mediaplayer.playState) {
        window.clearInterval( stateTimer );
        stateTimer = null;
        mediaplayer.fullscreen = 'true';
      }
    }

    function showVideo() {
        response = req.evalResponse();
        if (response == 'valid') {
            if (bWin32IE) {
                mediaplayer.controls.play();
            }
            $('the_form').style.display = 'none';
            $('valid').style.display = 'block';
        } else {
            $('the_form').style.display = 'none';
            $('not_valid').style.display = 'block';
        }
    }
//---------------------
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")

function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here
var cdate="<font color='ffffff' face='Tahoma' size=1><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+" "+hours+":"+minutes+":"+seconds+" "+dn
+"</b></font>"
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}



// -->

