/*
	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/


var showSortable=function(_1){
dojo.style(_1,"cursor","pointer");
dojo.some(dojo.query("span",_1),function(_2){
if(dojo.attr(_2,"name")=="sortText"){
dojo.style(_2,"textDecoration","underline");
return true;
}
});
};
var hideSortable=function(_3){
dojo.style(_3,"cursor","");
dojo.some(dojo.query("span",_3),function(_4){
if(dojo.attr(_4,"name")=="sortText"){
dojo.style(_4,"textDecoration","");
return true;
}
});
};
var createDialog=function(_5,_6){
if(dijit.byId(_5)){
destroyDialog(_5);
}
var _7=new g_widgets.DualDialog({isModal:false,id:_5,refreshOnShow:true,style:_6,afterLoad:function(){
performAfterLoad(this);
},href:""});
dojo.body().appendChild(_7.domNode);
if(dojo.isIE<=6){
new dijit.BackgroundIframe(_7.domNode);
}
};
var destroyDialog=function(id){
if(dijit.byId(id)){
dijit.byId(id).destroyRecursive();
}
if(dijit.byId(id)){
dijit.byId(id).destroy();
}
};
var closeDialog=function(){
dijit.byId("nonModalDialog").hide();
};
var gotoPage=function(_9){
closeDialog();
window.location.href=_9;
};
var showQuantiyInfo=function(_a,_b){
createDialog("nonModalDialog","top: 502.5px; left: 185px;width:430px;height:325px;border: 3px double #C0C0C0;background: #FFFFFF ;padding-left: 0px;padding-right: 0px;");
var _c=dijit.byId("nonModalDialog");
_c.href=_a;
_c.loadingMessage="<div align=\"center\" class=\"addItemProcessing\"><img src=\""+_b+"/images/spinner-anim.gif\" alt=\"Please wait\" title=\"Please wait\" />"+"<p>Please wait while we process your request.</p></div>";
_c.show();
_c.hideTitleBar();
};
var performCompare=function(){
showCompareMsg("",true);
window.setTimeout(_performCompare,350);
};
var showCompareMsg=function(_d,_e){
var _f=dijit.byId("compareErrorDialog");
_f.containerNode.style.padding=0;
if(_e){
dojo.byId("compareMsgPane").style.display="none";
dojo.byId("loadingPane").style.display="block";
}else{
dojo.byId("loadingPane").style.display="none";
dojo.byId("compareMsgPane").style.display="block";
dojo.byId("compareErrMsg").innerHTML=_d;
}
_f.show();
};
var createPLOrderDialog=function(){
createDialog("nonModalDialog","top: 502.5px; left: 185px;width:430px;height:325px;border: 3px double #C0C0C0;background: #FFFFFF ;padding-left: 0px;padding-right: 0px;");
};

