// JavaScript Document
// set to true to enable hit box tracking
var hitboxEnabled = true;

// ACCOUNT NUMBER(S)
// should be something like: 'DM570627ECNC38EN3;DM57050997CW38EN3' 
var hitboxAccountNumber = 'DM5706276IBC38EN3;DM57050997CW38EN3';          

// MULTI-LEVEL CONTENT CATEGORY
// should be something like: '/creativeservicestestacct;/Test+Do+Not+Use/creativeservicestestacct' 
var hitboxMultiLevelContentCategory = '/spiderwickchronicles;/Entertainment+movie+dvd/spiderwickchronicles';   


//for Terms and Conditions Window
var win = null;
var index = 1;
function openDialog(id,w,h) {
    Dialog.alert($(id).innerHTML, {className: "alphacube",  width:w, height:h, id: "d" + index})
    index++;
	document.getElementById('videoFrame').style.display = 'none';
	document.getElementById('photoScroller').style.display = 'none';
}

function lastDialog(id) {
    Dialog.confirm($(id).innerHTML, {className: "alphacube",  width:250, okLabel: "Close All", ok: closeAllModalWindows})
}

function closeAllModalWindows() {
    Windows.closeAllModalWindows();
    //return true;
	document.getElementById('videoFrame').style.display = 'inline';
	document.getElementById('photoScroller').style.display = 'inline';
}

function copyit(theField) {
	var tempval=eval("document."+theField)
	tempval.focus()
	tempval.select()
	therange=tempval.createTextRange()
	therange.execCommand("Copy")
}

