﻿function dcsMultiTrackWrapper(URL,description)
{
    dcsMultiTrack('DCS.dcsuri',URL,'WT.ti',description);
}

function popUpForVideo(URL,description,width,height)
{    
    dcsMultiTrack('DCS.dcsuri',URL,'WT.ti',description);        
	day = new Date();
	id = day.getTime();
	var screen_left = (screen.width)?(screen.width-width)/2:100;
    var screen_top =(screen.height)?(screen.height-height)/2:100;	
	
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=" + width + ",height=" + height + ",left = " + screen_left +  " ,top = " + screen_top + "');");
}

function videoPopUpRaxil(URL,description)
{
    dcsMultiTrack('DCS.dcsuri',URL,'WT.ti',description);        
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=475,height=308,left = 0,top = 0');");
}

function videoPlayer(title,description,width,height)
{
        
	day = new Date();
	id = day.getTime();

    var screen_left = (screen.width)?(screen.width-width)/2:100;
    var screen_top =(screen.height)?(screen.height-height)/2:100;
    
    var url = RM_BASEURL + 'Media/ProductVideos/VideoPlayer.aspx?title=' + title + '&w=' + width + '&h=' + height;
    dcsMultiTrack('DCS.dcsuri',url,'WT.ti',description); 
    eval("page" + id + " = window.open(url, '" + id + "','toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=" + width + ",height=" + height + ",left = " + screen_left +  " ,top = " + screen_top + "');");
}

function hasBaseURLPopUp(URL,description,width,height)
{
    URL = RM_BASEURL + URL;
    
    dcsMultiTrack('DCS.dcsuri',URL,'WT.ti',description);     
	day = new Date();
	id = day.getTime();
	
    var screen_left = (screen.width)?(screen.width-width)/2:100;
    var screen_top =(screen.height)?(screen.height-height)/2:100;	
	
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=" + width + ",height=" + height + ",left = " + screen_left +  " ,top = " + screen_top + "');");
}

function navigateto(url,description)
{
    url = RM_BASEURL + url;
    
   dcsMultiTrack('DCS.dcsuri',url,'WT.ti',description);            
   setTimeout('document.location = "' + url + '"',500);
}