


jQuery(document).ready(function(){
						  jQuery('#tabs').tabs({ fx: { opacity: 'toggle' } });
							jQuery("#tabs").tabs('rotate', 7000);
							});

/*Clickable div function*/

Extras = {

            /* makes all of div clickable, linking to the first href found within. */

            clickableElems : function(el, cls){

            if (!document.getElementsByTagName) return false; //added to test the browsers DOM compatibility

            if (!document.getElementsByTagName(el)) return false; //added to test for any Elems

            var elems = document.getElementsByTagName(el);

                        for(var i=0,j=elems.length;i<j;i++){

                                    if (elems[i].className.match(cls)){ // .match to deal with multiple class names

                                    if (!elems[i].getElementsByTagName('a')[0]) continue; // to ensure no errors if href is not present

                                    elems[i].style.cursor = "pointer"; // change the cursor to a pointer if onclick is applied

                                                elems[i].onclick = function (){

                                                window.location = this.getElementsByTagName('a')[0].href; //regular link

                                                }

                                    }

                        }

            }

};

 

var initExtras = function(){

            Extras.clickableElems('div', 'clickBox'); /* Set your element and the class you want to look for */
			

};

jQuery(document).ready(function(){
						  setTimeout(initExtras,500);
							});