var menu = new Array();
menu[0] = "CD / DVD Players";
menu[1] = "http://www.avxindia.com/cd-dvd-players.html";
menu[2] = "A/V Receivers";
menu[3] = "http://www.avxindia.com/a-v-receivers.html";
menu[4] = "Amplifiers";
menu[5] = "http://www.avxindia.com/amplifiers.html";
menu[6] = "Speakers";
menu[7] = "http://www.avxindia.com/speakers.html";
menu[8] = "Headphones";
menu[9] = "http://www.avxindia.com/headphones.html";
menu[10] = "Home Theatres";
menu[11] = "http://www.avxindia.com/home_theatres.html";
menu[12] = "Visual Displays";
menu[13] = "http://www.avxindia.com/visual_displays.html";
menu[14] = "Accessories";
menu[15] = "http://www.avxindia.com/accessories.html";
menu[16] = "Mountings";
menu[17] = "http://www.avxindia.com/mountings.html";
menu[18] = "Gaming";
menu[19] = "http://www.avxindia.com/gaming.html";
menu[20] = "NULL";

var message = "Right Click disabled! - AVXellence";
var var_more="Click here for more";



function build_menu()
{
	document.write ('<tr><td id="left_column_categories_buttons_top"><a href="' + menu[1] + '">&raquo; ' + menu[0] + '</a></td></tr>');

	for (i=2;menu[i+2]!="NULL";i=i+2)
	{
		document.write ('<tr><td id="left_column_categories_buttons"><a href="' + menu[i+1] + '">&raquo; ' + menu[i] + '</a></td></tr>');
	}
		
	document.write ('<tr><td id="left_column_categories_buttons_bottom"><a href="' + menu[i+1] + '">&raquo; ' + menu[i] + '</a></td></tr>');
					
}


// JavaScript Document
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//validate() function to validate date in enquiry form.
function validate(){
		
		if (document.enquiry.Name.value=="")
		{
				alert("Please enter your name");
				document.enquiry.Name.focus();
				return false;
		}

		if (document.enquiry.Email.value=="")
		{
				alert("Please enter your email address");
				document.enquiry.Email.focus();
				return false;
		}
		
		if (document.enquiry.Address.value=="")
		{
				alert("Please type your address");
				document.enquiry.Address.focus();
				return false;
		}
		

		if (document.enquiry.City.value=="")
		{
				alert("Please type your city");
				document.enquiry.City.focus();
				return false;
		}

		if (document.enquiry.Contact.value=="")
		{
				alert("Please type your contact no");
				document.enquiry.Contact.focus();
				return false;
		}
		

		
		var str= document.enquiry.Email.value;
		var at="@";
		var dot=".";
		var lat=str.indexOf(at);
		var lstr=str.length;
		var ldot=str.indexOf(dot);
		
		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr)
		{
		   alert("Invalid E-mail ID");
		   document.enquiry.Email.focus();
		   return false;
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr)
		{
		    alert("Invalid E-mail ID");
			document.enquiry.Email.focus();
		    return false;
		}

		 if (str.indexOf(at,(lat+1))!=-1)
		 {
		    alert("Invalid E-mail ID");
			document.enquiry.Email.focus();
		    return false;
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid E-mail ID");
			document.enquiry.Email.focus();
		    return false;
		 }

		 if (str.indexOf(dot,(lat+2))==-1)
		 {
		    alert("Invalid E-mail ID");
			document.enquiry.Email.focus();
		    return false;
		 }
		
		 if (str.indexOf(" ")!=-1)
		 {
		    alert("Invalid E-mail ID");
			document.enquiry.Email.focus();
		    return false;
		 }
		
		 alert("Thank You! We have received your request. We will get back to you shortly - AVXellence"); 		
		 return true					
}

// JavaScript Document
/***********************************************
* Ultimate Fade-In Slideshow (v1.5): © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
 
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["http://www.avxindia.com/images/top_banner_slideshow/image1.jpg", "", ""] //plain image syntax
fadeimages[1]=["http://www.avxindia.com/images/top_banner_slideshow/image3.jpg", "", ""] //image with link syntax
fadeimages[2]=["http://www.avxindia.com/images/top_banner_slideshow/image4.jpg", "", ""] //image with link and target syntax
fadeimages[3]=["http://www.avxindia.com/images/top_banner_slideshow/image5.jpg", "", ""] //image with link and target syntax

var fadeimages2=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages2[0]=["photo1.jpg", "", ""] //plain image syntax
fadeimages2[1]=["photo2.jpg", "http://www.cssdrive.com", ""] //image with link syntax
fadeimages2[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax
 
var fadebgcolor="black"
 
////NO need to edit beyond here/////////////
 
var fadearray=new Array() //array to cache fadeshow instances
var fadeclear=new Array() //array to cache corresponding clearinterval pointers
 
var dom=(document.getElementById) //modern dom browsers
var iebrowser=document.all
 
function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.degree=10 //initial opacity degree (10%)
this.curimageindex=0
this.nextimageindex=1
fadearray[fadearray.length]=this
this.slideshowid=fadearray.length-1
this.canvasbase="canvas"+this.slideshowid
this.curcanvas=this.canvasbase+"_0"
if (typeof displayorder!="undefined")
theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
this.theimages=theimages
this.imageborder=parseInt(borderwidth)
this.postimages=new Array() //preload images
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[p].src=theimages[p][0]
}
 
var fadewidth=fadewidth+this.imageborder*2
var fadeheight=fadeheight+this.imageborder*2
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);-moz-opacity:10;-khtml-opacity:10;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);-moz-opacity:10;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox
this.startit()
else{
this.curimageindex++
setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)
}
}

function fadepic(obj){
if (obj.degree<100){
obj.degree+=10
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+
obj.tempobj.filters[0].opacity=obj.degree
else //else if IE5.5-
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
}
else if (obj.tempobj.style.MozOpacity)
obj.tempobj.style.MozOpacity=obj.degree/101
else if (obj.tempobj.style.KhtmlOpacity)
obj.tempobj.style.KhtmlOpacity=obj.degree/100
}
else{
clearInterval(fadeclear[obj.slideshowid])
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
obj.populateslide(obj.tempobj, obj.nextimageindex)
obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
}
}
 
fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}
 
 
fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1) //if pause onMouseover enabled, cache object
var cacheobj=this
if (this.mouseovercheck==1)
setTimeout(function(){cacheobj.rotateimage()}, 100)
else if (iebrowser&&dom||dom){
this.resetit()
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
crossobj.style.zIndex++
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var ns4imgobj=document.images['defaultslide'+this.slideshowid]
ns4imgobj.src=this.postimages[this.curimageindex].src
}
this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}
 
fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=obj.degree/100
}
 
 
fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER
var cacheobj=this
var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
this.rotateimage()
}

//fade images code over.



//images slideshow code starts

				//Specify the slider's width (in pixels)
				var sliderwidth="790px"
				//Specify the slider's height
				var sliderheight="40px"
				//Specify the slider's slide speed (larger is faster 1-10)
				var slidespeed=2
				//configure background color:
				slidebgcolor="#ffffff"

				//Specify the slider's images
				var leftrightslide=new Array()
				var finalslide=''
					leftrightslide[0]='<a href="products_anthony_gallo.html"><img src="http://www.avxindia.com/images/brands/logos_slider/anthony_gallo.jpg" border=0></a>'
					leftrightslide[1]='<a href="http://www.avxindia.com/products_b&w.html"><img src="http://www.avxindia.com/images/brands/logos_slider/b&w.jpg" border=0></a>'
					leftrightslide[2]='<a href="http://www.avxindia.com/products_crestron.html"><img src="http://www.avxindia.com/images/brands/logos_slider/crestron.jpg" border=0></a>'
					leftrightslide[3]='<a href="http://www.avxindia.com/products_DENON.html"><img src="http://www.avxindia.com/images/brands/logos_slider/denon.jpg" border=0></a>'
					leftrightslide[4]='<a href="http://www.avxindia.com/products_focal.html"><img src="http://www.avxindia.com/images/brands/logos_slider/focal.jpg" border=0></a>'
					leftrightslide[5]='<a href="http://www.avxindia.com/hitachi/index.html"><img src="http://www.avxindia.com/images/brands/logos_slider/hitachi.jpg" border=0></a>'
					leftrightslide[6]='<a href="http://www.avxindia.com/products_jamo.html"><img src="http://www.avxindia.com/images/brands/logos_slider/jamo.jpg" border=0></a>'
					leftrightslide[7]='<a href="http://www.avxindia.com/products_KEF.html"><img src="http://www.avxindia.com/images/brands/logos_slider/kef.jpg" border=0></a>'
					leftrightslide[8]='<a href="http://www.avxindia.com/products_logitech.html"><img src="http://www.avxindia.com/images/brands/logos_slider/logitech.jpg" border=0></a>'
					leftrightslide[9]='<a href="http://www.avxindia.com/products_microsoft.html"><img src="http://www.avxindia.com/images/brands/logos_slider/microsoft.jpg" border=0></a>'
					leftrightslide[10]='<a href="http://www.avxindia.com/products_monster_cable.html"><img src="http://www.avxindia.com/images/brands/logos_slider/monster_cable.jpg" border=0></a>'
					leftrightslide[11]='<a href="http://www.avxindia.com/products_NAD.html"><img src="http://www.avxindia.com/images/brands/logos_slider/nad.jpg" border=0></a>'
					leftrightslide[12]='<a href="http://www.avxindia.com/products_omnimoount.html"><img src="http://www.avxindia.com/images/brands/logos_slider/omnimount.jpg" border=0></a>'
					leftrightslide[13]='<a href="http://www.avxindia.com/products_onkyo.html"><img src="http://www.avxindia.com/images/brands/logos_slider/onkyo.jpg" border=0></a>'
					leftrightslide[14]='<a href="http://www.avxindia.com/products_panasonic.html"><img src="http://www.avxindia.com/images/brands/logos_slider/panasonic.jpg" border=0></a>'
					leftrightslide[15]='<a href="http://www.avxindia.com/products_polk_audio.html"><img src="http://www.avxindia.com/images/brands/logos_slider/polk_audio.jpg" border=0></a>'
					leftrightslide[16]='<a href="http://www.avxindia.com/products_rotel.html"><img src="http://www.avxindia.com/images/brands/logos_slider/rotel.jpg" border=0></a>'
					leftrightslide[17]='<a href="http://www.avxindia.com/products_sennheiser.html"><img src="http://www.avxindia.com/images/brands/logos_slider/sennheiser.jpg" border=0></a>'
					leftrightslide[18]='<a href="http://www.avxindia.com/products_sharp.html"><img src="http://www.avxindia.com/images/brands/logos_slider/sharp.jpg" border=0></a>'
					leftrightslide[19]='<a href="http://www.avxindia.com/products_sim2.html"><img src="http://www.avxindia.com/images/brands/logos_slider/sim2.jpg" border=0></a>'
					leftrightslide[20]='<a href="http://www.avxindia.com/products_sony.html"><img src="http://www.avxindia.com/images/brands/logos_slider/sony.jpg" border=0></a>'
					leftrightslide[21]='<a href="http://www.avxindia.com/products_vanguard.html"><img src="http://www.avxindia.com/images/brands/logos_slider/vanguard.jpg" border=0></a>'
					leftrightslide[22]='<a href="http://www.avxindia.com/products_vibrapod.html"><img src="http://www.avxindia.com/images/brands/logos_slider/vibrapod.jpg" border=0></a>'
					leftrightslide[23]='<a href="http://www.avxindia.com/products_yamaha.html"><img src="http://www.avxindia.com/images/brands/logos_slider/yamaha.jpg" border=0></a>'
					//Specify gap between each image (use HTML):
					var imagegap="&nbsp;"
					
					//Specify pixels gap between each slideshow rotation (use integer):
					var slideshowgap=0
					
					
					////NO NEED TO EDIT BELOW THIS LINE////////////
					
					var copyspeed=slidespeed
					leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'
					var iedom=document.all||document.getElementById
					if (iedom)
						document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>')
					var actualwidth=''
					var cross_slide, ns_slide
					
					function fillup(){
						if (iedom){
							cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
							cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
							cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
							actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
							cross_slide2.style.left=actualwidth+slideshowgap+"px"
						}
						else if (document.layers){
							ns_slide=document.ns_slidemenu.document.ns_slidemenu2
							ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
							ns_slide.document.write(leftrightslide)
							ns_slide.document.close()
							actualwidth=ns_slide.document.width
							ns_slide2.left=actualwidth+slideshowgap
							ns_slide2.document.write(leftrightslide)
							ns_slide2.document.close()
						}
						lefttime=setInterval("slideleft()",30)
					}
				
			//		window.onload=fillup
					
					function slideleft(){
						if (iedom){
							if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
								cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"
							else
								cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px"
					
							if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
								cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"
							else
								cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px"
						}
						else if (document.layers){
							if (ns_slide.left>(actualwidth*(-1)+8))
								ns_slide.left-=copyspeed
							else
								ns_slide.left=ns_slide2.left+actualwidth+slideshowgap
					
							if (ns_slide2.left>(actualwidth*(-1)+8))
								ns_slide2.left-=copyspeed
							else
								ns_slide2.left=ns_slide.left+actualwidth+slideshowgap
						}
					}
					
					
// slide show code over 

function slider_bar()
{
	window.onload=fillup
									
	if (iedom||document.layers){
		with (document){
				document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
				if (iedom){
					write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')
					write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
					write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>')
					write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>')
					write('</div></div>')
				}
				else if (document.layers){
					write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>')
					write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
					write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
					write('</ilayer>')
				}
				document.write('</td></table>')
			}
	}	
}

//floating menu code starts************************************************************************************************
//*************************************************************************************************************************
//*************************************************************************************************************************

function build_floating_menu()
{
	if (!document.layers)
		document.write('<div id="divStayTopLeft" style="position:absolute">');
	
	//floating menu body:
	
	document.write('<layer id="divStayTopLeft"><table width="135" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF"><tr><td align="center" bgcolor="#000000"><a href="http://www.avxindia.com"><img src="http://www.avxindia.com/images/avx_logo.jpg" alt="AVXellence" width="127" height="28" border="0"></a></td></tr><tr><td id="floating_menu_links"><a href="javascript:bookmarksite()">&raquo; Bookmark this site </a></td></tr><tr><td id="floating_menu_links"><a href="javascript:opencontactwin()">&raquo; Enqiury / Contact</a></td></tr></table></layer>'); 
	
	
	var verticalpos="frombottom";

if (!document.layers)
document.write('</div>');

function JSFX_FloatTopDiv()
{
	var startX = 0,
	startY = 180;
	var ns = (navigator.appName.indexOf("Netscape") != -1);
	var d = document;
	function ml(id)
	{
		var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
		if(d.layers)el.style=el;
		el.sP=function(x,y){this.style.left=x;this.style.top=y;};
		el.x = startX;
		if (verticalpos=="fromtop")
		el.y = startY;
		else{
		el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
		el.y -= startY;
		}
		return el;
	}
	window.stayTopLeft=function()
	{
		if (verticalpos=="fromtop"){
		var pY = ns ? pageYOffset : document.body.scrollTop;
		ftlObj.y += (pY + startY - ftlObj.y)/8;
		}
		else{
		var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
		ftlObj.y += (pY - startY - ftlObj.y)/8;
		}
		ftlObj.sP(ftlObj.x, ftlObj.y);
		setTimeout("stayTopLeft()", 10);
	}
	ftlObj = ml("divStayTopLeft");
	stayTopLeft();
}
JSFX_FloatTopDiv();

}

//floating menu code ends


//bookmark this site code

function bookmarksite(){
	var title="AVXellence - Audio , Video Mega Store";
	var url="http://www.avxindia.com"
	if (window.sidebar) // firefox
		window.sidebar.addPanel(title, url, "");
	else if(window.opera && window.print){ // opera
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	} 
	else if(document.all)// ie
		window.external.AddFavorite(url, title);
}

//bookmark code ends

//Right click disabled code starts here......

function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

//Right click disabled code ends....


//open window for contact.... for flaoting menu..
function opencontactwin()
{
	window.open('http://www.avxindia.com/contact.asp','_blank','toolbar=no, width=550, height=470');	
}

//openwindow for contact code ends...... for floating menu

//open window for refer to friend.... for flaoting menu..
function openreferwin()
{
	window.open('http://www.avxindia.com/refertofriend.asp','_blank','toolbar=no, width=550, height=500');	
}

//openwindow for refer to friend code ends...... for floating menu



/***********************************************
* Disable Text Selection script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
	target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
	target.style.MozUserSelect="none"
else //All other route (ie: Opera)
	target.onmousedown=function(){return false}
target.style.cursor = "default"
}

disableSelection(document.body) //disable text selection on entire body of page


//Sample usages
//disableSelection(document.body) //Disable text selection on entire body
//disableSelection(document.getElementById("mydiv")) //Disable text selection on element with id="mydiv"

