<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
 window.open(theURL,winName,features);
}

function t(theURL,winName,features) { //v2.0
 t(theURL,winName,features);
}

function P7_JumpMenu(selObj,restore){ //v1.7 by Project Seven
	var theFullString = selObj.options[selObj.selectedIndex].value;
	if (restore) selObj.selectedIndex=0;
	var theLength = theFullString.length;
	var endPos = theFullString.lastIndexOf("~");
	var theUrl, theTarget, theParent;
	if (endPos > 0) {theUrl = theFullString.substring(0,endPos);}
	else {theUrl = theFullString;}
	endPos++
	if (endPos < theLength) {theTarget = theFullString.substring(endPos,theLength)}
	else {theTarget = "window:Main";}
	if (theTarget == "window:New") {window.open(theUrl);}
	else if (theTarget == "window:Main") {eval("parent.location='"+theUrl+"'");}
	else {eval("parent.frames[\'"+theTarget+"\'].location='"+theUrl+"'");}
}

/** function FillDozen uses AJAX to  call the content for Featured Dozen area of the site
 * aid (int) - Artist ID, this parameter is available when the user select option from the artists drop-down
 * at (int)  - Artist Type - got this parameter from the promotion code that has taken the user to the site
 * divID (string) - id of the element where the result content will be fetch out
 * mode (int) - has values 1-for showing the Artists list drop-down, 2-changing one of the fields for artist details with the 
 *             details of the new one selected
 * sInd(int) - the index of the artist being chosen in the  Artists list drop-down. use to define in which container
 *              for artist detail  should be drop the content
 * bLoad2nd (boolean) - true-says that the current result content is the one that loads in the second content box under the Artists drop-down,  
 **/

function FillDozen(aid, at, divID, mode, sInd, bLoad2nd) {
    var ds, par, link;
    
    ds = "getCntProxy.asp"
    if (mode == 1){
        par = 'aid='+ aid + '&at=' + at;
        if (sInd%2 == 0) divID+="_1"; else divID+="_2";
        if (!!bLoad2nd) {
            if (par.length>0) par+='&';
            par += 'ld2=1';
        }
    }
    else 
        par = 'mode=2&at=' + at;

    par = "l=" + escape("http://webfarm.foliolink.com/featsites.asp?"+ par);

    postGetData(ds, par, divID);
}

function postGetData(dataSource, data, divID)
{
    var XMLHttpRequestObject;
    if (window.XMLHttpRequest) {
        XMLHttpRequestObject = new XMLHttpRequest()
    }else if (window.ActiveXObject){
        XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP")
        }

    if(XMLHttpRequestObject) {
        var obj = document.getElementById(divID);
	try{
	//netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserRead');
        XMLHttpRequestObject.open("POST", dataSource);
       
XMLHttpRequestObject.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
        XMLHttpRequestObject.onreadystatechange = function()
            {
                if (XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200) {
                    obj.innerHTML = XMLHttpRequestObject.responseText;
                }
            }
        XMLHttpRequestObject.send(data);
	}
	catch (e) {
		//alert('Error ' + e.message + ' occurred.');
	}
    }
}

//-->
