/************************************************************
 * File Name: Main2.js		
 * Description/Purpose:	Home Page specific functions
 *
 * Modification Log
 * Ver.No	Date		Author		Modification
 * ----------------------------------------------------------
 * 1.0		11-Oct-2006	Pfaffj		Original Version
 * ----------------------------------------------------------
*************************************************************/


function setFocusInitially(obj)
{
	if(navigator.appName=="Netscape") 
                {
					
			document.forms[0].elements[obj].focus();
                } 
        else
                {
			document.all[obj].focus();
	}
			
}


function ViewIcon()
{
	if(navigator.appName=="Netscape") 
		{
			var objWin = window.open('/IconDescription.aspx','Icon','width=680,height=475,resizable=no, toolbar=no, scrollbars=no');
			objWin.window.focus();
		}
	else
		{
			var objWin = window.open('/IconDescription.aspx','Icon','width=675,height=475,resizable=no, toolbar=no, scrollbars=no');
			objWin.window.focus();
		}
}

function WhatIsGoogleCheckout()
{
	if(navigator.appName=="Netscape") 
		{
			var objWin = window.open('/WhatIsGoogleCheckout.aspx','about_google_checkout','width=760,height=537,resizable=no, toolbar=no, scrollbars=yes');
			objWin.window.focus();
		}
	else
		{
			var objWin = window.open('/WhatIsGoogleCheckout.aspx','about_google_checkout','width=610,height=592,resizable=no, toolbar=no, scrollbars=yes');
			objWin.window.focus();
		}
}			

function View3Doffer()
{
	if(navigator.appName=="Netscape") 
		{
			var objWin = window.open('/3DOffer.aspx','Icon','width=720,height=410,resizable=no, toolbar=no, scrollbars=no');
			objWin.window.focus();
		}
	else
		{
			var objWin = window.open('/3DOffer.aspx','Icon','width=585,height=430,resizable=no, toolbar=no, scrollbars=no');
			objWin.window.focus();
		}
}	


// Amazing Frameless Popup Window - Version I
// (C) 2000 www.CodeLifter.com
// Free for all users, but leave in this  header

// set the popup window width and height

var windowW=450 // wide
var windowH=350 // high

// set the screen position where the popup should appear

var windowX = 150 // from left
var windowY = 150 // from top

// set the url of the page to show in the popup

var urlPop = "JockeyCommercial.html"

// set the title of the page

var title =  "Jockey&reg; Television Commercial&nbsp;&nbsp;"

// set this to true if the popup should close
// upon leaving the launching page; else, false

var autoclose = true

// ============================
// do not edit below this line
// ============================

s = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false

function ViewJockeyCommercial(){
  if (beIE){
    NFW = window.open("","popFrameless","dialog,"+s)     
    NFW.blur()
    window.focus()       
    NFW.resizeTo(windowW,windowH)
    NFW.moveTo(windowX,windowY)
    var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+urlPop+"' scrolling=no minimizeable=no>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
    NFW.document.open();
    NFW.document.write(frameString)
    NFW.document.close()
  } else {
    NFW=window.open(urlPop,"popFrameless","scrollbars,"+s)
    NFW.blur()
    window.focus() 
    NFW.resizeTo(windowW,windowH)
    NFW.moveTo(windowX,windowY)
  }   
  NFW.focus()   
  if (autoclose){
    window.onunload = function(){NFW.close()}
  }
}



