﻿
//sIFR fonts
sIFR.fitExactly = true;    
sIFR.fixHover = true;
sIFR.fixWrap = true;

var font01 = {
    src: 'http://entimg.msn.com/i/sifr/fonts/helvetica55Roman.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]//,
    //forceSingleLine: true
    };

var sifrObject1 = { //gallery info header - these should all be the standard, non-link text color
    selector: '.rightModTitle01',
    wmode: 'transparent',
    offsetTop: '0',
    offsetLeft: '0',
    tuneHeight: '-9',
    tuneWidth: '2', 
    css: 
        [
            '.sIFR-root {color:#ffffff; font-size:20px;}', 
            'a {color:#ffffff; text-decoration:none;}',
            'a:hover {color:#ffffff;}'
        ]
    };    

var sifrObject2 = { //right-column headers
    selector: '.rightModTitle02',
    wmode: 'transparent',
    tuneHeight: '-7',
    css: 
        [
            '.sIFR-root {color:#ffffff; font-size:16px; font-weight:bold;}',
            'a {color:#7af1e8; text-decoration:none;}',
            'a:hover {color:#f7c706;}'
        ]
    };

var sifrObject3 = { //home page one-off for Emmys
    selector: '.votelink',
    wmode: 'transparent',
    tuneHeight: '-7',
    css: 
        [
            '.sIFR-root {color:#ffffff; font-size:14px; font-weight:bold;}',
            'a {color:#ffffff; text-decoration:none;}',
            'a:hover {color:#ffffff; text-decoration:underline;}'
        ]
    };
    
var sifrObject4 = { //big poll header, nomwin heading 1
    selector: '.leftTitle, #nw_head_main',
    wmode: 'transparent',
    tuneHeight: '-7',
    css: 
        [
            '.sIFR-root {color:#ffffff; font-size:20px;}',
            'a {color:#ffffff; text-decoration:none;}',
            'a:hover {color:#ffffff; text-decoration:underline;}'
        ]
    };

var sifrObject5 = { //nominees/winners category headers
    selector: '.nwhead',
    wmode: 'transparent',
    tuneHeight: '-7',
    css: 
        [
            '.sIFR-root {color:#ffffff; font-size:17px; text-transform:uppercase}',
            'a {color:#ffffff; text-decoration:none;}',
            'a:hover {color:#ffffff; text-decoration:underline;}'
        ]
    };

    sIFR.activate(font01);
    sIFR.replace(font01,sifrObject2);
    sIFR.replace(font01,sifrObject3);


//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]);

		}
}

function open360player(){
    obj360player = window.open("http://tv.msn.com/tv/emmys/video360/clip1/","win360player","height=369px,width=575px,top=0px,left=0px,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no,copyhistory=no");
    obj360player.focus();
}