/** Modification start by b11364 on 13-09-07 For CCT47683**/ 
/** Adding code for bookmark and Email results code **/
var urlAddress = (location.href)	; 
var pageName = "Freescale :Search Results "; 

function mailToFreindSerp(strQueryText)
{	
	var urlString =removeURLParam("QueryText"); 
	if(strQueryText != null)
	{
		if ( urlString.indexOf('?') < 0 ){
			urlString = urlString + "?";
		}
		
		if(strQueryText != "")
		{
			if ( urlString.substring( ( urlString.length - 1) ,  urlString.length ) != "&" ) {
				urlString = urlString + "&";
			}	
			urlString = urlString + "QueryText=" + strQueryText + "&";
		}
	}
	urlString = urlString.replace(/\r/g,"%20"); // START
	var encoded = "";
	for (var i = 0; i < urlString.length; i++ ) {
		var ch = urlString.charAt(i);
		 if (ch == " ") {
		    encoded += "%20";
		 }
		 else{
	    		    encoded += ch;
		    }
	
	}
	urlString=encoded;	
	/*var	urlString = removeURLParam("QueryText");
	if(strQueryText != null)
	{
		if ( urlString.indexOf('?') < 0 ){
			urlString = urlString + "?";
		}
		
		if(strQueryText != "")
		{
			if ( urlString.substring( ( urlString.length - 1) ,  urlString.length ) != "&" ) {
				urlString = urlString + "&";
			}	
			urlString = urlString + "QueryText=" + strQueryText + "&";
		}
	}*/
	if(strQueryText != null && strQueryText != "") {
	location="mailto:?SUBJECT="+pageName+" for "+strQueryText+"&BODY="+escape(urlString);
	}else{
	location="mailto:?SUBJECT="+pageName+"&BODY="+escape(urlString);
	}


}
function addToFavoritesSerp(strQueryText) { 
	var urlString =removeURLParam("QueryText")	;
	if(strQueryText != null)
	{
		if ( urlString.indexOf('?') < 0 ){
			urlString = urlString + "?";
		}
		
		if(strQueryText != "")
		{
			if ( urlString.substring( ( urlString.length - 1) ,  urlString.length ) != "&" ) {
				urlString = urlString + "&";
			}	
			urlString = urlString + "QueryText=" + strQueryText + "&";
		}
	}
	var encoded = "";
	for (var i = 0; i < urlString.length; i++ ) {
		var ch = urlString.charAt(i);
		 if (ch == " ") {
		    encoded += "%20";
		 }
		 else{
	    		    encoded += ch;
		    }
	
	}
	urlString=encoded;
	/*
	var	urlString = removeURLParam("QueryText");	
	if(strQueryText != null)
	{
		if ( urlString.indexOf('?') < 0 ){
			urlString = urlString + "?";
		}
		
		if(strQueryText != "")
		{
			if ( urlString.substring( ( urlString.length - 1) ,  urlString.length ) != "&" ) {
				urlString = urlString + "&";
			}	
			urlString = urlString + "QueryText=" + strQueryText + "&";
		}
	}*/
		if(strQueryText != null && strQueryText != "") {
		newpageName=pageName+" for "+strQueryText;
		}else{
			newpageName=pageName;
		}
		 if (window.sidebar) { // firefox
              window.sidebar.addPanel(newpageName , urlString ,"");
        } else if( document.all ) { //MSIE
                window.external.AddFavorite(urlString , newpageName );
        } else {
               alert("Sorry, your browser can not add this bookmarks");
        }
} 
function mailToFreind(strQueryText,urlAddress)
{
//	alert("mail2New"+strQueryText+"   "+urlAddress);
	
	if(strQueryText != null && strQueryText != "") {
	location="mailto:?SUBJECT="+pageName+" for "+strQueryText+"&BODY="+escape(urlAddress);
	}else{
	location="mailto:?SUBJECT="+pageName+"&BODY="+escape(urlAddress);
	}


}
function addToFavorites(str,urlAddress) { 
//urlAddress=	(location.href)	; 
//		alert("Newaddtofav2"+str+"   "+(urlAddress));
		if(str != null && str != "") {
		newpageName=pageName+" for "+str;
		}else{
			newpageName=pageName;
		}

		 if (window.sidebar) { // firefox
				//alert("FF");
              window.sidebar.addPanel(newpageName , (urlAddress) ,"left");
        } else if( document.all ) { //MSIE
						//alert("IE");
                window.external.AddFavorite(urlAddress, newpageName );
        } else {
               alert("Sorry, your browser can not add this bookmarks");
        }
}
/** Modification End by b11364 on  13-09-07 */
function RowOn(id){
	row = document.getElementById(id);
	var color = row.style.background.split(" ");
		if(!(color[0]=="blue")){
			/** Modification start by b11364 on 23-08-07 For CCT47683**/ 
			row.style.background="#cccccc"; 
			/** Modification End by b11364 on  23-08-07 */
		}
	}
function RowOff(id){
	row = document.getElementById(id);
	var color = row.style.background.split(" ");
	if(!(color[0]=="blue")){
	   if(row.getAttribute("colorId")== "even")
		{
		   /** Modification start by b11364 on 27-09-07 For CCT47683**/ 
			row.style.background="#FFFFFF";
		   /** Modification End by b11364 on  27-09-07 */
		}
		else
		{
			/** Modification start by b11364 on 27-09-07 For CCT47683**/ 
			row.style.background="#ECF0F1";
			/** Modification End by b11364 on  27-09-07 */			
		}
	}
}

function RowOffStandard(id,rowNum){
	row = document.getElementById(id);
	var color = row.style.background.split(" ");
	if(!(color[0]=="blue")){
	   if(rowNum%2 == 0 )
		{
			 /** Modification start by b11364 on 27-09-07 For CCT47683**/ 
			row.style.background="#FFFFFF";
		   /** Modification End by b11364 on  27-09-07 */
		}
		else
		{
			/** Modification start by b11364 on 27-09-07 For CCT47683**/ 
			row.style.background="#ECF0F1";
			/** Modification End by b11364 on  27-09-07 */			
		}
	}
}

/** Modification start by b11364 on 23-08-07 For CCT47683**/ 
function RowOnText(id){
	row = document.getElementById(id);
	var color = row.style.background.split(" ");
		if(!(color[0]=="blue")){
			row.style.background="#cccccc";  // edited by Expero, 08/2007
		}
	}
function RowOffStandardText(id){
	row = document.getElementById(id);
	var color = row.style.background.split(" ");
	if(!(color[0]=="blue")){
	   if(row.getAttribute("colorId")== "even")
		{
			row.style.background="#FFFFFF";
		}
		else
		{
			row.style.background="#FFFFFF";
		}
	}
}
 /** Modification End by b11364 on  23-08-07 */

function download(){
   //Changed by rkg01z on 24 Jan 2007 for CCT44315 start
   //window.alert('before closeDldPop');
   closeDldPop();
   //window.open(url);
   //Changed by rkg01z on 24 Jan 2007 for CCT44315 end
   }


/**Modification end by rgp01z for Download on 29 Aug 2007 CCT47683 **/ 
/** Modification : Method was added to Popup Window for Downloads  **/

//Added new parameters by b17240 for CCT56846 on 4th June,2008 :Start
function openThirdParty(url, code, linkText, wt_type, wt_vendor, wt_file_format, wt_asset){
	ThirdPartyMetrics(url, code, linkText, wt_type, wt_vendor, wt_file_format, wt_asset);
	if(confirm("You are about to launch a new browser window that will display a website that is not affiliated with Freescale.com.")){
			window.open(url,'','');
	}
}
//Added new parameters by b17240 for CCT56846 on 4th June,2008 :End

//Added a new parameter 'link' for CCT56687 start 21st July 2008
function openDownload(window_title,code,link){
		
			var url = '/webapp/search/components/DownloadPopup.jsp?code='+code+'&link='+link;
			ajaxwin=dhtmlwindow.open('ajaxbox1',url,window_title, 'width=350px,height=225px,left=200px,top=180px,resize=0,scrolling=1');
			return false;
		
		}
//Added a new parameter 'link' for CCT56687 end 21st July 2008

/**Modification start by b13004 for Title CR on 2 Nov 2007 CCT47683 **/
function openInfoWindow(code,title){ 
		var url = '/webapp/collateralDescription.jsp?code=' + code;
		ajaxwin=dhtmlwindow.open('ajaxbox1',url,title, 'width=350px,height=250px,left=200px,top=180px,resize=0,scrolling=1');
		return false;
}

function openHeaderInfoWindow( code, title ){ 
		var url = '/webapp/shared/components/inc_collateral.jsp?code=' + code;
		ajaxwin=dhtmlwindow.open('ajaxbox1',url,title, 'width=250px,height=150px,left=700px,top=300px,resize=0,scrolling=1');
		return false;
}

/**Modification end by b13004 for Title CR on 2 Nov 2007 CCT47683 **/
//Addition by b12877, PPI, Jan 30, 2008 starts
	function openInfoPopup(code){
	var url = '/webapp/moreinfopopup.jsp?code=' + code;
	var title = 'More Information';
	ajaxwin=dhtmlwindow.open('ajaxbox1',url,title, 'width=350px,height=225px,left=200px,top=180px,resize=0,scrolling=1');
	return false;
	}
	//Addition by b12877, PPI, Jan 30, 2008 ends

	//Addition by b21340, CCT60523, Aug 19, 2008 starts
	function openArchivedInfoPopup(){
	var url = '/webapp/sps/components/ArchivedInfo.jsp';
	var title = 'More Information';
	ajaxwin=dhtmlwindow.open('ajaxbox1',url,title, 'width=250px,height=100px,left=200px,top=180px,resize=0,scrolling=1');
	return false;
	}
	//Addition by b21340, CCT60523, Aug 19, 2008 ends

function showSecurityInfo(moderator,disclaimer,logonrequired){ 
		
		var strToolTip = "";
		
		if ( logonrequired != null && logonrequired == "Y"  ) {
			strToolTip = "Logon Required for Download<br>";
		}

		if ( disclaimer != null && disclaimer != "" && disclaimer != "None" ){
			strToolTip += "License Agreement Required for Download<br>";
		}

		if ( moderator != null && moderator != "" && moderator != "None") {
			strToolTip += "Moderator Approval Required for Download<br>";
		}
//		alert( moderator + " " + disclaimer  + " " + logonrequired);
		showAssetDesc( strToolTip ,event);

		return false;
}
/**Modification end by rgp01z for Download on 29 Aug 2007 CCT47683 **/ 







function showHide(ids,imgid){
	//alert("inside show hide");
	if(ids !=undefined && imgid != undefined){
		//alert("ids string" + ids);
		//alert("img id" + imgid);
		var imageElement = document.getElementById(imgid);
		if(imageElement != undefined){
			var imageName = imageElement.src.substring(imageElement.src.lastIndexOf('/')+1);
			if(imageName != undefined){
				//alert("image Name is " + imageName);
				var idArr = ids.split("`!");
				if(idArr != undefined){
				  if(imageName=="xTree_plus.gif"){
					imageElement.src="/search/images/xTree_minus.gif";
					for (var i=0; i < idArr.length; i++){
						if(idArr[i] != undefined){
						  //alert(idArr[i]);
						  document.getElementById(idArr[i]).style.display="";
						}
					}
				
				  }
				  else if(imageName=="xTree_minus.gif"){
					imageElement.src="/search/images/xTree_plus.gif";
					for (var i=0; i < idArr.length; i++){
						if(idArr[i] != undefined){
						  //alert(idArr[i]);
						  document.getElementById(idArr[i]).style.display="none";
						}
					}
				
				  }
			    }
			}
			
		}
	    
		
	}

}

function doBlink() {
  // Blink, Blink, Blink...
  var blink = document.all.tags("BLINK")
  for (var i=0; i < blink.length; i++)
    blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : "" 
}

function startBlink() {
  // Make sure it is IE4
  if (document.all)
    setInterval("doBlink()",600)
}

// Added by rgp01z for CCT40898 start 5th Jan 2006
function dapThirdPartyPart(dapId) {
        var encodeDapId = URLEncode(dapId);
        window.location='/webapp/dap.detail.framework?NEXT_SCREEN=DETAIL&DapId='+encodeDapId+'&CUSTOMER='+encodeDapId+'&Service=Tool+%26+Hardware%2FSoftware+Vendor&fromDevToolProdNodeId=';
}
function URLEncode( plaintext ) {
	var SAFE = "0123456789" +
		"ABCDEFGHIJKLMNOPQRSTUVWXYZ" +
		"abcdefghijklmnopqrstuvwxyz" +
		"-_.!~*'()";	// RFC2396  reference
	var HEX = "0123456789ABCDEF";

	var encoded = "";
	for (var i = 0; i < plaintext.length; i++ ) {
		var ch = plaintext.charAt(i);
		if (SAFE.indexOf(ch) != -1) {
		    encoded += ch;
	        } else if (ch == " ") {
		    encoded += "+";
		} else {
		    var charCode = ch.charCodeAt(0);
			if (charCode > 255) {
				//bad char, put space holder
				encoded += "+";
			} else {
				encoded += "%";
				encoded += HEX.charAt((charCode >> 4) & 0xF);
				encoded += HEX.charAt(charCode & 0xF);
			}
		}
	}
	return encoded;
}
// Added by rgp01z for CCT40898 end 5th Jan 2006

window.onload = startBlink;

/** Modification start by rz107c on 22-08-07 For CCT47683**/  

var lastSearchString="";
var searchTimer = "";
var curInput = "";
var cur = -1;
var i=0;
var requestor=new Object();
var globalHit = false;
var baseUrl = "";
var textElement = "";
var autofilledview = "";
var formName="";
var suggestionType= "suggestKeyword";

/* added for hiding selects in i.e.*/
function enableSelectsclick(e) {
   hideselects('visible');
   return true;
 }

function hideselects(state) {

	for(i=0;i<document.forms.length;i++){ // if there are forms on the page
		frm = document.forms[i];
		var inputs = frm.getElementsByTagName("SELECT");
		for (j=0;j<inputs.length;j++){
			inputs[j].style.visibility = state;
		}
	}
}

document.onmousedown=enableSelectsclick;


function initSuggestKeyword(suggestTextElement,suggestAutofilledview){		
	textElement = suggestTextElement;
	autofilledview = suggestAutofilledview;
	
	if(arguments.length>2){
		formName = arguments[2];
	}
	if(arguments.length>3){
		suggestionType = arguments[3];
	}

	//baseUrl = url;
	requestor.busy = false;
	requestor.resultsList = document.getElementById(autofilledview);
	requestor.searchBox = document.getElementById(textElement);
	
	if (document.getElementById(textElement).addEventListener)
	{
		 document.getElementById(textElement).addEventListener("keydown",handleKeyDown,false);
	}
	else if (document.attachEvent)
	{
	   document.getElementById(textElement).attachEvent("onkeydown", handleKeyDown);
	}
	else
	{
	   document.getElementById(textElement).onkeydown= handleKeyDown;
	}

	//assign onblur event handler (hides suggestions)    
	document.getElementById(textElement).onblur = function () {
		hideSuggestions();
	};
}

function handleKeyDown(oEvent) {
	
	if (!oEvent) oEvent= event;

	switch(oEvent.keyCode) {
		case 38: //up arrow
			previousSuggestion();
			break;
		case 40: //down arrow 
			nextSuggestion();
			globalHit = false;
			break;
		case 37: //left arrow
			break;
		case 39: //right arrow
			break;
		case 13: //enter
			hideSuggestions();
			//validate();
			break;
		default:
			fireSearch(document.getElementById(textElement));
			break;
	}

};

function validate(){
	if(document.getElementById(textElement).value == ''){
		alert('Please enter search criteria');
		return false;
	}
}


/**
 * Highlights the next suggestion in the dropdown and
 * places the suggestion into the textbox.
 * @scope private
 */
function nextSuggestion() {
	globalHit = false;
	requestor.busy = "on";

	var cSuggestionNodes = requestor.resultsList.childNodes;
	if (cSuggestionNodes.length > 0 && cur<(cSuggestionNodes.length-1)) {
		var oNode = cSuggestionNodes[++cur];
		document.getElementById(textElement).value = oNode.firstChild.firstChild.nodeValue; 
		this.highlightSuggestion(oNode);	
	}else{
		document.getElementById(textElement).value = origSearchString;
		var oNode = cSuggestionNodes[++cur];
		this.highlightSuggestion(oNode);
		cur=-1;
	}
};

/**
 * Highlights the previous suggestion in the dropdown and
 * places the suggestion into the textbox.
 * @scope private
 */
function previousSuggestion() {
	var cSuggestionNodes = requestor.resultsList.childNodes;
	globalHit = false;
	requestor.busy = "on";
	if (cSuggestionNodes.length > 0 && cur > 0) {
		var oNode = cSuggestionNodes[--cur];
		document.getElementById(textElement).value = oNode.firstChild.firstChild.nodeValue; 
		this.highlightSuggestion(oNode);	
	}
};

/**
 * Hides the suggestion dropdown.
 * @scope private
 */
function hideSuggestions() {
	cur=-1;
	requestor.resultsList.innerHTML="";
	requestor.resultsList.style.display = "none";
	hideselects('visible');
};

/**
 * Highlights the given node in the suggestions dropdown.
 * @scope private
 * @param oSuggestionNode The node representing a suggestion in the dropdown.
 */
function highlightSuggestion(oSuggestionNode) {
	for (var i=0; i < requestor.resultsList.childNodes.length; i++) {
		var oNode = requestor.resultsList.childNodes[i];
		oNode.style.height = document.getElementById(textElement).offsetHeight+"px";
		//oNode.style.width = (oNode.offsetWidth-4)+"px";
		if (oNode == oSuggestionNode) {
			oNode.className = "current"
		} else {
			oNode.className = "line";
		}
	}
};


function setNewHandler(parentContainer) {
	var http_request;				
	if (window.XMLHttpRequest) { // Mozilla, Safari, ...
	http_request = new XMLHttpRequest();
	http_request.overrideMimeType('text/plain');
	
	} else if (window.ActiveXObject) { // IE
try {
	http_request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
	try {
		http_request = new ActiveXObject("Microsoft.XMLHTTP");
	} catch (e) {}
}
	}
	setHandler(parentContainer, http_request);
}

function setHandler(parentContainer, handler) {
	parentContainer.handler=handler;
	parentContainer.busy = "off";
//	if(globalHit)
	handler.onreadystatechange = function() {handleStateChange();}
}

// Removes leading whitespaces
function LTrim( value ) {
	
	var re = /\s*((\S+\s*)*)/;
	return value.replace(re, "$1");
	
}

// Removes ending whitespaces
function RTrim( value ) {
	
	var re = /((\s*\S+)*)\s*/;
	return value.replace(re, "$1");
	
}

// Removes leading and ending whitespaces
function trim( value ) {
	return LTrim(RTrim(value));
}

function handleStateChange() {
	if (requestor.handler.readyState == 4) {
		var message="";
		requestor.busy = "off";
		if (requestor.handler.status == 200) {
			message = requestor.handler.responseText;
			
			var optArray = message.split("|");
			var realCount = 0;
			
			requestor.resultsList.innerHTML="";
			requestor.resultsList.style.display="none";

			for(opts=0;opts<optArray.length;opts++) {
				var optVal=trim(optArray[opts]);
				if(optVal.length>1) {
					var fieldValues = optVal.split(":z:");
					realCount++;
					var newdiv = document.createElement('div');					
					newdiv.id="suggestion";
					newdiv.innerHTML = '<span id="suggestionValue" class="keywords">'+fieldValues[0]+'</span>';
					newdiv.className = "line";
					requestor.resultsList.appendChild(newdiv);
					requestor.resultsList.style.display="block";
				}
				hideselects('hidden');
			}

			if(realCount>0){
				requestor.resultsList.onmousedown = 
				requestor.resultsList.onmouseup = 
				requestor.resultsList.onmouseover = function (oEvent) {
					oEvent = oEvent || window.event;
					oTarget = oEvent.target || oEvent.srcElement;
					//alert('oEvent.type'+oEvent.type);

					if (oEvent.type == "mousedown") {
						nodeValue=oTarget.parentNode.firstChild.firstChild.nodeValue;
						if(nodeValue==null || nodeValue=='') nodeValue=oTarget.firstChild.firstChild.nodeValue;
						document.getElementById(textElement).value = nodeValue;	
						hideSuggestions();
						//validateSearchForm('2',document.forms[1].action);
						if( "" != formName){
							var formElem =null;
							for(i=0;i<document.forms.length;i++){										
								tempName = document.forms[i].name;
								if (formName == tempName){
									formElem = document.forms[i];
								}
							}
							/*
							if(formElem!=null)
								formElem.submit();
								*/
							//submitSearchByProduct();						
						}else{
							document.forms[1].submit();						
						}
						
					} else if (oEvent.type == "mouseover") {
						if(oTarget.id=='suggestion' || oTarget.id=='suggestionValue'){ 							
							nodeValue=oTarget.parentNode.firstChild.firstChild.nodeValue;
							if(nodeValue==null || nodeValue=='') 
								nodeValue=oTarget.firstChild.firstChild.nodeValue;
							//document.getElementById(textElement).value = nodeValue;							
							if(oTarget.id=='suggestionValue'){
								highlightSuggestion(oTarget.parentNode);
							}else
								highlightSuggestion(oTarget);
						}
						else highlightSuggestion(oTarget);
					} else {
						document.getElementById(textElement).focus();
					}
				}
			}
			else{ 
				clearResultsList();
				
				//document.getElementById(textElement).value=origSearchString;
			}
		} else {
				message = "<B>Error Occured!</B>:<BR>Received Response Code:" + requestor.handler.status;
		}

	}
}		

function selectValue(val){
	document.frmMember.searchBox.value=val;
}


function showResultsList(){
	requestor.resultsList.style.display="block";
}

function clearResultsList(){
	cur=-1;
	requestor.resultsList.innerHTML="";
	requestor.resultsList.style.display="none";
	hideselects('visible');
}

function getSearchResults(searchString) {
	origSearchString = searchString;
	var url = "/webapp/search/components/suggestKeyword.jsp?s=" + searchString+"&suggestionType="+suggestionType;
	if(requestor.busy=="on") return false;
	requestor.busy = "on";
	setNewHandler(requestor);				
	requestor.handler.open('GET', url, true);
	requestor.handler.send(null);
	return true;
}

function searchLoop() {
	var searchString = curInput.value;
	if(searchString.length > 2){
		if(searchString != lastSearchString){
			var boolVal = getSearchResults(searchString);		
			if(boolVal) {
				lastSearchString = searchString;
			} 
		}else{
			clearResultsList();
		}
	}
	else{
		lastSearchString="";
		clearResultsList();
	}
}

function fireSearch(textbox) {
	requestor.busy = "off";
	curInput=textbox;
	if(searchTimer) clearTimeout(searchTimer);
	searchTimer = window.setTimeout('searchLoop()', 50);
	return true;
}

tipobj="";
var offsetxpoint=0 //Customize x offset of tooltip
var offsetypoint=20 //Customize y offset of tooltip
var self=this
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false



positiontip=function(e){
    tipobj=document.getElementById("dhtmltooltip");
	if (enabletip){
		var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
		var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
		//Find out how close the mouse is to the corner of the window
		var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
		var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20

		var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000

		//if the horizontal distance isn't enough to accomodate the width of the context menu
		if (rightedge<tipobj.offsetWidth)
		//move the horizontal position of the menu to the left by it's width
		tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"
		else if (curX<leftedge)
		tipobj.style.left="5px"
		else
		//position the horizontal position of the menu where the mouse is positioned
		tipobj.style.left=curX+offsetxpoint+"px"

		//same concept with the vertical position
		if (bottomedge<tipobj.offsetHeight)
		tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
		else
		tipobj.style.top=curY+offsetypoint+"px"
		tipobj.style.visibility="visible"
	}
}

hideddrivetip = function(){
	if (ns6||ie){
		enabletip=false
		tipobj.style.visibility="hidden"
		tipobj.style.left="-1000px"
		tipobj.style.backgroundColor=''
		tipobj.style.width=''
	}
}

ddrivetip = function ddrivetip(thetext, thecolor, thewidth){
	if (ns6||ie){
		if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
		if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
		tipobj.innerHTML=thetext
		enabletip=true
		return false
	}
}

ietruebody = function(){
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function showAssetDesc(dispName,evt){
	positiontip(evt);
	document.onmousemove=positiontip;
	ddrivetip(dispName);
	hideselects('hidden');
}

function hideAssetDesc(dispName,evt){
	positiontip(evt);
	document.onmousemove=positiontip;
	hideddrivetip();
	hideselects('visible');
}


/** Modification end by rz107c on 22-08-07 For CCT47683**/ 
