
//to avoid conflict with prototype and lightbox
$.noConflict();



function cycleimages() {

    //cycle images
    //use jQuery instead of $ to avoid conflict with prototype and lightbox
    jQuery('#slider img:first').fadeIn(1000, function() {
        jQuery('#slider').cycle({
            cleartype: true,
            cleartypeNoBg: true,
            fx: 'fade', 
            speed: 'slow',
            delay: 7500,
            timeout: 7500	
        });
    });
}

function SWFDelegate(url,width,height,caption) {
   var objLink = document.createElement('a');
   objLink.setAttribute('href',url);
   objLink.setAttribute('rel','lightbox');
   objLink.setAttribute('title',caption);
   if(typeof width != 'undefined') {
      objLink.setAttribute('width',width);
   }
   if(typeof height != 'undefined') {
      objLink.setAttribute('height',height);
   }
   Lightbox.prototype.start(objLink);
};

function chkdata(){
	var chkdata=document.Application.txtCompName;
	var chkaddress=document.Application.txtCompRegAddress;
	var chkcity=document.Application.txtCity;
	var chkemail=document.Application.txtEmail;
	var chkcon=document.Application.txtContactName;
	if(chkdata.value==""){
		alert("please Enter Company name");
		chkdata.focus();
		return false;
	}else if(chkaddress.value==""){
		alert("Please Enter Address");
		chkaddress.focus();
		return false;
	}else if(chkcity.value==""){
		alert("Please Enter City");
		chkcity.focus();
		return false;
	}else if(chkemail.value==""){
		alert("Please Enter Email");
		chkemail.focus();
		return false;
	}else if(chkcon.value==""){
		alert("Please Enter Contact Person Name");
		chkcon.focus();
		return false;
	}
	return true;
};

jQuery(document).ready(function(){
   
   cycleimages();
   
   
   
});



