auguriaInteractiveImage - Version 0.0.4

Version Notes

1.9 compatibility

Download this release

Release Info

Developer Auguria
Extension auguriaInteractiveImage
Version 0.0.4
Comparing to
See all releases


Code changes from version 0.0.3 to 0.0.4

app/design/frontend/base/default/layout/auguria/interactive_image.xml CHANGED
@@ -12,14 +12,14 @@
12
<catalog_product_view>
13
<reference name="head">
14
<action method="addJs"><link>auguria/interactiveimage/jquery-1.10.2.min.js</link></action>
15
- <action method="addJs"><link>auguria/interactiveimage/jquery.maphilight.min.js</link></action>
16
<action method="addJs"><link>auguria/interactiveimage/cart.js</link></action>
17
<action method="addCss"><link>css/auguria/interactiveimage/image.css</link></action>
18
</reference>
19
<reference name="product.info.additional">
20
- <block type="auguria_interactiveimage/catalog_product_image" name="auguria.interactiveimage.catalog.product.image">
21
- <action method="setTemplate"><template>auguria/interactiveimage/catalog/product/image.phtml</template></action>
22
- </block>
23
</reference>
24
</catalog_product_view>
25
12
<catalog_product_view>
13
<reference name="head">
14
<action method="addJs"><link>auguria/interactiveimage/jquery-1.10.2.min.js</link></action>
15
+ <action method="addItem"><type>skin_js</type><link>js/auguria/interactiveimage/jquery.maphilight.min.js</link></action>
16
<action method="addJs"><link>auguria/interactiveimage/cart.js</link></action>
17
<action method="addCss"><link>css/auguria/interactiveimage/image.css</link></action>
18
</reference>
19
<reference name="product.info.additional">
20
+ <block type="auguria_interactiveimage/catalog_product_image" name="auguria.interactiveimage.catalog.product.image">
21
+ <action method="setTemplate"><template>auguria/interactiveimage/catalog/product/image.phtml</template></action>
22
+ </block>
23
</reference>
24
</catalog_product_view>
25
package.xml CHANGED
@@ -1,7 +1,7 @@
1
<?xml version="1.0"?>
2
<package>
3
<name>auguriaInteractiveImage</name>
4
- <version>0.0.3</version>
5
<stability>stable</stability>
6
<license uri="http://opensource.org/licenses/gpl-license.php">GNU General Public License</license>
7
<channel>community</channel>
@@ -18,11 +18,11 @@
18
&#xD;
19
Free Auguria_Core extension required.&#xD;
20
</description>
21
- <notes>Free Auguria_Core extension included.</notes>
22
<authors><author><name>Auguria</name><user>auguria</user><email>magento@auguria.net</email></author></authors>
23
<date>2014-07-15</date>
24
- <time>13:21:47</time>
25
- <contents><target name="magecommunity"><dir name="Auguria"><dir name="InteractiveImage"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><dir name="Helper"><dir name="Form"><dir name="Image"><dir name="Interactive"><dir name="Panel"><dir name="Area"><file name="Default.php" hash="27c20fcc58c34a619c76c7d9f3020238"/></dir><file name="Areas.php" hash="79d25988e2c8898ef472aa0abfe29728"/></dir><file name="Popin.php" hash="f311bc5eb2b7a1de5b85cd4cf90922dc"/></dir><file name="Interactive.php" hash="b00f872fae58bbe8eaaa17d1a479f495"/></dir></dir></dir></dir></dir></dir><dir name="Catalog"><dir name="Product"><file name="Image.php" hash="0ae00def32a8ff335dbc8ab21d0b6abb"/></dir></dir></dir><dir name="Helper"><file name="Config.php" hash="1b681b6bc6026d85612e71e92e7e231b"/><file name="Data.php" hash="f77d687f8f8394f380b0c49011aed92f"/></dir><dir name="Model"><dir name="Catalog"><dir name="Product"><dir name="Attribute"><dir name="Backend"><file name="Image.php" hash="d4626a456cf2bf891b6907ab29d16224"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Auguria"><dir name="InteractiveImage"><file name="ImageController.php" hash="e2785e9df66cd2f18cd27b7a4591ee99"/></dir></dir></dir><dir name="Checkout"><dir name="Cart"><file name="AjaxController.php" hash="08e9986648018b25072b09855166b555"/></dir><file name="CartController.php" hash="03f0f24305a19f07001fe71853f58d81"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="5ec267e2e63459b3ec9eb7784ea9e4da"/><file name="config.xml" hash="a310e08733d8322dac53909760e54a88"/><file name="jstranslator.xml" hash="f85990cfdb8aac7ea10529c4b2dab0e6"/><file name="system.xml" hash="854e957398da36fd688cea794ab48fe8"/></dir><dir name="sql"><dir name="auguria_interactiveimage_setup"><file name="install-0.0.1.php" hash="42e8345c1826f45cb90a5a43d5ab3780"/></dir></dir></dir><dir name="Core"><dir name="Helper"><file name="Data.php" hash="73bdf383ed70ef7a844149518637d4b1"/></dir><dir name="Model"><dir name="Attribute"><dir name="Backend"><dir name="Image"><file name="Abstract.php" hash="4ac4fc2b5653635b2c7d6a6761d32394"/></dir></dir></dir><dir name="Customer"><dir name="Attribute"><dir name="Source"><file name="Group.php" hash="275163848ce915273abf1b3bc752a112"/></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Config.php" hash="5e31ba47c019daa5575b9e442060f1d6"/><dir name="Customer"><dir name="Group"><file name="Multiselect.php" hash="7ffe45941e1a10491e0b161d5e5a2572"/></dir></dir></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="152714fbae8487307145ad01929173fd"/><file name="system.xml" hash="addce60a6afe7b99f9bbb8fa813d9010"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="auguria"><dir name="interactiveimage"><dir name="catalog"><dir name="product"><dir name="helper"><dir name="form"><dir name="image"><dir name="interactive"><dir name="panel"><dir name="area"><file name="default.phtml" hash="747a1cb7a7e43dfb59abd38ee14afdd5"/></dir><file name="areas.phtml" hash="0ab8dccd7bbd5b4532f1d6eb46083459"/></dir><file name="popin.phtml" hash="fbdb832cdb9a769aaabe9e694a819dfc"/></dir></dir></dir></dir></dir></dir></dir></dir></dir><dir name="layout"><dir name="auguria"><file name="interactive_image.xml" hash="ef596e624796cc469f3660276d9a4233"/><file name="core.xml" hash="73d41f963e258e406b8b9042b7b0f17b"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="auguria"><dir name="interactiveimage"><dir name="catalog"><dir name="product"><file name="image.phtml" hash="b248488043e9347baa20ee71504ce462"/></dir></dir></dir></dir></dir><dir name="layout"><dir name="auguria"><file name="interactive_image.xml" hash="6a51a87a692676a91bad0236a1965520"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="auguria"><dir name="interactiveimage"><file name="cart.js" hash="724efb87a4b8fe5e5850921bc928e72d"/><file name="image.js" hash="c870338e42e33ec10f37299f58b7034f"/><file name="jquery-1.10.2.min.js" hash="055b1c0c38f106959bdd3cee7e6b0136"/><file name="jquery.maphilight.min.js" hash="060990df8870589e0e629349f8fb3a4c"/><file name="kinetic-v4.5.4.min.js" hash="5d114c84e5926c19c8b1cee80ea79ce5"/></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="auguria"><dir name="interactiveimage"><file name="image.css" hash="47b0fbfecac78ae0b5a524cf85a5c515"/></dir><file name="core.css" hash="f21626dc01765695d52346bb5da8c0cb"/><dir name="images"><file name="tab-header.png" hash="277234c8e4a9462fe0bf91c174cef179"/><file name="section-header.png" hash="277234c8e4a9462fe0bf91c174cef179"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="auguria"><dir name="interactiveimage"><file name="image.css" hash="4081440dcd4fa462f4d18b9ef76266ea"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Auguria_InteractiveImage.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Auguria_Core.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><dir name="fr_FR"><file name="Auguria_InteractiveImage.csv" hash="ca76a1aa121f73673b8fc16a6fcd7bc2"/><file name="Auguria_Core.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target><target name="mageetc"><dir name="modules"><file name="Auguria_InteractiveImage.xml" hash="bd010178de76af694025d33e666e55b2"/><file name="Auguria_Core.xml" hash="1569ebe15f1c2b8e4b5c61b9bc797fe6"/></dir></target></contents>
26
<compatible/>
27
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
28
</package>
1
<?xml version="1.0"?>
2
<package>
3
<name>auguriaInteractiveImage</name>
4
+ <version>0.0.4</version>
5
<stability>stable</stability>
6
<license uri="http://opensource.org/licenses/gpl-license.php">GNU General Public License</license>
7
<channel>community</channel>
18
&#xD;
19
Free Auguria_Core extension required.&#xD;
20
</description>
21
+ <notes>1.9 compatibility</notes>
22
<authors><author><name>Auguria</name><user>auguria</user><email>magento@auguria.net</email></author></authors>
23
<date>2014-07-15</date>
24
+ <time>13:54:06</time>
25
+ <contents><target name="magecommunity"><dir name="Auguria"><dir name="InteractiveImage"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><dir name="Helper"><dir name="Form"><dir name="Image"><dir name="Interactive"><dir name="Panel"><dir name="Area"><file name="Default.php" hash="27c20fcc58c34a619c76c7d9f3020238"/></dir><file name="Areas.php" hash="79d25988e2c8898ef472aa0abfe29728"/></dir><file name="Popin.php" hash="f311bc5eb2b7a1de5b85cd4cf90922dc"/></dir><file name="Interactive.php" hash="b00f872fae58bbe8eaaa17d1a479f495"/></dir></dir></dir></dir></dir></dir><dir name="Catalog"><dir name="Product"><file name="Image.php" hash="0ae00def32a8ff335dbc8ab21d0b6abb"/></dir></dir></dir><dir name="Helper"><file name="Config.php" hash="1b681b6bc6026d85612e71e92e7e231b"/><file name="Data.php" hash="f77d687f8f8394f380b0c49011aed92f"/></dir><dir name="Model"><dir name="Catalog"><dir name="Product"><dir name="Attribute"><dir name="Backend"><file name="Image.php" hash="d4626a456cf2bf891b6907ab29d16224"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Auguria"><dir name="InteractiveImage"><file name="ImageController.php" hash="e2785e9df66cd2f18cd27b7a4591ee99"/></dir></dir></dir><dir name="Checkout"><dir name="Cart"><file name="AjaxController.php" hash="08e9986648018b25072b09855166b555"/></dir><file name="CartController.php" hash="03f0f24305a19f07001fe71853f58d81"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="5ec267e2e63459b3ec9eb7784ea9e4da"/><file name="config.xml" hash="a310e08733d8322dac53909760e54a88"/><file name="jstranslator.xml" hash="f85990cfdb8aac7ea10529c4b2dab0e6"/><file name="system.xml" hash="854e957398da36fd688cea794ab48fe8"/></dir><dir name="sql"><dir name="auguria_interactiveimage_setup"><file name="install-0.0.1.php" hash="42e8345c1826f45cb90a5a43d5ab3780"/></dir></dir></dir><dir name="Core"><dir name="Helper"><file name="Data.php" hash="73bdf383ed70ef7a844149518637d4b1"/></dir><dir name="Model"><dir name="Attribute"><dir name="Backend"><dir name="Image"><file name="Abstract.php" hash="4ac4fc2b5653635b2c7d6a6761d32394"/></dir></dir></dir><dir name="Customer"><dir name="Attribute"><dir name="Source"><file name="Group.php" hash="275163848ce915273abf1b3bc752a112"/></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Config.php" hash="5e31ba47c019daa5575b9e442060f1d6"/><dir name="Customer"><dir name="Group"><file name="Multiselect.php" hash="7ffe45941e1a10491e0b161d5e5a2572"/></dir></dir></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="152714fbae8487307145ad01929173fd"/><file name="system.xml" hash="addce60a6afe7b99f9bbb8fa813d9010"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="auguria"><dir name="interactiveimage"><dir name="catalog"><dir name="product"><dir name="helper"><dir name="form"><dir name="image"><dir name="interactive"><dir name="panel"><dir name="area"><file name="default.phtml" hash="747a1cb7a7e43dfb59abd38ee14afdd5"/></dir><file name="areas.phtml" hash="0ab8dccd7bbd5b4532f1d6eb46083459"/></dir><file name="popin.phtml" hash="fbdb832cdb9a769aaabe9e694a819dfc"/></dir></dir></dir></dir></dir></dir></dir></dir></dir><dir name="layout"><dir name="auguria"><file name="interactive_image.xml" hash="ef596e624796cc469f3660276d9a4233"/><file name="core.xml" hash="73d41f963e258e406b8b9042b7b0f17b"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="auguria"><dir name="interactiveimage"><dir name="catalog"><dir name="product"><file name="image.phtml" hash="b248488043e9347baa20ee71504ce462"/></dir></dir></dir></dir></dir><dir name="layout"><dir name="auguria"><file name="interactive_image.xml" hash="432321ccbb30f1ef664940a0e191a202"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="auguria"><dir name="interactiveimage"><file name="cart.js" hash="724efb87a4b8fe5e5850921bc928e72d"/><file name="image.js" hash="c870338e42e33ec10f37299f58b7034f"/><file name="jquery-1.10.2.min.js" hash="055b1c0c38f106959bdd3cee7e6b0136"/><file name="jquery.maphilight.min.js" hash="060990df8870589e0e629349f8fb3a4c"/><file name="kinetic-v4.5.4.min.js" hash="5d114c84e5926c19c8b1cee80ea79ce5"/></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="auguria"><dir name="interactiveimage"><file name="image.css" hash="47b0fbfecac78ae0b5a524cf85a5c515"/></dir><file name="core.css" hash="f21626dc01765695d52346bb5da8c0cb"/><dir name="images"><file name="tab-header.png" hash="277234c8e4a9462fe0bf91c174cef179"/><file name="section-header.png" hash="277234c8e4a9462fe0bf91c174cef179"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="auguria"><dir name="interactiveimage"><file name="image.css" hash="4081440dcd4fa462f4d18b9ef76266ea"/></dir></dir></dir><dir name="js"><dir name="auguria"><dir name="interactiveimage"><file name="jquery.maphilight.min.js" hash="060990df8870589e0e629349f8fb3a4c"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Auguria_InteractiveImage.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Auguria_Core.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><dir name="fr_FR"><file name="Auguria_InteractiveImage.csv" hash="ca76a1aa121f73673b8fc16a6fcd7bc2"/><file name="Auguria_Core.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target><target name="mageetc"><dir name="modules"><file name="Auguria_InteractiveImage.xml" hash="bd010178de76af694025d33e666e55b2"/><file name="Auguria_Core.xml" hash="1569ebe15f1c2b8e4b5c61b9bc797fe6"/></dir></target></contents>
26
<compatible/>
27
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
28
</package>
skin/frontend/base/default/js/auguria/interactiveimage/jquery.maphilight.min.js ADDED
@@ -0,0 +1 @@
1
+ (function(G){var B,J,C,K,N,M,I,E,H,A,L;J=!!document.createElement("canvas").getContext;B=(function(){var P=document.createElement("div");P.innerHTML='<v:shape id="vml_flag1" adj="1" />';var O=P.firstChild;O.style.behavior="url(#default#VML)";return O?typeof O.adj=="object":true})();if(!(J||B)){G.fn.maphilight=function(){return this};return }if(J){E=function(O){return Math.max(0,Math.min(parseInt(O,16),255))};H=function(O,P){return"rgba("+E(O.substr(0,2))+","+E(O.substr(2,2))+","+E(O.substr(4,2))+","+P+")"};C=function(O){var P=G('<canvas style="width:'+O.width+"px;height:"+O.height+'px;"></canvas>').get(0);P.getContext("2d").clearRect(0,0,P.width,P.height);return P};var F=function(Q,O,R,P,S){P=P||0;S=S||0;Q.beginPath();if(O=="rect"){Q.rect(R[0]+P,R[1]+S,R[2]-R[0],R[3]-R[1])}else{if(O=="poly"){Q.moveTo(R[0]+P,R[1]+S);for(i=2;i<R.length;i+=2){Q.lineTo(R[i]+P,R[i+1]+S)}}else{if(O=="circ"){Q.arc(R[0]+P,R[1]+S,R[2],0,Math.PI*2,false)}}}Q.closePath()};K=function(Q,T,U,X,O){var S,P=Q.getContext("2d");if(X.shadow){P.save();if(X.shadowPosition=="inside"){F(P,T,U);P.clip()}var R=Q.width*100;var W=Q.height*100;F(P,T,U,R,W);P.shadowOffsetX=X.shadowX-R;P.shadowOffsetY=X.shadowY-W;P.shadowBlur=X.shadowRadius;P.shadowColor=H(X.shadowColor,X.shadowOpacity);var V=X.shadowFrom;if(!V){if(X.shadowPosition=="outside"){V="fill"}else{V="stroke"}}if(V=="stroke"){P.strokeStyle="rgba(0,0,0,1)";P.stroke()}else{if(V=="fill"){P.fillStyle="rgba(0,0,0,1)";P.fill()}}P.restore();if(X.shadowPosition=="outside"){P.save();F(P,T,U);P.globalCompositeOperation="destination-out";P.fillStyle="rgba(0,0,0,1);";P.fill();P.restore()}}P.save();F(P,T,U);if(X.fill){P.fillStyle=H(X.fillColor,X.fillOpacity);P.fill()}if(X.stroke){P.strokeStyle=H(X.strokeColor,X.strokeOpacity);P.lineWidth=X.strokeWidth;P.stroke()}P.restore();if(X.fade){G(Q).css("opacity",0).animate({opacity:1},100)}};N=function(O){O.getContext("2d").clearRect(0,0,O.width,O.height)}}else{C=function(O){return G('<var style="zoom:1;overflow:hidden;display:block;width:'+O.width+"px;height:"+O.height+'px;"></var>').get(0)};K=function(P,T,U,X,O){var V,W,R,S;for(var Q in U){U[Q]=parseInt(U[Q],10)}V='<v:fill color="#'+X.fillColor+'" opacity="'+(X.fill?X.fillOpacity:0)+'" />';W=(X.stroke?'strokeweight="'+X.strokeWidth+'" stroked="t" strokecolor="#'+X.strokeColor+'"':'stroked="f"');R='<v:stroke opacity="'+X.strokeOpacity+'"/>';if(T=="rect"){S=G('<v:rect name="'+O+'" filled="t" '+W+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+U[0]+"px;top:"+U[1]+"px;width:"+(U[2]-U[0])+"px;height:"+(U[3]-U[1])+'px;"></v:rect>')}else{if(T=="poly"){S=G('<v:shape name="'+O+'" filled="t" '+W+' coordorigin="0,0" coordsize="'+P.width+","+P.height+'" path="m '+U[0]+","+U[1]+" l "+U.join(",")+' x e" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:0px;left:0px;width:'+P.width+"px;height:"+P.height+'px;"></v:shape>')}else{if(T=="circ"){S=G('<v:oval name="'+O+'" filled="t" '+W+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+(U[0]-U[2])+"px;top:"+(U[1]-U[2])+"px;width:"+(U[2]*2)+"px;height:"+(U[2]*2)+'px;"></v:oval>')}}}S.get(0).innerHTML=V+R;G(P).append(S)};N=function(P){var O=G("<div>"+P.innerHTML+"</div>");O.children("[name=highlighted]").remove();P.innerHTML=O.html()}}M=function(P){var O,Q=P.getAttribute("coords").split(",");for(O=0;O<Q.length;O++){Q[O]=parseFloat(Q[O])}return[P.getAttribute("shape").toLowerCase().substr(0,4),Q]};L=function(Q,P){var O=G(Q);return G.extend({},P,G.metadata?O.metadata():false,O.data("maphilight"))};A=function(O){if(!O.complete){return false}if(typeof O.naturalWidth!="undefined"&&O.naturalWidth===0){return false}return true};I={position:"absolute",left:0,top:0,padding:0,border:0};var D=false;G.fn.maphilight=function(O){O=G.extend({},G.fn.maphilight.defaults,O);if(!J&&!D){G(window).ready(function(){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var Q=document.createStyleSheet();var P=["shape","rect","oval","circ","fill","stroke","imagedata","group","textbox"];G.each(P,function(){Q.addRule("v\\:"+this,"behavior: url(#default#VML); antialias:true")})});D=true}return this.each(function(){var U,R,Y,Q,T,V,X,S,W;U=G(this);if(!A(this)){return window.setTimeout(function(){U.maphilight(O)},200)}Y=G.extend({},O,G.metadata?U.metadata():false,U.data("maphilight"));W=U.get(0).getAttribute("usemap");if(!W){return }Q=G('map[name="'+W.substr(1)+'"]');if(!(U.is('img,input[type="image"]')&&W&&Q.size()>0)){return }if(U.hasClass("maphilighted")){var P=U.parent();U.insertBefore(P);P.remove();G(Q).unbind(".maphilight").find("area[coords]").unbind(".maphilight")}R=G("<div></div>").css({display:"block",background:'url("'+this.src+'")',position:"relative",padding:0,width:this.width,height:this.height});if(Y.wrapClass){if(Y.wrapClass===true){R.addClass(G(this).attr("class"))}else{R.addClass(Y.wrapClass)}}U.before(R).css("opacity",0).css(I).remove();if(B){U.css("filter","Alpha(opacity=0)")}R.append(U);T=C(this);G(T).css(I);T.height=this.height;T.width=this.width;X=function(c){var a,b;b=L(this,Y);if(!b.neverOn&&!b.alwaysOn){a=M(this);K(T,a[0],a[1],b,"highlighted");if(b.groupBy){var Z;if(/^[a-zA-Z][\-a-zA-Z]+#x2F;.test(b.groupBy)){Z=Q.find("area["+b.groupBy+'="'+G(this).attr(b.groupBy)+'"]')}else{Z=Q.find(b.groupBy)}var d=this;Z.each(function(){if(this!=d){var f=L(this,Y);if(!f.neverOn&&!f.alwaysOn){var e=M(this);K(T,e[0],e[1],f,"highlighted")}}})}if(!J){G(T).append("<v:rect></v:rect>")}}};G(Q).bind("alwaysOn.maphilight",function(){if(V){N(V)}if(!J){G(T).empty()}G(Q).find("area[coords]").each(function(){var Z,a;a=L(this,Y);if(a.alwaysOn){if(!V&&J){V=C(U[0]);G(V).css(I);V.width=U[0].width;V.height=U[0].height;U.before(V)}a.fade=a.alwaysOnFade;Z=M(this);if(J){K(V,Z[0],Z[1],a,"")}else{K(T,Z[0],Z[1],a,"")}}})});G(Q).trigger("alwaysOn.maphilight").find("area[coords]").bind("mouseover.maphilight",X).bind("mouseout.maphilight",function(Z){N(T)});U.before(T);U.addClass("maphilighted")})};G.fn.maphilight.defaults={fill:true,fillColor:"000000",fillOpacity:0.2,stroke:true,strokeColor:"ff0000",strokeOpacity:1,strokeWidth:1,fade:true,alwaysOn:false,neverOn:false,groupBy:false,wrapClass:true,shadow:false,shadowX:0,shadowY:0,shadowRadius:6,shadowColor:"000000",shadowOpacity:0.8,shadowPosition:"outside",shadowFrom:false}})(jQuery);