﻿/////////////////////
//// 2009 Oscars ////
/////////////////////

//sIFR fonts
sIFR.fitExactly = true;    
sIFR.fixHover = true;
sIFR.fixWrap = true;

var font01 = {
    src: 'http://entimg.msn.com/i/sifr/fonts/helveticaNeueCondensed.swf',
    ratios: [6,1.49,8,1.5,9,1.44,12,1.45,17,1.42,18,1.39,21,1.4,27,1.38,36,1.37,43,1.36,45,1.35,46,1.36,48,1.35,51,1.36,82,1.35,84,1.34,85,1.35,87,1.34,88,1.35,1.34]//,
    };

var sifrObject1 = { //gallery info header - all 3 colors should be the base, non-link rightModTitle02 color
    selector: '.rightModTitle01',
    wmode: 'transparent',
    offsetTop: '0',
    offsetLeft: '0',
    tuneHeight: '-9',
    tuneWidth: '2', 
    css: 
        [
            '.sIFR-root {color:#fde192; font-size:20px;}', 
            'a {color:#fde192; text-decoration:none;}',
            'a:hover {color:#fde192;}'
        ]
    };    

var sifrObject2 = { //right-column headers
    selector: '.rightModTitle02',
    wmode: 'transparent',
    tuneHeight: '-7',
    css: 
        [
            '.sIFR-root {color:#f2cf73; font-size:18px; font-weight:bold;}',
            'a {color:#7af1e8; text-decoration:none;}',
            'a:hover {color:#f7c706;}'
        ]
    };
    
var sifrObject3 = { //big poll header
    selector: '#pollhead',
    wmode: 'transparent',
    tuneHeight: '-7',
    css: 
        [
            '.sIFR-root {color:#c983bc; font-size:22px;}'
        ]
    };

var sifrObject4 = { //nomwin heading 1
    selector: '#nw_head_main',
    wmode: 'transparent',
    tuneHeight: '-7',
    css: 
        [
            '.sIFR-root {color:#d282c5; font-size:24px;}'
        ]
    };

var sifrObject5 = { //nominees/winners category headers
    selector: '.nwhead',
    wmode: 'transparent',
    tuneHeight: '-7',
    css: 
        [
            '.sIFR-root {color:#f2cf73; font-size:20px;}',
            'a {color:#ffffff; text-decoration:none;}',
            'a:hover {color:#ffffff; text-decoration:underline;}'
        ]
    };

    sIFR.activate(font01);

//thumbnail images for big poll; image array is in Elvis
function replaceFormItems(){

inputlist = document.getElementsByTagName("input");
	var inputitems = new Array();			
		for(y=0; y < inputlist.length; y++) {
			if(inputlist[y].type == "radio") {
					
				inputitems.push(inputlist[y]);
					
			}
		}

	for(z=0; z < inputitems.length; z++) {
		var imagelist = document.createElement("img");
		imagelist.src = pollimages[z];
			
		inputitems[z].parentNode.insertBefore(imagelist,inputitems[z]);

		}
}

//bookmark - language is passed from function call
function bookmark(url,title){
    if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
        window.external.AddFavorite(url,title);
    } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
    } else {
        alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
    }
}