<!--
/**************************************************SCRIPT 1:
Browser Expands to Full Available Width & Height
**************************************************/
  self.moveTo(0,0);
  self.resizeTo(screen.availWidth,screen.availHeight);
	
	/* the following code will bring this browser to the front of other browser
	setInterval("x()",10);
	setInterval("y()",500000);
	*/
	
  self.focus();	
  function x(){}	
  function y(){self.focus()};		
		
  if (top.location != self.location) {	
	top.location = self.location.href	
  }	
	
	top.window.moveTo(0,0);	
  if (document.all) {	
	top.window.resizeTo(screen.availWidth,screen.availHeight);	
  }	
  else if (document.layers||document.getElementById) {	
  if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){	
	top.window.outerHeight = screen.availHeight;	
	top.window.outerWidth = screen.availWidth;	
  }	
  }		
	/* 	window.resizeTo(950, 750) */




/**************************************************SCRIPT 2:
Get The Exact Available Inner Browser Available Width & Height
**************************************************/
//Create global myWidth & myHeight variables accessible in the next section.
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  } else{
    //As a last resort use the most robust method of getting the screen resolution
    myWidth = screen.width;
    myHeight = screen.height;
  }
  //window.alert( 'Width = ' + myWidth );
  //window.alert( 'Height = ' + myHeight );




/**************************************************SCRIPT 3:
1) Script Gets The Exact Available Inner Browser Height and Width,
It Takes Into Consideration Every Factor Affecting Browser Inner
Available Width and height, Such As Brower Resizing, Toolbar, Titlebar
and Statusbar.
2) Script Then Appends Screen Resolution Width & Height After the ?
to the Browser's Current Location in the Address Bar
and Redirects the Client to the Appropriate Player
According to Client Available Width & Height
----------------------------------------------------------------------------
NOTE:
	CAN SUBSTITUTE myWidth & myHeight with
	screen.width & screen.height to ignore previous
	section and use a less precise, but more robust method.
**************************************************/
  //if ((myWidth>=768) && (myHeight>=678))
  //{
   //redirectURL  ="http://www.etvland.com/"; /* http://www.etvland.com/ WAS ADDED SO THAT VISITORS WHO TYPE ETVLAND.COM WITHOUT WWW ARE REDIRECTED TO NEW PAGE WITH WWW TO REDUCE BUGS */
   //redirectURL +="eTV_Zone.php?Resolution="+myWidth+"x"+myHeight+"&"+"Page=DSL"+Language_Settings;
   //location.replace(redirectURL); /* window.location.href WAS REPLACED BY location.replace(')' TO SOLVE BACK BUTTON PROBLEM. */
  //}else{
   redirectURL = "http://www.etvland.com/eTV_Zone.php?Resolution="+myWidth+"x"+myHeight+"&"+"Page=Dialup"+Language_Settings;
   /* location.replace(redirectURL); *//* UNCOMMENT THIS LINE IF YOU WANT THE PAGE TO AUTOMATICALLY REDIRECT VISITORS TO THE DEFAULT ENGLISH PAGE*/
   
   redirectURLs ="http://www.etvland.com/eTV_Zone.php?Resolution="+myWidth+"x"+myHeight+"&"+"Page=Dialup";
  //}




/**************************************************DESIGN NOTES: STEP 3 IF ELSE STATEMENT
SCREEN RESOLUTIONS ARE CONCENTRATED IN THREE GROUPS:
1) LOWER END: 640x480 and 800x600
2) MID END: 1024x768 and 1280x768 and 1280x800
3) HIGH END: 1280x1024 and 1680x1050

ALTHOUGH THE MID SECTION APPEARS DIFFERENT,
THEY CAN BE CONSIDERED THE SAME, AT LEAST IN 
TERMS OF HEIGHT. MOREOVER, THEY SHARE AT LEAST
ONE DIMENSION WITH EACH OTHER:
- 1024x768 and 1280x768 EXACTLY THE SAME HEIGHT, ONE IS MUCH WIDER THAN OTHER
- 1280x768 and 1280x800 EXACTLY THE SAME WIDTH, FEW PIXELS DIFFERENCE IN HEIGHT

FOR SCREEN RESOLUTION DESIGN THE LOWER END AND HIGHER END SPEAK FOR THEMSELVES
AND ARE OBVIOUS, BUT THE MIDDLE END IS BETTER DESIGNED BY DESIGNING FOR 1024x768
AND GIVING THE SAME TREATMENT TO THE REST OF THE GROUP.

HENCE 1024x768 (and 1280x768 and 1280x800) WAS
SET ASIDE FOR DIALUP OR SMALL PLAYER
BECAUSE OF THE NECESSARY HEIGHT REQUIRED,

#############################################
#  THUS, DSL PLAYER IS SET FOR THE HIGH END RESOLUTION ONLY.    #
#############################################
#  RULES FOR DSL REDIRECTION:                                                                     #
#  -------------------------------------------                                                                     #
#  => BY SETTING width>800 WE EXCLUDE THE LOW END                            #
#  => BY SETTING height>800 WE EXLUDE THE MID END                              #
#############################################
**************************************************/
//-->
