//set_rollovers

(function(A){jQuery.fn.set_rollovers=function(C){var D={extension:"_o",active_hover:true,hover_extension:"_h",active_extension:false,fade:false,menu:{},menu_type:"files"};if(C){jQuery.extend(D,C)}if(!D.active_extension){D.active_extension=D.hover_extension}var F=String(document.location);var E=false;var B=0;A.each(D.menu,function(G){if(D.menu_type=="files"){if(G.match(/|/)){menu_path_arr=G.split("|");for(k=0;k<menu_path_arr.length;k++){if(F.match(menu_path_arr[k])&&menu_path_arr[k].length>B){E=D.menu[menu_path_arr[k]];B=menu_path_arr[k].length}}}else{if(F.match(G)&&G.length>B){E=D.menu[G];B=G.length}}}else{if(D.menu_type=="nodes"){if(A(G).length){E=D.menu[G]}}}});return this.filter("[src*="+D.extension+".]").each(function(){var H=new Image;H.src=this.src.replace(D.extension+".",D.hover_extension+".");if(this.src.match(/[^\/]+$/)[0]==E){this.src=this.src.replace(new RegExp(D.extension+"(.[a-z]+)$"),D.active_extension+"$1");if(D.active_hover){A(this).hover(function(){this.src=this.src.replace(new RegExp(D.active_extension+"(.[a-z]+)$"),D.hover_extension+"$1")},function(){this.src=this.src.replace(new RegExp(D.hover_extension+"(.[a-z]+)$"),D.active_extension+"$1")})}}else{if(!D.fade){A(this).hover(function(){this.src=this.src.replace(new RegExp(D.extension+"(.[a-z]+)$"),D.hover_extension+"$1")},function(){this.src=this.src.replace(new RegExp(D.hover_extension+"(.[a-z]+)$"),D.extension+"$1")})}else{var G=A(this).wrap('<span style="position:relative; display:block;"></span>').parent();G.append('<img src="'+H.src+'" style="position:absolute; top:0; left:0;" />');G.find("> :last-child").hide();G.hover(function(){A("> img:last-child",this).fadeIn(D.fade)},function(){A("> img:last-child",this).fadeOut(D.fade)})}if(this.parentNode.nodeName.match(/^a$/i)){A(this).parent().focus(function(){A(">img",this).trigger("mouseover")}).blur(function(){A(">img",this).trigger("mouseout")})}else{if(this.parentNode.nodeName.match(/span/i)&&this.parentNode.parentNode.nodeName.match(/a/i)){A(this).parents("a").focus(function(){A("> span > img:last-child",this).fadeIn(D.fade)}).blur(function(){A("> span > :last-child",this).fadeOut(D.fade)})}}}})}})(jQuery);



$(document).ready(function(){





// -------------------------------------------------

// set_rollovers

// -------------------------------------------------

$('img,input[type="image"]').set_rollovers({ menu: {

	"/concept/":"gnav_concept_o.png",

	"/service/":"gnav_service_o.png",

	"/workflow/":"gnav_workflow_o.png",

	"/work/":"gnav_work_o.png",

	"/contact/":"gnav_contact_o.png",

	"/access/":"gnav_access_o.png"

} });







// -------------------------------------------------

// pngFix

// -------------------------------------------------

$('div#frame').pngFix( );





});






