// -----------------
// Start Analytics
// -----------------
scPageName = "Advanced Search";
scChannel = "editorial";
scHier1 = sitePrefix + ":" + "Search";


scprop6 = sitePrefix;
scprop7 = scprop6 + ":search";
scprop8 = scprop7 + ":advanced";
scprop9 = scprop8;

scprop18 = "advanced search";
var scprop19 = scPageName;

// -----------------
// End Analytics
// -----------------


// -----------------
// Start advertising
// -----------------

// defaults for ads and html slots
var abr = 'MSAdvSearch'; // alias base string
var rh_slot = 1; 
var rh_blocks = 'MPU,MiniMpuBT,SpnLink,JOTWs,JobSearch';
var rh_buttons = 2;

// generate Ad tags from ads array
for (var f=0;f<arrAds.length;f++) {
	var Apos = arrAds[f][0];
	var Aid = arrAds[f][1];
	var Aalias = abr + Apos;
	
	// convert Apos string to ad placement tag 
	window[Apos] = '<scr'+'ipt language="javascript1.1" src="http://adserver.adtech.de/addyn|3.0|1148.1|'+Aid+'|0|'+window[Apos+'SizeID']+'|ADTECH;cookie=info;alias='+Aalias+';loc=100;target=_blank;key='+segQS+';grp='+window.adgroupid+';misc='+new Date().getTime()+'"></scri'+'pt>';
	//alert(window[Apos]);
}

// HTML blocks

var strMPU="<!-- MPU -->";
strMPU += "<div class=\"ad mpu\" id=\"MPU_vis\">";
strMPU += "<script type=\"text\/javascript\">";
strMPU += "moveAdvert('MPU');";
strMPU += "<\/script>";
strMPU += "<\/div>";

var strMiniMpuBT="<!-- MiniMpuBT -->";
strMiniMpuBT += "<div class=\"ad mpu\" id=\"MiniMpuBT_vis\">";
strMiniMpuBT += "<script type=\"text\/javascript\">";
strMiniMpuBT += "moveAdvert('MiniMpuBT');";
strMiniMpuBT += "<\/script>";
strMiniMpuBT += "<\/div>";

var strSpnLink="<!-- Sponsored link -->";
strSpnLink += "<div id=\"SL_vis\"><\/div>";
strSpnLink += "<script type=\"text\/javascript\">";
strSpnLink += "moveAdvert('SL');";
strSpnLink += "<\/script>";

var strJOTWs="";
strJOTWs += "<div class=\"ad\">";
strJOTWs += "	<div class=\"ad_column_box\">";
strJOTWs += "		<div class=\"job_of_the_week\">";
strJOTWs += "			<h2>Jobs of the Week<\/h2>	";
strJOTWs += "			<div class=\"pic\" style=\"padding-top:8px;\" id=\"JOTW1_vis\">";
strJOTWs += "				<script type=\"text\/javascript\">";
strJOTWs += "					moveAdvert('JOTW1');";
strJOTWs += "				<\/script>					";
strJOTWs += "			<\/div>					";
strJOTWs += "			<div style=\"clear:both;\"><\/div>					";
strJOTWs += "			<div class=\"pic\" style=\"padding-top:8px;\" id=\"JOTW2_vis\">";
strJOTWs += "				<script type=\"text\/javascript\">";
strJOTWs += "					moveAdvert('JOTW2');";
strJOTWs += "				<\/script>					";
strJOTWs += "			<\/div>					";
strJOTWs += "		<\/div>	";
strJOTWs += "	<\/div>";
strJOTWs += "<\/div>";

var strJobSearch="";
strJobSearch += "<div class=\"ad\">";
strJobSearch += "	<div class=\"ad_column_box\">";
strJobSearch += "		<h2>Job Search<\/h2>";
strJobSearch += "			<div class=\"formbox\">";
strJobSearch += "				<div class=\"formbox_sleeve\">";
strJobSearch += "					<form id=\"quickSearch\" action=\"http:\/\/www.retailfinancialcareers.com\/searchjobs\/\" method=\"get\" accept-charset=\"utf-8\" style=\"margin-top:10px;\">";
strJobSearch += "						<div>	";
strJobSearch += "							<input type=\"hidden\" name=\"qsearch\" value=\"1\" \/>";
strJobSearch += "							<div style=\"float:left;\"> ";
strJobSearch += "							<input type=\"text\" id=\"search\" class=\"text\" accesskey=\"4\" name=\"qkeyword\" value=\"\" style=\"width:197px; height:13px;\" \/>";
strJobSearch += "							<\/div>";
strJobSearch += "							<div style=\"float:left;\">";
strJobSearch += "							<input type=\"image\" src=\"\/pictures\/Web\/l\/n\/t\/ms-search-37x20.gif\" alt=\"Search\" \/>";
strJobSearch += "							<\/div>";
strJobSearch += "						<\/div>";
strJobSearch += "						<div style=\"clear:both;\"><\/div>";
strJobSearch += "					<\/form>";
strJobSearch += "				<\/div>";
strJobSearch += "";
strJobSearch += "			<\/div>";
strJobSearch += "	<\/div>";
strJobSearch += "<\/div>";


var arrRH_blocks = rh_blocks.split(','); // array of r-h blocks 
var RH_all = '';
for (var h=0;h<arrRH_blocks.length;h++) {
	if (window['str'+arrRH_blocks[h]] !== undefined) {
		//alert(arrRH_blocks[h]);
		//alert(window['str'+arrRH_blocks[h]]);
		RH_all = RH_all + window['str'+arrRH_blocks[h]];
	}
}

// -----------------
// End advertising
// -----------------

