function breaklight_hider(loc){ Element.hide(loc); } function breaklight_shower(loc){ Effect.Pulsate(loc); Element.setStyle(loc, {display:'block'} ); } function p1hide(){ Element.hide('Llight_on'); Element.hide('Rlight_on'); } function p1show(){ Element.show('Llight_on'); Element.setStyle('Llight_on', {display:'block'} ); Element.show('Rlight_on'); Element.setStyle('Rlight_on', {display:'block'} ); } function contact_hide(){ Element.hide('cont_on'); } function contact_show(){ Effect.Pulsate('cont_on'); Element.setStyle('cont_on', {display:'block'} ); } function store_hide(){ Element.hide('stor_on'); } function store_show(){ Effect.Pulsate('stor_on'); Element.setStyle('stor_on', {display:'block'} ); } function proj_cur_hide(){ Element.hide('proj_cur_on'); } function proj_cur_show(){ Effect.Pulsate('proj_cur_on'); Element.setStyle('proj_cur_on', {display:'block'} ); } function proj_com_hide(){ Element.hide('proj_com_on'); } function proj_com_show(){ Effect.Pulsate('proj_com_on'); Element.setStyle('proj_com_on', {display:'block'} ); } function homehover(loc){ Element.setStyle(loc, {backgroundPosition:'center -140px'} ); } function homehover_off(loc){ Element.setStyle(loc, {backgroundPosition:'center 0px'} ); } function updatenav(change, type) { new Effect.Opacity('left_content_prjdetail_nav', {duration:0.1, from:1.0, to:0.1}); var params = '&change=' + change + '&type=' + type + '&realid=' + $F('selected_id'); var pizza = new Ajax.Updater( 'left_content_prjdetail_nav', 'http://www.greeningautocompany.com/index.php/projects/navbar_processor/', {asynchronous:true, parameters:params, evalScripts:true, onComplete:effect_nav }); updatetot(change, type); } function updatetot(change, type) { new Effect.Opacity('num_of_projs', {duration:0.1, from:1.0, to:0.1}); var params = '&change=' + change + '&type=' + type ; var pizza = new Ajax.Updater( 'num_of_projs', 'http://www.greeningautocompany.com/index.php/projects/navtot_processor/', {asynchronous:true, parameters:params, evalScripts:true, onComplete:effect_nav }); } function effect_nav() { new Effect.Opacity('left_content_prjdetail_nav', {duration:1.65, from:0.1, to:1.0}); new Effect.Opacity('num_of_projs', {duration:1.65, from:0.1, to:1.0}); } function proj_imag(projid, imgid) { var params = '&projid=' + projid + '&imgid=' + imgid; var pizza = new Ajax.Updater( 'right_content_prjdetail', 'http://www.greeningautocompany.com/index.php/projects/mainimg_processor/', {asynchronous:true, parameters:params, evalScripts:true, onComplete:effect_nav }); } function showimage(id){ imagesoff(); new Effect.Opacity(id, {duration:0.1, from:1.0, to:0.1}); Element.setStyle(id, {display:'block'} ); new Effect.Opacity(id, {duration:0.7, from:0.1, to:1.0}); //alert('fdsa'); }