
// OLD BOOKMARK FUNCTIONS	
	
function bookmarkme(anchorId, linkTitle, url, bookmarkText, tabText)
{
   function set(innerHTML, href)
   {
      elem = document.getElementById(anchorId);

      elem.innerHTML = innerHTML;

      elem.href = "javascript:" + href;
   }

   function quote(s)
   {
      return "'" + s + "'";
   }


   url = quote(url ? url : location.href);
   linkTitle = quote(linkTitle ? linkTitle : document.title);

   if( window.external &&  /Win/.test(navigator.userAgent) )
   {
      set(
          bookmarkText ? bookmarkText : "Bookmark This Page!",
          "external.AddFavorite(" + url + "," + linkTitle + ")"
         );
   }
   else if( window.sidebar && sidebar.addPanel )
   {
      set(
          tabText ? tabText : "Bookmark this page",
          "sidebar.addPanel(" + linkTitle + "," + url + ",'')"
         );
   }
}

// Bookmark Code
function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}

// POP UP FUNCTIONS


// E Mail Link
function emailink(){
window.location = "mailto:"+"?subject=Hi, check out this Command and Conquer 3 Page Bro..." + "&body="+window.location.href;
}


// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!

theImages[0] = '/images/command_conquer_3_rotate1.jpg'
theImages[1] = '/images/command_conquer_3_rotate12.jpg'
theImages[2] = '/images/command_conquer_3_rotate6.jpg'
theImages[3] = '/images/command_conquer_3_rotate3_alt.jpg'
theImages[4] = '/images/command_conquer_3_rotate2a.jpg'
theImages[5] = '/images/command_conquer_3_rotate5.jpg'
theImages[6] = '/images/command_conquer_3_rotate7.jpg'
theImages[7] = '/images/command_conquer_3_rotate8.jpg'
theImages[8] = '/images/command_conquer_3_rotate11.jpg'

// ======================================
// do not change anything below this line
// ======================================

var j = 0
var p = theImages.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}

var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}


