
// $Id: mtvi_neopets_omni_functions_video.js,v 1.4 2007/05/14 23:28:40 kennethy Exp $

function repNeoVid(channel,show,videoId,videoTitle,demo,gender,age,country){
//alert(demo+gender+age+country);
	window.s_dynamicAccountSelection=false;

	//Add Google Call Here
        u_var = gender+"/"+age+"/"+country
        _utrack_thispage = ("/"+channel+"/"+show+"/"+videoId+"-"+videoTitle)
        __utmSetVar(u_var);
        _uacct = "UA-1746347-1";

        urchinTracker(_utrack_thispage);

    // end Google Call





	sendReportingCall(
            {setOverrides:{s_account:("vianeopets3"),
            s_pageName:("/"+videoId+"-"+videoTitle),
            s_hier1:(channel+"/"+show+"/"+videoId+"-"+videoTitle),
            s_channel:(channel),
            s_prop1:(show),
			s_prop2:(demo),
			s_prop4:(gender),
			s_prop5:(age),
			s_prop6:(country)
            }}
            );

	window.s_dynamicAccountSelection=true;
	}


function sendAnalyticsEvent(str){
	ns=s_account;
	if(str!=null) ns+=","+str;
	void(s_gs(ns));
}

function sendLinkEvent(str,lnkname){
	try {
	ns=s_account;
	if(str!=""&&str!=null) ns+=","+str;
	s_linkType="o";
	s_lnk=true;
	s_linkName=lnkname;
	void(s_gs(ns));
	}
	catch(e) {}
}

function sendReportingCall(ro){
	if(ro){
		if(ro.setOverrides)	omniSetOverrides(ro.setOverrides);
	} void(sendAnalyticsEvent(""));
}

function sendLinkCall(linkName, ro){
	if(ro){
		if(ro.setOverrides)	omniSetOverrides(ro.setOverrides);
		alert( omniSetOverrides(ro.setOverrides) );
	} void(sendLinkEvent("", linkName));
}

function omniSetOverrides(or){
	for(var i in or){
		this[i] = or[i];
     	//eval(i + "=or[i];");
	}
}

function sendAnalyticsEventNew(accnt){
	accnt=accnt?accnt:s_account;
	void(s_gs(accnt))
	}

function sendInitCall(e1,e2,e3){
	elementString=e1+"-"+e2+"-"+e3;
	linkName="/init_click_tracking/"+elementString;
	sendLinkEvent("",linkName);
}

