// JavaScript Document



// All THE 6 PICTURE BOXES ON HOME PAGE----------------------------------------------------------

// PICTURE BOX 1
function box1head()
{
document.write('Pickens Plan');
}

function box1foot()
{
document.write('A man with a plan');
}


// PICTURE BOX 2
function box2head()
{
document.write('Water Bottle Chair');
}

function box2foot()
{
document.write('Danish designed NOBODY chair from Komplot Design');
}


// PICTURE BOX 3
function box3head()
{
document.write('Drain Pipe Hotel');
}

function box3foot()
{
document.write('Give yourself a new hotel experience.');
}


// PICTURE BOX 4
function box4head()
{
document.write('Green Tea\'s Health Benefits');
}

function box4foot()
{
document.write('Better to be deprived of food for three days than tea for one.');
}


// PICTURE BOX 5
function box5head()
{
document.write('Eclipse Intuit Phone Concept');
}

function box5foot()
{
document.write('Cell coated with chemically based thin solar skin');
}


// PICTURE BOX 6
function box6head()
{
document.write('Suzuki\'s New Bike');
}

function box6foot()
{
document.write('Hydrogen Fuel Cell Motorcycle');
}




// ALL FEATURE STORIES----------------------------------------------------------------------------

// FEATURE STORY 1

function feature1()
{
document.write('VEJA sneakers');
}

// FEATURE STORY 1 POPUP WINDOW

function featurewindow1()
{
testwindow= window.open ("http://www.biggreenmonster.tv/popup/popup1.html", "mywindow",
    "location=1,status=1,scrollbars=1,width=615,height=1652");
testwindow.moveTo(0,0);
}


// FEATURE STORY 2

function feature2()
{
document.write('Micro Car');
}

// FEATURE STORY 2 POPUP WINDOW

function featurewindow2()
{
testwindow= window.open ("http://www.biggreenmonster.tv/popup/popup2.html", "mywindow",
    "location=1,status=1,scrollbars=1,width=1330,height=550");
testwindow.moveTo(0,0);
}


// FEATURE STORY 3

function feature3()
{
document.write('The Green Energy Council');
}

// FEATURE STORY 3 POPUP WINDOW

function featurewindow3()
{
testwindow= window.open ("http://www.biggreenmonster.tv/popup/popup3.html", "mywindow",
    "location=1,status=1,scrollbars=1,width=700,height=820");
testwindow.moveTo(0,0);
}




// ALL AD UPLOADS------------------------------------------------------------------------------

// HOME PAGE ADS--------------------------------------------------------------------------------


// LEFT SIDE AD 1----------------------------
function home_120X240()
{

document.write("<IMG SRC='http://www.biggreenmonster.tv/BGM_ads/120x240.gif'>"); 

}

function home_120X240_adlink()
{
testwindow= window.open ("http://www.biggreenmonster.tv/", "mywindow",
    "location=1,status=1");
testwindow.moveTo(0,0);
}


// LEFT SIDE AD 2--------------------------
function home_120X90()
{

document.write("<IMG SRC='http://www.biggreenmonster.tv/BGM_ads/pp_120x90.jpg'>"); 

}

function home_120X90_adlink()
{
testwindow= window.open ("http://www.pickensplan.com/", "mywindow",
    "location=1,status=1");
testwindow.moveTo(0,0);
}


// RIGHT SIDE AD 1--------------------------
function home_120x240_2()
{

document.write("<IMG SRC='http://www.biggreenmonster.tv/BGM_ads/julie_120x240.jpg'>"); 

}

function home_120x240_2_adlink()
{
testwindow= window.open ("http://www.artpeas.com/", "mywindow",
    "location=1,status=1");
testwindow.moveTo(0,0);
}


// RIGHT SIDE AD 2--------------------------
function home_120x60()
{

document.write("<IMG SRC='http://www.biggreenmonster.tv/BGM_ads/120x60.gif'>"); 

}

function home_120x60_adlink()
{
testwindow= window.open ("http://www.biggreenmonster.tv/", "mywindow",
    "location=1,status=1");
testwindow.moveTo(0,0);
}


// RIGHT SIDE AD 3--------------------------
function home_120X240_3()
{

document.write("<IMG SRC='http://www.biggreenmonster.tv/BGM_ads/Fio360_120x240.jpg'>"); 

}

function home_120X240_3_adlink()
{
testwindow= window.open ("http://www.fio360.com/", "mywindow",
    "location=1,status=1");
testwindow.moveTo(0,0);
}


// RIGHT SIDE AD 4--------------------------
function home_120X90_2()
{

document.write("<IMG SRC='http://www.biggreenmonster.tv/BGM_ads/trine_120x90.jpg'>"); 

}

function home_120X90_2_adlink()
{
testwindow= window.open ("http://www.light4you.dk/", "mywindow",
    "location=1,status=1");
testwindow.moveTo(0,0);
}


// RIGHT SIDE AD 5--------------------------
function home_125x125()
{

document.write("<IMG SRC='http://www.biggreenmonster.tv/BGM_ads/125x125.jpg'>"); 

}

function home_125x125_adlink()
{
testwindow= window.open ("http://www.biggreenmonster.tv/", "mywindow",
    "location=1,status=1");
testwindow.moveTo(0,0);
}


// RIGHT SIDE AD 6--------------------------
function home_125x125_2()
{

document.write("<IMG SRC='http://www.biggreenmonster.tv/BGM_ads/SYKA-125x125.jpg'>"); 

}

function home_125x125_2_adlink()
{
testwindow= window.open ("http://www.syka.ca/", "mywindow",
    "location=1,status=1");
testwindow.moveTo(0,0);
}



// RIGHT SIDE AD 7--------------------------
function home_120x60_2()
{

document.write("<IMG SRC='http://www.biggreenmonster.tv/BGM_ads/cocacola_120x60.jpg'>"); 

}

function home_120x60_2_adlink()
{
testwindow= window.open ("http://www.biggreenmonster.tv/", "mywindow",
    "location=1,status=1");
testwindow.moveTo(0,0);
}


// RIGHT SIDE AD 8--------------------------
function home_120x90_3()
{

document.write("<IMG SRC='http://www.biggreenmonster.tv/BGM_ads/pp1_120x90.jpg'>"); 

}

function home_120x90_3_adlink()
{
testwindow= window.open ("http://www.pickensplan.com/", "mywindow",
    "location=1,status=1");
testwindow.moveTo(0,0);
}


// RIGHT SIDE AD 9--------------------------
function home_282X400()
{

document.write("<IMG SRC='http://www.biggreenmonster.tv/BGM_ads/282x400.gif'>"); 

}

function home_282X400_adlink()
{
testwindow= window.open ("http://www.pci.org/publications/ascent/subscribe.cfm/", "mywindow",
    "location=1,status=1");
testwindow.moveTo(0,0);
}



// BLOG ADS----------------------------------------------------------------------------------------


function blog_160x600()
{

document.write("<IMG SRC='http://www.biggreenmonster.tv/BGM_ads/160x600.jpg'>"); 

}



function blog_160x320()
{

document.write("<IMG SRC='http://www.biggreenmonster.tv/BGM_ads/160x240.jpg'>"); 

}


function header_ad1()
{
document.write('<img src="http://www.biggreenmonster.tv/images/ascent_webad-long_may08.gif"/>');
}

function header_adlink1()
{
testwindow= window.open ("http://www.pci.org/publications/ascent/subscribe.cfm", "mywindow",
    "location=1,status=1");
testwindow.moveTo(0,0);
}



function header_ad2()
{
document.write('<img src="http://www.biggreenmonster.tv/images/amazon.jpg"/>');
}

function header_adlink2()
{
testwindow= window.open ("http://www.pci.org/publications/ascent/subscribe.cfm", "mywindow",
    "location=1,status=1");
testwindow.moveTo(0,0);
}







// DO NOT TOUCH OR CHANGE-----------------------------------------------------------------------

function embedPlayer() {
    var params = { allowScriptAccess: 'always', bgcolor: '#D5DDB3' };
    var atts = { id: 'myytplayer' };
    swfobject.embedSWF('http://www.youtube.com/apiplayerbeta?enablejsapi=1&amp;playerapiid=ytplayer', 
            'ytapiplayer', '307', '262', '8', null, null, params, atts);
}

function onYouTubePlayerReady(playerId) {
    ytplayer = document.getElementById('myytplayer');
    setInterval(updateytplayerInfo, 250);
    updateytplayerInfo();
    ytplayer.addEventListener('onStateChange', 'onytplayerStateChange');
    document.getElementById('controls').style.display = 'block';
}

